Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support sharedDatas among different able events #1091

Open
SidIcarus opened this issue Feb 24, 2024 · 0 comments
Open

Feature Request: Support sharedDatas among different able events #1091

SidIcarus opened this issue Feb 24, 2024 · 0 comments

Comments

@SidIcarus
Copy link

Environments

  • Framework name: VanillaJS
  • Moveable Component version: 0.53

Description

I'm not sure if this is possible since each of the default provided ables are implemented as plugins to the system, but having a shared datas object through the ables would be pretty useful.

i.e

  • I find the model that needs to be modified for a given event the beginning of each event-able (usually ableStart). Pass it along via datas. If sharedDatas or whatever you decide to call it is implemented, it would only need to be done once in beforeRenderStart. Obviously this is a trivial and minimal use-case but its complexity could scale upwards easily.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant