{"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"}