Giter Club home page Giter Club logo

plugins's People

Contributors

anthonyec avatar benjamindenboer avatar dependabot[bot] avatar huntercaron avatar niekert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

plugins's Issues

framer.subscribeToImage() errors in image mode plugin

Describe the bug
Using the framer.subscribeToImage() function when editing images causes this error in the console:

error: [ActivePlugin] Cannot subscribe to topic: image, while in mode: image

To Reproduce

  1. Run the Threshold plugin from https://github.com/framer/plugins/tree/main/plugins/threshold
  2. Open the developer console
  3. Add an image to a frame, then launch the Developer Plugin from the image plugins menu.
  4. Check the console for an error.

Expected behavior
framer.subscribeToImage() should work when editing images.

Additional context
I think the issue is that the plugin mode (framer.getMode()) is "image" when it should be "editImage". The docs say that "image" doesn't have access to the current image and "editImage" does, but it doesn't seem to be possible to get the development plugin to use "editImage" mode instead of "image" right now. Even when "image" is not included in the list of modes in framer.json.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.