@myoc/excalidraw 0.18.17 → 0.18.18
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-FQEIAL75.js → chunk-MAGRVBVM.js} +8745 -10813
- package/dist/dev/chunk-MAGRVBVM.js.map +7 -0
- package/dist/dev/{chunk-KJKC5BJI.js → chunk-QO4EFL6B.js} +6 -2
- package/dist/dev/chunk-QO4EFL6B.js.map +7 -0
- package/dist/dev/chunk-WUH7JFG4.js +7 -0
- package/dist/dev/chunk-WUH7JFG4.js.map +7 -0
- package/dist/dev/data/{image-WMF622SS.js → image-BBHDGXQ3.js} +3 -3
- package/dist/dev/index.css +32 -2
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +4749 -2336
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-UQFCZXHO.js → en-2WXBKZE2.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-4Z2WWUCC.js +7 -0
- package/dist/prod/{chunk-EJLAYNAE.js → chunk-KZXLT4YB.js} +4 -4
- package/dist/prod/chunk-YBT3HBS6.js +33 -0
- package/dist/prod/data/image-JFILZTP3.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +18 -18
- package/dist/prod/locales/{en-7EHYHCIL.js → en-XFR6MADM.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +16 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -3
- package/dist/types/element/src/binding.d.ts +6 -7
- package/dist/types/element/src/bounds.d.ts +10 -4
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +26 -6
- package/dist/types/element/src/distance.d.ts +2 -2
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/fractionalIndex.d.ts +8 -2
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +11 -18
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +2 -1
- package/dist/types/element/src/resizeElements.d.ts +1 -0
- package/dist/types/element/src/resizeTest.d.ts +2 -2
- package/dist/types/element/src/{ShapeCache.d.ts → shape.d.ts} +20 -3
- package/dist/types/element/src/shapes.d.ts +9 -9
- package/dist/types/element/src/sizeHelpers.d.ts +2 -1
- package/dist/types/element/src/store.d.ts +11 -7
- package/dist/types/element/src/typeChecks.d.ts +15 -1
- package/dist/types/element/src/types.d.ts +8 -3
- package/dist/types/element/src/utils.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +60 -24
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +31 -12
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +16 -6
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -20
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +45 -18
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +58 -12
- package/dist/types/excalidraw/actions/actionFrame.d.ts +20 -8
- package/dist/types/excalidraw/actions/actionGroup.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +498 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +15 -6
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +10 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +84 -31
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
- package/dist/types/excalidraw/actions/types.d.ts +2 -1
- package/dist/types/excalidraw/appState.d.ts +10 -1
- package/dist/types/excalidraw/components/App.d.ts +7 -14
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/history.d.ts +21 -5
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
- package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
- package/dist/types/excalidraw/types.d.ts +10 -4
- package/dist/types/math/src/angle.d.ts +3 -1
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +33 -1
- package/dist/types/math/src/ellipse.d.ts +3 -3
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +3 -3
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/segment.d.ts +5 -5
- package/dist/types/math/src/utils.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +4 -2
- package/dist/types/utils/src/shape.d.ts +12 -12
- package/history.ts +108 -45
- package/package.json +1 -1
- package/dist/dev/chunk-FQEIAL75.js.map +0 -7
- package/dist/dev/chunk-KJKC5BJI.js.map +0 -7
- package/dist/dev/chunk-XL2I4W52.js +0 -7
- package/dist/dev/chunk-XL2I4W52.js.map +0 -7
- package/dist/prod/chunk-5JAQX5EH.js +0 -7
- package/dist/prod/chunk-LSNMPGNI.js +0 -33
- package/dist/prod/data/image-Z433FUMH.js +0 -1
- package/dist/types/element/src/Shape.d.ts +0 -17
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-WMF622SS.js.map → image-BBHDGXQ3.js.map} +0 -0
- /package/dist/dev/locales/{en-UQFCZXHO.js.map → en-2WXBKZE2.js.map} +0 -0
|
@@ -75,7 +75,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
75
75
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
76
76
|
currentHoveredFontFamily: number | null;
|
|
77
77
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
78
|
-
currentItemArrowType: "
|
|
78
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
79
79
|
viewBackgroundColor: string;
|
|
80
80
|
scrollX: number;
|
|
81
81
|
scrollY: number;
|
|
@@ -169,7 +169,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
169
169
|
shown: true;
|
|
170
170
|
data: import("../charts").Spreadsheet;
|
|
171
171
|
};
|
|
172
|
-
pendingImageElementId: string | null;
|
|
173
172
|
showHyperlinkPopup: false | "info" | "editor";
|
|
174
173
|
selectedLinearElement: LinearElementEditor | null;
|
|
175
174
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -186,6 +185,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
186
185
|
focusedId: string | null;
|
|
187
186
|
matches: readonly import("../types").SearchMatch[];
|
|
188
187
|
}> | null;
|
|
188
|
+
activeLockedId: string | null;
|
|
189
|
+
lockedMultiSelections: {
|
|
190
|
+
[groupId: string]: true;
|
|
191
|
+
};
|
|
189
192
|
};
|
|
190
193
|
captureUpdate: "IMMEDIATELY";
|
|
191
194
|
};
|
|
@@ -193,3 +196,496 @@ export declare const actionToggleLinearEditor: {
|
|
|
193
196
|
} & {
|
|
194
197
|
keyTest?: undefined;
|
|
195
198
|
};
|
|
199
|
+
export declare const actionTogglePolygon: {
|
|
200
|
+
name: "togglePolygon";
|
|
201
|
+
category: string;
|
|
202
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
203
|
+
keywords: string[];
|
|
204
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
205
|
+
trackEvent: {
|
|
206
|
+
category: "element";
|
|
207
|
+
};
|
|
208
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
209
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
|
|
210
|
+
elements: ((Readonly<{
|
|
211
|
+
id: string;
|
|
212
|
+
x: number;
|
|
213
|
+
y: number;
|
|
214
|
+
strokeColor: string;
|
|
215
|
+
backgroundColor: string;
|
|
216
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
217
|
+
strokeWidth: number;
|
|
218
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
219
|
+
roundness: {
|
|
220
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
221
|
+
value?: number | undefined;
|
|
222
|
+
} | null;
|
|
223
|
+
roughness: number;
|
|
224
|
+
opacity: number;
|
|
225
|
+
width: number;
|
|
226
|
+
height: number;
|
|
227
|
+
angle: import("@excalidraw/math").Radians;
|
|
228
|
+
seed: number;
|
|
229
|
+
version: number;
|
|
230
|
+
versionNonce: number;
|
|
231
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
232
|
+
isDeleted: boolean;
|
|
233
|
+
groupIds: readonly string[];
|
|
234
|
+
frameId: string | null;
|
|
235
|
+
boundElements: readonly Readonly<{
|
|
236
|
+
id: string;
|
|
237
|
+
type: "text" | "arrow";
|
|
238
|
+
}>[] | null;
|
|
239
|
+
updated: number;
|
|
240
|
+
link: string | null;
|
|
241
|
+
locked: boolean;
|
|
242
|
+
customData?: Record<string, any> | undefined;
|
|
243
|
+
}> & {
|
|
244
|
+
type: "selection";
|
|
245
|
+
} & {
|
|
246
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
247
|
+
}) | (Readonly<{
|
|
248
|
+
id: string;
|
|
249
|
+
x: number;
|
|
250
|
+
y: number;
|
|
251
|
+
strokeColor: string;
|
|
252
|
+
backgroundColor: string;
|
|
253
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
254
|
+
strokeWidth: number;
|
|
255
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
256
|
+
roundness: {
|
|
257
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
258
|
+
value?: number | undefined;
|
|
259
|
+
} | null;
|
|
260
|
+
roughness: number;
|
|
261
|
+
opacity: number;
|
|
262
|
+
width: number;
|
|
263
|
+
height: number;
|
|
264
|
+
angle: import("@excalidraw/math").Radians;
|
|
265
|
+
seed: number;
|
|
266
|
+
version: number;
|
|
267
|
+
versionNonce: number;
|
|
268
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
269
|
+
isDeleted: boolean;
|
|
270
|
+
groupIds: readonly string[];
|
|
271
|
+
frameId: string | null;
|
|
272
|
+
boundElements: readonly Readonly<{
|
|
273
|
+
id: string;
|
|
274
|
+
type: "text" | "arrow";
|
|
275
|
+
}>[] | null;
|
|
276
|
+
updated: number;
|
|
277
|
+
link: string | null;
|
|
278
|
+
locked: boolean;
|
|
279
|
+
customData?: Record<string, any> | undefined;
|
|
280
|
+
}> & {
|
|
281
|
+
type: "rectangle";
|
|
282
|
+
} & {
|
|
283
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
284
|
+
}) | (Readonly<{
|
|
285
|
+
id: string;
|
|
286
|
+
x: number;
|
|
287
|
+
y: number;
|
|
288
|
+
strokeColor: string;
|
|
289
|
+
backgroundColor: string;
|
|
290
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
291
|
+
strokeWidth: number;
|
|
292
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
293
|
+
roundness: {
|
|
294
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
295
|
+
value?: number | undefined;
|
|
296
|
+
} | null;
|
|
297
|
+
roughness: number;
|
|
298
|
+
opacity: number;
|
|
299
|
+
width: number;
|
|
300
|
+
height: number;
|
|
301
|
+
angle: import("@excalidraw/math").Radians;
|
|
302
|
+
seed: number;
|
|
303
|
+
version: number;
|
|
304
|
+
versionNonce: number;
|
|
305
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
306
|
+
isDeleted: boolean;
|
|
307
|
+
groupIds: readonly string[];
|
|
308
|
+
frameId: string | null;
|
|
309
|
+
boundElements: readonly Readonly<{
|
|
310
|
+
id: string;
|
|
311
|
+
type: "text" | "arrow";
|
|
312
|
+
}>[] | null;
|
|
313
|
+
updated: number;
|
|
314
|
+
link: string | null;
|
|
315
|
+
locked: boolean;
|
|
316
|
+
customData?: Record<string, any> | undefined;
|
|
317
|
+
}> & {
|
|
318
|
+
type: "diamond";
|
|
319
|
+
} & {
|
|
320
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
321
|
+
}) | (Readonly<{
|
|
322
|
+
id: string;
|
|
323
|
+
x: number;
|
|
324
|
+
y: number;
|
|
325
|
+
strokeColor: string;
|
|
326
|
+
backgroundColor: string;
|
|
327
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
328
|
+
strokeWidth: number;
|
|
329
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
330
|
+
roundness: {
|
|
331
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
332
|
+
value?: number | undefined;
|
|
333
|
+
} | null;
|
|
334
|
+
roughness: number;
|
|
335
|
+
opacity: number;
|
|
336
|
+
width: number;
|
|
337
|
+
height: number;
|
|
338
|
+
angle: import("@excalidraw/math").Radians;
|
|
339
|
+
seed: number;
|
|
340
|
+
version: number;
|
|
341
|
+
versionNonce: number;
|
|
342
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
343
|
+
isDeleted: boolean;
|
|
344
|
+
groupIds: readonly string[];
|
|
345
|
+
frameId: string | null;
|
|
346
|
+
boundElements: readonly Readonly<{
|
|
347
|
+
id: string;
|
|
348
|
+
type: "text" | "arrow";
|
|
349
|
+
}>[] | null;
|
|
350
|
+
updated: number;
|
|
351
|
+
link: string | null;
|
|
352
|
+
locked: boolean;
|
|
353
|
+
customData?: Record<string, any> | undefined;
|
|
354
|
+
}> & {
|
|
355
|
+
type: "ellipse";
|
|
356
|
+
} & {
|
|
357
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
358
|
+
}) | (Readonly<{
|
|
359
|
+
id: string;
|
|
360
|
+
x: number;
|
|
361
|
+
y: number;
|
|
362
|
+
strokeColor: string;
|
|
363
|
+
backgroundColor: string;
|
|
364
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
365
|
+
strokeWidth: number;
|
|
366
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
367
|
+
roundness: {
|
|
368
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
369
|
+
value?: number | undefined;
|
|
370
|
+
} | null;
|
|
371
|
+
roughness: number;
|
|
372
|
+
opacity: number;
|
|
373
|
+
width: number;
|
|
374
|
+
height: number;
|
|
375
|
+
angle: import("@excalidraw/math").Radians;
|
|
376
|
+
seed: number;
|
|
377
|
+
version: number;
|
|
378
|
+
versionNonce: number;
|
|
379
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
380
|
+
isDeleted: boolean;
|
|
381
|
+
groupIds: readonly string[];
|
|
382
|
+
frameId: string | null;
|
|
383
|
+
boundElements: readonly Readonly<{
|
|
384
|
+
id: string;
|
|
385
|
+
type: "text" | "arrow";
|
|
386
|
+
}>[] | null;
|
|
387
|
+
updated: number;
|
|
388
|
+
link: string | null;
|
|
389
|
+
locked: boolean;
|
|
390
|
+
customData?: Record<string, any> | undefined;
|
|
391
|
+
}> & Readonly<{
|
|
392
|
+
type: "text";
|
|
393
|
+
fontSize: number;
|
|
394
|
+
fontFamily: number;
|
|
395
|
+
text: string;
|
|
396
|
+
textAlign: string;
|
|
397
|
+
verticalAlign: string;
|
|
398
|
+
containerId: string | null;
|
|
399
|
+
originalText: string;
|
|
400
|
+
autoResize: boolean;
|
|
401
|
+
lineHeight: number & {
|
|
402
|
+
_brand: "unitlessLineHeight";
|
|
403
|
+
};
|
|
404
|
+
}> & {
|
|
405
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
406
|
+
}) | (Readonly<{
|
|
407
|
+
id: string;
|
|
408
|
+
x: number;
|
|
409
|
+
y: number;
|
|
410
|
+
strokeColor: string;
|
|
411
|
+
backgroundColor: string;
|
|
412
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
413
|
+
strokeWidth: number;
|
|
414
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
415
|
+
roundness: {
|
|
416
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
417
|
+
value?: number | undefined;
|
|
418
|
+
} | null;
|
|
419
|
+
roughness: number;
|
|
420
|
+
opacity: number;
|
|
421
|
+
width: number;
|
|
422
|
+
height: number;
|
|
423
|
+
angle: import("@excalidraw/math").Radians;
|
|
424
|
+
seed: number;
|
|
425
|
+
version: number;
|
|
426
|
+
versionNonce: number;
|
|
427
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
428
|
+
isDeleted: boolean;
|
|
429
|
+
groupIds: readonly string[];
|
|
430
|
+
frameId: string | null;
|
|
431
|
+
boundElements: readonly Readonly<{
|
|
432
|
+
id: string;
|
|
433
|
+
type: "text" | "arrow";
|
|
434
|
+
}>[] | null;
|
|
435
|
+
updated: number;
|
|
436
|
+
link: string | null;
|
|
437
|
+
locked: boolean;
|
|
438
|
+
customData?: Record<string, any> | undefined;
|
|
439
|
+
}> & Readonly<{
|
|
440
|
+
type: "line" | "arrow";
|
|
441
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
442
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
443
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
444
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
445
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
446
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
447
|
+
}> & {
|
|
448
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
449
|
+
}) | (Readonly<{
|
|
450
|
+
id: string;
|
|
451
|
+
x: number;
|
|
452
|
+
y: number;
|
|
453
|
+
strokeColor: string;
|
|
454
|
+
backgroundColor: string;
|
|
455
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
456
|
+
strokeWidth: number;
|
|
457
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
458
|
+
roundness: {
|
|
459
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
460
|
+
value?: number | undefined;
|
|
461
|
+
} | null;
|
|
462
|
+
roughness: number;
|
|
463
|
+
opacity: number;
|
|
464
|
+
width: number;
|
|
465
|
+
height: number;
|
|
466
|
+
angle: import("@excalidraw/math").Radians;
|
|
467
|
+
seed: number;
|
|
468
|
+
version: number;
|
|
469
|
+
versionNonce: number;
|
|
470
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
471
|
+
isDeleted: boolean;
|
|
472
|
+
groupIds: readonly string[];
|
|
473
|
+
frameId: string | null;
|
|
474
|
+
boundElements: readonly Readonly<{
|
|
475
|
+
id: string;
|
|
476
|
+
type: "text" | "arrow";
|
|
477
|
+
}>[] | null;
|
|
478
|
+
updated: number;
|
|
479
|
+
link: string | null;
|
|
480
|
+
locked: boolean;
|
|
481
|
+
customData?: Record<string, any> | undefined;
|
|
482
|
+
}> & Readonly<{
|
|
483
|
+
type: "freedraw";
|
|
484
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
485
|
+
pressures: readonly number[];
|
|
486
|
+
simulatePressure: boolean;
|
|
487
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
488
|
+
}> & {
|
|
489
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
490
|
+
}) | (Readonly<{
|
|
491
|
+
id: string;
|
|
492
|
+
x: number;
|
|
493
|
+
y: number;
|
|
494
|
+
strokeColor: string;
|
|
495
|
+
backgroundColor: string;
|
|
496
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
497
|
+
strokeWidth: number;
|
|
498
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
499
|
+
roundness: {
|
|
500
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
501
|
+
value?: number | undefined;
|
|
502
|
+
} | null;
|
|
503
|
+
roughness: number;
|
|
504
|
+
opacity: number;
|
|
505
|
+
width: number;
|
|
506
|
+
height: number;
|
|
507
|
+
angle: import("@excalidraw/math").Radians;
|
|
508
|
+
seed: number;
|
|
509
|
+
version: number;
|
|
510
|
+
versionNonce: number;
|
|
511
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
512
|
+
isDeleted: boolean;
|
|
513
|
+
groupIds: readonly string[];
|
|
514
|
+
frameId: string | null;
|
|
515
|
+
boundElements: readonly Readonly<{
|
|
516
|
+
id: string;
|
|
517
|
+
type: "text" | "arrow";
|
|
518
|
+
}>[] | null;
|
|
519
|
+
updated: number;
|
|
520
|
+
link: string | null;
|
|
521
|
+
locked: boolean;
|
|
522
|
+
customData?: Record<string, any> | undefined;
|
|
523
|
+
}> & Readonly<{
|
|
524
|
+
type: "image";
|
|
525
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
526
|
+
status: "error" | "pending" | "saved";
|
|
527
|
+
scale: [number, number];
|
|
528
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
529
|
+
}> & {
|
|
530
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
531
|
+
}) | (Readonly<{
|
|
532
|
+
id: string;
|
|
533
|
+
x: number;
|
|
534
|
+
y: number;
|
|
535
|
+
strokeColor: string;
|
|
536
|
+
backgroundColor: string;
|
|
537
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
538
|
+
strokeWidth: number;
|
|
539
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
540
|
+
roundness: {
|
|
541
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
542
|
+
value?: number | undefined;
|
|
543
|
+
} | null;
|
|
544
|
+
roughness: number;
|
|
545
|
+
opacity: number;
|
|
546
|
+
width: number;
|
|
547
|
+
height: number;
|
|
548
|
+
angle: import("@excalidraw/math").Radians;
|
|
549
|
+
seed: number;
|
|
550
|
+
version: number;
|
|
551
|
+
versionNonce: number;
|
|
552
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
553
|
+
isDeleted: boolean;
|
|
554
|
+
groupIds: readonly string[];
|
|
555
|
+
frameId: string | null;
|
|
556
|
+
boundElements: readonly Readonly<{
|
|
557
|
+
id: string;
|
|
558
|
+
type: "text" | "arrow";
|
|
559
|
+
}>[] | null;
|
|
560
|
+
updated: number;
|
|
561
|
+
link: string | null;
|
|
562
|
+
locked: boolean;
|
|
563
|
+
customData?: Record<string, any> | undefined;
|
|
564
|
+
}> & {
|
|
565
|
+
type: "frame";
|
|
566
|
+
name: string | null;
|
|
567
|
+
} & {
|
|
568
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
569
|
+
}) | (Readonly<{
|
|
570
|
+
id: string;
|
|
571
|
+
x: number;
|
|
572
|
+
y: number;
|
|
573
|
+
strokeColor: string;
|
|
574
|
+
backgroundColor: string;
|
|
575
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
576
|
+
strokeWidth: number;
|
|
577
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
578
|
+
roundness: {
|
|
579
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
580
|
+
value?: number | undefined;
|
|
581
|
+
} | null;
|
|
582
|
+
roughness: number;
|
|
583
|
+
opacity: number;
|
|
584
|
+
width: number;
|
|
585
|
+
height: number;
|
|
586
|
+
angle: import("@excalidraw/math").Radians;
|
|
587
|
+
seed: number;
|
|
588
|
+
version: number;
|
|
589
|
+
versionNonce: number;
|
|
590
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
591
|
+
isDeleted: boolean;
|
|
592
|
+
groupIds: readonly string[];
|
|
593
|
+
frameId: string | null;
|
|
594
|
+
boundElements: readonly Readonly<{
|
|
595
|
+
id: string;
|
|
596
|
+
type: "text" | "arrow";
|
|
597
|
+
}>[] | null;
|
|
598
|
+
updated: number;
|
|
599
|
+
link: string | null;
|
|
600
|
+
locked: boolean;
|
|
601
|
+
customData?: Record<string, any> | undefined;
|
|
602
|
+
}> & {
|
|
603
|
+
type: "magicframe";
|
|
604
|
+
name: string | null;
|
|
605
|
+
} & {
|
|
606
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
607
|
+
}) | (Readonly<{
|
|
608
|
+
id: string;
|
|
609
|
+
x: number;
|
|
610
|
+
y: number;
|
|
611
|
+
strokeColor: string;
|
|
612
|
+
backgroundColor: string;
|
|
613
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
614
|
+
strokeWidth: number;
|
|
615
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
616
|
+
roundness: {
|
|
617
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
618
|
+
value?: number | undefined;
|
|
619
|
+
} | null;
|
|
620
|
+
roughness: number;
|
|
621
|
+
opacity: number;
|
|
622
|
+
width: number;
|
|
623
|
+
height: number;
|
|
624
|
+
angle: import("@excalidraw/math").Radians;
|
|
625
|
+
seed: number;
|
|
626
|
+
version: number;
|
|
627
|
+
versionNonce: number;
|
|
628
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
629
|
+
isDeleted: boolean;
|
|
630
|
+
groupIds: readonly string[];
|
|
631
|
+
frameId: string | null;
|
|
632
|
+
boundElements: readonly Readonly<{
|
|
633
|
+
id: string;
|
|
634
|
+
type: "text" | "arrow";
|
|
635
|
+
}>[] | null;
|
|
636
|
+
updated: number;
|
|
637
|
+
link: string | null;
|
|
638
|
+
locked: boolean;
|
|
639
|
+
customData?: Record<string, any> | undefined;
|
|
640
|
+
}> & Readonly<{
|
|
641
|
+
type: "iframe";
|
|
642
|
+
customData?: {
|
|
643
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
644
|
+
} | undefined;
|
|
645
|
+
}> & {
|
|
646
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
647
|
+
}) | (Readonly<{
|
|
648
|
+
id: string;
|
|
649
|
+
x: number;
|
|
650
|
+
y: number;
|
|
651
|
+
strokeColor: string;
|
|
652
|
+
backgroundColor: string;
|
|
653
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
654
|
+
strokeWidth: number;
|
|
655
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
656
|
+
roundness: {
|
|
657
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
658
|
+
value?: number | undefined;
|
|
659
|
+
} | null;
|
|
660
|
+
roughness: number;
|
|
661
|
+
opacity: number;
|
|
662
|
+
width: number;
|
|
663
|
+
height: number;
|
|
664
|
+
angle: import("@excalidraw/math").Radians;
|
|
665
|
+
seed: number;
|
|
666
|
+
version: number;
|
|
667
|
+
versionNonce: number;
|
|
668
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
669
|
+
isDeleted: boolean;
|
|
670
|
+
groupIds: readonly string[];
|
|
671
|
+
frameId: string | null;
|
|
672
|
+
boundElements: readonly Readonly<{
|
|
673
|
+
id: string;
|
|
674
|
+
type: "text" | "arrow";
|
|
675
|
+
}>[] | null;
|
|
676
|
+
updated: number;
|
|
677
|
+
link: string | null;
|
|
678
|
+
locked: boolean;
|
|
679
|
+
customData?: Record<string, any> | undefined;
|
|
680
|
+
}> & Readonly<{
|
|
681
|
+
type: "embeddable";
|
|
682
|
+
}> & {
|
|
683
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
684
|
+
}))[];
|
|
685
|
+
appState: Readonly<import("../types").AppState>;
|
|
686
|
+
captureUpdate: "IMMEDIATELY";
|
|
687
|
+
};
|
|
688
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
689
|
+
} & {
|
|
690
|
+
keyTest?: undefined;
|
|
691
|
+
};
|
|
@@ -71,7 +71,7 @@ export declare const actionLink: {
|
|
|
71
71
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
72
|
currentHoveredFontFamily: number | null;
|
|
73
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
|
-
currentItemArrowType: "
|
|
74
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
75
75
|
viewBackgroundColor: string;
|
|
76
76
|
scrollX: number;
|
|
77
77
|
scrollY: number;
|
|
@@ -164,7 +164,6 @@ export declare const actionLink: {
|
|
|
164
164
|
shown: true;
|
|
165
165
|
data: import("../charts").Spreadsheet;
|
|
166
166
|
};
|
|
167
|
-
pendingImageElementId: string | null;
|
|
168
167
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
169
168
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
169
|
originSnapOffset: {
|
|
@@ -180,6 +179,10 @@ export declare const actionLink: {
|
|
|
180
179
|
focusedId: string | null;
|
|
181
180
|
matches: readonly import("../types").SearchMatch[];
|
|
182
181
|
}> | null;
|
|
182
|
+
activeLockedId: string | null;
|
|
183
|
+
lockedMultiSelections: {
|
|
184
|
+
[groupId: string]: true;
|
|
185
|
+
};
|
|
183
186
|
};
|
|
184
187
|
captureUpdate: "IMMEDIATELY";
|
|
185
188
|
};
|
|
@@ -71,7 +71,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
71
71
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
72
|
currentHoveredFontFamily: number | null;
|
|
73
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
|
-
currentItemArrowType: "
|
|
74
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
75
75
|
viewBackgroundColor: string;
|
|
76
76
|
scrollX: number;
|
|
77
77
|
scrollY: number;
|
|
@@ -164,7 +164,6 @@ export declare const actionToggleCanvasMenu: {
|
|
|
164
164
|
shown: true;
|
|
165
165
|
data: import("../charts").Spreadsheet;
|
|
166
166
|
};
|
|
167
|
-
pendingImageElementId: string | null;
|
|
168
167
|
showHyperlinkPopup: false | "info" | "editor";
|
|
169
168
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
170
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -181,6 +180,10 @@ export declare const actionToggleCanvasMenu: {
|
|
|
181
180
|
focusedId: string | null;
|
|
182
181
|
matches: readonly import("../types").SearchMatch[];
|
|
183
182
|
}> | null;
|
|
183
|
+
activeLockedId: string | null;
|
|
184
|
+
lockedMultiSelections: {
|
|
185
|
+
[groupId: string]: true;
|
|
186
|
+
};
|
|
184
187
|
};
|
|
185
188
|
captureUpdate: "EVENTUALLY";
|
|
186
189
|
};
|
|
@@ -260,7 +263,7 @@ export declare const actionToggleEditMenu: {
|
|
|
260
263
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
261
264
|
currentHoveredFontFamily: number | null;
|
|
262
265
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
263
|
-
currentItemArrowType: "
|
|
266
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
264
267
|
viewBackgroundColor: string;
|
|
265
268
|
scrollX: number;
|
|
266
269
|
scrollY: number;
|
|
@@ -353,7 +356,6 @@ export declare const actionToggleEditMenu: {
|
|
|
353
356
|
shown: true;
|
|
354
357
|
data: import("../charts").Spreadsheet;
|
|
355
358
|
};
|
|
356
|
-
pendingImageElementId: string | null;
|
|
357
359
|
showHyperlinkPopup: false | "info" | "editor";
|
|
358
360
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
359
361
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -370,6 +372,10 @@ export declare const actionToggleEditMenu: {
|
|
|
370
372
|
focusedId: string | null;
|
|
371
373
|
matches: readonly import("../types").SearchMatch[];
|
|
372
374
|
}> | null;
|
|
375
|
+
activeLockedId: string | null;
|
|
376
|
+
lockedMultiSelections: {
|
|
377
|
+
[groupId: string]: true;
|
|
378
|
+
};
|
|
373
379
|
};
|
|
374
380
|
captureUpdate: "EVENTUALLY";
|
|
375
381
|
};
|
|
@@ -454,7 +460,7 @@ export declare const actionShortcuts: {
|
|
|
454
460
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
455
461
|
currentHoveredFontFamily: number | null;
|
|
456
462
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
457
|
-
currentItemArrowType: "
|
|
463
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
458
464
|
viewBackgroundColor: string;
|
|
459
465
|
scrollX: number;
|
|
460
466
|
scrollY: number;
|
|
@@ -537,7 +543,6 @@ export declare const actionShortcuts: {
|
|
|
537
543
|
shown: true;
|
|
538
544
|
data: import("../charts").Spreadsheet;
|
|
539
545
|
};
|
|
540
|
-
pendingImageElementId: string | null;
|
|
541
546
|
showHyperlinkPopup: false | "info" | "editor";
|
|
542
547
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
543
548
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -554,6 +559,10 @@ export declare const actionShortcuts: {
|
|
|
554
559
|
focusedId: string | null;
|
|
555
560
|
matches: readonly import("../types").SearchMatch[];
|
|
556
561
|
}> | null;
|
|
562
|
+
activeLockedId: string | null;
|
|
563
|
+
lockedMultiSelections: {
|
|
564
|
+
[groupId: string]: true;
|
|
565
|
+
};
|
|
557
566
|
};
|
|
558
567
|
captureUpdate: "EVENTUALLY";
|
|
559
568
|
};
|
|
@@ -73,7 +73,7 @@ export declare const actionGoToCollaborator: {
|
|
|
73
73
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
74
74
|
currentHoveredFontFamily: number | null;
|
|
75
75
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
76
|
-
currentItemArrowType: "
|
|
76
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
77
77
|
viewBackgroundColor: string;
|
|
78
78
|
scrollX: number;
|
|
79
79
|
scrollY: number;
|
|
@@ -167,7 +167,6 @@ export declare const actionGoToCollaborator: {
|
|
|
167
167
|
shown: true;
|
|
168
168
|
data: import("../charts").Spreadsheet;
|
|
169
169
|
};
|
|
170
|
-
pendingImageElementId: string | null;
|
|
171
170
|
showHyperlinkPopup: false | "info" | "editor";
|
|
172
171
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
173
172
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -183,6 +182,10 @@ export declare const actionGoToCollaborator: {
|
|
|
183
182
|
focusedId: string | null;
|
|
184
183
|
matches: readonly import("../types").SearchMatch[];
|
|
185
184
|
}> | null;
|
|
185
|
+
activeLockedId: string | null;
|
|
186
|
+
lockedMultiSelections: {
|
|
187
|
+
[groupId: string]: true;
|
|
188
|
+
};
|
|
186
189
|
};
|
|
187
190
|
captureUpdate: "EVENTUALLY";
|
|
188
191
|
} | {
|
|
@@ -255,7 +258,7 @@ export declare const actionGoToCollaborator: {
|
|
|
255
258
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
256
259
|
currentHoveredFontFamily: number | null;
|
|
257
260
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
258
|
-
currentItemArrowType: "
|
|
261
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
259
262
|
viewBackgroundColor: string;
|
|
260
263
|
scrollX: number;
|
|
261
264
|
scrollY: number;
|
|
@@ -348,7 +351,6 @@ export declare const actionGoToCollaborator: {
|
|
|
348
351
|
shown: true;
|
|
349
352
|
data: import("../charts").Spreadsheet;
|
|
350
353
|
};
|
|
351
|
-
pendingImageElementId: string | null;
|
|
352
354
|
showHyperlinkPopup: false | "info" | "editor";
|
|
353
355
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
354
356
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -364,6 +366,10 @@ export declare const actionGoToCollaborator: {
|
|
|
364
366
|
focusedId: string | null;
|
|
365
367
|
matches: readonly import("../types").SearchMatch[];
|
|
366
368
|
}> | null;
|
|
369
|
+
activeLockedId: string | null;
|
|
370
|
+
lockedMultiSelections: {
|
|
371
|
+
[groupId: string]: true;
|
|
372
|
+
};
|
|
367
373
|
};
|
|
368
374
|
captureUpdate: "EVENTUALLY";
|
|
369
375
|
};
|