{"version":3,"file":"fireEvent.min.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,GACX,EACA,IAAA,CAAA,IAAA,EAEA,GAAA,CACE,UAAA,CAAW,OAAE,IACX,GACJ,EAAA,EAAO,SAAA,MAAA,EAAQ,KAAK,UAAU,IAAa,CAAA,GACtC,EACH,OAAA,EAAA,CAAA,CAEF,EAAO,KAAK,EAAW,EAAA,EAAA,OAAA,KAAA"}