@zsviczian/excalidraw 0.18.0-15 → 0.18.0-17
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/excalidraw.development.js +83 -61
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +48 -20
- package/dist/styles.production.css +2 -1
- package/package.json +1 -1
- package/types/common/src/constants.d.ts +7 -1
- package/types/element/src/linearElementEditor.d.ts +8 -16
- package/types/element/src/newElement.d.ts +2 -1
- package/types/element/src/shapes.d.ts +5 -1
- package/types/element/src/typeChecks.d.ts +3 -1
- package/types/element/src/types.d.ts +7 -2
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -0
- package/types/excalidraw/actions/actionBoundText.d.ts +8 -0
- package/types/excalidraw/actions/actionCanvas.d.ts +75 -15
- package/types/excalidraw/actions/actionClipboard.d.ts +24 -0
- package/types/excalidraw/actions/actionCropEditor.d.ts +4 -0
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +12 -0
- package/types/excalidraw/actions/actionElementLink.d.ts +4 -0
- package/types/excalidraw/actions/actionElementLock.d.ts +23 -16
- package/types/excalidraw/actions/actionEmbeddable.d.ts +4 -0
- package/types/excalidraw/actions/actionExport.d.ts +36 -0
- package/types/excalidraw/actions/actionFinalize.d.ts +8 -0
- package/types/excalidraw/actions/actionFrame.d.ts +16 -0
- package/types/excalidraw/actions/actionGroup.d.ts +8 -0
- package/types/excalidraw/actions/actionLinearEditor.d.ts +500 -0
- package/types/excalidraw/actions/actionLink.d.ts +4 -0
- package/types/excalidraw/actions/actionMenu.d.ts +12 -0
- package/types/excalidraw/actions/actionNavigate.d.ts +8 -0
- package/types/excalidraw/actions/actionProperties.d.ts +70 -2
- package/types/excalidraw/actions/actionSelectAll.d.ts +4 -0
- package/types/excalidraw/actions/actionStyles.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -0
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -0
- package/types/excalidraw/actions/types.d.ts +2 -1
- package/types/excalidraw/appState.d.ts +9 -0
- package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
- package/types/excalidraw/components/icons.d.ts +2 -0
- package/types/excalidraw/index.d.ts +1 -1
- package/types/excalidraw/lasso/index.d.ts +1 -0
- package/types/excalidraw/obsidianUtils.d.ts +9 -1
- package/types/excalidraw/renderer/helpers.d.ts +1 -1
- package/types/excalidraw/types.d.ts +8 -0
- package/types/math/src/point.d.ts +1 -1
- package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
|
@@ -215,6 +215,10 @@ export declare const actionGroup: {
|
|
|
215
215
|
focusedId: string | null;
|
|
216
216
|
matches: readonly import("../types").SearchMatch[];
|
|
217
217
|
}> | null;
|
|
218
|
+
activeLockedId: string | null;
|
|
219
|
+
lockedMultiSelections: {
|
|
220
|
+
[groupId: string]: true;
|
|
221
|
+
};
|
|
218
222
|
};
|
|
219
223
|
elements: OrderedExcalidrawElement[];
|
|
220
224
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -440,6 +444,10 @@ export declare const actionUngroup: {
|
|
|
440
444
|
focusedId: string | null;
|
|
441
445
|
matches: readonly import("../types").SearchMatch[];
|
|
442
446
|
}> | null;
|
|
447
|
+
activeLockedId: string | null;
|
|
448
|
+
lockedMultiSelections: {
|
|
449
|
+
[groupId: string]: true;
|
|
450
|
+
};
|
|
443
451
|
};
|
|
444
452
|
elements: OrderedExcalidrawElement[];
|
|
445
453
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -213,6 +213,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
213
213
|
focusedId: string | null;
|
|
214
214
|
matches: readonly import("../types").SearchMatch[];
|
|
215
215
|
}> | null;
|
|
216
|
+
activeLockedId: string | null;
|
|
217
|
+
lockedMultiSelections: {
|
|
218
|
+
[groupId: string]: true;
|
|
219
|
+
};
|
|
216
220
|
};
|
|
217
221
|
captureUpdate: "IMMEDIATELY";
|
|
218
222
|
};
|
|
@@ -220,3 +224,499 @@ export declare const actionToggleLinearEditor: {
|
|
|
220
224
|
} & {
|
|
221
225
|
keyTest?: undefined;
|
|
222
226
|
};
|
|
227
|
+
export declare const actionTogglePolygon: {
|
|
228
|
+
name: "togglePolygon";
|
|
229
|
+
category: string;
|
|
230
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
231
|
+
keywords: string[];
|
|
232
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
233
|
+
trackEvent: {
|
|
234
|
+
category: "element";
|
|
235
|
+
};
|
|
236
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
237
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): false | {
|
|
238
|
+
elements: ((Readonly<{
|
|
239
|
+
id: string;
|
|
240
|
+
x: number;
|
|
241
|
+
y: number;
|
|
242
|
+
strokeColor: string;
|
|
243
|
+
backgroundColor: string;
|
|
244
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
245
|
+
strokeWidth: number;
|
|
246
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
247
|
+
roundness: {
|
|
248
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
249
|
+
value?: number | undefined;
|
|
250
|
+
} | null;
|
|
251
|
+
roughness: number;
|
|
252
|
+
opacity: number;
|
|
253
|
+
width: number;
|
|
254
|
+
height: number;
|
|
255
|
+
angle: import("@excalidraw/math").Radians;
|
|
256
|
+
seed: number;
|
|
257
|
+
version: number;
|
|
258
|
+
versionNonce: number;
|
|
259
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
260
|
+
isDeleted: boolean;
|
|
261
|
+
groupIds: readonly string[];
|
|
262
|
+
frameId: string | null;
|
|
263
|
+
boundElements: readonly Readonly<{
|
|
264
|
+
id: string;
|
|
265
|
+
type: "text" | "arrow";
|
|
266
|
+
}>[] | null;
|
|
267
|
+
updated: number;
|
|
268
|
+
link: string | null;
|
|
269
|
+
locked: boolean;
|
|
270
|
+
customData?: Record<string, any> | undefined;
|
|
271
|
+
}> & {
|
|
272
|
+
type: "selection";
|
|
273
|
+
} & {
|
|
274
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
275
|
+
}) | (Readonly<{
|
|
276
|
+
id: string;
|
|
277
|
+
x: number;
|
|
278
|
+
y: number;
|
|
279
|
+
strokeColor: string;
|
|
280
|
+
backgroundColor: string;
|
|
281
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
282
|
+
strokeWidth: number;
|
|
283
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
284
|
+
roundness: {
|
|
285
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
286
|
+
value?: number | undefined;
|
|
287
|
+
} | null;
|
|
288
|
+
roughness: number;
|
|
289
|
+
opacity: number;
|
|
290
|
+
width: number;
|
|
291
|
+
height: number;
|
|
292
|
+
angle: import("@excalidraw/math").Radians;
|
|
293
|
+
seed: number;
|
|
294
|
+
version: number;
|
|
295
|
+
versionNonce: number;
|
|
296
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
297
|
+
isDeleted: boolean;
|
|
298
|
+
groupIds: readonly string[];
|
|
299
|
+
frameId: string | null;
|
|
300
|
+
boundElements: readonly Readonly<{
|
|
301
|
+
id: string;
|
|
302
|
+
type: "text" | "arrow";
|
|
303
|
+
}>[] | null;
|
|
304
|
+
updated: number;
|
|
305
|
+
link: string | null;
|
|
306
|
+
locked: boolean;
|
|
307
|
+
customData?: Record<string, any> | undefined;
|
|
308
|
+
}> & {
|
|
309
|
+
type: "rectangle";
|
|
310
|
+
} & {
|
|
311
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
312
|
+
}) | (Readonly<{
|
|
313
|
+
id: string;
|
|
314
|
+
x: number;
|
|
315
|
+
y: number;
|
|
316
|
+
strokeColor: string;
|
|
317
|
+
backgroundColor: string;
|
|
318
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
319
|
+
strokeWidth: number;
|
|
320
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
321
|
+
roundness: {
|
|
322
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
323
|
+
value?: number | undefined;
|
|
324
|
+
} | null;
|
|
325
|
+
roughness: number;
|
|
326
|
+
opacity: number;
|
|
327
|
+
width: number;
|
|
328
|
+
height: number;
|
|
329
|
+
angle: import("@excalidraw/math").Radians;
|
|
330
|
+
seed: number;
|
|
331
|
+
version: number;
|
|
332
|
+
versionNonce: number;
|
|
333
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
334
|
+
isDeleted: boolean;
|
|
335
|
+
groupIds: readonly string[];
|
|
336
|
+
frameId: string | null;
|
|
337
|
+
boundElements: readonly Readonly<{
|
|
338
|
+
id: string;
|
|
339
|
+
type: "text" | "arrow";
|
|
340
|
+
}>[] | null;
|
|
341
|
+
updated: number;
|
|
342
|
+
link: string | null;
|
|
343
|
+
locked: boolean;
|
|
344
|
+
customData?: Record<string, any> | undefined;
|
|
345
|
+
}> & {
|
|
346
|
+
type: "diamond";
|
|
347
|
+
} & {
|
|
348
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
349
|
+
}) | (Readonly<{
|
|
350
|
+
id: string;
|
|
351
|
+
x: number;
|
|
352
|
+
y: number;
|
|
353
|
+
strokeColor: string;
|
|
354
|
+
backgroundColor: string;
|
|
355
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
356
|
+
strokeWidth: number;
|
|
357
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
358
|
+
roundness: {
|
|
359
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
360
|
+
value?: number | undefined;
|
|
361
|
+
} | null;
|
|
362
|
+
roughness: number;
|
|
363
|
+
opacity: number;
|
|
364
|
+
width: number;
|
|
365
|
+
height: number;
|
|
366
|
+
angle: import("@excalidraw/math").Radians;
|
|
367
|
+
seed: number;
|
|
368
|
+
version: number;
|
|
369
|
+
versionNonce: number;
|
|
370
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
371
|
+
isDeleted: boolean;
|
|
372
|
+
groupIds: readonly string[];
|
|
373
|
+
frameId: string | null;
|
|
374
|
+
boundElements: readonly Readonly<{
|
|
375
|
+
id: string;
|
|
376
|
+
type: "text" | "arrow";
|
|
377
|
+
}>[] | null;
|
|
378
|
+
updated: number;
|
|
379
|
+
link: string | null;
|
|
380
|
+
locked: boolean;
|
|
381
|
+
customData?: Record<string, any> | undefined;
|
|
382
|
+
}> & {
|
|
383
|
+
type: "ellipse";
|
|
384
|
+
} & {
|
|
385
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
386
|
+
}) | (Readonly<{
|
|
387
|
+
id: string;
|
|
388
|
+
x: number;
|
|
389
|
+
y: number;
|
|
390
|
+
strokeColor: string;
|
|
391
|
+
backgroundColor: string;
|
|
392
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
393
|
+
strokeWidth: number;
|
|
394
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
395
|
+
roundness: {
|
|
396
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
397
|
+
value?: number | undefined;
|
|
398
|
+
} | null;
|
|
399
|
+
roughness: number;
|
|
400
|
+
opacity: number;
|
|
401
|
+
width: number;
|
|
402
|
+
height: number;
|
|
403
|
+
angle: import("@excalidraw/math").Radians;
|
|
404
|
+
seed: number;
|
|
405
|
+
version: number;
|
|
406
|
+
versionNonce: number;
|
|
407
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
408
|
+
isDeleted: boolean;
|
|
409
|
+
groupIds: readonly string[];
|
|
410
|
+
frameId: string | null;
|
|
411
|
+
boundElements: readonly Readonly<{
|
|
412
|
+
id: string;
|
|
413
|
+
type: "text" | "arrow";
|
|
414
|
+
}>[] | null;
|
|
415
|
+
updated: number;
|
|
416
|
+
link: string | null;
|
|
417
|
+
locked: boolean;
|
|
418
|
+
customData?: Record<string, any> | undefined;
|
|
419
|
+
}> & Readonly<{
|
|
420
|
+
type: "text";
|
|
421
|
+
fontSize: number;
|
|
422
|
+
fontFamily: number;
|
|
423
|
+
text: string;
|
|
424
|
+
rawText: string;
|
|
425
|
+
textAlign: string;
|
|
426
|
+
verticalAlign: string;
|
|
427
|
+
containerId: string | null;
|
|
428
|
+
originalText: string;
|
|
429
|
+
autoResize: boolean;
|
|
430
|
+
lineHeight: number & {
|
|
431
|
+
_brand: "unitlessLineHeight";
|
|
432
|
+
};
|
|
433
|
+
}> & {
|
|
434
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
435
|
+
}) | (Readonly<{
|
|
436
|
+
id: string;
|
|
437
|
+
x: number;
|
|
438
|
+
y: number;
|
|
439
|
+
strokeColor: string;
|
|
440
|
+
backgroundColor: string;
|
|
441
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
442
|
+
strokeWidth: number;
|
|
443
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
444
|
+
roundness: {
|
|
445
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
446
|
+
value?: number | undefined;
|
|
447
|
+
} | null;
|
|
448
|
+
roughness: number;
|
|
449
|
+
opacity: number;
|
|
450
|
+
width: number;
|
|
451
|
+
height: number;
|
|
452
|
+
angle: import("@excalidraw/math").Radians;
|
|
453
|
+
seed: number;
|
|
454
|
+
version: number;
|
|
455
|
+
versionNonce: number;
|
|
456
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
457
|
+
isDeleted: boolean;
|
|
458
|
+
groupIds: readonly string[];
|
|
459
|
+
frameId: string | null;
|
|
460
|
+
boundElements: readonly Readonly<{
|
|
461
|
+
id: string;
|
|
462
|
+
type: "text" | "arrow";
|
|
463
|
+
}>[] | null;
|
|
464
|
+
updated: number;
|
|
465
|
+
link: string | null;
|
|
466
|
+
locked: boolean;
|
|
467
|
+
customData?: Record<string, any> | undefined;
|
|
468
|
+
}> & Readonly<{
|
|
469
|
+
type: "line" | "arrow";
|
|
470
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
471
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
472
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
473
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
474
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
475
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
476
|
+
}> & {
|
|
477
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
478
|
+
}) | (Readonly<{
|
|
479
|
+
id: string;
|
|
480
|
+
x: number;
|
|
481
|
+
y: number;
|
|
482
|
+
strokeColor: string;
|
|
483
|
+
backgroundColor: string;
|
|
484
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
485
|
+
strokeWidth: number;
|
|
486
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
487
|
+
roundness: {
|
|
488
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
489
|
+
value?: number | undefined;
|
|
490
|
+
} | null;
|
|
491
|
+
roughness: number;
|
|
492
|
+
opacity: number;
|
|
493
|
+
width: number;
|
|
494
|
+
height: number;
|
|
495
|
+
angle: import("@excalidraw/math").Radians;
|
|
496
|
+
seed: number;
|
|
497
|
+
version: number;
|
|
498
|
+
versionNonce: number;
|
|
499
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
500
|
+
isDeleted: boolean;
|
|
501
|
+
groupIds: readonly string[];
|
|
502
|
+
frameId: string | null;
|
|
503
|
+
boundElements: readonly Readonly<{
|
|
504
|
+
id: string;
|
|
505
|
+
type: "text" | "arrow";
|
|
506
|
+
}>[] | null;
|
|
507
|
+
updated: number;
|
|
508
|
+
link: string | null;
|
|
509
|
+
locked: boolean;
|
|
510
|
+
customData?: Record<string, any> | undefined;
|
|
511
|
+
}> & Readonly<{
|
|
512
|
+
type: "freedraw";
|
|
513
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
514
|
+
pressures: readonly number[];
|
|
515
|
+
simulatePressure: boolean;
|
|
516
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
517
|
+
}> & {
|
|
518
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
519
|
+
}) | (Readonly<{
|
|
520
|
+
id: string;
|
|
521
|
+
x: number;
|
|
522
|
+
y: number;
|
|
523
|
+
strokeColor: string;
|
|
524
|
+
backgroundColor: string;
|
|
525
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
526
|
+
strokeWidth: number;
|
|
527
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
528
|
+
roundness: {
|
|
529
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
530
|
+
value?: number | undefined;
|
|
531
|
+
} | null;
|
|
532
|
+
roughness: number;
|
|
533
|
+
opacity: number;
|
|
534
|
+
width: number;
|
|
535
|
+
height: number;
|
|
536
|
+
angle: import("@excalidraw/math").Radians;
|
|
537
|
+
seed: number;
|
|
538
|
+
version: number;
|
|
539
|
+
versionNonce: number;
|
|
540
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
541
|
+
isDeleted: boolean;
|
|
542
|
+
groupIds: readonly string[];
|
|
543
|
+
frameId: string | null;
|
|
544
|
+
boundElements: readonly Readonly<{
|
|
545
|
+
id: string;
|
|
546
|
+
type: "text" | "arrow";
|
|
547
|
+
}>[] | null;
|
|
548
|
+
updated: number;
|
|
549
|
+
link: string | null;
|
|
550
|
+
locked: boolean;
|
|
551
|
+
customData?: Record<string, any> | undefined;
|
|
552
|
+
}> & Readonly<{
|
|
553
|
+
type: "image";
|
|
554
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
555
|
+
status: "error" | "pending" | "saved";
|
|
556
|
+
scale: [number, number];
|
|
557
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
558
|
+
}> & {
|
|
559
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
560
|
+
}) | (Readonly<{
|
|
561
|
+
id: string;
|
|
562
|
+
x: number;
|
|
563
|
+
y: number;
|
|
564
|
+
strokeColor: string;
|
|
565
|
+
backgroundColor: string;
|
|
566
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
567
|
+
strokeWidth: number;
|
|
568
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
569
|
+
roundness: {
|
|
570
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
571
|
+
value?: number | undefined;
|
|
572
|
+
} | null;
|
|
573
|
+
roughness: number;
|
|
574
|
+
opacity: number;
|
|
575
|
+
width: number;
|
|
576
|
+
height: number;
|
|
577
|
+
angle: import("@excalidraw/math").Radians;
|
|
578
|
+
seed: number;
|
|
579
|
+
version: number;
|
|
580
|
+
versionNonce: number;
|
|
581
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
582
|
+
isDeleted: boolean;
|
|
583
|
+
groupIds: readonly string[];
|
|
584
|
+
frameId: string | null;
|
|
585
|
+
boundElements: readonly Readonly<{
|
|
586
|
+
id: string;
|
|
587
|
+
type: "text" | "arrow";
|
|
588
|
+
}>[] | null;
|
|
589
|
+
updated: number;
|
|
590
|
+
link: string | null;
|
|
591
|
+
locked: boolean;
|
|
592
|
+
customData?: Record<string, any> | undefined;
|
|
593
|
+
}> & {
|
|
594
|
+
type: "frame";
|
|
595
|
+
name: string | null;
|
|
596
|
+
} & {
|
|
597
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
598
|
+
}) | (Readonly<{
|
|
599
|
+
id: string;
|
|
600
|
+
x: number;
|
|
601
|
+
y: number;
|
|
602
|
+
strokeColor: string;
|
|
603
|
+
backgroundColor: string;
|
|
604
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
605
|
+
strokeWidth: number;
|
|
606
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
607
|
+
roundness: {
|
|
608
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
609
|
+
value?: number | undefined;
|
|
610
|
+
} | null;
|
|
611
|
+
roughness: number;
|
|
612
|
+
opacity: number;
|
|
613
|
+
width: number;
|
|
614
|
+
height: number;
|
|
615
|
+
angle: import("@excalidraw/math").Radians;
|
|
616
|
+
seed: number;
|
|
617
|
+
version: number;
|
|
618
|
+
versionNonce: number;
|
|
619
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
620
|
+
isDeleted: boolean;
|
|
621
|
+
groupIds: readonly string[];
|
|
622
|
+
frameId: string | null;
|
|
623
|
+
boundElements: readonly Readonly<{
|
|
624
|
+
id: string;
|
|
625
|
+
type: "text" | "arrow";
|
|
626
|
+
}>[] | null;
|
|
627
|
+
updated: number;
|
|
628
|
+
link: string | null;
|
|
629
|
+
locked: boolean;
|
|
630
|
+
customData?: Record<string, any> | undefined;
|
|
631
|
+
}> & {
|
|
632
|
+
type: "magicframe";
|
|
633
|
+
name: string | null;
|
|
634
|
+
} & {
|
|
635
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
636
|
+
}) | (Readonly<{
|
|
637
|
+
id: string;
|
|
638
|
+
x: number;
|
|
639
|
+
y: number;
|
|
640
|
+
strokeColor: string;
|
|
641
|
+
backgroundColor: string;
|
|
642
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
643
|
+
strokeWidth: number;
|
|
644
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
645
|
+
roundness: {
|
|
646
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
647
|
+
value?: number | undefined;
|
|
648
|
+
} | null;
|
|
649
|
+
roughness: number;
|
|
650
|
+
opacity: number;
|
|
651
|
+
width: number;
|
|
652
|
+
height: number;
|
|
653
|
+
angle: import("@excalidraw/math").Radians;
|
|
654
|
+
seed: number;
|
|
655
|
+
version: number;
|
|
656
|
+
versionNonce: number;
|
|
657
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
658
|
+
isDeleted: boolean;
|
|
659
|
+
groupIds: readonly string[];
|
|
660
|
+
frameId: string | null;
|
|
661
|
+
boundElements: readonly Readonly<{
|
|
662
|
+
id: string;
|
|
663
|
+
type: "text" | "arrow";
|
|
664
|
+
}>[] | null;
|
|
665
|
+
updated: number;
|
|
666
|
+
link: string | null;
|
|
667
|
+
locked: boolean;
|
|
668
|
+
customData?: Record<string, any> | undefined;
|
|
669
|
+
}> & Readonly<{
|
|
670
|
+
type: "iframe";
|
|
671
|
+
customData?: {
|
|
672
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
673
|
+
} | undefined;
|
|
674
|
+
scale: [number, number];
|
|
675
|
+
}> & {
|
|
676
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
677
|
+
}) | (Readonly<{
|
|
678
|
+
id: string;
|
|
679
|
+
x: number;
|
|
680
|
+
y: number;
|
|
681
|
+
strokeColor: string;
|
|
682
|
+
backgroundColor: string;
|
|
683
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
684
|
+
strokeWidth: number;
|
|
685
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
686
|
+
roundness: {
|
|
687
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
688
|
+
value?: number | undefined;
|
|
689
|
+
} | null;
|
|
690
|
+
roughness: number;
|
|
691
|
+
opacity: number;
|
|
692
|
+
width: number;
|
|
693
|
+
height: number;
|
|
694
|
+
angle: import("@excalidraw/math").Radians;
|
|
695
|
+
seed: number;
|
|
696
|
+
version: number;
|
|
697
|
+
versionNonce: number;
|
|
698
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
699
|
+
isDeleted: boolean;
|
|
700
|
+
groupIds: readonly string[];
|
|
701
|
+
frameId: string | null;
|
|
702
|
+
boundElements: readonly Readonly<{
|
|
703
|
+
id: string;
|
|
704
|
+
type: "text" | "arrow";
|
|
705
|
+
}>[] | null;
|
|
706
|
+
updated: number;
|
|
707
|
+
link: string | null;
|
|
708
|
+
locked: boolean;
|
|
709
|
+
customData?: Record<string, any> | undefined;
|
|
710
|
+
}> & Readonly<{
|
|
711
|
+
type: "embeddable";
|
|
712
|
+
scale: [number, number];
|
|
713
|
+
}> & {
|
|
714
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
715
|
+
}))[];
|
|
716
|
+
appState: Readonly<import("../types").AppState>;
|
|
717
|
+
captureUpdate: "IMMEDIATELY";
|
|
718
|
+
};
|
|
719
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
720
|
+
} & {
|
|
721
|
+
keyTest?: undefined;
|
|
722
|
+
};
|
|
@@ -207,6 +207,10 @@ export declare const actionLink: {
|
|
|
207
207
|
focusedId: string | null;
|
|
208
208
|
matches: readonly import("../types").SearchMatch[];
|
|
209
209
|
}> | null;
|
|
210
|
+
activeLockedId: string | null;
|
|
211
|
+
lockedMultiSelections: {
|
|
212
|
+
[groupId: string]: true;
|
|
213
|
+
};
|
|
210
214
|
};
|
|
211
215
|
captureUpdate: "IMMEDIATELY";
|
|
212
216
|
};
|
|
@@ -208,6 +208,10 @@ export declare const actionToggleCanvasMenu: {
|
|
|
208
208
|
focusedId: string | null;
|
|
209
209
|
matches: readonly import("../types").SearchMatch[];
|
|
210
210
|
}> | null;
|
|
211
|
+
activeLockedId: string | null;
|
|
212
|
+
lockedMultiSelections: {
|
|
213
|
+
[groupId: string]: true;
|
|
214
|
+
};
|
|
211
215
|
};
|
|
212
216
|
captureUpdate: "EVENTUALLY";
|
|
213
217
|
};
|
|
@@ -425,6 +429,10 @@ export declare const actionToggleEditMenu: {
|
|
|
425
429
|
focusedId: string | null;
|
|
426
430
|
matches: readonly import("../types").SearchMatch[];
|
|
427
431
|
}> | null;
|
|
432
|
+
activeLockedId: string | null;
|
|
433
|
+
lockedMultiSelections: {
|
|
434
|
+
[groupId: string]: true;
|
|
435
|
+
};
|
|
428
436
|
};
|
|
429
437
|
captureUpdate: "EVENTUALLY";
|
|
430
438
|
};
|
|
@@ -637,6 +645,10 @@ export declare const actionShortcuts: {
|
|
|
637
645
|
focusedId: string | null;
|
|
638
646
|
matches: readonly import("../types").SearchMatch[];
|
|
639
647
|
}> | null;
|
|
648
|
+
activeLockedId: string | null;
|
|
649
|
+
lockedMultiSelections: {
|
|
650
|
+
[groupId: string]: true;
|
|
651
|
+
};
|
|
640
652
|
};
|
|
641
653
|
captureUpdate: "EVENTUALLY";
|
|
642
654
|
};
|
|
@@ -210,6 +210,10 @@ export declare const actionGoToCollaborator: {
|
|
|
210
210
|
focusedId: string | null;
|
|
211
211
|
matches: readonly import("../types").SearchMatch[];
|
|
212
212
|
}> | null;
|
|
213
|
+
activeLockedId: string | null;
|
|
214
|
+
lockedMultiSelections: {
|
|
215
|
+
[groupId: string]: true;
|
|
216
|
+
};
|
|
213
217
|
};
|
|
214
218
|
captureUpdate: "EVENTUALLY";
|
|
215
219
|
} | {
|
|
@@ -419,6 +423,10 @@ export declare const actionGoToCollaborator: {
|
|
|
419
423
|
focusedId: string | null;
|
|
420
424
|
matches: readonly import("../types").SearchMatch[];
|
|
421
425
|
}> | null;
|
|
426
|
+
activeLockedId: string | null;
|
|
427
|
+
lockedMultiSelections: {
|
|
428
|
+
[groupId: string]: true;
|
|
429
|
+
};
|
|
422
430
|
};
|
|
423
431
|
captureUpdate: "EVENTUALLY";
|
|
424
432
|
};
|