@zsviczian/excalidraw 0.17.1-obsidian-52 → 0.17.1-obsidian-55

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.
@@ -7,5 +7,481 @@ export declare const hasStrokeStyle: (type: ElementOrToolType) => boolean;
7
7
  export declare const canChangeRoundness: (type: ElementOrToolType) => boolean;
8
8
  export declare const toolIsArrow: (type: ElementOrToolType) => boolean;
9
9
  export declare const canHaveArrowheads: (type: ElementOrToolType) => boolean;
10
- export declare const getElementAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement | null;
10
+ export declare const getElementAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => (Readonly<{
11
+ id: string;
12
+ x: number;
13
+ y: number;
14
+ strokeColor: string;
15
+ backgroundColor: string;
16
+ fillStyle: import("../element/types").FillStyle;
17
+ strokeWidth: number;
18
+ strokeStyle: import("../element/types").StrokeStyle;
19
+ roundness: {
20
+ type: import("../element/types").RoundnessType;
21
+ value?: number | undefined;
22
+ } | null;
23
+ roughness: number;
24
+ opacity: number;
25
+ width: number;
26
+ height: number;
27
+ angle: import("../../math").Radians;
28
+ seed: number;
29
+ version: number;
30
+ versionNonce: number;
31
+ index: import("../element/types").FractionalIndex | null;
32
+ isDeleted: boolean;
33
+ groupIds: readonly string[];
34
+ frameId: string | null;
35
+ boundElements: readonly Readonly<{
36
+ id: string;
37
+ type: "text" | "arrow";
38
+ }>[] | null;
39
+ updated: number;
40
+ link: string | null;
41
+ locked: boolean;
42
+ customData?: Record<string, any> | undefined;
43
+ }> & {
44
+ type: "rectangle";
45
+ } & {
46
+ isDeleted: boolean;
47
+ }) | (Readonly<{
48
+ id: string;
49
+ x: number;
50
+ y: number;
51
+ strokeColor: string;
52
+ backgroundColor: string;
53
+ fillStyle: import("../element/types").FillStyle;
54
+ strokeWidth: number;
55
+ strokeStyle: import("../element/types").StrokeStyle;
56
+ roundness: {
57
+ type: import("../element/types").RoundnessType;
58
+ value?: number | undefined;
59
+ } | null;
60
+ roughness: number;
61
+ opacity: number;
62
+ width: number;
63
+ height: number;
64
+ angle: import("../../math").Radians;
65
+ seed: number;
66
+ version: number;
67
+ versionNonce: number;
68
+ index: import("../element/types").FractionalIndex | null;
69
+ isDeleted: boolean;
70
+ groupIds: readonly string[];
71
+ frameId: string | null;
72
+ boundElements: readonly Readonly<{
73
+ id: string;
74
+ type: "text" | "arrow";
75
+ }>[] | null;
76
+ updated: number;
77
+ link: string | null;
78
+ locked: boolean;
79
+ customData?: Record<string, any> | undefined;
80
+ }> & {
81
+ type: "diamond";
82
+ } & {
83
+ isDeleted: boolean;
84
+ }) | (Readonly<{
85
+ id: string;
86
+ x: number;
87
+ y: number;
88
+ strokeColor: string;
89
+ backgroundColor: string;
90
+ fillStyle: import("../element/types").FillStyle;
91
+ strokeWidth: number;
92
+ strokeStyle: import("../element/types").StrokeStyle;
93
+ roundness: {
94
+ type: import("../element/types").RoundnessType;
95
+ value?: number | undefined;
96
+ } | null;
97
+ roughness: number;
98
+ opacity: number;
99
+ width: number;
100
+ height: number;
101
+ angle: import("../../math").Radians;
102
+ seed: number;
103
+ version: number;
104
+ versionNonce: number;
105
+ index: import("../element/types").FractionalIndex | null;
106
+ isDeleted: boolean;
107
+ groupIds: readonly string[];
108
+ frameId: string | null;
109
+ boundElements: readonly Readonly<{
110
+ id: string;
111
+ type: "text" | "arrow";
112
+ }>[] | null;
113
+ updated: number;
114
+ link: string | null;
115
+ locked: boolean;
116
+ customData?: Record<string, any> | undefined;
117
+ }> & {
118
+ type: "ellipse";
119
+ } & {
120
+ isDeleted: boolean;
121
+ }) | (Readonly<{
122
+ id: string;
123
+ x: number;
124
+ y: number;
125
+ strokeColor: string;
126
+ backgroundColor: string;
127
+ fillStyle: import("../element/types").FillStyle;
128
+ strokeWidth: number;
129
+ strokeStyle: import("../element/types").StrokeStyle;
130
+ roundness: {
131
+ type: import("../element/types").RoundnessType;
132
+ value?: number | undefined;
133
+ } | null;
134
+ roughness: number;
135
+ opacity: number;
136
+ width: number;
137
+ height: number;
138
+ angle: import("../../math").Radians;
139
+ seed: number;
140
+ version: number;
141
+ versionNonce: number;
142
+ index: import("../element/types").FractionalIndex | null;
143
+ isDeleted: boolean;
144
+ groupIds: readonly string[];
145
+ frameId: string | null;
146
+ boundElements: readonly Readonly<{
147
+ id: string;
148
+ type: "text" | "arrow";
149
+ }>[] | null;
150
+ updated: number;
151
+ link: string | null;
152
+ locked: boolean;
153
+ customData?: Record<string, any> | undefined;
154
+ }> & Readonly<{
155
+ type: "text";
156
+ fontSize: number;
157
+ fontFamily: number;
158
+ text: string;
159
+ rawText: string;
160
+ textAlign: string;
161
+ verticalAlign: string;
162
+ containerId: string | null;
163
+ originalText: string;
164
+ autoResize: boolean;
165
+ lineHeight: number & {
166
+ _brand: "unitlessLineHeight";
167
+ };
168
+ }> & {
169
+ isDeleted: boolean;
170
+ }) | (Readonly<{
171
+ id: string;
172
+ x: number;
173
+ y: number;
174
+ strokeColor: string;
175
+ backgroundColor: string;
176
+ fillStyle: import("../element/types").FillStyle;
177
+ strokeWidth: number;
178
+ strokeStyle: import("../element/types").StrokeStyle;
179
+ roundness: {
180
+ type: import("../element/types").RoundnessType;
181
+ value?: number | undefined;
182
+ } | null;
183
+ roughness: number;
184
+ opacity: number;
185
+ width: number;
186
+ height: number;
187
+ angle: import("../../math").Radians;
188
+ seed: number;
189
+ version: number;
190
+ versionNonce: number;
191
+ index: import("../element/types").FractionalIndex | null;
192
+ isDeleted: boolean;
193
+ groupIds: readonly string[];
194
+ frameId: string | null;
195
+ boundElements: readonly Readonly<{
196
+ id: string;
197
+ type: "text" | "arrow";
198
+ }>[] | null;
199
+ updated: number;
200
+ link: string | null;
201
+ locked: boolean;
202
+ customData?: Record<string, any> | undefined;
203
+ }> & Readonly<{
204
+ type: "line" | "arrow";
205
+ points: readonly import("../../math").LocalPoint[];
206
+ lastCommittedPoint: import("../../math").LocalPoint | null;
207
+ startBinding: import("../element/types").PointBinding | null;
208
+ endBinding: import("../element/types").PointBinding | null;
209
+ startArrowhead: import("../element/types").Arrowhead | null;
210
+ endArrowhead: import("../element/types").Arrowhead | null;
211
+ }> & {
212
+ isDeleted: boolean;
213
+ }) | (Readonly<{
214
+ id: string;
215
+ x: number;
216
+ y: number;
217
+ strokeColor: string;
218
+ backgroundColor: string;
219
+ fillStyle: import("../element/types").FillStyle;
220
+ strokeWidth: number;
221
+ strokeStyle: import("../element/types").StrokeStyle;
222
+ roundness: {
223
+ type: import("../element/types").RoundnessType;
224
+ value?: number | undefined;
225
+ } | null;
226
+ roughness: number;
227
+ opacity: number;
228
+ width: number;
229
+ height: number;
230
+ angle: import("../../math").Radians;
231
+ seed: number;
232
+ version: number;
233
+ versionNonce: number;
234
+ index: import("../element/types").FractionalIndex | null;
235
+ isDeleted: boolean;
236
+ groupIds: readonly string[];
237
+ frameId: string | null;
238
+ boundElements: readonly Readonly<{
239
+ id: string;
240
+ type: "text" | "arrow";
241
+ }>[] | null;
242
+ updated: number;
243
+ link: string | null;
244
+ locked: boolean;
245
+ customData?: Record<string, any> | undefined;
246
+ }> & Readonly<{
247
+ type: "freedraw";
248
+ points: readonly import("../../math").LocalPoint[];
249
+ pressures: readonly number[];
250
+ simulatePressure: boolean;
251
+ lastCommittedPoint: import("../../math").LocalPoint | null;
252
+ }> & {
253
+ isDeleted: boolean;
254
+ }) | (Readonly<{
255
+ id: string;
256
+ x: number;
257
+ y: number;
258
+ strokeColor: string;
259
+ backgroundColor: string;
260
+ fillStyle: import("../element/types").FillStyle;
261
+ strokeWidth: number;
262
+ strokeStyle: import("../element/types").StrokeStyle;
263
+ roundness: {
264
+ type: import("../element/types").RoundnessType;
265
+ value?: number | undefined;
266
+ } | null;
267
+ roughness: number;
268
+ opacity: number;
269
+ width: number;
270
+ height: number;
271
+ angle: import("../../math").Radians;
272
+ seed: number;
273
+ version: number;
274
+ versionNonce: number;
275
+ index: import("../element/types").FractionalIndex | null;
276
+ isDeleted: boolean;
277
+ groupIds: readonly string[];
278
+ frameId: string | null;
279
+ boundElements: readonly Readonly<{
280
+ id: string;
281
+ type: "text" | "arrow";
282
+ }>[] | null;
283
+ updated: number;
284
+ link: string | null;
285
+ locked: boolean;
286
+ customData?: Record<string, any> | undefined;
287
+ }> & Readonly<{
288
+ type: "image";
289
+ fileId: import("../element/types").FileId | null;
290
+ status: "pending" | "saved" | "error";
291
+ scale: [number, number];
292
+ }> & {
293
+ isDeleted: boolean;
294
+ }) | (Readonly<{
295
+ id: string;
296
+ x: number;
297
+ y: number;
298
+ strokeColor: string;
299
+ backgroundColor: string;
300
+ fillStyle: import("../element/types").FillStyle;
301
+ strokeWidth: number;
302
+ strokeStyle: import("../element/types").StrokeStyle;
303
+ roundness: {
304
+ type: import("../element/types").RoundnessType;
305
+ value?: number | undefined;
306
+ } | null;
307
+ roughness: number;
308
+ opacity: number;
309
+ width: number;
310
+ height: number;
311
+ angle: import("../../math").Radians;
312
+ seed: number;
313
+ version: number;
314
+ versionNonce: number;
315
+ index: import("../element/types").FractionalIndex | null;
316
+ isDeleted: boolean;
317
+ groupIds: readonly string[];
318
+ frameId: string | null;
319
+ boundElements: readonly Readonly<{
320
+ id: string;
321
+ type: "text" | "arrow";
322
+ }>[] | null;
323
+ updated: number;
324
+ link: string | null;
325
+ locked: boolean;
326
+ customData?: Record<string, any> | undefined;
327
+ }> & {
328
+ type: "frame";
329
+ name: string | null;
330
+ } & {
331
+ isDeleted: boolean;
332
+ }) | (Readonly<{
333
+ id: string;
334
+ x: number;
335
+ y: number;
336
+ strokeColor: string;
337
+ backgroundColor: string;
338
+ fillStyle: import("../element/types").FillStyle;
339
+ strokeWidth: number;
340
+ strokeStyle: import("../element/types").StrokeStyle;
341
+ roundness: {
342
+ type: import("../element/types").RoundnessType;
343
+ value?: number | undefined;
344
+ } | null;
345
+ roughness: number;
346
+ opacity: number;
347
+ width: number;
348
+ height: number;
349
+ angle: import("../../math").Radians;
350
+ seed: number;
351
+ version: number;
352
+ versionNonce: number;
353
+ index: import("../element/types").FractionalIndex | null;
354
+ isDeleted: boolean;
355
+ groupIds: readonly string[];
356
+ frameId: string | null;
357
+ boundElements: readonly Readonly<{
358
+ id: string;
359
+ type: "text" | "arrow";
360
+ }>[] | null;
361
+ updated: number;
362
+ link: string | null;
363
+ locked: boolean;
364
+ customData?: Record<string, any> | undefined;
365
+ }> & {
366
+ type: "magicframe";
367
+ name: string | null;
368
+ } & {
369
+ isDeleted: boolean;
370
+ }) | (Readonly<{
371
+ id: string;
372
+ x: number;
373
+ y: number;
374
+ strokeColor: string;
375
+ backgroundColor: string;
376
+ fillStyle: import("../element/types").FillStyle;
377
+ strokeWidth: number;
378
+ strokeStyle: import("../element/types").StrokeStyle;
379
+ roundness: {
380
+ type: import("../element/types").RoundnessType;
381
+ value?: number | undefined;
382
+ } | null;
383
+ roughness: number;
384
+ opacity: number;
385
+ width: number;
386
+ height: number;
387
+ angle: import("../../math").Radians;
388
+ seed: number;
389
+ version: number;
390
+ versionNonce: number;
391
+ index: import("../element/types").FractionalIndex | null;
392
+ isDeleted: boolean;
393
+ groupIds: readonly string[];
394
+ frameId: string | null;
395
+ boundElements: readonly Readonly<{
396
+ id: string;
397
+ type: "text" | "arrow";
398
+ }>[] | null;
399
+ updated: number;
400
+ link: string | null;
401
+ locked: boolean;
402
+ customData?: Record<string, any> | undefined;
403
+ }> & Readonly<{
404
+ type: "iframe";
405
+ customData?: {
406
+ generationData?: import("../element/types").MagicGenerationData | undefined;
407
+ } | undefined;
408
+ scale: [number, number];
409
+ }> & {
410
+ isDeleted: boolean;
411
+ }) | (Readonly<{
412
+ id: string;
413
+ x: number;
414
+ y: number;
415
+ strokeColor: string;
416
+ backgroundColor: string;
417
+ fillStyle: import("../element/types").FillStyle;
418
+ strokeWidth: number;
419
+ strokeStyle: import("../element/types").StrokeStyle;
420
+ roundness: {
421
+ type: import("../element/types").RoundnessType;
422
+ value?: number | undefined;
423
+ } | null;
424
+ roughness: number;
425
+ opacity: number;
426
+ width: number;
427
+ height: number;
428
+ angle: import("../../math").Radians;
429
+ seed: number;
430
+ version: number;
431
+ versionNonce: number;
432
+ index: import("../element/types").FractionalIndex | null;
433
+ isDeleted: boolean;
434
+ groupIds: readonly string[];
435
+ frameId: string | null;
436
+ boundElements: readonly Readonly<{
437
+ id: string;
438
+ type: "text" | "arrow";
439
+ }>[] | null;
440
+ updated: number;
441
+ link: string | null;
442
+ locked: boolean;
443
+ customData?: Record<string, any> | undefined;
444
+ }> & Readonly<{
445
+ type: "embeddable";
446
+ scale: [number, number];
447
+ }> & {
448
+ isDeleted: boolean;
449
+ }) | (Readonly<{
450
+ id: string;
451
+ x: number;
452
+ y: number;
453
+ strokeColor: string;
454
+ backgroundColor: string;
455
+ fillStyle: import("../element/types").FillStyle;
456
+ strokeWidth: number;
457
+ strokeStyle: import("../element/types").StrokeStyle;
458
+ roundness: {
459
+ type: import("../element/types").RoundnessType;
460
+ value?: number | undefined;
461
+ } | null;
462
+ roughness: number;
463
+ opacity: number;
464
+ width: number;
465
+ height: number;
466
+ angle: import("../../math").Radians;
467
+ seed: number;
468
+ version: number;
469
+ versionNonce: number;
470
+ index: import("../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
+ }> & {
483
+ type: "selection";
484
+ } & {
485
+ isDeleted: boolean;
486
+ }) | null;
11
487
  export declare const getElementsAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement[];
@@ -28,8 +28,8 @@ export declare const debugDrawBoundingBox: (box: BoundingBox | BoundingBox[], op
28
28
  permanent?: boolean;
29
29
  }) => void;
30
30
  export declare const debugDrawBounds: (box: Bounds | Bounds[], opts?: {
31
- color: string;
32
- permanent: boolean;
31
+ color?: string;
32
+ permanent?: boolean;
33
33
  }) => void;
34
34
  export declare const debugCloseFrame: () => void;
35
35
  export declare const debugClear: () => void;