core
core copied to clipboard
Reshape fin-* events
This branch
Remaining work
- [ ] Provide backwards compatibility by preserving addEventListener and recommending addEventListenerV2
- [ ] Provide two copies of canvas.js one of which emits the old deprecated fin-canvas events
- [ ] Provide two copies of events.js one of which dispatches the old public shape but reshapes the internal event handlers on the feature chain to use the new shape
Summary of whats done thus far.
- Got rid of all fin-canvas* events …
- Internal and external event handlers now utilize the same event shape
- Fixed issues with mouse events dragged off canvas
- The new event shape available is
e.detail
primitive - Original Canvas Event
detail may be a Cell Event
if the event was mouse or keyboard related
mouse and keys are available.
Alternatively
e.detail
primitiveEvent
cellEvent
mouse
keys