@myoc/excalidraw 0.19.530 → 0.19.532
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/CHANGELOG.md +158 -0
- package/dist/dev/{chunk-XSA46KXZ.js → chunk-ASAPRLCW.js} +2 -2
- package/dist/dev/{chunk-ROEGCKS3.js → chunk-ITMOGRAW.js} +17 -4
- package/dist/dev/chunk-ITMOGRAW.js.map +7 -0
- package/dist/dev/data/{image-AYT4E6ZF.js → image-S7APFFV6.js} +3 -3
- package/dist/dev/index.js +23 -5
- 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-MDZUVLV6.js → chunk-GSRXJLOQ.js} +1 -1
- package/dist/prod/chunk-U3WBDUKM.js +4 -0
- package/dist/prod/data/image-MWFLMJV7.js +1 -0
- package/dist/prod/index.js +13 -13
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/errors.d.ts +7 -0
- package/dist/types/excalidraw/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/dev/chunk-ROEGCKS3.js.map +0 -7
- package/dist/prod/chunk-6OYCXZJM.js +0 -4
- package/dist/prod/data/image-EAYKVQSH.js +0 -1
- /package/dist/dev/{chunk-XSA46KXZ.js.map → chunk-ASAPRLCW.js.map} +0 -0
- /package/dist/dev/data/{image-AYT4E6ZF.js.map → image-S7APFFV6.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-GSRXJLOQ.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-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-GSRXJLOQ.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};
|
|
@@ -10,6 +10,13 @@ export declare class ImageSceneDataError extends Error {
|
|
|
10
10
|
code: ImageSceneDataErrorCode;
|
|
11
11
|
constructor(message?: string, code?: ImageSceneDataErrorCode);
|
|
12
12
|
}
|
|
13
|
+
export type UnsupportedImageFileTypeErrorCode = "UNSUPPORTED_IMAGE_FILE_TYPE";
|
|
14
|
+
export declare class UnsupportedImageFileTypeError extends Error {
|
|
15
|
+
readonly code: UnsupportedImageFileTypeErrorCode;
|
|
16
|
+
readonly fileName: string;
|
|
17
|
+
readonly mimeType: string;
|
|
18
|
+
constructor(file: File, message: string);
|
|
19
|
+
}
|
|
13
20
|
type WorkerErrorCodes = "WORKER_URL_NOT_DEFINED" | "WORKER_IN_THE_MAIN_CHUNK";
|
|
14
21
|
export declare class WorkerUrlNotDefinedError extends Error {
|
|
15
22
|
code: WorkerErrorCodes;
|
|
@@ -22,6 +22,7 @@ export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements
|
|
|
22
22
|
export { getTextFromElements } from "@excalidraw/element";
|
|
23
23
|
export { isInvisiblySmallElement } from "@excalidraw/element";
|
|
24
24
|
export { defaultLang, useI18n, languages } from "./i18n";
|
|
25
|
+
export { UnsupportedImageFileTypeError, type UnsupportedImageFileTypeErrorCode, } from "./errors";
|
|
25
26
|
export { restoreAppState, restoreElement, restoreElements, } from "./data/restore";
|
|
26
27
|
export { reconcileElements } from "./data/reconcile";
|
|
27
28
|
export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@excalidraw/utils/export";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myoc/excalidraw",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.532",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/excalidraw/index.d.ts",
|
|
6
6
|
"main": "./dist/prod/index.js",
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
"roughjs": "4.6.4",
|
|
109
109
|
"sass": "1.51.0",
|
|
110
110
|
"tunnel-rat": "0.1.2",
|
|
111
|
-
"@excalidraw/common": "npm:@myoc/common@0.19.
|
|
112
|
-
"@excalidraw/math": "npm:@myoc/math@0.19.
|
|
113
|
-
"@excalidraw/element": "npm:@myoc/element@0.19.
|
|
111
|
+
"@excalidraw/common": "npm:@myoc/common@0.19.532",
|
|
112
|
+
"@excalidraw/math": "npm:@myoc/math@0.19.532",
|
|
113
|
+
"@excalidraw/element": "npm:@myoc/element@0.19.532"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@size-limit/preset-big-lib": "9.0.0",
|