@myoc/excalidraw 0.19.514 → 0.19.516

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.
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-NVT4BTJO.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
1
+ import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-KNCLLHEB.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-NVT4BTJO.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};
1
+ import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-KNCLLHEB.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};
@@ -57,6 +57,7 @@ export declare const newImageElement: (opts: {
57
57
  type: ExcalidrawImageElement["type"];
58
58
  status?: ExcalidrawImageElement["status"];
59
59
  fileId?: ExcalidrawImageElement["fileId"];
60
+ fileName?: ExcalidrawImageElement["fileName"];
60
61
  scale?: ExcalidrawImageElement["scale"];
61
62
  crop?: ExcalidrawImageElement["crop"];
62
63
  } & ElementConstructorOpts) => NonDeleted<ExcalidrawImageElement>;
@@ -129,6 +129,7 @@ export type ImageCrop = {
129
129
  export type ExcalidrawImageElement = _ExcalidrawElementBase & Readonly<{
130
130
  type: "image";
131
131
  fileId: FileId | null;
132
+ fileName: string | null;
132
133
  /** whether respective file is persisted */
133
134
  status: "pending" | "saved" | "error";
134
135
  /** X and Y scale factors <-1, 1>, used for image axis flipping */
@@ -1008,6 +1008,7 @@ export declare const actionWrapSelectionInFrame: {
1008
1008
  }> & Readonly<{
1009
1009
  type: "image";
1010
1010
  fileId: import("@excalidraw/element/types").FileId | null;
1011
+ fileName: string | null;
1011
1012
  status: "pending" | "saved" | "error";
1012
1013
  scale: [number, number];
1013
1014
  crop: import("@excalidraw/element/types").ImageCrop | null;
@@ -499,6 +499,7 @@ export declare const actionTogglePolygon: {
499
499
  }> & Readonly<{
500
500
  type: "image";
501
501
  fileId: import("@excalidraw/element/types").FileId | null;
502
+ fileName: string | null;
502
503
  status: "pending" | "saved" | "error";
503
504
  scale: [number, number];
504
505
  crop: import("@excalidraw/element/types").ImageCrop | null;
@@ -271,6 +271,7 @@ export declare class Renderer {
271
271
  }> & Readonly<{
272
272
  type: "image";
273
273
  fileId: import("@excalidraw/element/types").FileId | null;
274
+ fileName: string | null;
274
275
  status: "pending" | "saved" | "error";
275
276
  scale: [number, number];
276
277
  crop: import("@excalidraw/element/types").ImageCrop | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myoc/excalidraw",
3
- "version": "0.19.514",
3
+ "version": "0.19.516",
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.514",
112
- "@excalidraw/math": "npm:@myoc/math@0.19.514",
113
- "@excalidraw/element": "npm:@myoc/element@0.19.514"
111
+ "@excalidraw/common": "npm:@myoc/common@0.19.516",
112
+ "@excalidraw/math": "npm:@myoc/math@0.19.516",
113
+ "@excalidraw/element": "npm:@myoc/element@0.19.516"
114
114
  },
115
115
  "devDependencies": {
116
116
  "@size-limit/preset-big-lib": "9.0.0",
@@ -1 +0,0 @@
1
- import{P as a,Q as b,R as c}from"../chunk-56AUOKVR.js";import"../chunk-NVT4BTJO.js";import"../chunk-SRAX5OIU.js";export{c as decodePngMetadata,b as encodePngMetadata,a as getTEXtChunk};