fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
1 lines • 711 B
Source Map (JSON)
{"version":3,"file":"fireEvent.mjs","names":[],"sources":["../../../src/controls/fireEvent.ts"],"sourcesContent":["import type {\n ObjectModificationEvents,\n TModificationEvents,\n} from '../EventTypeDefs';\n\nexport const fireEvent = (\n eventName: TModificationEvents,\n options: ObjectModificationEvents[typeof eventName],\n) => {\n const {\n transform: { target },\n } = options;\n target.canvas?.fire(`object:${eventName}`, {\n ...options,\n target,\n });\n target.fire(eventName, options);\n};\n"],"mappings":";AAKA,MAAa,aACX,WACA,YACG;;CACH,MAAM,EACJ,WAAW,EAAE,aACX;AACJ,EAAA,iBAAA,OAAO,YAAA,QAAA,mBAAA,KAAA,KAAA,eAAQ,KAAK,UAAU,aAAa;EACzC,GAAG;EACH;EACD,CAAC;AACF,QAAO,KAAK,WAAW,QAAQ"}