daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!

Home Page:https://daybrush.com/moveable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Support `sharedDatas` among different able events

SidIcarus opened this issue · comments

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.