UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

17 lines (15 loc) 381 B
const fireEvent = (eventName, options) => { var _target$canvas; const { transform: { target } } = options; (_target$canvas = target.canvas) === null || _target$canvas === void 0 || _target$canvas.fire(`object:${eventName}`, { ...options, target }); target.fire(eventName, options); }; export { fireEvent }; //# sourceMappingURL=fireEvent.mjs.map