@myoc/excalidraw 0.18.10 → 0.18.12
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/dev/{chunk-W3WBAOMY.js → chunk-MF2N5437.js} +4 -6
- package/dist/dev/chunk-MF2N5437.js.map +7 -0
- package/dist/dev/{chunk-46H4YZY7.js → chunk-NRI6YOHF.js} +2 -2
- package/dist/dev/{chunk-46H4YZY7.js.map → chunk-NRI6YOHF.js.map} +1 -1
- package/dist/dev/data/{image-6XFQQVBX.js → image-ZQGM5FUR.js} +3 -3
- package/dist/dev/index.js +41 -40
- package/dist/dev/index.js.map +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-WHJRKJUQ.js → chunk-4B5SYMA3.js} +14 -14
- package/dist/prod/{chunk-76MCHVJL.js → chunk-4YIANO7O.js} +1 -1
- package/dist/prod/data/image-HCQSRANY.js +1 -0
- package/dist/prod/index.js +15 -15
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/components/App.d.ts +6 -0
- package/dist/types/excalidraw/types.d.ts +6 -0
- package/package.json +1 -1
- package/dist/dev/chunk-W3WBAOMY.js.map +0 -7
- package/dist/prod/data/image-OLSVTOB7.js +0 -1
- /package/dist/dev/data/{image-6XFQQVBX.js.map → image-ZQGM5FUR.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-LS7FJGPW.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-LS7FJGPW.js";import"./chunk-4YIANO7O.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,c as t}from"./chunk-LS7FJGPW.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-LS7FJGPW.js";import"./chunk-4YIANO7O.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
|
|
@@ -315,6 +315,12 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
315
315
|
private static resetTapTwice;
|
|
316
316
|
private onTouchStart;
|
|
317
317
|
private onTouchEnd;
|
|
318
|
+
addImageElementsToScene: ({ sceneX, sceneY, files, selectAfterInsert, }: {
|
|
319
|
+
sceneX: number;
|
|
320
|
+
sceneY: number;
|
|
321
|
+
files: File[];
|
|
322
|
+
selectAfterInsert?: boolean | undefined;
|
|
323
|
+
}) => Promise<void>;
|
|
318
324
|
pasteFromClipboard: (event: ClipboardEvent) => Promise<void>;
|
|
319
325
|
addElementsFromPasteOrLibrary: (opts: {
|
|
320
326
|
elements: readonly ExcalidrawElement[];
|
|
@@ -631,6 +631,12 @@ export interface ExcalidrawImperativeAPI {
|
|
|
631
631
|
refresh: InstanceType<typeof App>["refresh"];
|
|
632
632
|
setToast: InstanceType<typeof App>["setToast"];
|
|
633
633
|
addFiles: (data: BinaryFileData[]) => void;
|
|
634
|
+
addImageElementsToScene: (imageProperties: {
|
|
635
|
+
sceneX: number;
|
|
636
|
+
sceneY: number;
|
|
637
|
+
files: File[];
|
|
638
|
+
selectAfterInsert?: boolean;
|
|
639
|
+
}) => Promise<void>;
|
|
634
640
|
id: string;
|
|
635
641
|
setActiveTool: InstanceType<typeof App>["setActiveTool"];
|
|
636
642
|
setCursor: InstanceType<typeof App>["setCursor"];
|