jvs-draw 1.1.11 → 1.1.13

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.
Files changed (59) hide show
  1. package/dist/components/BoardName.vue.d.ts +0 -1
  2. package/dist/components/EmptyState.vue.d.ts +2 -0
  3. package/dist/components/FloatingPopovers.vue.d.ts +3 -1
  4. package/dist/components/panelCom/colorStyle.vue.d.ts +42 -6
  5. package/dist/const/index.d.ts +5 -0
  6. package/dist/core/element.d.ts +3 -0
  7. package/dist/jvs-draw.css +1 -1
  8. package/dist/jvs-draw.es.js +10914 -5541
  9. package/dist/jvs-draw.umd.js +26 -6
  10. package/dist/jvs-ui-public/fonts/AntonFont/Anton-Regular.ttf +0 -0
  11. package/dist/jvs-ui-public/fonts/AntonFont/OFL.txt +93 -0
  12. package/dist/jvs-ui-public/fonts/ClimateCrisis/ClimateCrisis-Regular.ttf +0 -0
  13. package/dist/jvs-ui-public/fonts/ClimateCrisis/OFL.txt +93 -0
  14. package/dist/jvs-ui-public/fonts/DouYinSans/DouyinSansBold.otf +0 -0
  15. package/dist/jvs-ui-public/fonts/DouYinSans/OFL.txt +30 -0
  16. package/dist/jvs-ui-public/fonts/Exo/Exo-Black.ttf +0 -0
  17. package/dist/jvs-ui-public/fonts/Exo/Exo-Bold.ttf +0 -0
  18. package/dist/jvs-ui-public/fonts/Exo/Exo-Light.ttf +0 -0
  19. package/dist/jvs-ui-public/fonts/Exo/Exo-Medium.ttf +0 -0
  20. package/dist/jvs-ui-public/fonts/Exo/Exo-Regular.ttf +0 -0
  21. package/dist/jvs-ui-public/fonts/Exo/OFL.txt +93 -0
  22. package/dist/jvs-ui-public/fonts/Goldman/Goldman-Bold.ttf +0 -0
  23. package/dist/jvs-ui-public/fonts/Goldman/Goldman-Regular.ttf +0 -0
  24. package/dist/jvs-ui-public/fonts/Goldman/OFL.txt +93 -0
  25. package/dist/jvs-ui-public/fonts/Goldman/OFL_ZHS.txt +104 -0
  26. package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Black.ttf +0 -0
  27. package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  28. package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Light.ttf +0 -0
  29. package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
  30. package/dist/jvs-ui-public/fonts/Montserrat/OFL.txt +93 -0
  31. package/dist/jvs-ui-public/fonts/SaDigtalNumber/OFL.txt +93 -0
  32. package/dist/jvs-ui-public/fonts/SaDigtalNumber/sa-digital-number.ttf +0 -0
  33. package/dist/jvs-ui-public/fonts/SourceHanSansCN/LICENSE.txt +96 -0
  34. package/dist/jvs-ui-public/fonts/SourceHanSansCN/SourceHanSansCN-Bold.ttf +0 -0
  35. package/dist/jvs-ui-public/fonts/SourceHanSansCN/SourceHanSansCN-Medium.ttf +0 -0
  36. package/dist/jvs-ui-public/fonts/SourceHanSansCN/SourceHanSansCN-Regular.ttf +0 -0
  37. package/dist/jvs-ui-public/fonts/WuJieHei/OFL.txt +94 -0
  38. package/dist/jvs-ui-public/fonts/WuJieHei/OFL_ZHS.txt +104 -0
  39. package/dist/jvs-ui-public/fonts/WuJieHei/WuJieHei.ttf +0 -0
  40. package/dist/jvs-ui-public/fonts/ZenTokyoZoo/OFL.txt +93 -0
  41. package/dist/jvs-ui-public/fonts/ZenTokyoZoo/ZenTokyoZoo-Regular.ttf +0 -0
  42. package/dist/jvs-ui-public/fonts/ZhuQueFangSong/LICENSE.txt +94 -0
  43. package/dist/jvs-ui-public/fonts/ZhuQueFangSong/ZhuqueFangsong-Regular.ttf +0 -0
  44. package/dist/jvs-ui-public/fonts/font.css +87 -0
  45. package/dist/jvs-ui-public/fonts/font_1456030_lnqmc6a6ca.ttf +0 -0
  46. package/dist/jvs-ui-public/fonts/font_1456030_lnqmc6a6ca.woff +0 -0
  47. package/dist/jvs-ui-public/fonts/font_1456030_lnqmc6a6ca.woff2 +0 -0
  48. package/dist/jvs-ui-public/icon-fonts/iconfont.css +11 -3
  49. package/dist/jvs-ui-public/icon-fonts/iconfont.js +1 -1
  50. package/dist/jvs-ui-public/icon-fonts/iconfont.json +14 -0
  51. package/dist/jvs-ui-public/icon-fonts/iconfont.ttf +0 -0
  52. package/dist/jvs-ui-public/icon-fonts/iconfont.woff +0 -0
  53. package/dist/jvs-ui-public/icon-fonts/iconfont.woff2 +0 -0
  54. package/dist/locales/en-US.d.ts +23 -0
  55. package/dist/locales/zh-CN.d.ts +23 -0
  56. package/dist/store/index.d.ts +1155 -86
  57. package/dist/types/element.d.ts +41 -3
  58. package/dist/utils/math.d.ts +13 -0
  59. package/package.json +3 -3
@@ -34,6 +34,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
34
34
  currentItemStrokeColor: string;
35
35
  currentItemStrokeOpacity: number;
36
36
  currentItemBackgroundColor: string;
37
+ currentNoteBackgroundColor: string;
38
+ currentNoteShape: string;
37
39
  currentItemFillStyle: "solid";
38
40
  currentItemStrokeWidth: number;
39
41
  currentItemStrokeStyle: "solid";
@@ -45,13 +47,16 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
45
47
  currentItemFontSize: number;
46
48
  currentItemFontFamily: string;
47
49
  currentItemFontBgColor: string;
48
- currentItemTextAlign: "left" | "center" | "right";
49
- currentItemVerticalAlign: "top" | "middle" | "bottom";
50
+ currentItemTextAlign: string;
51
+ currentItemVerticalAlign: string;
50
52
  currentItemIsBold: boolean;
51
53
  currentItemIsItalic: boolean;
52
54
  currentItemIsUnderline: boolean;
53
55
  currentItemIsStrikethrough: boolean;
54
- currentItemArrowType: "sharp" | "round";
56
+ currentItemFontWeight: string;
57
+ currentItemLineHeight: number;
58
+ currentItemLetterSpacing: number;
59
+ currentItemArrowType: "sharp" | "round" | "elbow";
55
60
  currentItemStartArrowhead: string | null;
56
61
  currentItemEndArrowhead: string | null;
57
62
  currentItemX: number;
@@ -82,6 +87,7 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
82
87
  alignmentGuides: boolean;
83
88
  showContainerName: boolean;
84
89
  fixedArrowBinding: boolean;
90
+ showQuickCreate: boolean;
85
91
  };
86
92
  }, {
87
93
  shouldShowFloatingToolbar: (state: {
@@ -124,8 +130,936 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
124
130
  isFlippedVertical?: boolean | undefined;
125
131
  isAspectRatioLocked?: boolean | undefined;
126
132
  frameId: string | null;
133
+ lineHeight: number;
134
+ letterSpacing: number;
135
+ } | {
136
+ type: "ellipse";
137
+ id: string;
138
+ x: number;
139
+ y: number;
140
+ width: number;
141
+ height: number;
142
+ angle: number;
143
+ strokeColor: string;
144
+ backgroundColor: string;
145
+ fillStyle: import('../types/element').FillStyle;
146
+ strokeWidth: number;
147
+ strokeStyle: import('../types/element').StrokeStyle;
148
+ roughness: number;
149
+ opacity: number;
150
+ strokeOpacity: number;
151
+ roundness: number;
152
+ backgroundOpacity: number;
153
+ fontSize: number;
154
+ fontFamily: string;
155
+ fontColor: string;
156
+ fontBgColor: string;
157
+ textAlign: "left" | "center" | "right";
158
+ verticalAlign: "top" | "middle" | "bottom";
159
+ isBold: boolean;
160
+ isItalic: boolean;
161
+ isUnderline: boolean;
162
+ isStrikethrough: boolean;
163
+ seed: number;
164
+ version: number;
165
+ isDeleted: boolean;
166
+ groupIds: readonly string[];
167
+ updated: number;
168
+ link: string | null;
169
+ locked: boolean;
170
+ isFlippedHorizontal?: boolean | undefined;
171
+ isFlippedVertical?: boolean | undefined;
172
+ isAspectRatioLocked?: boolean | undefined;
173
+ frameId: string | null;
174
+ lineHeight: number;
175
+ letterSpacing: number;
176
+ } | {
177
+ type: "diamond";
178
+ id: string;
179
+ x: number;
180
+ y: number;
181
+ width: number;
182
+ height: number;
183
+ angle: number;
184
+ strokeColor: string;
185
+ backgroundColor: string;
186
+ fillStyle: import('../types/element').FillStyle;
187
+ strokeWidth: number;
188
+ strokeStyle: import('../types/element').StrokeStyle;
189
+ roughness: number;
190
+ opacity: number;
191
+ strokeOpacity: number;
192
+ roundness: number;
193
+ backgroundOpacity: number;
194
+ fontSize: number;
195
+ fontFamily: string;
196
+ fontColor: string;
197
+ fontBgColor: string;
198
+ textAlign: "left" | "center" | "right";
199
+ verticalAlign: "top" | "middle" | "bottom";
200
+ isBold: boolean;
201
+ isItalic: boolean;
202
+ isUnderline: boolean;
203
+ isStrikethrough: boolean;
204
+ seed: number;
205
+ version: number;
206
+ isDeleted: boolean;
207
+ groupIds: readonly string[];
208
+ updated: number;
209
+ link: string | null;
210
+ locked: boolean;
211
+ isFlippedHorizontal?: boolean | undefined;
212
+ isFlippedVertical?: boolean | undefined;
213
+ isAspectRatioLocked?: boolean | undefined;
214
+ frameId: string | null;
215
+ lineHeight: number;
216
+ letterSpacing: number;
217
+ } | {
218
+ type: "square";
219
+ id: string;
220
+ x: number;
221
+ y: number;
222
+ width: number;
223
+ height: number;
224
+ angle: number;
225
+ strokeColor: string;
226
+ backgroundColor: string;
227
+ fillStyle: import('../types/element').FillStyle;
228
+ strokeWidth: number;
229
+ strokeStyle: import('../types/element').StrokeStyle;
230
+ roughness: number;
231
+ opacity: number;
232
+ strokeOpacity: number;
233
+ roundness: number;
234
+ backgroundOpacity: number;
235
+ fontSize: number;
236
+ fontFamily: string;
237
+ fontColor: string;
238
+ fontBgColor: string;
239
+ textAlign: "left" | "center" | "right";
240
+ verticalAlign: "top" | "middle" | "bottom";
241
+ isBold: boolean;
242
+ isItalic: boolean;
243
+ isUnderline: boolean;
244
+ isStrikethrough: boolean;
245
+ seed: number;
246
+ version: number;
247
+ isDeleted: boolean;
248
+ groupIds: readonly string[];
249
+ updated: number;
250
+ link: string | null;
251
+ locked: boolean;
252
+ isFlippedHorizontal?: boolean | undefined;
253
+ isFlippedVertical?: boolean | undefined;
254
+ isAspectRatioLocked?: boolean | undefined;
255
+ frameId: string | null;
256
+ lineHeight: number;
257
+ letterSpacing: number;
258
+ } | {
259
+ type: "star";
260
+ id: string;
261
+ x: number;
262
+ y: number;
263
+ width: number;
264
+ height: number;
265
+ angle: number;
266
+ strokeColor: string;
267
+ backgroundColor: string;
268
+ fillStyle: import('../types/element').FillStyle;
269
+ strokeWidth: number;
270
+ strokeStyle: import('../types/element').StrokeStyle;
271
+ roughness: number;
272
+ opacity: number;
273
+ strokeOpacity: number;
274
+ roundness: number;
275
+ backgroundOpacity: number;
276
+ fontSize: number;
277
+ fontFamily: string;
278
+ fontColor: string;
279
+ fontBgColor: string;
280
+ textAlign: "left" | "center" | "right";
281
+ verticalAlign: "top" | "middle" | "bottom";
282
+ isBold: boolean;
283
+ isItalic: boolean;
284
+ isUnderline: boolean;
285
+ isStrikethrough: boolean;
286
+ seed: number;
287
+ version: number;
288
+ isDeleted: boolean;
289
+ groupIds: readonly string[];
290
+ updated: number;
291
+ link: string | null;
292
+ locked: boolean;
293
+ isFlippedHorizontal?: boolean | undefined;
294
+ isFlippedVertical?: boolean | undefined;
295
+ isAspectRatioLocked?: boolean | undefined;
296
+ frameId: string | null;
297
+ lineHeight: number;
298
+ letterSpacing: number;
299
+ } | {
300
+ type: "circle";
301
+ id: string;
302
+ x: number;
303
+ y: number;
304
+ width: number;
305
+ height: number;
306
+ angle: number;
307
+ strokeColor: string;
308
+ backgroundColor: string;
309
+ fillStyle: import('../types/element').FillStyle;
310
+ strokeWidth: number;
311
+ strokeStyle: import('../types/element').StrokeStyle;
312
+ roughness: number;
313
+ opacity: number;
314
+ strokeOpacity: number;
315
+ roundness: number;
316
+ backgroundOpacity: number;
317
+ fontSize: number;
318
+ fontFamily: string;
319
+ fontColor: string;
320
+ fontBgColor: string;
321
+ textAlign: "left" | "center" | "right";
322
+ verticalAlign: "top" | "middle" | "bottom";
323
+ isBold: boolean;
324
+ isItalic: boolean;
325
+ isUnderline: boolean;
326
+ isStrikethrough: boolean;
327
+ seed: number;
328
+ version: number;
329
+ isDeleted: boolean;
330
+ groupIds: readonly string[];
331
+ updated: number;
332
+ link: string | null;
333
+ locked: boolean;
334
+ isFlippedHorizontal?: boolean | undefined;
335
+ isFlippedVertical?: boolean | undefined;
336
+ isAspectRatioLocked?: boolean | undefined;
337
+ frameId: string | null;
338
+ lineHeight: number;
339
+ letterSpacing: number;
340
+ } | {
341
+ type: "cylinder";
342
+ id: string;
343
+ x: number;
344
+ y: number;
345
+ width: number;
346
+ height: number;
347
+ angle: number;
348
+ strokeColor: string;
349
+ backgroundColor: string;
350
+ fillStyle: import('../types/element').FillStyle;
351
+ strokeWidth: number;
352
+ strokeStyle: import('../types/element').StrokeStyle;
353
+ roughness: number;
354
+ opacity: number;
355
+ strokeOpacity: number;
356
+ roundness: number;
357
+ backgroundOpacity: number;
358
+ fontSize: number;
359
+ fontFamily: string;
360
+ fontColor: string;
361
+ fontBgColor: string;
362
+ textAlign: "left" | "center" | "right";
363
+ verticalAlign: "top" | "middle" | "bottom";
364
+ isBold: boolean;
365
+ isItalic: boolean;
366
+ isUnderline: boolean;
367
+ isStrikethrough: boolean;
368
+ seed: number;
369
+ version: number;
370
+ isDeleted: boolean;
371
+ groupIds: readonly string[];
372
+ updated: number;
373
+ link: string | null;
374
+ locked: boolean;
375
+ isFlippedHorizontal?: boolean | undefined;
376
+ isFlippedVertical?: boolean | undefined;
377
+ isAspectRatioLocked?: boolean | undefined;
378
+ frameId: string | null;
379
+ lineHeight: number;
380
+ letterSpacing: number;
381
+ } | {
382
+ type: "process";
383
+ id: string;
384
+ x: number;
385
+ y: number;
386
+ width: number;
387
+ height: number;
388
+ angle: number;
389
+ strokeColor: string;
390
+ backgroundColor: string;
391
+ fillStyle: import('../types/element').FillStyle;
392
+ strokeWidth: number;
393
+ strokeStyle: import('../types/element').StrokeStyle;
394
+ roughness: number;
395
+ opacity: number;
396
+ strokeOpacity: number;
397
+ roundness: number;
398
+ backgroundOpacity: number;
399
+ fontSize: number;
400
+ fontFamily: string;
401
+ fontColor: string;
402
+ fontBgColor: string;
403
+ textAlign: "left" | "center" | "right";
404
+ verticalAlign: "top" | "middle" | "bottom";
405
+ isBold: boolean;
406
+ isItalic: boolean;
407
+ isUnderline: boolean;
408
+ isStrikethrough: boolean;
409
+ seed: number;
410
+ version: number;
411
+ isDeleted: boolean;
412
+ groupIds: readonly string[];
413
+ updated: number;
414
+ link: string | null;
415
+ locked: boolean;
416
+ isFlippedHorizontal?: boolean | undefined;
417
+ isFlippedVertical?: boolean | undefined;
418
+ isAspectRatioLocked?: boolean | undefined;
419
+ frameId: string | null;
420
+ lineHeight: number;
421
+ letterSpacing: number;
422
+ } | {
423
+ type: "decision";
424
+ id: string;
425
+ x: number;
426
+ y: number;
427
+ width: number;
428
+ height: number;
429
+ angle: number;
430
+ strokeColor: string;
431
+ backgroundColor: string;
432
+ fillStyle: import('../types/element').FillStyle;
433
+ strokeWidth: number;
434
+ strokeStyle: import('../types/element').StrokeStyle;
435
+ roughness: number;
436
+ opacity: number;
437
+ strokeOpacity: number;
438
+ roundness: number;
439
+ backgroundOpacity: number;
440
+ fontSize: number;
441
+ fontFamily: string;
442
+ fontColor: string;
443
+ fontBgColor: string;
444
+ textAlign: "left" | "center" | "right";
445
+ verticalAlign: "top" | "middle" | "bottom";
446
+ isBold: boolean;
447
+ isItalic: boolean;
448
+ isUnderline: boolean;
449
+ isStrikethrough: boolean;
450
+ seed: number;
451
+ version: number;
452
+ isDeleted: boolean;
453
+ groupIds: readonly string[];
454
+ updated: number;
455
+ link: string | null;
456
+ locked: boolean;
457
+ isFlippedHorizontal?: boolean | undefined;
458
+ isFlippedVertical?: boolean | undefined;
459
+ isAspectRatioLocked?: boolean | undefined;
460
+ frameId: string | null;
461
+ lineHeight: number;
462
+ letterSpacing: number;
463
+ } | {
464
+ type: "trapezoid";
465
+ id: string;
466
+ x: number;
467
+ y: number;
468
+ width: number;
469
+ height: number;
470
+ angle: number;
471
+ strokeColor: string;
472
+ backgroundColor: string;
473
+ fillStyle: import('../types/element').FillStyle;
474
+ strokeWidth: number;
475
+ strokeStyle: import('../types/element').StrokeStyle;
476
+ roughness: number;
477
+ opacity: number;
478
+ strokeOpacity: number;
479
+ roundness: number;
480
+ backgroundOpacity: number;
481
+ fontSize: number;
482
+ fontFamily: string;
483
+ fontColor: string;
484
+ fontBgColor: string;
485
+ textAlign: "left" | "center" | "right";
486
+ verticalAlign: "top" | "middle" | "bottom";
487
+ isBold: boolean;
488
+ isItalic: boolean;
489
+ isUnderline: boolean;
490
+ isStrikethrough: boolean;
491
+ seed: number;
492
+ version: number;
493
+ isDeleted: boolean;
494
+ groupIds: readonly string[];
495
+ updated: number;
496
+ link: string | null;
497
+ locked: boolean;
498
+ isFlippedHorizontal?: boolean | undefined;
499
+ isFlippedVertical?: boolean | undefined;
500
+ isAspectRatioLocked?: boolean | undefined;
501
+ frameId: string | null;
502
+ lineHeight: number;
503
+ letterSpacing: number;
504
+ } | {
505
+ type: "parallelogram";
506
+ id: string;
507
+ x: number;
508
+ y: number;
509
+ width: number;
510
+ height: number;
511
+ angle: number;
512
+ strokeColor: string;
513
+ backgroundColor: string;
514
+ fillStyle: import('../types/element').FillStyle;
515
+ strokeWidth: number;
516
+ strokeStyle: import('../types/element').StrokeStyle;
517
+ roughness: number;
518
+ opacity: number;
519
+ strokeOpacity: number;
520
+ roundness: number;
521
+ backgroundOpacity: number;
522
+ fontSize: number;
523
+ fontFamily: string;
524
+ fontColor: string;
525
+ fontBgColor: string;
526
+ textAlign: "left" | "center" | "right";
527
+ verticalAlign: "top" | "middle" | "bottom";
528
+ isBold: boolean;
529
+ isItalic: boolean;
530
+ isUnderline: boolean;
531
+ isStrikethrough: boolean;
532
+ seed: number;
533
+ version: number;
534
+ isDeleted: boolean;
535
+ groupIds: readonly string[];
536
+ updated: number;
537
+ link: string | null;
538
+ locked: boolean;
539
+ isFlippedHorizontal?: boolean | undefined;
540
+ isFlippedVertical?: boolean | undefined;
541
+ isAspectRatioLocked?: boolean | undefined;
542
+ frameId: string | null;
543
+ lineHeight: number;
544
+ letterSpacing: number;
545
+ } | {
546
+ type: "cloud";
547
+ id: string;
548
+ x: number;
549
+ y: number;
550
+ width: number;
551
+ height: number;
552
+ angle: number;
553
+ strokeColor: string;
554
+ backgroundColor: string;
555
+ fillStyle: import('../types/element').FillStyle;
556
+ strokeWidth: number;
557
+ strokeStyle: import('../types/element').StrokeStyle;
558
+ roughness: number;
559
+ opacity: number;
560
+ strokeOpacity: number;
561
+ roundness: number;
562
+ backgroundOpacity: number;
563
+ fontSize: number;
564
+ fontFamily: string;
565
+ fontColor: string;
566
+ fontBgColor: string;
567
+ textAlign: "left" | "center" | "right";
568
+ verticalAlign: "top" | "middle" | "bottom";
569
+ isBold: boolean;
570
+ isItalic: boolean;
571
+ isUnderline: boolean;
572
+ isStrikethrough: boolean;
573
+ seed: number;
574
+ version: number;
575
+ isDeleted: boolean;
576
+ groupIds: readonly string[];
577
+ updated: number;
578
+ link: string | null;
579
+ locked: boolean;
580
+ isFlippedHorizontal?: boolean | undefined;
581
+ isFlippedVertical?: boolean | undefined;
582
+ isAspectRatioLocked?: boolean | undefined;
583
+ frameId: string | null;
584
+ lineHeight: number;
585
+ letterSpacing: number;
586
+ } | {
587
+ type: "pentagon";
588
+ id: string;
589
+ x: number;
590
+ y: number;
591
+ width: number;
592
+ height: number;
593
+ angle: number;
594
+ strokeColor: string;
595
+ backgroundColor: string;
596
+ fillStyle: import('../types/element').FillStyle;
597
+ strokeWidth: number;
598
+ strokeStyle: import('../types/element').StrokeStyle;
599
+ roughness: number;
600
+ opacity: number;
601
+ strokeOpacity: number;
602
+ roundness: number;
603
+ backgroundOpacity: number;
604
+ fontSize: number;
605
+ fontFamily: string;
606
+ fontColor: string;
607
+ fontBgColor: string;
608
+ textAlign: "left" | "center" | "right";
609
+ verticalAlign: "top" | "middle" | "bottom";
610
+ isBold: boolean;
611
+ isItalic: boolean;
612
+ isUnderline: boolean;
613
+ isStrikethrough: boolean;
614
+ seed: number;
615
+ version: number;
616
+ isDeleted: boolean;
617
+ groupIds: readonly string[];
618
+ updated: number;
619
+ link: string | null;
620
+ locked: boolean;
621
+ isFlippedHorizontal?: boolean | undefined;
622
+ isFlippedVertical?: boolean | undefined;
623
+ isAspectRatioLocked?: boolean | undefined;
624
+ frameId: string | null;
625
+ lineHeight: number;
626
+ letterSpacing: number;
627
+ } | {
628
+ type: "hexagon";
629
+ id: string;
630
+ x: number;
631
+ y: number;
632
+ width: number;
633
+ height: number;
634
+ angle: number;
635
+ strokeColor: string;
636
+ backgroundColor: string;
637
+ fillStyle: import('../types/element').FillStyle;
638
+ strokeWidth: number;
639
+ strokeStyle: import('../types/element').StrokeStyle;
640
+ roughness: number;
641
+ opacity: number;
642
+ strokeOpacity: number;
643
+ roundness: number;
644
+ backgroundOpacity: number;
645
+ fontSize: number;
646
+ fontFamily: string;
647
+ fontColor: string;
648
+ fontBgColor: string;
649
+ textAlign: "left" | "center" | "right";
650
+ verticalAlign: "top" | "middle" | "bottom";
651
+ isBold: boolean;
652
+ isItalic: boolean;
653
+ isUnderline: boolean;
654
+ isStrikethrough: boolean;
655
+ seed: number;
656
+ version: number;
657
+ isDeleted: boolean;
658
+ groupIds: readonly string[];
659
+ updated: number;
660
+ link: string | null;
661
+ locked: boolean;
662
+ isFlippedHorizontal?: boolean | undefined;
663
+ isFlippedVertical?: boolean | undefined;
664
+ isAspectRatioLocked?: boolean | undefined;
665
+ frameId: string | null;
666
+ lineHeight: number;
667
+ letterSpacing: number;
668
+ } | {
669
+ type: "message";
670
+ id: string;
671
+ x: number;
672
+ y: number;
673
+ width: number;
674
+ height: number;
675
+ angle: number;
676
+ strokeColor: string;
677
+ backgroundColor: string;
678
+ fillStyle: import('../types/element').FillStyle;
679
+ strokeWidth: number;
680
+ strokeStyle: import('../types/element').StrokeStyle;
681
+ roughness: number;
682
+ opacity: number;
683
+ strokeOpacity: number;
684
+ roundness: number;
685
+ backgroundOpacity: number;
686
+ fontSize: number;
687
+ fontFamily: string;
688
+ fontColor: string;
689
+ fontBgColor: string;
690
+ textAlign: "left" | "center" | "right";
691
+ verticalAlign: "top" | "middle" | "bottom";
692
+ isBold: boolean;
693
+ isItalic: boolean;
694
+ isUnderline: boolean;
695
+ isStrikethrough: boolean;
696
+ seed: number;
697
+ version: number;
698
+ isDeleted: boolean;
699
+ groupIds: readonly string[];
700
+ updated: number;
701
+ link: string | null;
702
+ locked: boolean;
703
+ isFlippedHorizontal?: boolean | undefined;
704
+ isFlippedVertical?: boolean | undefined;
705
+ isAspectRatioLocked?: boolean | undefined;
706
+ frameId: string | null;
707
+ lineHeight: number;
708
+ letterSpacing: number;
709
+ } | {
710
+ type: "doubleArrow";
711
+ id: string;
712
+ x: number;
713
+ y: number;
714
+ width: number;
715
+ height: number;
716
+ angle: number;
717
+ strokeColor: string;
718
+ backgroundColor: string;
719
+ fillStyle: import('../types/element').FillStyle;
720
+ strokeWidth: number;
721
+ strokeStyle: import('../types/element').StrokeStyle;
722
+ roughness: number;
723
+ opacity: number;
724
+ strokeOpacity: number;
725
+ roundness: number;
726
+ backgroundOpacity: number;
727
+ fontSize: number;
728
+ fontFamily: string;
729
+ fontColor: string;
730
+ fontBgColor: string;
731
+ textAlign: "left" | "center" | "right";
732
+ verticalAlign: "top" | "middle" | "bottom";
733
+ isBold: boolean;
734
+ isItalic: boolean;
735
+ isUnderline: boolean;
736
+ isStrikethrough: boolean;
737
+ seed: number;
738
+ version: number;
739
+ isDeleted: boolean;
740
+ groupIds: readonly string[];
741
+ updated: number;
742
+ link: string | null;
743
+ locked: boolean;
744
+ isFlippedHorizontal?: boolean | undefined;
745
+ isFlippedVertical?: boolean | undefined;
746
+ isAspectRatioLocked?: boolean | undefined;
747
+ frameId: string | null;
748
+ lineHeight: number;
749
+ letterSpacing: number;
750
+ } | {
751
+ type: "triangle";
752
+ id: string;
753
+ x: number;
754
+ y: number;
755
+ width: number;
756
+ height: number;
757
+ angle: number;
758
+ strokeColor: string;
759
+ backgroundColor: string;
760
+ fillStyle: import('../types/element').FillStyle;
761
+ strokeWidth: number;
762
+ strokeStyle: import('../types/element').StrokeStyle;
763
+ roughness: number;
764
+ opacity: number;
765
+ strokeOpacity: number;
766
+ roundness: number;
767
+ backgroundOpacity: number;
768
+ fontSize: number;
769
+ fontFamily: string;
770
+ fontColor: string;
771
+ fontBgColor: string;
772
+ textAlign: "left" | "center" | "right";
773
+ verticalAlign: "top" | "middle" | "bottom";
774
+ isBold: boolean;
775
+ isItalic: boolean;
776
+ isUnderline: boolean;
777
+ isStrikethrough: boolean;
778
+ seed: number;
779
+ version: number;
780
+ isDeleted: boolean;
781
+ groupIds: readonly string[];
782
+ updated: number;
783
+ link: string | null;
784
+ locked: boolean;
785
+ isFlippedHorizontal?: boolean | undefined;
786
+ isFlippedVertical?: boolean | undefined;
787
+ isAspectRatioLocked?: boolean | undefined;
788
+ frameId: string | null;
789
+ lineHeight: number;
790
+ letterSpacing: number;
791
+ } | {
792
+ type: "leftArrow";
793
+ id: string;
794
+ x: number;
795
+ y: number;
796
+ width: number;
797
+ height: number;
798
+ angle: number;
799
+ strokeColor: string;
800
+ backgroundColor: string;
801
+ fillStyle: import('../types/element').FillStyle;
802
+ strokeWidth: number;
803
+ strokeStyle: import('../types/element').StrokeStyle;
804
+ roughness: number;
805
+ opacity: number;
806
+ strokeOpacity: number;
807
+ roundness: number;
808
+ backgroundOpacity: number;
809
+ fontSize: number;
810
+ fontFamily: string;
811
+ fontColor: string;
812
+ fontBgColor: string;
813
+ textAlign: "left" | "center" | "right";
814
+ verticalAlign: "top" | "middle" | "bottom";
815
+ isBold: boolean;
816
+ isItalic: boolean;
817
+ isUnderline: boolean;
818
+ isStrikethrough: boolean;
819
+ seed: number;
820
+ version: number;
821
+ isDeleted: boolean;
822
+ groupIds: readonly string[];
823
+ updated: number;
824
+ link: string | null;
825
+ locked: boolean;
826
+ isFlippedHorizontal?: boolean | undefined;
827
+ isFlippedVertical?: boolean | undefined;
828
+ isAspectRatioLocked?: boolean | undefined;
829
+ frameId: string | null;
830
+ lineHeight: number;
831
+ letterSpacing: number;
832
+ } | {
833
+ type: "rightArrow";
834
+ id: string;
835
+ x: number;
836
+ y: number;
837
+ width: number;
838
+ height: number;
839
+ angle: number;
840
+ strokeColor: string;
841
+ backgroundColor: string;
842
+ fillStyle: import('../types/element').FillStyle;
843
+ strokeWidth: number;
844
+ strokeStyle: import('../types/element').StrokeStyle;
845
+ roughness: number;
846
+ opacity: number;
847
+ strokeOpacity: number;
848
+ roundness: number;
849
+ backgroundOpacity: number;
850
+ fontSize: number;
851
+ fontFamily: string;
852
+ fontColor: string;
853
+ fontBgColor: string;
854
+ textAlign: "left" | "center" | "right";
855
+ verticalAlign: "top" | "middle" | "bottom";
856
+ isBold: boolean;
857
+ isItalic: boolean;
858
+ isUnderline: boolean;
859
+ isStrikethrough: boolean;
860
+ seed: number;
861
+ version: number;
862
+ isDeleted: boolean;
863
+ groupIds: readonly string[];
864
+ updated: number;
865
+ link: string | null;
866
+ locked: boolean;
867
+ isFlippedHorizontal?: boolean | undefined;
868
+ isFlippedVertical?: boolean | undefined;
869
+ isAspectRatioLocked?: boolean | undefined;
870
+ frameId: string | null;
871
+ lineHeight: number;
872
+ letterSpacing: number;
873
+ } | {
874
+ type: "cube";
875
+ id: string;
876
+ x: number;
877
+ y: number;
878
+ width: number;
879
+ height: number;
880
+ angle: number;
881
+ strokeColor: string;
882
+ backgroundColor: string;
883
+ fillStyle: import('../types/element').FillStyle;
884
+ strokeWidth: number;
885
+ strokeStyle: import('../types/element').StrokeStyle;
886
+ roughness: number;
887
+ opacity: number;
888
+ strokeOpacity: number;
889
+ roundness: number;
890
+ backgroundOpacity: number;
891
+ fontSize: number;
892
+ fontFamily: string;
893
+ fontColor: string;
894
+ fontBgColor: string;
895
+ textAlign: "left" | "center" | "right";
896
+ verticalAlign: "top" | "middle" | "bottom";
897
+ isBold: boolean;
898
+ isItalic: boolean;
899
+ isUnderline: boolean;
900
+ isStrikethrough: boolean;
901
+ seed: number;
902
+ version: number;
903
+ isDeleted: boolean;
904
+ groupIds: readonly string[];
905
+ updated: number;
906
+ link: string | null;
907
+ locked: boolean;
908
+ isFlippedHorizontal?: boolean | undefined;
909
+ isFlippedVertical?: boolean | undefined;
910
+ isAspectRatioLocked?: boolean | undefined;
911
+ frameId: string | null;
912
+ lineHeight: number;
913
+ letterSpacing: number;
914
+ } | {
915
+ type: "step1";
916
+ id: string;
917
+ x: number;
918
+ y: number;
919
+ width: number;
920
+ height: number;
921
+ angle: number;
922
+ strokeColor: string;
923
+ backgroundColor: string;
924
+ fillStyle: import('../types/element').FillStyle;
925
+ strokeWidth: number;
926
+ strokeStyle: import('../types/element').StrokeStyle;
927
+ roughness: number;
928
+ opacity: number;
929
+ strokeOpacity: number;
930
+ roundness: number;
931
+ backgroundOpacity: number;
932
+ fontSize: number;
933
+ fontFamily: string;
934
+ fontColor: string;
935
+ fontBgColor: string;
936
+ textAlign: "left" | "center" | "right";
937
+ verticalAlign: "top" | "middle" | "bottom";
938
+ isBold: boolean;
939
+ isItalic: boolean;
940
+ isUnderline: boolean;
941
+ isStrikethrough: boolean;
942
+ seed: number;
943
+ version: number;
944
+ isDeleted: boolean;
945
+ groupIds: readonly string[];
946
+ updated: number;
947
+ link: string | null;
948
+ locked: boolean;
949
+ isFlippedHorizontal?: boolean | undefined;
950
+ isFlippedVertical?: boolean | undefined;
951
+ isAspectRatioLocked?: boolean | undefined;
952
+ frameId: string | null;
953
+ lineHeight: number;
954
+ letterSpacing: number;
955
+ } | {
956
+ type: "step2";
957
+ id: string;
958
+ x: number;
959
+ y: number;
960
+ width: number;
961
+ height: number;
962
+ angle: number;
963
+ strokeColor: string;
964
+ backgroundColor: string;
965
+ fillStyle: import('../types/element').FillStyle;
966
+ strokeWidth: number;
967
+ strokeStyle: import('../types/element').StrokeStyle;
968
+ roughness: number;
969
+ opacity: number;
970
+ strokeOpacity: number;
971
+ roundness: number;
972
+ backgroundOpacity: number;
973
+ fontSize: number;
974
+ fontFamily: string;
975
+ fontColor: string;
976
+ fontBgColor: string;
977
+ textAlign: "left" | "center" | "right";
978
+ verticalAlign: "top" | "middle" | "bottom";
979
+ isBold: boolean;
980
+ isItalic: boolean;
981
+ isUnderline: boolean;
982
+ isStrikethrough: boolean;
983
+ seed: number;
984
+ version: number;
985
+ isDeleted: boolean;
986
+ groupIds: readonly string[];
987
+ updated: number;
988
+ link: string | null;
989
+ locked: boolean;
990
+ isFlippedHorizontal?: boolean | undefined;
991
+ isFlippedVertical?: boolean | undefined;
992
+ isAspectRatioLocked?: boolean | undefined;
993
+ frameId: string | null;
994
+ lineHeight: number;
995
+ letterSpacing: number;
996
+ } | {
997
+ type: "text";
998
+ text: string;
999
+ baseline: number;
1000
+ containerId: string | null;
1001
+ originalText: string;
1002
+ autoResize: boolean;
1003
+ id: string;
1004
+ x: number;
1005
+ y: number;
1006
+ width: number;
1007
+ height: number;
1008
+ angle: number;
1009
+ strokeColor: string;
1010
+ backgroundColor: string;
1011
+ fillStyle: import('../types/element').FillStyle;
1012
+ strokeWidth: number;
1013
+ strokeStyle: import('../types/element').StrokeStyle;
1014
+ roughness: number;
1015
+ opacity: number;
1016
+ strokeOpacity: number;
1017
+ roundness: number;
1018
+ backgroundOpacity: number;
1019
+ fontSize: number;
1020
+ fontFamily: string;
1021
+ fontColor: string;
1022
+ fontBgColor: string;
1023
+ textAlign: "left" | "center" | "right";
1024
+ verticalAlign: "top" | "middle" | "bottom";
1025
+ isBold: boolean;
1026
+ isItalic: boolean;
1027
+ isUnderline: boolean;
1028
+ isStrikethrough: boolean;
1029
+ seed: number;
1030
+ version: number;
1031
+ isDeleted: boolean;
1032
+ groupIds: readonly string[];
1033
+ updated: number;
1034
+ link: string | null;
1035
+ locked: boolean;
1036
+ isFlippedHorizontal?: boolean | undefined;
1037
+ isFlippedVertical?: boolean | undefined;
1038
+ isAspectRatioLocked?: boolean | undefined;
1039
+ frameId: string | null;
1040
+ lineHeight: number;
1041
+ letterSpacing: number;
127
1042
  } | {
128
- type: "ellipse";
1043
+ type: "line" | "arrow";
1044
+ points: readonly (readonly [number, number])[];
1045
+ lastCommittedPoint: readonly [number, number] | null;
1046
+ startArrowhead: string | null;
1047
+ endArrowhead: string | null;
1048
+ startBinding: {
1049
+ elementId: string;
1050
+ focus: number;
1051
+ gap: number;
1052
+ fixedPoint?: [number, number] | undefined;
1053
+ isBorder?: boolean | undefined;
1054
+ } | null;
1055
+ endBinding: {
1056
+ elementId: string;
1057
+ focus: number;
1058
+ gap: number;
1059
+ fixedPoint?: [number, number] | undefined;
1060
+ isBorder?: boolean | undefined;
1061
+ } | null;
1062
+ arrowType: "sharp" | "round" | "elbow" | "arrowBold";
129
1063
  id: string;
130
1064
  x: number;
131
1065
  y: number;
@@ -163,8 +1097,24 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
163
1097
  isFlippedVertical?: boolean | undefined;
164
1098
  isAspectRatioLocked?: boolean | undefined;
165
1099
  frameId: string | null;
1100
+ lineHeight: number;
1101
+ letterSpacing: number;
166
1102
  } | {
167
- type: "diamond";
1103
+ type: "image";
1104
+ fileId: string;
1105
+ status: "pending" | "saved" | "error";
1106
+ scale: [number, number];
1107
+ dataURL?: string | undefined;
1108
+ isUploaded?: boolean | undefined;
1109
+ url?: string | undefined;
1110
+ crop?: {
1111
+ x: number;
1112
+ y: number;
1113
+ width: number;
1114
+ height: number;
1115
+ naturalWidth: number;
1116
+ naturalHeight: number;
1117
+ } | undefined;
168
1118
  id: string;
169
1119
  x: number;
170
1120
  y: number;
@@ -202,8 +1152,11 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
202
1152
  isFlippedVertical?: boolean | undefined;
203
1153
  isAspectRatioLocked?: boolean | undefined;
204
1154
  frameId: string | null;
1155
+ lineHeight: number;
1156
+ letterSpacing: number;
205
1157
  } | {
206
- type: "square";
1158
+ type: "frame";
1159
+ name?: string | undefined;
207
1160
  id: string;
208
1161
  x: number;
209
1162
  y: number;
@@ -241,8 +1194,14 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
241
1194
  isFlippedVertical?: boolean | undefined;
242
1195
  isAspectRatioLocked?: boolean | undefined;
243
1196
  frameId: string | null;
1197
+ lineHeight: number;
1198
+ letterSpacing: number;
244
1199
  } | {
245
- type: "star";
1200
+ type: "freedraw";
1201
+ points: readonly (readonly [number, number])[];
1202
+ pressures: readonly number[];
1203
+ simulatePressure: boolean;
1204
+ lastCommittedPoint: readonly [number, number] | null;
246
1205
  id: string;
247
1206
  x: number;
248
1207
  y: number;
@@ -280,8 +1239,11 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
280
1239
  isFlippedVertical?: boolean | undefined;
281
1240
  isAspectRatioLocked?: boolean | undefined;
282
1241
  frameId: string | null;
1242
+ lineHeight: number;
1243
+ letterSpacing: number;
283
1244
  } | {
284
- type: "circle";
1245
+ type: "note";
1246
+ noteShape: string;
285
1247
  id: string;
286
1248
  x: number;
287
1249
  y: number;
@@ -319,8 +1281,12 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
319
1281
  isFlippedVertical?: boolean | undefined;
320
1282
  isAspectRatioLocked?: boolean | undefined;
321
1283
  frameId: string | null;
322
- } | {
323
- type: "cylinder";
1284
+ lineHeight: number;
1285
+ letterSpacing: number;
1286
+ })[];
1287
+ images: Record<string, string>;
1288
+ history: ({
1289
+ type: "rectangle";
324
1290
  id: string;
325
1291
  x: number;
326
1292
  y: number;
@@ -358,8 +1324,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
358
1324
  isFlippedVertical?: boolean | undefined;
359
1325
  isAspectRatioLocked?: boolean | undefined;
360
1326
  frameId: string | null;
1327
+ lineHeight: number;
1328
+ letterSpacing: number;
361
1329
  } | {
362
- type: "process";
1330
+ type: "ellipse";
363
1331
  id: string;
364
1332
  x: number;
365
1333
  y: number;
@@ -397,8 +1365,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
397
1365
  isFlippedVertical?: boolean | undefined;
398
1366
  isAspectRatioLocked?: boolean | undefined;
399
1367
  frameId: string | null;
1368
+ lineHeight: number;
1369
+ letterSpacing: number;
400
1370
  } | {
401
- type: "decision";
1371
+ type: "diamond";
402
1372
  id: string;
403
1373
  x: number;
404
1374
  y: number;
@@ -436,8 +1406,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
436
1406
  isFlippedVertical?: boolean | undefined;
437
1407
  isAspectRatioLocked?: boolean | undefined;
438
1408
  frameId: string | null;
1409
+ lineHeight: number;
1410
+ letterSpacing: number;
439
1411
  } | {
440
- type: "trapezoid";
1412
+ type: "square";
441
1413
  id: string;
442
1414
  x: number;
443
1415
  y: number;
@@ -475,8 +1447,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
475
1447
  isFlippedVertical?: boolean | undefined;
476
1448
  isAspectRatioLocked?: boolean | undefined;
477
1449
  frameId: string | null;
1450
+ lineHeight: number;
1451
+ letterSpacing: number;
478
1452
  } | {
479
- type: "parallelogram";
1453
+ type: "star";
480
1454
  id: string;
481
1455
  x: number;
482
1456
  y: number;
@@ -514,14 +1488,51 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
514
1488
  isFlippedVertical?: boolean | undefined;
515
1489
  isAspectRatioLocked?: boolean | undefined;
516
1490
  frameId: string | null;
1491
+ lineHeight: number;
1492
+ letterSpacing: number;
517
1493
  } | {
518
- type: "text";
519
- text: string;
520
- baseline: number;
521
- containerId: string | null;
522
- originalText: string;
523
- autoResize: boolean;
1494
+ type: "circle";
1495
+ id: string;
1496
+ x: number;
1497
+ y: number;
1498
+ width: number;
1499
+ height: number;
1500
+ angle: number;
1501
+ strokeColor: string;
1502
+ backgroundColor: string;
1503
+ fillStyle: import('../types/element').FillStyle;
1504
+ strokeWidth: number;
1505
+ strokeStyle: import('../types/element').StrokeStyle;
1506
+ roughness: number;
1507
+ opacity: number;
1508
+ strokeOpacity: number;
1509
+ roundness: number;
1510
+ backgroundOpacity: number;
1511
+ fontSize: number;
1512
+ fontFamily: string;
1513
+ fontColor: string;
1514
+ fontBgColor: string;
1515
+ textAlign: "left" | "center" | "right";
1516
+ verticalAlign: "top" | "middle" | "bottom";
1517
+ isBold: boolean;
1518
+ isItalic: boolean;
1519
+ isUnderline: boolean;
1520
+ isStrikethrough: boolean;
1521
+ seed: number;
1522
+ version: number;
1523
+ isDeleted: boolean;
1524
+ groupIds: readonly string[];
1525
+ updated: number;
1526
+ link: string | null;
1527
+ locked: boolean;
1528
+ isFlippedHorizontal?: boolean | undefined;
1529
+ isFlippedVertical?: boolean | undefined;
1530
+ isAspectRatioLocked?: boolean | undefined;
1531
+ frameId: string | null;
524
1532
  lineHeight: number;
1533
+ letterSpacing: number;
1534
+ } | {
1535
+ type: "cylinder";
525
1536
  id: string;
526
1537
  x: number;
527
1538
  y: number;
@@ -559,27 +1570,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
559
1570
  isFlippedVertical?: boolean | undefined;
560
1571
  isAspectRatioLocked?: boolean | undefined;
561
1572
  frameId: string | null;
1573
+ lineHeight: number;
1574
+ letterSpacing: number;
562
1575
  } | {
563
- type: "line" | "arrow";
564
- points: readonly (readonly [number, number])[];
565
- lastCommittedPoint: readonly [number, number] | null;
566
- startArrowhead: string | null;
567
- endArrowhead: string | null;
568
- startBinding: {
569
- elementId: string;
570
- focus: number;
571
- gap: number;
572
- fixedPoint?: [number, number] | undefined;
573
- isBorder?: boolean | undefined;
574
- } | null;
575
- endBinding: {
576
- elementId: string;
577
- focus: number;
578
- gap: number;
579
- fixedPoint?: [number, number] | undefined;
580
- isBorder?: boolean | undefined;
581
- } | null;
582
- arrowType: "sharp" | "round" | "elbow";
1576
+ type: "process";
583
1577
  id: string;
584
1578
  x: number;
585
1579
  y: number;
@@ -617,22 +1611,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
617
1611
  isFlippedVertical?: boolean | undefined;
618
1612
  isAspectRatioLocked?: boolean | undefined;
619
1613
  frameId: string | null;
1614
+ lineHeight: number;
1615
+ letterSpacing: number;
620
1616
  } | {
621
- type: "image";
622
- fileId: string;
623
- status: "pending" | "saved" | "error";
624
- scale: [number, number];
625
- dataURL?: string | undefined;
626
- isUploaded?: boolean | undefined;
627
- url?: string | undefined;
628
- crop?: {
629
- x: number;
630
- y: number;
631
- width: number;
632
- height: number;
633
- naturalWidth: number;
634
- naturalHeight: number;
635
- } | undefined;
1617
+ type: "decision";
636
1618
  id: string;
637
1619
  x: number;
638
1620
  y: number;
@@ -670,9 +1652,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
670
1652
  isFlippedVertical?: boolean | undefined;
671
1653
  isAspectRatioLocked?: boolean | undefined;
672
1654
  frameId: string | null;
1655
+ lineHeight: number;
1656
+ letterSpacing: number;
673
1657
  } | {
674
- type: "frame";
675
- name?: string | undefined;
1658
+ type: "trapezoid";
676
1659
  id: string;
677
1660
  x: number;
678
1661
  y: number;
@@ -710,12 +1693,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
710
1693
  isFlippedVertical?: boolean | undefined;
711
1694
  isAspectRatioLocked?: boolean | undefined;
712
1695
  frameId: string | null;
1696
+ lineHeight: number;
1697
+ letterSpacing: number;
713
1698
  } | {
714
- type: "freedraw";
715
- points: readonly (readonly [number, number])[];
716
- pressures: readonly number[];
717
- simulatePressure: boolean;
718
- lastCommittedPoint: readonly [number, number] | null;
1699
+ type: "parallelogram";
719
1700
  id: string;
720
1701
  x: number;
721
1702
  y: number;
@@ -753,10 +1734,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
753
1734
  isFlippedVertical?: boolean | undefined;
754
1735
  isAspectRatioLocked?: boolean | undefined;
755
1736
  frameId: string | null;
756
- })[];
757
- images: Record<string, string>;
758
- history: ({
759
- type: "rectangle";
1737
+ lineHeight: number;
1738
+ letterSpacing: number;
1739
+ } | {
1740
+ type: "cloud";
760
1741
  id: string;
761
1742
  x: number;
762
1743
  y: number;
@@ -794,8 +1775,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
794
1775
  isFlippedVertical?: boolean | undefined;
795
1776
  isAspectRatioLocked?: boolean | undefined;
796
1777
  frameId: string | null;
1778
+ lineHeight: number;
1779
+ letterSpacing: number;
797
1780
  } | {
798
- type: "ellipse";
1781
+ type: "pentagon";
799
1782
  id: string;
800
1783
  x: number;
801
1784
  y: number;
@@ -833,8 +1816,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
833
1816
  isFlippedVertical?: boolean | undefined;
834
1817
  isAspectRatioLocked?: boolean | undefined;
835
1818
  frameId: string | null;
1819
+ lineHeight: number;
1820
+ letterSpacing: number;
836
1821
  } | {
837
- type: "diamond";
1822
+ type: "hexagon";
838
1823
  id: string;
839
1824
  x: number;
840
1825
  y: number;
@@ -872,8 +1857,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
872
1857
  isFlippedVertical?: boolean | undefined;
873
1858
  isAspectRatioLocked?: boolean | undefined;
874
1859
  frameId: string | null;
1860
+ lineHeight: number;
1861
+ letterSpacing: number;
875
1862
  } | {
876
- type: "square";
1863
+ type: "message";
877
1864
  id: string;
878
1865
  x: number;
879
1866
  y: number;
@@ -911,8 +1898,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
911
1898
  isFlippedVertical?: boolean | undefined;
912
1899
  isAspectRatioLocked?: boolean | undefined;
913
1900
  frameId: string | null;
1901
+ lineHeight: number;
1902
+ letterSpacing: number;
914
1903
  } | {
915
- type: "star";
1904
+ type: "doubleArrow";
916
1905
  id: string;
917
1906
  x: number;
918
1907
  y: number;
@@ -950,8 +1939,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
950
1939
  isFlippedVertical?: boolean | undefined;
951
1940
  isAspectRatioLocked?: boolean | undefined;
952
1941
  frameId: string | null;
1942
+ lineHeight: number;
1943
+ letterSpacing: number;
953
1944
  } | {
954
- type: "circle";
1945
+ type: "triangle";
955
1946
  id: string;
956
1947
  x: number;
957
1948
  y: number;
@@ -989,8 +1980,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
989
1980
  isFlippedVertical?: boolean | undefined;
990
1981
  isAspectRatioLocked?: boolean | undefined;
991
1982
  frameId: string | null;
1983
+ lineHeight: number;
1984
+ letterSpacing: number;
992
1985
  } | {
993
- type: "cylinder";
1986
+ type: "leftArrow";
994
1987
  id: string;
995
1988
  x: number;
996
1989
  y: number;
@@ -1028,8 +2021,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1028
2021
  isFlippedVertical?: boolean | undefined;
1029
2022
  isAspectRatioLocked?: boolean | undefined;
1030
2023
  frameId: string | null;
2024
+ lineHeight: number;
2025
+ letterSpacing: number;
1031
2026
  } | {
1032
- type: "process";
2027
+ type: "rightArrow";
1033
2028
  id: string;
1034
2029
  x: number;
1035
2030
  y: number;
@@ -1067,8 +2062,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1067
2062
  isFlippedVertical?: boolean | undefined;
1068
2063
  isAspectRatioLocked?: boolean | undefined;
1069
2064
  frameId: string | null;
2065
+ lineHeight: number;
2066
+ letterSpacing: number;
1070
2067
  } | {
1071
- type: "decision";
2068
+ type: "cube";
1072
2069
  id: string;
1073
2070
  x: number;
1074
2071
  y: number;
@@ -1106,8 +2103,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1106
2103
  isFlippedVertical?: boolean | undefined;
1107
2104
  isAspectRatioLocked?: boolean | undefined;
1108
2105
  frameId: string | null;
2106
+ lineHeight: number;
2107
+ letterSpacing: number;
1109
2108
  } | {
1110
- type: "trapezoid";
2109
+ type: "step1";
1111
2110
  id: string;
1112
2111
  x: number;
1113
2112
  y: number;
@@ -1145,8 +2144,10 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1145
2144
  isFlippedVertical?: boolean | undefined;
1146
2145
  isAspectRatioLocked?: boolean | undefined;
1147
2146
  frameId: string | null;
2147
+ lineHeight: number;
2148
+ letterSpacing: number;
1148
2149
  } | {
1149
- type: "parallelogram";
2150
+ type: "step2";
1150
2151
  id: string;
1151
2152
  x: number;
1152
2153
  y: number;
@@ -1184,6 +2185,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1184
2185
  isFlippedVertical?: boolean | undefined;
1185
2186
  isAspectRatioLocked?: boolean | undefined;
1186
2187
  frameId: string | null;
2188
+ lineHeight: number;
2189
+ letterSpacing: number;
1187
2190
  } | {
1188
2191
  type: "text";
1189
2192
  text: string;
@@ -1191,7 +2194,6 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1191
2194
  containerId: string | null;
1192
2195
  originalText: string;
1193
2196
  autoResize: boolean;
1194
- lineHeight: number;
1195
2197
  id: string;
1196
2198
  x: number;
1197
2199
  y: number;
@@ -1229,6 +2231,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1229
2231
  isFlippedVertical?: boolean | undefined;
1230
2232
  isAspectRatioLocked?: boolean | undefined;
1231
2233
  frameId: string | null;
2234
+ lineHeight: number;
2235
+ letterSpacing: number;
1232
2236
  } | {
1233
2237
  type: "line" | "arrow";
1234
2238
  points: readonly (readonly [number, number])[];
@@ -1249,7 +2253,7 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1249
2253
  fixedPoint?: [number, number] | undefined;
1250
2254
  isBorder?: boolean | undefined;
1251
2255
  } | null;
1252
- arrowType: "sharp" | "round" | "elbow";
2256
+ arrowType: "sharp" | "round" | "elbow" | "arrowBold";
1253
2257
  id: string;
1254
2258
  x: number;
1255
2259
  y: number;
@@ -1287,6 +2291,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1287
2291
  isFlippedVertical?: boolean | undefined;
1288
2292
  isAspectRatioLocked?: boolean | undefined;
1289
2293
  frameId: string | null;
2294
+ lineHeight: number;
2295
+ letterSpacing: number;
1290
2296
  } | {
1291
2297
  type: "image";
1292
2298
  fileId: string;
@@ -1340,6 +2346,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1340
2346
  isFlippedVertical?: boolean | undefined;
1341
2347
  isAspectRatioLocked?: boolean | undefined;
1342
2348
  frameId: string | null;
2349
+ lineHeight: number;
2350
+ letterSpacing: number;
1343
2351
  } | {
1344
2352
  type: "frame";
1345
2353
  name?: string | undefined;
@@ -1380,6 +2388,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1380
2388
  isFlippedVertical?: boolean | undefined;
1381
2389
  isAspectRatioLocked?: boolean | undefined;
1382
2390
  frameId: string | null;
2391
+ lineHeight: number;
2392
+ letterSpacing: number;
1383
2393
  } | {
1384
2394
  type: "freedraw";
1385
2395
  points: readonly (readonly [number, number])[];
@@ -1423,6 +2433,50 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1423
2433
  isFlippedVertical?: boolean | undefined;
1424
2434
  isAspectRatioLocked?: boolean | undefined;
1425
2435
  frameId: string | null;
2436
+ lineHeight: number;
2437
+ letterSpacing: number;
2438
+ } | {
2439
+ type: "note";
2440
+ noteShape: string;
2441
+ id: string;
2442
+ x: number;
2443
+ y: number;
2444
+ width: number;
2445
+ height: number;
2446
+ angle: number;
2447
+ strokeColor: string;
2448
+ backgroundColor: string;
2449
+ fillStyle: import('../types/element').FillStyle;
2450
+ strokeWidth: number;
2451
+ strokeStyle: import('../types/element').StrokeStyle;
2452
+ roughness: number;
2453
+ opacity: number;
2454
+ strokeOpacity: number;
2455
+ roundness: number;
2456
+ backgroundOpacity: number;
2457
+ fontSize: number;
2458
+ fontFamily: string;
2459
+ fontColor: string;
2460
+ fontBgColor: string;
2461
+ textAlign: "left" | "center" | "right";
2462
+ verticalAlign: "top" | "middle" | "bottom";
2463
+ isBold: boolean;
2464
+ isItalic: boolean;
2465
+ isUnderline: boolean;
2466
+ isStrikethrough: boolean;
2467
+ seed: number;
2468
+ version: number;
2469
+ isDeleted: boolean;
2470
+ groupIds: readonly string[];
2471
+ updated: number;
2472
+ link: string | null;
2473
+ locked: boolean;
2474
+ isFlippedHorizontal?: boolean | undefined;
2475
+ isFlippedVertical?: boolean | undefined;
2476
+ isAspectRatioLocked?: boolean | undefined;
2477
+ frameId: string | null;
2478
+ lineHeight: number;
2479
+ letterSpacing: number;
1426
2480
  })[][];
1427
2481
  historyStep: number;
1428
2482
  appConfig: {
@@ -1458,6 +2512,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1458
2512
  currentItemStrokeColor: string;
1459
2513
  currentItemStrokeOpacity: number;
1460
2514
  currentItemBackgroundColor: string;
2515
+ currentNoteBackgroundColor: string;
2516
+ currentNoteShape: string;
1461
2517
  currentItemFillStyle: "solid";
1462
2518
  currentItemStrokeWidth: number;
1463
2519
  currentItemStrokeStyle: "solid";
@@ -1469,13 +2525,16 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1469
2525
  currentItemFontSize: number;
1470
2526
  currentItemFontFamily: string;
1471
2527
  currentItemFontBgColor: string;
1472
- currentItemTextAlign: "left" | "center" | "right";
1473
- currentItemVerticalAlign: "top" | "middle" | "bottom";
2528
+ currentItemTextAlign: string;
2529
+ currentItemVerticalAlign: string;
1474
2530
  currentItemIsBold: boolean;
1475
2531
  currentItemIsItalic: boolean;
1476
2532
  currentItemIsUnderline: boolean;
1477
2533
  currentItemIsStrikethrough: boolean;
1478
- currentItemArrowType: "sharp" | "round";
2534
+ currentItemFontWeight: string;
2535
+ currentItemLineHeight: number;
2536
+ currentItemLetterSpacing: number;
2537
+ currentItemArrowType: "sharp" | "round" | "elbow";
1479
2538
  currentItemStartArrowhead: string | null;
1480
2539
  currentItemEndArrowhead: string | null;
1481
2540
  currentItemX: number;
@@ -1506,6 +2565,7 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1506
2565
  alignmentGuides: boolean;
1507
2566
  showContainerName: boolean;
1508
2567
  fixedArrowBinding: boolean;
2568
+ showQuickCreate: boolean;
1509
2569
  };
1510
2570
  } & import('pinia').PiniaCustomStateProperties<{
1511
2571
  elements: ExcalidrawElement[];
@@ -1542,6 +2602,8 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1542
2602
  currentItemStrokeColor: string;
1543
2603
  currentItemStrokeOpacity: number;
1544
2604
  currentItemBackgroundColor: string;
2605
+ currentNoteBackgroundColor: string;
2606
+ currentNoteShape: string;
1545
2607
  currentItemFillStyle: "solid";
1546
2608
  currentItemStrokeWidth: number;
1547
2609
  currentItemStrokeStyle: "solid";
@@ -1553,13 +2615,16 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1553
2615
  currentItemFontSize: number;
1554
2616
  currentItemFontFamily: string;
1555
2617
  currentItemFontBgColor: string;
1556
- currentItemTextAlign: "left" | "center" | "right";
1557
- currentItemVerticalAlign: "top" | "middle" | "bottom";
2618
+ currentItemTextAlign: string;
2619
+ currentItemVerticalAlign: string;
1558
2620
  currentItemIsBold: boolean;
1559
2621
  currentItemIsItalic: boolean;
1560
2622
  currentItemIsUnderline: boolean;
1561
2623
  currentItemIsStrikethrough: boolean;
1562
- currentItemArrowType: "sharp" | "round";
2624
+ currentItemFontWeight: string;
2625
+ currentItemLineHeight: number;
2626
+ currentItemLetterSpacing: number;
2627
+ currentItemArrowType: "sharp" | "round" | "elbow";
1563
2628
  currentItemStartArrowhead: string | null;
1564
2629
  currentItemEndArrowhead: string | null;
1565
2630
  currentItemX: number;
@@ -1590,6 +2655,7 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1590
2655
  alignmentGuides: boolean;
1591
2656
  showContainerName: boolean;
1592
2657
  fixedArrowBinding: boolean;
2658
+ showQuickCreate: boolean;
1593
2659
  };
1594
2660
  }>) => boolean;
1595
2661
  }, {
@@ -1615,11 +2681,14 @@ export declare const useExcalidrawStore: (id?: string) => import('pinia').Store<
1615
2681
  recordHistory(): void;
1616
2682
  undo(): void;
1617
2683
  redo(): void;
1618
- setZoom(zoom: number): void;
2684
+ setZoom(zoom: number, focalPoint?: {
2685
+ x: number;
2686
+ y: number;
2687
+ }): void;
1619
2688
  zoomIn(): void;
1620
2689
  zoomOut(): void;
1621
2690
  selectAll(): void;
1622
- copyElements(): Promise<void>;
2691
+ copyElements(isCut?: boolean): Promise<void>;
1623
2692
  cutElements(): Promise<void>;
1624
2693
  pasteElements(point?: {
1625
2694
  x: number;