@drawo-app/drawo 2.0.13 → 2.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -178,6 +178,31 @@ export interface DrawoContextValue {
178
178
  setLocale: (locale: "en_US" | "es_ES") => void;
179
179
  undo: () => void;
180
180
  redo: () => void;
181
+ onExportProject: () => Promise<void>;
182
+ onExportImage: (options: {
183
+ format: ExportImageFormat;
184
+ qualityScale: number;
185
+ transparentBackground: boolean;
186
+ padding: number;
187
+ }) => Promise<void>;
188
+ onOpenProject: (file: File) => Promise<void>;
189
+ onZoomIn: () => void;
190
+ onZoomOut: () => void;
191
+ onZoomReset: () => void;
192
+ onCopySelection: () => void;
193
+ onCutSelection: () => void;
194
+ onPasteAt: (x: number, y: number) => void;
195
+ onDuplicateSelection: () => void;
196
+ onDeleteSelection: () => void;
197
+ onReorderSelection: (direction: "forward" | "backward" | "front" | "back") => void;
198
+ onGroupSelection: () => void;
199
+ onUngroupSelection: () => void;
200
+ onFlipSelection: (axis: "horizontal" | "vertical") => void;
201
+ onSelectGroupForElement: (id: string) => void;
202
+ onFocusElement: (id: string) => void;
203
+ onInsertImageFiles: (files: File[], anchor?: { x: number; y: number }) => Promise<void>;
204
+ onInsertLibrarySvg: (asset: LibrarySvgAsset) => void;
205
+ onSetRectangleBorderRadius: (ids: string[], borderRadius: number) => void;
181
206
  handlers: Record<string, (...args: unknown[]) => void>;
182
207
  }
183
208
 
package/dist/index.d.ts CHANGED
@@ -178,6 +178,31 @@ export interface DrawoContextValue {
178
178
  setLocale: (locale: "en_US" | "es_ES") => void;
179
179
  undo: () => void;
180
180
  redo: () => void;
181
+ onExportProject: () => Promise<void>;
182
+ onExportImage: (options: {
183
+ format: ExportImageFormat;
184
+ qualityScale: number;
185
+ transparentBackground: boolean;
186
+ padding: number;
187
+ }) => Promise<void>;
188
+ onOpenProject: (file: File) => Promise<void>;
189
+ onZoomIn: () => void;
190
+ onZoomOut: () => void;
191
+ onZoomReset: () => void;
192
+ onCopySelection: () => void;
193
+ onCutSelection: () => void;
194
+ onPasteAt: (x: number, y: number) => void;
195
+ onDuplicateSelection: () => void;
196
+ onDeleteSelection: () => void;
197
+ onReorderSelection: (direction: "forward" | "backward" | "front" | "back") => void;
198
+ onGroupSelection: () => void;
199
+ onUngroupSelection: () => void;
200
+ onFlipSelection: (axis: "horizontal" | "vertical") => void;
201
+ onSelectGroupForElement: (id: string) => void;
202
+ onFocusElement: (id: string) => void;
203
+ onInsertImageFiles: (files: File[], anchor?: { x: number; y: number }) => Promise<void>;
204
+ onInsertLibrarySvg: (asset: LibrarySvgAsset) => void;
205
+ onSetRectangleBorderRadius: (ids: string[], borderRadius: number) => void;
181
206
  handlers: Record<string, (...args: unknown[]) => void>;
182
207
  }
183
208