@inkbar/react 0.3.0 → 0.4.0
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/README.md +16 -9
- package/dist/index.d.mts +1439 -84
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1197 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
2
|
-
import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, ConfidenceBucket, DocumentSource, ImportOptions, InkDocument, InkError, InkStatus, PageInfo, PdfAssets, Readable } from "@inkbar/core";
|
|
3
|
-
import { AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, LayoutMode,
|
|
2
|
+
import { Annotation, AnnotationChange, AnnotationDefaults, AnnotationDocument, AnnotationInput, AnnotationPatch, ConfidenceBucket, CurrentStyle, DocumentSource, ImportOptions, InkDocument, InkError, InkStatus, PageInfo, PdfAssets, Readable, SignatureLibrary, SignatureStore, SignatureTemplate, StyleGroup, StyleKey, StyleProps } from "@inkbar/core";
|
|
3
|
+
import { AnnotationSlotProps, AnnotationSlotProps as AnnotationSlotProps$1, AnnotationState, ColorProperty, LayoutMode, PageMount, SuggestionCardSlotProps, SuggestionCardSlotProps as SuggestionCardSlotProps$1, ThreadPopoverSlotProps, ThreadPopoverSlotProps as ThreadPopoverSlotProps$1, Tool, ToolController, ToolId, ToolOptions, ToolStyle, ViewRotation, Viewport, ZoomValue } from "@inkbar/core/dom";
|
|
4
4
|
import { Select } from "radix-ui";
|
|
5
5
|
import { IconNode } from "@inkbar/icons";
|
|
6
6
|
//#region src/context.d.ts
|
|
@@ -32,6 +32,18 @@ interface InkContext {
|
|
|
32
32
|
/** Desired tool; InkViewport applies it to the controller. */
|
|
33
33
|
tool: ToolId;
|
|
34
34
|
setTool: (id: ToolId) => void;
|
|
35
|
+
/** Host tools from InkRoot's `tools` prop; InkViewport registers them. */
|
|
36
|
+
hostTools: Tool[] | undefined;
|
|
37
|
+
/** The font families text boxes offer: InkRoot's `fonts`, else `FONT_FAMILIES`. */
|
|
38
|
+
fonts: readonly string[];
|
|
39
|
+
/** The tools' options for InkRoot's life, so they persist across documents. */
|
|
40
|
+
toolOptions: ToolOptions;
|
|
41
|
+
/** The saved signatures, from InkRoot's `signatures` store (memory by default). */
|
|
42
|
+
signatures: SignatureLibrary;
|
|
43
|
+
/** The fonts a typed signature offers: InkRoot's `signatureFonts`, else `SIGNATURE_FONTS`. */
|
|
44
|
+
signatureFonts: readonly string[];
|
|
45
|
+
/** The open document's tool style; `null` while no document is open. */
|
|
46
|
+
toolStyle: ToolStyle | null;
|
|
35
47
|
/** Desired zoom and page from the host's props; InkViewport applies and reports back. */
|
|
36
48
|
zoomModel: ZoomValue | undefined;
|
|
37
49
|
pageModel: number | undefined;
|
|
@@ -109,6 +121,8 @@ export declare function useAnnotations(): {
|
|
|
109
121
|
contents?: string | undefined;
|
|
110
122
|
inReplyTo?: string | undefined;
|
|
111
123
|
locked?: boolean | undefined;
|
|
124
|
+
subject?: string | undefined;
|
|
125
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
112
126
|
custom?: Record<string, unknown> | undefined;
|
|
113
127
|
} | {
|
|
114
128
|
id: string;
|
|
@@ -125,11 +139,13 @@ export declare function useAnnotations(): {
|
|
|
125
139
|
modifiedAt: string;
|
|
126
140
|
source: "session" | "pdf";
|
|
127
141
|
type: "text";
|
|
128
|
-
icon: "
|
|
142
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
129
143
|
author?: string | undefined;
|
|
130
144
|
contents?: string | undefined;
|
|
131
145
|
inReplyTo?: string | undefined;
|
|
132
146
|
locked?: boolean | undefined;
|
|
147
|
+
subject?: string | undefined;
|
|
148
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
133
149
|
custom?: Record<string, unknown> | undefined;
|
|
134
150
|
} | {
|
|
135
151
|
id: string;
|
|
@@ -140,24 +156,73 @@ export declare function useAnnotations(): {
|
|
|
140
156
|
width: number;
|
|
141
157
|
height: number;
|
|
142
158
|
};
|
|
143
|
-
color: string;
|
|
144
159
|
opacity: number;
|
|
145
160
|
createdAt: string;
|
|
146
161
|
modifiedAt: string;
|
|
147
162
|
source: "session" | "pdf";
|
|
148
163
|
type: "freetext";
|
|
149
164
|
contents: string;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
165
|
+
width: number;
|
|
166
|
+
defaultStyle: {
|
|
167
|
+
fontFamily: string;
|
|
168
|
+
fontSize: number;
|
|
169
|
+
color: string;
|
|
170
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
171
|
+
fontWeight?: "bold" | undefined;
|
|
172
|
+
fontStyle?: "italic" | undefined;
|
|
173
|
+
textDecoration?: "underline" | undefined;
|
|
174
|
+
align?: undefined;
|
|
175
|
+
};
|
|
153
176
|
author?: string | undefined;
|
|
154
177
|
inReplyTo?: string | undefined;
|
|
155
178
|
locked?: boolean | undefined;
|
|
179
|
+
subject?: string | undefined;
|
|
180
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
156
181
|
custom?: Record<string, unknown> | undefined;
|
|
182
|
+
color?: string | undefined;
|
|
183
|
+
borderColor?: string | undefined;
|
|
184
|
+
dashes?: number[] | undefined;
|
|
185
|
+
cornerRadius?: number | undefined;
|
|
186
|
+
fringe?: {
|
|
187
|
+
left: number;
|
|
188
|
+
top: number;
|
|
189
|
+
right: number;
|
|
190
|
+
bottom: number;
|
|
191
|
+
} | undefined;
|
|
157
192
|
callout?: {
|
|
158
193
|
x: number;
|
|
159
194
|
y: number;
|
|
160
195
|
}[] | undefined;
|
|
196
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
197
|
+
fontFamily?: undefined;
|
|
198
|
+
fontSize?: undefined;
|
|
199
|
+
align?: undefined;
|
|
200
|
+
} | {
|
|
201
|
+
id: string;
|
|
202
|
+
page: number;
|
|
203
|
+
rect: {
|
|
204
|
+
x: number;
|
|
205
|
+
y: number;
|
|
206
|
+
width: number;
|
|
207
|
+
height: number;
|
|
208
|
+
};
|
|
209
|
+
color: string;
|
|
210
|
+
opacity: number;
|
|
211
|
+
createdAt: string;
|
|
212
|
+
modifiedAt: string;
|
|
213
|
+
source: "session" | "pdf";
|
|
214
|
+
width: number;
|
|
215
|
+
type: "square";
|
|
216
|
+
author?: string | undefined;
|
|
217
|
+
contents?: string | undefined;
|
|
218
|
+
inReplyTo?: string | undefined;
|
|
219
|
+
locked?: boolean | undefined;
|
|
220
|
+
subject?: string | undefined;
|
|
221
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
222
|
+
custom?: Record<string, unknown> | undefined;
|
|
223
|
+
cornerRadius?: number | undefined;
|
|
224
|
+
dashes?: number[] | undefined;
|
|
225
|
+
interiorColor?: string | undefined;
|
|
161
226
|
} | {
|
|
162
227
|
id: string;
|
|
163
228
|
page: number;
|
|
@@ -172,13 +237,17 @@ export declare function useAnnotations(): {
|
|
|
172
237
|
createdAt: string;
|
|
173
238
|
modifiedAt: string;
|
|
174
239
|
source: "session" | "pdf";
|
|
175
|
-
type: "square" | "circle";
|
|
176
240
|
width: number;
|
|
241
|
+
type: "circle";
|
|
177
242
|
author?: string | undefined;
|
|
178
243
|
contents?: string | undefined;
|
|
179
244
|
inReplyTo?: string | undefined;
|
|
180
245
|
locked?: boolean | undefined;
|
|
246
|
+
subject?: string | undefined;
|
|
247
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
181
248
|
custom?: Record<string, unknown> | undefined;
|
|
249
|
+
cornerRadius?: undefined;
|
|
250
|
+
dashes?: number[] | undefined;
|
|
182
251
|
interiorColor?: string | undefined;
|
|
183
252
|
} | {
|
|
184
253
|
id: string;
|
|
@@ -208,9 +277,43 @@ export declare function useAnnotations(): {
|
|
|
208
277
|
contents?: string | undefined;
|
|
209
278
|
inReplyTo?: string | undefined;
|
|
210
279
|
locked?: boolean | undefined;
|
|
280
|
+
subject?: string | undefined;
|
|
281
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
282
|
+
custom?: Record<string, unknown> | undefined;
|
|
283
|
+
dashes?: number[] | undefined;
|
|
284
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
285
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
286
|
+
} | {
|
|
287
|
+
id: string;
|
|
288
|
+
page: number;
|
|
289
|
+
rect: {
|
|
290
|
+
x: number;
|
|
291
|
+
y: number;
|
|
292
|
+
width: number;
|
|
293
|
+
height: number;
|
|
294
|
+
};
|
|
295
|
+
color: string;
|
|
296
|
+
opacity: number;
|
|
297
|
+
createdAt: string;
|
|
298
|
+
modifiedAt: string;
|
|
299
|
+
source: "session" | "pdf";
|
|
300
|
+
vertices: {
|
|
301
|
+
x: number;
|
|
302
|
+
y: number;
|
|
303
|
+
}[];
|
|
304
|
+
width: number;
|
|
305
|
+
type: "polyline";
|
|
306
|
+
author?: string | undefined;
|
|
307
|
+
contents?: string | undefined;
|
|
308
|
+
inReplyTo?: string | undefined;
|
|
309
|
+
locked?: boolean | undefined;
|
|
310
|
+
subject?: string | undefined;
|
|
311
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
211
312
|
custom?: Record<string, unknown> | undefined;
|
|
212
|
-
head?: "
|
|
213
|
-
tail?: "
|
|
313
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
314
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
315
|
+
dashes?: number[] | undefined;
|
|
316
|
+
interiorColor?: string | undefined;
|
|
214
317
|
} | {
|
|
215
318
|
id: string;
|
|
216
319
|
page: number;
|
|
@@ -225,17 +328,22 @@ export declare function useAnnotations(): {
|
|
|
225
328
|
createdAt: string;
|
|
226
329
|
modifiedAt: string;
|
|
227
330
|
source: "session" | "pdf";
|
|
228
|
-
type: "polyline" | "polygon";
|
|
229
331
|
vertices: {
|
|
230
332
|
x: number;
|
|
231
333
|
y: number;
|
|
232
334
|
}[];
|
|
233
335
|
width: number;
|
|
336
|
+
type: "polygon";
|
|
234
337
|
author?: string | undefined;
|
|
235
338
|
contents?: string | undefined;
|
|
236
339
|
inReplyTo?: string | undefined;
|
|
237
340
|
locked?: boolean | undefined;
|
|
341
|
+
subject?: string | undefined;
|
|
342
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
238
343
|
custom?: Record<string, unknown> | undefined;
|
|
344
|
+
head?: undefined;
|
|
345
|
+
tail?: undefined;
|
|
346
|
+
dashes?: number[] | undefined;
|
|
239
347
|
interiorColor?: string | undefined;
|
|
240
348
|
} | {
|
|
241
349
|
id: string;
|
|
@@ -261,6 +369,82 @@ export declare function useAnnotations(): {
|
|
|
261
369
|
contents?: string | undefined;
|
|
262
370
|
inReplyTo?: string | undefined;
|
|
263
371
|
locked?: boolean | undefined;
|
|
372
|
+
subject?: string | undefined;
|
|
373
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
374
|
+
custom?: Record<string, unknown> | undefined;
|
|
375
|
+
pressure?: number[][] | undefined;
|
|
376
|
+
dashes?: number[] | undefined;
|
|
377
|
+
} | {
|
|
378
|
+
id: string;
|
|
379
|
+
page: number;
|
|
380
|
+
rect: {
|
|
381
|
+
x: number;
|
|
382
|
+
y: number;
|
|
383
|
+
width: number;
|
|
384
|
+
height: number;
|
|
385
|
+
};
|
|
386
|
+
color: string;
|
|
387
|
+
opacity: number;
|
|
388
|
+
createdAt: string;
|
|
389
|
+
modifiedAt: string;
|
|
390
|
+
source: "session" | "pdf";
|
|
391
|
+
type: "stamp";
|
|
392
|
+
imagedata: string;
|
|
393
|
+
author?: string | undefined;
|
|
394
|
+
contents?: string | undefined;
|
|
395
|
+
inReplyTo?: string | undefined;
|
|
396
|
+
locked?: boolean | undefined;
|
|
397
|
+
subject?: string | undefined;
|
|
398
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
399
|
+
custom?: Record<string, unknown> | undefined;
|
|
400
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
401
|
+
} | {
|
|
402
|
+
id: string;
|
|
403
|
+
page: number;
|
|
404
|
+
rect: {
|
|
405
|
+
x: number;
|
|
406
|
+
y: number;
|
|
407
|
+
width: number;
|
|
408
|
+
height: number;
|
|
409
|
+
};
|
|
410
|
+
color: string;
|
|
411
|
+
opacity: number;
|
|
412
|
+
createdAt: string;
|
|
413
|
+
modifiedAt: string;
|
|
414
|
+
source: "session" | "pdf";
|
|
415
|
+
type: "loupe";
|
|
416
|
+
magnification: number;
|
|
417
|
+
width: number;
|
|
418
|
+
author?: string | undefined;
|
|
419
|
+
contents?: string | undefined;
|
|
420
|
+
inReplyTo?: string | undefined;
|
|
421
|
+
locked?: boolean | undefined;
|
|
422
|
+
subject?: string | undefined;
|
|
423
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
424
|
+
custom?: Record<string, unknown> | undefined;
|
|
425
|
+
} | {
|
|
426
|
+
id: string;
|
|
427
|
+
page: number;
|
|
428
|
+
rect: {
|
|
429
|
+
x: number;
|
|
430
|
+
y: number;
|
|
431
|
+
width: number;
|
|
432
|
+
height: number;
|
|
433
|
+
};
|
|
434
|
+
color: string;
|
|
435
|
+
opacity: number;
|
|
436
|
+
createdAt: string;
|
|
437
|
+
modifiedAt: string;
|
|
438
|
+
source: "session" | "pdf";
|
|
439
|
+
type: "mask";
|
|
440
|
+
shape: "rect" | "ellipse";
|
|
441
|
+
dim: number;
|
|
442
|
+
author?: string | undefined;
|
|
443
|
+
contents?: string | undefined;
|
|
444
|
+
inReplyTo?: string | undefined;
|
|
445
|
+
locked?: boolean | undefined;
|
|
446
|
+
subject?: string | undefined;
|
|
447
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
264
448
|
custom?: Record<string, unknown> | undefined;
|
|
265
449
|
} | {
|
|
266
450
|
id: string;
|
|
@@ -283,6 +467,8 @@ export declare function useAnnotations(): {
|
|
|
283
467
|
contents?: string | undefined;
|
|
284
468
|
inReplyTo?: string | undefined;
|
|
285
469
|
locked?: boolean | undefined;
|
|
470
|
+
subject?: string | undefined;
|
|
471
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
286
472
|
custom?: Record<string, unknown> | undefined;
|
|
287
473
|
quads?: {
|
|
288
474
|
p1: {
|
|
@@ -311,7 +497,7 @@ export declare function useAnnotations(): {
|
|
|
311
497
|
} | undefined;
|
|
312
498
|
overlayText?: string | undefined;
|
|
313
499
|
} | undefined;
|
|
314
|
-
update: (id: string, patch:
|
|
500
|
+
update: (id: string, patch: AnnotationPatch) => {
|
|
315
501
|
id: string;
|
|
316
502
|
page: number;
|
|
317
503
|
rect: {
|
|
@@ -348,6 +534,8 @@ export declare function useAnnotations(): {
|
|
|
348
534
|
contents?: string | undefined;
|
|
349
535
|
inReplyTo?: string | undefined;
|
|
350
536
|
locked?: boolean | undefined;
|
|
537
|
+
subject?: string | undefined;
|
|
538
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
351
539
|
custom?: Record<string, unknown> | undefined;
|
|
352
540
|
} | {
|
|
353
541
|
id: string;
|
|
@@ -364,11 +552,13 @@ export declare function useAnnotations(): {
|
|
|
364
552
|
modifiedAt: string;
|
|
365
553
|
source: "session" | "pdf";
|
|
366
554
|
type: "text";
|
|
367
|
-
icon: "
|
|
555
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
368
556
|
author?: string | undefined;
|
|
369
557
|
contents?: string | undefined;
|
|
370
558
|
inReplyTo?: string | undefined;
|
|
371
559
|
locked?: boolean | undefined;
|
|
560
|
+
subject?: string | undefined;
|
|
561
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
372
562
|
custom?: Record<string, unknown> | undefined;
|
|
373
563
|
} | {
|
|
374
564
|
id: string;
|
|
@@ -379,24 +569,73 @@ export declare function useAnnotations(): {
|
|
|
379
569
|
width: number;
|
|
380
570
|
height: number;
|
|
381
571
|
};
|
|
382
|
-
color: string;
|
|
383
572
|
opacity: number;
|
|
384
573
|
createdAt: string;
|
|
385
574
|
modifiedAt: string;
|
|
386
575
|
source: "session" | "pdf";
|
|
387
576
|
type: "freetext";
|
|
388
577
|
contents: string;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
578
|
+
width: number;
|
|
579
|
+
defaultStyle: {
|
|
580
|
+
fontFamily: string;
|
|
581
|
+
fontSize: number;
|
|
582
|
+
color: string;
|
|
583
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
584
|
+
fontWeight?: "bold" | undefined;
|
|
585
|
+
fontStyle?: "italic" | undefined;
|
|
586
|
+
textDecoration?: "underline" | undefined;
|
|
587
|
+
align?: undefined;
|
|
588
|
+
};
|
|
392
589
|
author?: string | undefined;
|
|
393
590
|
inReplyTo?: string | undefined;
|
|
394
591
|
locked?: boolean | undefined;
|
|
592
|
+
subject?: string | undefined;
|
|
593
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
395
594
|
custom?: Record<string, unknown> | undefined;
|
|
595
|
+
color?: string | undefined;
|
|
596
|
+
borderColor?: string | undefined;
|
|
597
|
+
dashes?: number[] | undefined;
|
|
598
|
+
cornerRadius?: number | undefined;
|
|
599
|
+
fringe?: {
|
|
600
|
+
left: number;
|
|
601
|
+
top: number;
|
|
602
|
+
right: number;
|
|
603
|
+
bottom: number;
|
|
604
|
+
} | undefined;
|
|
396
605
|
callout?: {
|
|
397
606
|
x: number;
|
|
398
607
|
y: number;
|
|
399
608
|
}[] | undefined;
|
|
609
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
610
|
+
fontFamily?: undefined;
|
|
611
|
+
fontSize?: undefined;
|
|
612
|
+
align?: undefined;
|
|
613
|
+
} | {
|
|
614
|
+
id: string;
|
|
615
|
+
page: number;
|
|
616
|
+
rect: {
|
|
617
|
+
x: number;
|
|
618
|
+
y: number;
|
|
619
|
+
width: number;
|
|
620
|
+
height: number;
|
|
621
|
+
};
|
|
622
|
+
color: string;
|
|
623
|
+
opacity: number;
|
|
624
|
+
createdAt: string;
|
|
625
|
+
modifiedAt: string;
|
|
626
|
+
source: "session" | "pdf";
|
|
627
|
+
width: number;
|
|
628
|
+
type: "square";
|
|
629
|
+
author?: string | undefined;
|
|
630
|
+
contents?: string | undefined;
|
|
631
|
+
inReplyTo?: string | undefined;
|
|
632
|
+
locked?: boolean | undefined;
|
|
633
|
+
subject?: string | undefined;
|
|
634
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
635
|
+
custom?: Record<string, unknown> | undefined;
|
|
636
|
+
cornerRadius?: number | undefined;
|
|
637
|
+
dashes?: number[] | undefined;
|
|
638
|
+
interiorColor?: string | undefined;
|
|
400
639
|
} | {
|
|
401
640
|
id: string;
|
|
402
641
|
page: number;
|
|
@@ -411,13 +650,17 @@ export declare function useAnnotations(): {
|
|
|
411
650
|
createdAt: string;
|
|
412
651
|
modifiedAt: string;
|
|
413
652
|
source: "session" | "pdf";
|
|
414
|
-
type: "square" | "circle";
|
|
415
653
|
width: number;
|
|
654
|
+
type: "circle";
|
|
416
655
|
author?: string | undefined;
|
|
417
656
|
contents?: string | undefined;
|
|
418
657
|
inReplyTo?: string | undefined;
|
|
419
658
|
locked?: boolean | undefined;
|
|
659
|
+
subject?: string | undefined;
|
|
660
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
420
661
|
custom?: Record<string, unknown> | undefined;
|
|
662
|
+
cornerRadius?: undefined;
|
|
663
|
+
dashes?: number[] | undefined;
|
|
421
664
|
interiorColor?: string | undefined;
|
|
422
665
|
} | {
|
|
423
666
|
id: string;
|
|
@@ -447,9 +690,43 @@ export declare function useAnnotations(): {
|
|
|
447
690
|
contents?: string | undefined;
|
|
448
691
|
inReplyTo?: string | undefined;
|
|
449
692
|
locked?: boolean | undefined;
|
|
693
|
+
subject?: string | undefined;
|
|
694
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
695
|
+
custom?: Record<string, unknown> | undefined;
|
|
696
|
+
dashes?: number[] | undefined;
|
|
697
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
698
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
699
|
+
} | {
|
|
700
|
+
id: string;
|
|
701
|
+
page: number;
|
|
702
|
+
rect: {
|
|
703
|
+
x: number;
|
|
704
|
+
y: number;
|
|
705
|
+
width: number;
|
|
706
|
+
height: number;
|
|
707
|
+
};
|
|
708
|
+
color: string;
|
|
709
|
+
opacity: number;
|
|
710
|
+
createdAt: string;
|
|
711
|
+
modifiedAt: string;
|
|
712
|
+
source: "session" | "pdf";
|
|
713
|
+
vertices: {
|
|
714
|
+
x: number;
|
|
715
|
+
y: number;
|
|
716
|
+
}[];
|
|
717
|
+
width: number;
|
|
718
|
+
type: "polyline";
|
|
719
|
+
author?: string | undefined;
|
|
720
|
+
contents?: string | undefined;
|
|
721
|
+
inReplyTo?: string | undefined;
|
|
722
|
+
locked?: boolean | undefined;
|
|
723
|
+
subject?: string | undefined;
|
|
724
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
450
725
|
custom?: Record<string, unknown> | undefined;
|
|
451
|
-
head?: "
|
|
452
|
-
tail?: "
|
|
726
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
727
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
728
|
+
dashes?: number[] | undefined;
|
|
729
|
+
interiorColor?: string | undefined;
|
|
453
730
|
} | {
|
|
454
731
|
id: string;
|
|
455
732
|
page: number;
|
|
@@ -464,17 +741,22 @@ export declare function useAnnotations(): {
|
|
|
464
741
|
createdAt: string;
|
|
465
742
|
modifiedAt: string;
|
|
466
743
|
source: "session" | "pdf";
|
|
467
|
-
type: "polyline" | "polygon";
|
|
468
744
|
vertices: {
|
|
469
745
|
x: number;
|
|
470
746
|
y: number;
|
|
471
747
|
}[];
|
|
472
748
|
width: number;
|
|
749
|
+
type: "polygon";
|
|
473
750
|
author?: string | undefined;
|
|
474
751
|
contents?: string | undefined;
|
|
475
752
|
inReplyTo?: string | undefined;
|
|
476
753
|
locked?: boolean | undefined;
|
|
754
|
+
subject?: string | undefined;
|
|
755
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
477
756
|
custom?: Record<string, unknown> | undefined;
|
|
757
|
+
head?: undefined;
|
|
758
|
+
tail?: undefined;
|
|
759
|
+
dashes?: number[] | undefined;
|
|
478
760
|
interiorColor?: string | undefined;
|
|
479
761
|
} | {
|
|
480
762
|
id: string;
|
|
@@ -500,6 +782,82 @@ export declare function useAnnotations(): {
|
|
|
500
782
|
contents?: string | undefined;
|
|
501
783
|
inReplyTo?: string | undefined;
|
|
502
784
|
locked?: boolean | undefined;
|
|
785
|
+
subject?: string | undefined;
|
|
786
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
787
|
+
custom?: Record<string, unknown> | undefined;
|
|
788
|
+
pressure?: number[][] | undefined;
|
|
789
|
+
dashes?: number[] | undefined;
|
|
790
|
+
} | {
|
|
791
|
+
id: string;
|
|
792
|
+
page: number;
|
|
793
|
+
rect: {
|
|
794
|
+
x: number;
|
|
795
|
+
y: number;
|
|
796
|
+
width: number;
|
|
797
|
+
height: number;
|
|
798
|
+
};
|
|
799
|
+
color: string;
|
|
800
|
+
opacity: number;
|
|
801
|
+
createdAt: string;
|
|
802
|
+
modifiedAt: string;
|
|
803
|
+
source: "session" | "pdf";
|
|
804
|
+
type: "stamp";
|
|
805
|
+
imagedata: string;
|
|
806
|
+
author?: string | undefined;
|
|
807
|
+
contents?: string | undefined;
|
|
808
|
+
inReplyTo?: string | undefined;
|
|
809
|
+
locked?: boolean | undefined;
|
|
810
|
+
subject?: string | undefined;
|
|
811
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
812
|
+
custom?: Record<string, unknown> | undefined;
|
|
813
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
814
|
+
} | {
|
|
815
|
+
id: string;
|
|
816
|
+
page: number;
|
|
817
|
+
rect: {
|
|
818
|
+
x: number;
|
|
819
|
+
y: number;
|
|
820
|
+
width: number;
|
|
821
|
+
height: number;
|
|
822
|
+
};
|
|
823
|
+
color: string;
|
|
824
|
+
opacity: number;
|
|
825
|
+
createdAt: string;
|
|
826
|
+
modifiedAt: string;
|
|
827
|
+
source: "session" | "pdf";
|
|
828
|
+
type: "loupe";
|
|
829
|
+
magnification: number;
|
|
830
|
+
width: number;
|
|
831
|
+
author?: string | undefined;
|
|
832
|
+
contents?: string | undefined;
|
|
833
|
+
inReplyTo?: string | undefined;
|
|
834
|
+
locked?: boolean | undefined;
|
|
835
|
+
subject?: string | undefined;
|
|
836
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
837
|
+
custom?: Record<string, unknown> | undefined;
|
|
838
|
+
} | {
|
|
839
|
+
id: string;
|
|
840
|
+
page: number;
|
|
841
|
+
rect: {
|
|
842
|
+
x: number;
|
|
843
|
+
y: number;
|
|
844
|
+
width: number;
|
|
845
|
+
height: number;
|
|
846
|
+
};
|
|
847
|
+
color: string;
|
|
848
|
+
opacity: number;
|
|
849
|
+
createdAt: string;
|
|
850
|
+
modifiedAt: string;
|
|
851
|
+
source: "session" | "pdf";
|
|
852
|
+
type: "mask";
|
|
853
|
+
shape: "rect" | "ellipse";
|
|
854
|
+
dim: number;
|
|
855
|
+
author?: string | undefined;
|
|
856
|
+
contents?: string | undefined;
|
|
857
|
+
inReplyTo?: string | undefined;
|
|
858
|
+
locked?: boolean | undefined;
|
|
859
|
+
subject?: string | undefined;
|
|
860
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
503
861
|
custom?: Record<string, unknown> | undefined;
|
|
504
862
|
} | {
|
|
505
863
|
id: string;
|
|
@@ -522,6 +880,8 @@ export declare function useAnnotations(): {
|
|
|
522
880
|
contents?: string | undefined;
|
|
523
881
|
inReplyTo?: string | undefined;
|
|
524
882
|
locked?: boolean | undefined;
|
|
883
|
+
subject?: string | undefined;
|
|
884
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
525
885
|
custom?: Record<string, unknown> | undefined;
|
|
526
886
|
quads?: {
|
|
527
887
|
p1: {
|
|
@@ -590,6 +950,8 @@ export declare function useAnnotations(): {
|
|
|
590
950
|
contents?: string | undefined;
|
|
591
951
|
inReplyTo?: string | undefined;
|
|
592
952
|
locked?: boolean | undefined;
|
|
953
|
+
subject?: string | undefined;
|
|
954
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
593
955
|
custom?: Record<string, unknown> | undefined;
|
|
594
956
|
} | {
|
|
595
957
|
id: string;
|
|
@@ -606,11 +968,13 @@ export declare function useAnnotations(): {
|
|
|
606
968
|
modifiedAt: string;
|
|
607
969
|
source: "session" | "pdf";
|
|
608
970
|
type: "text";
|
|
609
|
-
icon: "
|
|
971
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
610
972
|
author?: string | undefined;
|
|
611
973
|
contents?: string | undefined;
|
|
612
974
|
inReplyTo?: string | undefined;
|
|
613
975
|
locked?: boolean | undefined;
|
|
976
|
+
subject?: string | undefined;
|
|
977
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
614
978
|
custom?: Record<string, unknown> | undefined;
|
|
615
979
|
} | {
|
|
616
980
|
id: string;
|
|
@@ -621,24 +985,73 @@ export declare function useAnnotations(): {
|
|
|
621
985
|
width: number;
|
|
622
986
|
height: number;
|
|
623
987
|
};
|
|
624
|
-
color: string;
|
|
625
988
|
opacity: number;
|
|
626
989
|
createdAt: string;
|
|
627
990
|
modifiedAt: string;
|
|
628
991
|
source: "session" | "pdf";
|
|
629
992
|
type: "freetext";
|
|
630
993
|
contents: string;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
994
|
+
width: number;
|
|
995
|
+
defaultStyle: {
|
|
996
|
+
fontFamily: string;
|
|
997
|
+
fontSize: number;
|
|
998
|
+
color: string;
|
|
999
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
1000
|
+
fontWeight?: "bold" | undefined;
|
|
1001
|
+
fontStyle?: "italic" | undefined;
|
|
1002
|
+
textDecoration?: "underline" | undefined;
|
|
1003
|
+
align?: undefined;
|
|
1004
|
+
};
|
|
634
1005
|
author?: string | undefined;
|
|
635
1006
|
inReplyTo?: string | undefined;
|
|
636
1007
|
locked?: boolean | undefined;
|
|
1008
|
+
subject?: string | undefined;
|
|
1009
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
637
1010
|
custom?: Record<string, unknown> | undefined;
|
|
1011
|
+
color?: string | undefined;
|
|
1012
|
+
borderColor?: string | undefined;
|
|
1013
|
+
dashes?: number[] | undefined;
|
|
1014
|
+
cornerRadius?: number | undefined;
|
|
1015
|
+
fringe?: {
|
|
1016
|
+
left: number;
|
|
1017
|
+
top: number;
|
|
1018
|
+
right: number;
|
|
1019
|
+
bottom: number;
|
|
1020
|
+
} | undefined;
|
|
638
1021
|
callout?: {
|
|
639
1022
|
x: number;
|
|
640
1023
|
y: number;
|
|
641
1024
|
}[] | undefined;
|
|
1025
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1026
|
+
fontFamily?: undefined;
|
|
1027
|
+
fontSize?: undefined;
|
|
1028
|
+
align?: undefined;
|
|
1029
|
+
} | {
|
|
1030
|
+
id: string;
|
|
1031
|
+
page: number;
|
|
1032
|
+
rect: {
|
|
1033
|
+
x: number;
|
|
1034
|
+
y: number;
|
|
1035
|
+
width: number;
|
|
1036
|
+
height: number;
|
|
1037
|
+
};
|
|
1038
|
+
color: string;
|
|
1039
|
+
opacity: number;
|
|
1040
|
+
createdAt: string;
|
|
1041
|
+
modifiedAt: string;
|
|
1042
|
+
source: "session" | "pdf";
|
|
1043
|
+
width: number;
|
|
1044
|
+
type: "square";
|
|
1045
|
+
author?: string | undefined;
|
|
1046
|
+
contents?: string | undefined;
|
|
1047
|
+
inReplyTo?: string | undefined;
|
|
1048
|
+
locked?: boolean | undefined;
|
|
1049
|
+
subject?: string | undefined;
|
|
1050
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1051
|
+
custom?: Record<string, unknown> | undefined;
|
|
1052
|
+
cornerRadius?: number | undefined;
|
|
1053
|
+
dashes?: number[] | undefined;
|
|
1054
|
+
interiorColor?: string | undefined;
|
|
642
1055
|
} | {
|
|
643
1056
|
id: string;
|
|
644
1057
|
page: number;
|
|
@@ -653,13 +1066,17 @@ export declare function useAnnotations(): {
|
|
|
653
1066
|
createdAt: string;
|
|
654
1067
|
modifiedAt: string;
|
|
655
1068
|
source: "session" | "pdf";
|
|
656
|
-
type: "square" | "circle";
|
|
657
1069
|
width: number;
|
|
1070
|
+
type: "circle";
|
|
658
1071
|
author?: string | undefined;
|
|
659
1072
|
contents?: string | undefined;
|
|
660
1073
|
inReplyTo?: string | undefined;
|
|
661
1074
|
locked?: boolean | undefined;
|
|
1075
|
+
subject?: string | undefined;
|
|
1076
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
662
1077
|
custom?: Record<string, unknown> | undefined;
|
|
1078
|
+
cornerRadius?: undefined;
|
|
1079
|
+
dashes?: number[] | undefined;
|
|
663
1080
|
interiorColor?: string | undefined;
|
|
664
1081
|
} | {
|
|
665
1082
|
id: string;
|
|
@@ -689,9 +1106,12 @@ export declare function useAnnotations(): {
|
|
|
689
1106
|
contents?: string | undefined;
|
|
690
1107
|
inReplyTo?: string | undefined;
|
|
691
1108
|
locked?: boolean | undefined;
|
|
1109
|
+
subject?: string | undefined;
|
|
1110
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
692
1111
|
custom?: Record<string, unknown> | undefined;
|
|
693
|
-
|
|
694
|
-
|
|
1112
|
+
dashes?: number[] | undefined;
|
|
1113
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1114
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
695
1115
|
} | {
|
|
696
1116
|
id: string;
|
|
697
1117
|
page: number;
|
|
@@ -706,17 +1126,22 @@ export declare function useAnnotations(): {
|
|
|
706
1126
|
createdAt: string;
|
|
707
1127
|
modifiedAt: string;
|
|
708
1128
|
source: "session" | "pdf";
|
|
709
|
-
type: "polyline" | "polygon";
|
|
710
1129
|
vertices: {
|
|
711
1130
|
x: number;
|
|
712
1131
|
y: number;
|
|
713
1132
|
}[];
|
|
714
1133
|
width: number;
|
|
1134
|
+
type: "polyline";
|
|
715
1135
|
author?: string | undefined;
|
|
716
1136
|
contents?: string | undefined;
|
|
717
1137
|
inReplyTo?: string | undefined;
|
|
718
1138
|
locked?: boolean | undefined;
|
|
1139
|
+
subject?: string | undefined;
|
|
1140
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
719
1141
|
custom?: Record<string, unknown> | undefined;
|
|
1142
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1143
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1144
|
+
dashes?: number[] | undefined;
|
|
720
1145
|
interiorColor?: string | undefined;
|
|
721
1146
|
} | {
|
|
722
1147
|
id: string;
|
|
@@ -732,17 +1157,23 @@ export declare function useAnnotations(): {
|
|
|
732
1157
|
createdAt: string;
|
|
733
1158
|
modifiedAt: string;
|
|
734
1159
|
source: "session" | "pdf";
|
|
735
|
-
|
|
736
|
-
inklist: {
|
|
1160
|
+
vertices: {
|
|
737
1161
|
x: number;
|
|
738
1162
|
y: number;
|
|
739
|
-
}[]
|
|
1163
|
+
}[];
|
|
740
1164
|
width: number;
|
|
1165
|
+
type: "polygon";
|
|
741
1166
|
author?: string | undefined;
|
|
742
1167
|
contents?: string | undefined;
|
|
743
1168
|
inReplyTo?: string | undefined;
|
|
744
1169
|
locked?: boolean | undefined;
|
|
1170
|
+
subject?: string | undefined;
|
|
1171
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
745
1172
|
custom?: Record<string, unknown> | undefined;
|
|
1173
|
+
head?: undefined;
|
|
1174
|
+
tail?: undefined;
|
|
1175
|
+
dashes?: number[] | undefined;
|
|
1176
|
+
interiorColor?: string | undefined;
|
|
746
1177
|
} | {
|
|
747
1178
|
id: string;
|
|
748
1179
|
page: number;
|
|
@@ -757,13 +1188,116 @@ export declare function useAnnotations(): {
|
|
|
757
1188
|
createdAt: string;
|
|
758
1189
|
modifiedAt: string;
|
|
759
1190
|
source: "session" | "pdf";
|
|
760
|
-
type: "
|
|
761
|
-
|
|
762
|
-
|
|
1191
|
+
type: "ink";
|
|
1192
|
+
inklist: {
|
|
1193
|
+
x: number;
|
|
1194
|
+
y: number;
|
|
1195
|
+
}[][];
|
|
1196
|
+
width: number;
|
|
763
1197
|
author?: string | undefined;
|
|
764
1198
|
contents?: string | undefined;
|
|
765
1199
|
inReplyTo?: string | undefined;
|
|
766
1200
|
locked?: boolean | undefined;
|
|
1201
|
+
subject?: string | undefined;
|
|
1202
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1203
|
+
custom?: Record<string, unknown> | undefined;
|
|
1204
|
+
pressure?: number[][] | undefined;
|
|
1205
|
+
dashes?: number[] | undefined;
|
|
1206
|
+
} | {
|
|
1207
|
+
id: string;
|
|
1208
|
+
page: number;
|
|
1209
|
+
rect: {
|
|
1210
|
+
x: number;
|
|
1211
|
+
y: number;
|
|
1212
|
+
width: number;
|
|
1213
|
+
height: number;
|
|
1214
|
+
};
|
|
1215
|
+
color: string;
|
|
1216
|
+
opacity: number;
|
|
1217
|
+
createdAt: string;
|
|
1218
|
+
modifiedAt: string;
|
|
1219
|
+
source: "session" | "pdf";
|
|
1220
|
+
type: "stamp";
|
|
1221
|
+
imagedata: string;
|
|
1222
|
+
author?: string | undefined;
|
|
1223
|
+
contents?: string | undefined;
|
|
1224
|
+
inReplyTo?: string | undefined;
|
|
1225
|
+
locked?: boolean | undefined;
|
|
1226
|
+
subject?: string | undefined;
|
|
1227
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1228
|
+
custom?: Record<string, unknown> | undefined;
|
|
1229
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1230
|
+
} | {
|
|
1231
|
+
id: string;
|
|
1232
|
+
page: number;
|
|
1233
|
+
rect: {
|
|
1234
|
+
x: number;
|
|
1235
|
+
y: number;
|
|
1236
|
+
width: number;
|
|
1237
|
+
height: number;
|
|
1238
|
+
};
|
|
1239
|
+
color: string;
|
|
1240
|
+
opacity: number;
|
|
1241
|
+
createdAt: string;
|
|
1242
|
+
modifiedAt: string;
|
|
1243
|
+
source: "session" | "pdf";
|
|
1244
|
+
type: "loupe";
|
|
1245
|
+
magnification: number;
|
|
1246
|
+
width: number;
|
|
1247
|
+
author?: string | undefined;
|
|
1248
|
+
contents?: string | undefined;
|
|
1249
|
+
inReplyTo?: string | undefined;
|
|
1250
|
+
locked?: boolean | undefined;
|
|
1251
|
+
subject?: string | undefined;
|
|
1252
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1253
|
+
custom?: Record<string, unknown> | undefined;
|
|
1254
|
+
} | {
|
|
1255
|
+
id: string;
|
|
1256
|
+
page: number;
|
|
1257
|
+
rect: {
|
|
1258
|
+
x: number;
|
|
1259
|
+
y: number;
|
|
1260
|
+
width: number;
|
|
1261
|
+
height: number;
|
|
1262
|
+
};
|
|
1263
|
+
color: string;
|
|
1264
|
+
opacity: number;
|
|
1265
|
+
createdAt: string;
|
|
1266
|
+
modifiedAt: string;
|
|
1267
|
+
source: "session" | "pdf";
|
|
1268
|
+
type: "mask";
|
|
1269
|
+
shape: "rect" | "ellipse";
|
|
1270
|
+
dim: number;
|
|
1271
|
+
author?: string | undefined;
|
|
1272
|
+
contents?: string | undefined;
|
|
1273
|
+
inReplyTo?: string | undefined;
|
|
1274
|
+
locked?: boolean | undefined;
|
|
1275
|
+
subject?: string | undefined;
|
|
1276
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1277
|
+
custom?: Record<string, unknown> | undefined;
|
|
1278
|
+
} | {
|
|
1279
|
+
id: string;
|
|
1280
|
+
page: number;
|
|
1281
|
+
rect: {
|
|
1282
|
+
x: number;
|
|
1283
|
+
y: number;
|
|
1284
|
+
width: number;
|
|
1285
|
+
height: number;
|
|
1286
|
+
};
|
|
1287
|
+
color: string;
|
|
1288
|
+
opacity: number;
|
|
1289
|
+
createdAt: string;
|
|
1290
|
+
modifiedAt: string;
|
|
1291
|
+
source: "session" | "pdf";
|
|
1292
|
+
type: "redact";
|
|
1293
|
+
origin: "user" | "suggested";
|
|
1294
|
+
interiorColor: string;
|
|
1295
|
+
author?: string | undefined;
|
|
1296
|
+
contents?: string | undefined;
|
|
1297
|
+
inReplyTo?: string | undefined;
|
|
1298
|
+
locked?: boolean | undefined;
|
|
1299
|
+
subject?: string | undefined;
|
|
1300
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
767
1301
|
custom?: Record<string, unknown> | undefined;
|
|
768
1302
|
quads?: {
|
|
769
1303
|
p1: {
|
|
@@ -830,6 +1364,8 @@ export declare function useAnnotations(): {
|
|
|
830
1364
|
contents?: string | undefined;
|
|
831
1365
|
inReplyTo?: string | undefined;
|
|
832
1366
|
locked?: boolean | undefined;
|
|
1367
|
+
subject?: string | undefined;
|
|
1368
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
833
1369
|
custom?: Record<string, unknown> | undefined;
|
|
834
1370
|
} | {
|
|
835
1371
|
id: string;
|
|
@@ -846,11 +1382,13 @@ export declare function useAnnotations(): {
|
|
|
846
1382
|
modifiedAt: string;
|
|
847
1383
|
source: "session" | "pdf";
|
|
848
1384
|
type: "text";
|
|
849
|
-
icon: "
|
|
1385
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
850
1386
|
author?: string | undefined;
|
|
851
1387
|
contents?: string | undefined;
|
|
852
1388
|
inReplyTo?: string | undefined;
|
|
853
1389
|
locked?: boolean | undefined;
|
|
1390
|
+
subject?: string | undefined;
|
|
1391
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
854
1392
|
custom?: Record<string, unknown> | undefined;
|
|
855
1393
|
} | {
|
|
856
1394
|
id: string;
|
|
@@ -861,24 +1399,73 @@ export declare function useAnnotations(): {
|
|
|
861
1399
|
width: number;
|
|
862
1400
|
height: number;
|
|
863
1401
|
};
|
|
864
|
-
color: string;
|
|
865
1402
|
opacity: number;
|
|
866
1403
|
createdAt: string;
|
|
867
1404
|
modifiedAt: string;
|
|
868
1405
|
source: "session" | "pdf";
|
|
869
1406
|
type: "freetext";
|
|
870
1407
|
contents: string;
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
1408
|
+
width: number;
|
|
1409
|
+
defaultStyle: {
|
|
1410
|
+
fontFamily: string;
|
|
1411
|
+
fontSize: number;
|
|
1412
|
+
color: string;
|
|
1413
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
1414
|
+
fontWeight?: "bold" | undefined;
|
|
1415
|
+
fontStyle?: "italic" | undefined;
|
|
1416
|
+
textDecoration?: "underline" | undefined;
|
|
1417
|
+
align?: undefined;
|
|
1418
|
+
};
|
|
874
1419
|
author?: string | undefined;
|
|
875
1420
|
inReplyTo?: string | undefined;
|
|
876
1421
|
locked?: boolean | undefined;
|
|
1422
|
+
subject?: string | undefined;
|
|
1423
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
877
1424
|
custom?: Record<string, unknown> | undefined;
|
|
1425
|
+
color?: string | undefined;
|
|
1426
|
+
borderColor?: string | undefined;
|
|
1427
|
+
dashes?: number[] | undefined;
|
|
1428
|
+
cornerRadius?: number | undefined;
|
|
1429
|
+
fringe?: {
|
|
1430
|
+
left: number;
|
|
1431
|
+
top: number;
|
|
1432
|
+
right: number;
|
|
1433
|
+
bottom: number;
|
|
1434
|
+
} | undefined;
|
|
878
1435
|
callout?: {
|
|
879
1436
|
x: number;
|
|
880
1437
|
y: number;
|
|
881
1438
|
}[] | undefined;
|
|
1439
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1440
|
+
fontFamily?: undefined;
|
|
1441
|
+
fontSize?: undefined;
|
|
1442
|
+
align?: undefined;
|
|
1443
|
+
} | {
|
|
1444
|
+
id: string;
|
|
1445
|
+
page: number;
|
|
1446
|
+
rect: {
|
|
1447
|
+
x: number;
|
|
1448
|
+
y: number;
|
|
1449
|
+
width: number;
|
|
1450
|
+
height: number;
|
|
1451
|
+
};
|
|
1452
|
+
color: string;
|
|
1453
|
+
opacity: number;
|
|
1454
|
+
createdAt: string;
|
|
1455
|
+
modifiedAt: string;
|
|
1456
|
+
source: "session" | "pdf";
|
|
1457
|
+
width: number;
|
|
1458
|
+
type: "square";
|
|
1459
|
+
author?: string | undefined;
|
|
1460
|
+
contents?: string | undefined;
|
|
1461
|
+
inReplyTo?: string | undefined;
|
|
1462
|
+
locked?: boolean | undefined;
|
|
1463
|
+
subject?: string | undefined;
|
|
1464
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1465
|
+
custom?: Record<string, unknown> | undefined;
|
|
1466
|
+
cornerRadius?: number | undefined;
|
|
1467
|
+
dashes?: number[] | undefined;
|
|
1468
|
+
interiorColor?: string | undefined;
|
|
882
1469
|
} | {
|
|
883
1470
|
id: string;
|
|
884
1471
|
page: number;
|
|
@@ -893,13 +1480,17 @@ export declare function useAnnotations(): {
|
|
|
893
1480
|
createdAt: string;
|
|
894
1481
|
modifiedAt: string;
|
|
895
1482
|
source: "session" | "pdf";
|
|
896
|
-
type: "square" | "circle";
|
|
897
1483
|
width: number;
|
|
1484
|
+
type: "circle";
|
|
898
1485
|
author?: string | undefined;
|
|
899
1486
|
contents?: string | undefined;
|
|
900
1487
|
inReplyTo?: string | undefined;
|
|
901
1488
|
locked?: boolean | undefined;
|
|
1489
|
+
subject?: string | undefined;
|
|
1490
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
902
1491
|
custom?: Record<string, unknown> | undefined;
|
|
1492
|
+
cornerRadius?: undefined;
|
|
1493
|
+
dashes?: number[] | undefined;
|
|
903
1494
|
interiorColor?: string | undefined;
|
|
904
1495
|
} | {
|
|
905
1496
|
id: string;
|
|
@@ -929,9 +1520,12 @@ export declare function useAnnotations(): {
|
|
|
929
1520
|
contents?: string | undefined;
|
|
930
1521
|
inReplyTo?: string | undefined;
|
|
931
1522
|
locked?: boolean | undefined;
|
|
1523
|
+
subject?: string | undefined;
|
|
1524
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
932
1525
|
custom?: Record<string, unknown> | undefined;
|
|
933
|
-
|
|
934
|
-
|
|
1526
|
+
dashes?: number[] | undefined;
|
|
1527
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1528
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
935
1529
|
} | {
|
|
936
1530
|
id: string;
|
|
937
1531
|
page: number;
|
|
@@ -946,17 +1540,53 @@ export declare function useAnnotations(): {
|
|
|
946
1540
|
createdAt: string;
|
|
947
1541
|
modifiedAt: string;
|
|
948
1542
|
source: "session" | "pdf";
|
|
949
|
-
type: "polyline" | "polygon";
|
|
950
1543
|
vertices: {
|
|
951
1544
|
x: number;
|
|
952
1545
|
y: number;
|
|
953
1546
|
}[];
|
|
954
1547
|
width: number;
|
|
1548
|
+
type: "polyline";
|
|
955
1549
|
author?: string | undefined;
|
|
956
1550
|
contents?: string | undefined;
|
|
957
1551
|
inReplyTo?: string | undefined;
|
|
958
1552
|
locked?: boolean | undefined;
|
|
1553
|
+
subject?: string | undefined;
|
|
1554
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
959
1555
|
custom?: Record<string, unknown> | undefined;
|
|
1556
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1557
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1558
|
+
dashes?: number[] | undefined;
|
|
1559
|
+
interiorColor?: string | undefined;
|
|
1560
|
+
} | {
|
|
1561
|
+
id: string;
|
|
1562
|
+
page: number;
|
|
1563
|
+
rect: {
|
|
1564
|
+
x: number;
|
|
1565
|
+
y: number;
|
|
1566
|
+
width: number;
|
|
1567
|
+
height: number;
|
|
1568
|
+
};
|
|
1569
|
+
color: string;
|
|
1570
|
+
opacity: number;
|
|
1571
|
+
createdAt: string;
|
|
1572
|
+
modifiedAt: string;
|
|
1573
|
+
source: "session" | "pdf";
|
|
1574
|
+
vertices: {
|
|
1575
|
+
x: number;
|
|
1576
|
+
y: number;
|
|
1577
|
+
}[];
|
|
1578
|
+
width: number;
|
|
1579
|
+
type: "polygon";
|
|
1580
|
+
author?: string | undefined;
|
|
1581
|
+
contents?: string | undefined;
|
|
1582
|
+
inReplyTo?: string | undefined;
|
|
1583
|
+
locked?: boolean | undefined;
|
|
1584
|
+
subject?: string | undefined;
|
|
1585
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1586
|
+
custom?: Record<string, unknown> | undefined;
|
|
1587
|
+
head?: undefined;
|
|
1588
|
+
tail?: undefined;
|
|
1589
|
+
dashes?: number[] | undefined;
|
|
960
1590
|
interiorColor?: string | undefined;
|
|
961
1591
|
} | {
|
|
962
1592
|
id: string;
|
|
@@ -982,6 +1612,82 @@ export declare function useAnnotations(): {
|
|
|
982
1612
|
contents?: string | undefined;
|
|
983
1613
|
inReplyTo?: string | undefined;
|
|
984
1614
|
locked?: boolean | undefined;
|
|
1615
|
+
subject?: string | undefined;
|
|
1616
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1617
|
+
custom?: Record<string, unknown> | undefined;
|
|
1618
|
+
pressure?: number[][] | undefined;
|
|
1619
|
+
dashes?: number[] | undefined;
|
|
1620
|
+
} | {
|
|
1621
|
+
id: string;
|
|
1622
|
+
page: number;
|
|
1623
|
+
rect: {
|
|
1624
|
+
x: number;
|
|
1625
|
+
y: number;
|
|
1626
|
+
width: number;
|
|
1627
|
+
height: number;
|
|
1628
|
+
};
|
|
1629
|
+
color: string;
|
|
1630
|
+
opacity: number;
|
|
1631
|
+
createdAt: string;
|
|
1632
|
+
modifiedAt: string;
|
|
1633
|
+
source: "session" | "pdf";
|
|
1634
|
+
type: "stamp";
|
|
1635
|
+
imagedata: string;
|
|
1636
|
+
author?: string | undefined;
|
|
1637
|
+
contents?: string | undefined;
|
|
1638
|
+
inReplyTo?: string | undefined;
|
|
1639
|
+
locked?: boolean | undefined;
|
|
1640
|
+
subject?: string | undefined;
|
|
1641
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1642
|
+
custom?: Record<string, unknown> | undefined;
|
|
1643
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1644
|
+
} | {
|
|
1645
|
+
id: string;
|
|
1646
|
+
page: number;
|
|
1647
|
+
rect: {
|
|
1648
|
+
x: number;
|
|
1649
|
+
y: number;
|
|
1650
|
+
width: number;
|
|
1651
|
+
height: number;
|
|
1652
|
+
};
|
|
1653
|
+
color: string;
|
|
1654
|
+
opacity: number;
|
|
1655
|
+
createdAt: string;
|
|
1656
|
+
modifiedAt: string;
|
|
1657
|
+
source: "session" | "pdf";
|
|
1658
|
+
type: "loupe";
|
|
1659
|
+
magnification: number;
|
|
1660
|
+
width: number;
|
|
1661
|
+
author?: string | undefined;
|
|
1662
|
+
contents?: string | undefined;
|
|
1663
|
+
inReplyTo?: string | undefined;
|
|
1664
|
+
locked?: boolean | undefined;
|
|
1665
|
+
subject?: string | undefined;
|
|
1666
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1667
|
+
custom?: Record<string, unknown> | undefined;
|
|
1668
|
+
} | {
|
|
1669
|
+
id: string;
|
|
1670
|
+
page: number;
|
|
1671
|
+
rect: {
|
|
1672
|
+
x: number;
|
|
1673
|
+
y: number;
|
|
1674
|
+
width: number;
|
|
1675
|
+
height: number;
|
|
1676
|
+
};
|
|
1677
|
+
color: string;
|
|
1678
|
+
opacity: number;
|
|
1679
|
+
createdAt: string;
|
|
1680
|
+
modifiedAt: string;
|
|
1681
|
+
source: "session" | "pdf";
|
|
1682
|
+
type: "mask";
|
|
1683
|
+
shape: "rect" | "ellipse";
|
|
1684
|
+
dim: number;
|
|
1685
|
+
author?: string | undefined;
|
|
1686
|
+
contents?: string | undefined;
|
|
1687
|
+
inReplyTo?: string | undefined;
|
|
1688
|
+
locked?: boolean | undefined;
|
|
1689
|
+
subject?: string | undefined;
|
|
1690
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
985
1691
|
custom?: Record<string, unknown> | undefined;
|
|
986
1692
|
} | {
|
|
987
1693
|
id: string;
|
|
@@ -1004,6 +1710,8 @@ export declare function useAnnotations(): {
|
|
|
1004
1710
|
contents?: string | undefined;
|
|
1005
1711
|
inReplyTo?: string | undefined;
|
|
1006
1712
|
locked?: boolean | undefined;
|
|
1713
|
+
subject?: string | undefined;
|
|
1714
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1007
1715
|
custom?: Record<string, unknown> | undefined;
|
|
1008
1716
|
quads?: {
|
|
1009
1717
|
p1: {
|
|
@@ -1070,6 +1778,8 @@ export declare function useAnnotations(): {
|
|
|
1070
1778
|
contents?: string | undefined;
|
|
1071
1779
|
inReplyTo?: string | undefined;
|
|
1072
1780
|
locked?: boolean | undefined;
|
|
1781
|
+
subject?: string | undefined;
|
|
1782
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1073
1783
|
custom?: Record<string, unknown> | undefined;
|
|
1074
1784
|
} | {
|
|
1075
1785
|
id: string;
|
|
@@ -1086,11 +1796,13 @@ export declare function useAnnotations(): {
|
|
|
1086
1796
|
modifiedAt: string;
|
|
1087
1797
|
source: "session" | "pdf";
|
|
1088
1798
|
type: "text";
|
|
1089
|
-
icon: "
|
|
1799
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
1090
1800
|
author?: string | undefined;
|
|
1091
1801
|
contents?: string | undefined;
|
|
1092
1802
|
inReplyTo?: string | undefined;
|
|
1093
1803
|
locked?: boolean | undefined;
|
|
1804
|
+
subject?: string | undefined;
|
|
1805
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1094
1806
|
custom?: Record<string, unknown> | undefined;
|
|
1095
1807
|
} | {
|
|
1096
1808
|
id: string;
|
|
@@ -1101,24 +1813,73 @@ export declare function useAnnotations(): {
|
|
|
1101
1813
|
width: number;
|
|
1102
1814
|
height: number;
|
|
1103
1815
|
};
|
|
1104
|
-
color: string;
|
|
1105
1816
|
opacity: number;
|
|
1106
1817
|
createdAt: string;
|
|
1107
1818
|
modifiedAt: string;
|
|
1108
1819
|
source: "session" | "pdf";
|
|
1109
1820
|
type: "freetext";
|
|
1110
1821
|
contents: string;
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1822
|
+
width: number;
|
|
1823
|
+
defaultStyle: {
|
|
1824
|
+
fontFamily: string;
|
|
1825
|
+
fontSize: number;
|
|
1826
|
+
color: string;
|
|
1827
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
1828
|
+
fontWeight?: "bold" | undefined;
|
|
1829
|
+
fontStyle?: "italic" | undefined;
|
|
1830
|
+
textDecoration?: "underline" | undefined;
|
|
1831
|
+
align?: undefined;
|
|
1832
|
+
};
|
|
1114
1833
|
author?: string | undefined;
|
|
1115
1834
|
inReplyTo?: string | undefined;
|
|
1116
1835
|
locked?: boolean | undefined;
|
|
1836
|
+
subject?: string | undefined;
|
|
1837
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1117
1838
|
custom?: Record<string, unknown> | undefined;
|
|
1839
|
+
color?: string | undefined;
|
|
1840
|
+
borderColor?: string | undefined;
|
|
1841
|
+
dashes?: number[] | undefined;
|
|
1842
|
+
cornerRadius?: number | undefined;
|
|
1843
|
+
fringe?: {
|
|
1844
|
+
left: number;
|
|
1845
|
+
top: number;
|
|
1846
|
+
right: number;
|
|
1847
|
+
bottom: number;
|
|
1848
|
+
} | undefined;
|
|
1118
1849
|
callout?: {
|
|
1119
1850
|
x: number;
|
|
1120
1851
|
y: number;
|
|
1121
1852
|
}[] | undefined;
|
|
1853
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1854
|
+
fontFamily?: undefined;
|
|
1855
|
+
fontSize?: undefined;
|
|
1856
|
+
align?: undefined;
|
|
1857
|
+
} | {
|
|
1858
|
+
id: string;
|
|
1859
|
+
page: number;
|
|
1860
|
+
rect: {
|
|
1861
|
+
x: number;
|
|
1862
|
+
y: number;
|
|
1863
|
+
width: number;
|
|
1864
|
+
height: number;
|
|
1865
|
+
};
|
|
1866
|
+
color: string;
|
|
1867
|
+
opacity: number;
|
|
1868
|
+
createdAt: string;
|
|
1869
|
+
modifiedAt: string;
|
|
1870
|
+
source: "session" | "pdf";
|
|
1871
|
+
width: number;
|
|
1872
|
+
type: "square";
|
|
1873
|
+
author?: string | undefined;
|
|
1874
|
+
contents?: string | undefined;
|
|
1875
|
+
inReplyTo?: string | undefined;
|
|
1876
|
+
locked?: boolean | undefined;
|
|
1877
|
+
subject?: string | undefined;
|
|
1878
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1879
|
+
custom?: Record<string, unknown> | undefined;
|
|
1880
|
+
cornerRadius?: number | undefined;
|
|
1881
|
+
dashes?: number[] | undefined;
|
|
1882
|
+
interiorColor?: string | undefined;
|
|
1122
1883
|
} | {
|
|
1123
1884
|
id: string;
|
|
1124
1885
|
page: number;
|
|
@@ -1133,13 +1894,17 @@ export declare function useAnnotations(): {
|
|
|
1133
1894
|
createdAt: string;
|
|
1134
1895
|
modifiedAt: string;
|
|
1135
1896
|
source: "session" | "pdf";
|
|
1136
|
-
type: "square" | "circle";
|
|
1137
1897
|
width: number;
|
|
1898
|
+
type: "circle";
|
|
1138
1899
|
author?: string | undefined;
|
|
1139
1900
|
contents?: string | undefined;
|
|
1140
1901
|
inReplyTo?: string | undefined;
|
|
1141
1902
|
locked?: boolean | undefined;
|
|
1903
|
+
subject?: string | undefined;
|
|
1904
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1142
1905
|
custom?: Record<string, unknown> | undefined;
|
|
1906
|
+
cornerRadius?: undefined;
|
|
1907
|
+
dashes?: number[] | undefined;
|
|
1143
1908
|
interiorColor?: string | undefined;
|
|
1144
1909
|
} | {
|
|
1145
1910
|
id: string;
|
|
@@ -1169,9 +1934,12 @@ export declare function useAnnotations(): {
|
|
|
1169
1934
|
contents?: string | undefined;
|
|
1170
1935
|
inReplyTo?: string | undefined;
|
|
1171
1936
|
locked?: boolean | undefined;
|
|
1937
|
+
subject?: string | undefined;
|
|
1938
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1172
1939
|
custom?: Record<string, unknown> | undefined;
|
|
1173
|
-
|
|
1174
|
-
|
|
1940
|
+
dashes?: number[] | undefined;
|
|
1941
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1942
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1175
1943
|
} | {
|
|
1176
1944
|
id: string;
|
|
1177
1945
|
page: number;
|
|
@@ -1186,17 +1954,22 @@ export declare function useAnnotations(): {
|
|
|
1186
1954
|
createdAt: string;
|
|
1187
1955
|
modifiedAt: string;
|
|
1188
1956
|
source: "session" | "pdf";
|
|
1189
|
-
type: "polyline" | "polygon";
|
|
1190
1957
|
vertices: {
|
|
1191
1958
|
x: number;
|
|
1192
1959
|
y: number;
|
|
1193
1960
|
}[];
|
|
1194
1961
|
width: number;
|
|
1962
|
+
type: "polyline";
|
|
1195
1963
|
author?: string | undefined;
|
|
1196
1964
|
contents?: string | undefined;
|
|
1197
1965
|
inReplyTo?: string | undefined;
|
|
1198
1966
|
locked?: boolean | undefined;
|
|
1967
|
+
subject?: string | undefined;
|
|
1968
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1199
1969
|
custom?: Record<string, unknown> | undefined;
|
|
1970
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1971
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1972
|
+
dashes?: number[] | undefined;
|
|
1200
1973
|
interiorColor?: string | undefined;
|
|
1201
1974
|
} | {
|
|
1202
1975
|
id: string;
|
|
@@ -1212,16 +1985,123 @@ export declare function useAnnotations(): {
|
|
|
1212
1985
|
createdAt: string;
|
|
1213
1986
|
modifiedAt: string;
|
|
1214
1987
|
source: "session" | "pdf";
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1988
|
+
vertices: {
|
|
1989
|
+
x: number;
|
|
1990
|
+
y: number;
|
|
1991
|
+
}[];
|
|
1992
|
+
width: number;
|
|
1993
|
+
type: "polygon";
|
|
1994
|
+
author?: string | undefined;
|
|
1995
|
+
contents?: string | undefined;
|
|
1996
|
+
inReplyTo?: string | undefined;
|
|
1997
|
+
locked?: boolean | undefined;
|
|
1998
|
+
subject?: string | undefined;
|
|
1999
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2000
|
+
custom?: Record<string, unknown> | undefined;
|
|
2001
|
+
head?: undefined;
|
|
2002
|
+
tail?: undefined;
|
|
2003
|
+
dashes?: number[] | undefined;
|
|
2004
|
+
interiorColor?: string | undefined;
|
|
2005
|
+
} | {
|
|
2006
|
+
id: string;
|
|
2007
|
+
page: number;
|
|
2008
|
+
rect: {
|
|
2009
|
+
x: number;
|
|
2010
|
+
y: number;
|
|
2011
|
+
width: number;
|
|
2012
|
+
height: number;
|
|
2013
|
+
};
|
|
2014
|
+
color: string;
|
|
2015
|
+
opacity: number;
|
|
2016
|
+
createdAt: string;
|
|
2017
|
+
modifiedAt: string;
|
|
2018
|
+
source: "session" | "pdf";
|
|
2019
|
+
type: "ink";
|
|
2020
|
+
inklist: {
|
|
2021
|
+
x: number;
|
|
2022
|
+
y: number;
|
|
2023
|
+
}[][];
|
|
2024
|
+
width: number;
|
|
2025
|
+
author?: string | undefined;
|
|
2026
|
+
contents?: string | undefined;
|
|
2027
|
+
inReplyTo?: string | undefined;
|
|
2028
|
+
locked?: boolean | undefined;
|
|
2029
|
+
subject?: string | undefined;
|
|
2030
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2031
|
+
custom?: Record<string, unknown> | undefined;
|
|
2032
|
+
pressure?: number[][] | undefined;
|
|
2033
|
+
dashes?: number[] | undefined;
|
|
2034
|
+
} | {
|
|
2035
|
+
id: string;
|
|
2036
|
+
page: number;
|
|
2037
|
+
rect: {
|
|
2038
|
+
x: number;
|
|
2039
|
+
y: number;
|
|
2040
|
+
width: number;
|
|
2041
|
+
height: number;
|
|
2042
|
+
};
|
|
2043
|
+
color: string;
|
|
2044
|
+
opacity: number;
|
|
2045
|
+
createdAt: string;
|
|
2046
|
+
modifiedAt: string;
|
|
2047
|
+
source: "session" | "pdf";
|
|
2048
|
+
type: "stamp";
|
|
2049
|
+
imagedata: string;
|
|
2050
|
+
author?: string | undefined;
|
|
2051
|
+
contents?: string | undefined;
|
|
2052
|
+
inReplyTo?: string | undefined;
|
|
2053
|
+
locked?: boolean | undefined;
|
|
2054
|
+
subject?: string | undefined;
|
|
2055
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2056
|
+
custom?: Record<string, unknown> | undefined;
|
|
2057
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
2058
|
+
} | {
|
|
2059
|
+
id: string;
|
|
2060
|
+
page: number;
|
|
2061
|
+
rect: {
|
|
2062
|
+
x: number;
|
|
2063
|
+
y: number;
|
|
2064
|
+
width: number;
|
|
2065
|
+
height: number;
|
|
2066
|
+
};
|
|
2067
|
+
color: string;
|
|
2068
|
+
opacity: number;
|
|
2069
|
+
createdAt: string;
|
|
2070
|
+
modifiedAt: string;
|
|
2071
|
+
source: "session" | "pdf";
|
|
2072
|
+
type: "loupe";
|
|
2073
|
+
magnification: number;
|
|
2074
|
+
width: number;
|
|
2075
|
+
author?: string | undefined;
|
|
2076
|
+
contents?: string | undefined;
|
|
2077
|
+
inReplyTo?: string | undefined;
|
|
2078
|
+
locked?: boolean | undefined;
|
|
2079
|
+
subject?: string | undefined;
|
|
2080
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2081
|
+
custom?: Record<string, unknown> | undefined;
|
|
2082
|
+
} | {
|
|
2083
|
+
id: string;
|
|
2084
|
+
page: number;
|
|
2085
|
+
rect: {
|
|
2086
|
+
x: number;
|
|
2087
|
+
y: number;
|
|
2088
|
+
width: number;
|
|
2089
|
+
height: number;
|
|
2090
|
+
};
|
|
2091
|
+
color: string;
|
|
2092
|
+
opacity: number;
|
|
2093
|
+
createdAt: string;
|
|
2094
|
+
modifiedAt: string;
|
|
2095
|
+
source: "session" | "pdf";
|
|
2096
|
+
type: "mask";
|
|
2097
|
+
shape: "rect" | "ellipse";
|
|
2098
|
+
dim: number;
|
|
1221
2099
|
author?: string | undefined;
|
|
1222
2100
|
contents?: string | undefined;
|
|
1223
2101
|
inReplyTo?: string | undefined;
|
|
1224
2102
|
locked?: boolean | undefined;
|
|
2103
|
+
subject?: string | undefined;
|
|
2104
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1225
2105
|
custom?: Record<string, unknown> | undefined;
|
|
1226
2106
|
} | {
|
|
1227
2107
|
id: string;
|
|
@@ -1244,6 +2124,8 @@ export declare function useAnnotations(): {
|
|
|
1244
2124
|
contents?: string | undefined;
|
|
1245
2125
|
inReplyTo?: string | undefined;
|
|
1246
2126
|
locked?: boolean | undefined;
|
|
2127
|
+
subject?: string | undefined;
|
|
2128
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1247
2129
|
custom?: Record<string, unknown> | undefined;
|
|
1248
2130
|
quads?: {
|
|
1249
2131
|
p1: {
|
|
@@ -1309,6 +2191,8 @@ export declare function useAnnotations(): {
|
|
|
1309
2191
|
contents?: string | undefined;
|
|
1310
2192
|
inReplyTo?: string | undefined;
|
|
1311
2193
|
locked?: boolean | undefined;
|
|
2194
|
+
subject?: string | undefined;
|
|
2195
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1312
2196
|
custom?: Record<string, unknown> | undefined;
|
|
1313
2197
|
} | {
|
|
1314
2198
|
id: string;
|
|
@@ -1325,11 +2209,13 @@ export declare function useAnnotations(): {
|
|
|
1325
2209
|
modifiedAt: string;
|
|
1326
2210
|
source: "session" | "pdf";
|
|
1327
2211
|
type: "text";
|
|
1328
|
-
icon: "
|
|
2212
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
1329
2213
|
author?: string | undefined;
|
|
1330
2214
|
contents?: string | undefined;
|
|
1331
2215
|
inReplyTo?: string | undefined;
|
|
1332
2216
|
locked?: boolean | undefined;
|
|
2217
|
+
subject?: string | undefined;
|
|
2218
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1333
2219
|
custom?: Record<string, unknown> | undefined;
|
|
1334
2220
|
} | {
|
|
1335
2221
|
id: string;
|
|
@@ -1340,24 +2226,73 @@ export declare function useAnnotations(): {
|
|
|
1340
2226
|
width: number;
|
|
1341
2227
|
height: number;
|
|
1342
2228
|
};
|
|
1343
|
-
color: string;
|
|
1344
2229
|
opacity: number;
|
|
1345
2230
|
createdAt: string;
|
|
1346
2231
|
modifiedAt: string;
|
|
1347
2232
|
source: "session" | "pdf";
|
|
1348
2233
|
type: "freetext";
|
|
1349
2234
|
contents: string;
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
2235
|
+
width: number;
|
|
2236
|
+
defaultStyle: {
|
|
2237
|
+
fontFamily: string;
|
|
2238
|
+
fontSize: number;
|
|
2239
|
+
color: string;
|
|
2240
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
2241
|
+
fontWeight?: "bold" | undefined;
|
|
2242
|
+
fontStyle?: "italic" | undefined;
|
|
2243
|
+
textDecoration?: "underline" | undefined;
|
|
2244
|
+
align?: undefined;
|
|
2245
|
+
};
|
|
1353
2246
|
author?: string | undefined;
|
|
1354
2247
|
inReplyTo?: string | undefined;
|
|
1355
2248
|
locked?: boolean | undefined;
|
|
2249
|
+
subject?: string | undefined;
|
|
2250
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1356
2251
|
custom?: Record<string, unknown> | undefined;
|
|
2252
|
+
color?: string | undefined;
|
|
2253
|
+
borderColor?: string | undefined;
|
|
2254
|
+
dashes?: number[] | undefined;
|
|
2255
|
+
cornerRadius?: number | undefined;
|
|
2256
|
+
fringe?: {
|
|
2257
|
+
left: number;
|
|
2258
|
+
top: number;
|
|
2259
|
+
right: number;
|
|
2260
|
+
bottom: number;
|
|
2261
|
+
} | undefined;
|
|
1357
2262
|
callout?: {
|
|
1358
2263
|
x: number;
|
|
1359
2264
|
y: number;
|
|
1360
2265
|
}[] | undefined;
|
|
2266
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2267
|
+
fontFamily?: undefined;
|
|
2268
|
+
fontSize?: undefined;
|
|
2269
|
+
align?: undefined;
|
|
2270
|
+
} | {
|
|
2271
|
+
id: string;
|
|
2272
|
+
page: number;
|
|
2273
|
+
rect: {
|
|
2274
|
+
x: number;
|
|
2275
|
+
y: number;
|
|
2276
|
+
width: number;
|
|
2277
|
+
height: number;
|
|
2278
|
+
};
|
|
2279
|
+
color: string;
|
|
2280
|
+
opacity: number;
|
|
2281
|
+
createdAt: string;
|
|
2282
|
+
modifiedAt: string;
|
|
2283
|
+
source: "session" | "pdf";
|
|
2284
|
+
width: number;
|
|
2285
|
+
type: "square";
|
|
2286
|
+
author?: string | undefined;
|
|
2287
|
+
contents?: string | undefined;
|
|
2288
|
+
inReplyTo?: string | undefined;
|
|
2289
|
+
locked?: boolean | undefined;
|
|
2290
|
+
subject?: string | undefined;
|
|
2291
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2292
|
+
custom?: Record<string, unknown> | undefined;
|
|
2293
|
+
cornerRadius?: number | undefined;
|
|
2294
|
+
dashes?: number[] | undefined;
|
|
2295
|
+
interiorColor?: string | undefined;
|
|
1361
2296
|
} | {
|
|
1362
2297
|
id: string;
|
|
1363
2298
|
page: number;
|
|
@@ -1372,13 +2307,17 @@ export declare function useAnnotations(): {
|
|
|
1372
2307
|
createdAt: string;
|
|
1373
2308
|
modifiedAt: string;
|
|
1374
2309
|
source: "session" | "pdf";
|
|
1375
|
-
type: "square" | "circle";
|
|
1376
2310
|
width: number;
|
|
2311
|
+
type: "circle";
|
|
1377
2312
|
author?: string | undefined;
|
|
1378
2313
|
contents?: string | undefined;
|
|
1379
2314
|
inReplyTo?: string | undefined;
|
|
1380
2315
|
locked?: boolean | undefined;
|
|
2316
|
+
subject?: string | undefined;
|
|
2317
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1381
2318
|
custom?: Record<string, unknown> | undefined;
|
|
2319
|
+
cornerRadius?: undefined;
|
|
2320
|
+
dashes?: number[] | undefined;
|
|
1382
2321
|
interiorColor?: string | undefined;
|
|
1383
2322
|
} | {
|
|
1384
2323
|
id: string;
|
|
@@ -1408,9 +2347,43 @@ export declare function useAnnotations(): {
|
|
|
1408
2347
|
contents?: string | undefined;
|
|
1409
2348
|
inReplyTo?: string | undefined;
|
|
1410
2349
|
locked?: boolean | undefined;
|
|
2350
|
+
subject?: string | undefined;
|
|
2351
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2352
|
+
custom?: Record<string, unknown> | undefined;
|
|
2353
|
+
dashes?: number[] | undefined;
|
|
2354
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2355
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2356
|
+
} | {
|
|
2357
|
+
id: string;
|
|
2358
|
+
page: number;
|
|
2359
|
+
rect: {
|
|
2360
|
+
x: number;
|
|
2361
|
+
y: number;
|
|
2362
|
+
width: number;
|
|
2363
|
+
height: number;
|
|
2364
|
+
};
|
|
2365
|
+
color: string;
|
|
2366
|
+
opacity: number;
|
|
2367
|
+
createdAt: string;
|
|
2368
|
+
modifiedAt: string;
|
|
2369
|
+
source: "session" | "pdf";
|
|
2370
|
+
vertices: {
|
|
2371
|
+
x: number;
|
|
2372
|
+
y: number;
|
|
2373
|
+
}[];
|
|
2374
|
+
width: number;
|
|
2375
|
+
type: "polyline";
|
|
2376
|
+
author?: string | undefined;
|
|
2377
|
+
contents?: string | undefined;
|
|
2378
|
+
inReplyTo?: string | undefined;
|
|
2379
|
+
locked?: boolean | undefined;
|
|
2380
|
+
subject?: string | undefined;
|
|
2381
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1411
2382
|
custom?: Record<string, unknown> | undefined;
|
|
1412
|
-
head?: "
|
|
1413
|
-
tail?: "
|
|
2383
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2384
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2385
|
+
dashes?: number[] | undefined;
|
|
2386
|
+
interiorColor?: string | undefined;
|
|
1414
2387
|
} | {
|
|
1415
2388
|
id: string;
|
|
1416
2389
|
page: number;
|
|
@@ -1425,17 +2398,22 @@ export declare function useAnnotations(): {
|
|
|
1425
2398
|
createdAt: string;
|
|
1426
2399
|
modifiedAt: string;
|
|
1427
2400
|
source: "session" | "pdf";
|
|
1428
|
-
type: "polyline" | "polygon";
|
|
1429
2401
|
vertices: {
|
|
1430
2402
|
x: number;
|
|
1431
2403
|
y: number;
|
|
1432
2404
|
}[];
|
|
1433
2405
|
width: number;
|
|
2406
|
+
type: "polygon";
|
|
1434
2407
|
author?: string | undefined;
|
|
1435
2408
|
contents?: string | undefined;
|
|
1436
2409
|
inReplyTo?: string | undefined;
|
|
1437
2410
|
locked?: boolean | undefined;
|
|
2411
|
+
subject?: string | undefined;
|
|
2412
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1438
2413
|
custom?: Record<string, unknown> | undefined;
|
|
2414
|
+
head?: undefined;
|
|
2415
|
+
tail?: undefined;
|
|
2416
|
+
dashes?: number[] | undefined;
|
|
1439
2417
|
interiorColor?: string | undefined;
|
|
1440
2418
|
} | {
|
|
1441
2419
|
id: string;
|
|
@@ -1461,6 +2439,82 @@ export declare function useAnnotations(): {
|
|
|
1461
2439
|
contents?: string | undefined;
|
|
1462
2440
|
inReplyTo?: string | undefined;
|
|
1463
2441
|
locked?: boolean | undefined;
|
|
2442
|
+
subject?: string | undefined;
|
|
2443
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2444
|
+
custom?: Record<string, unknown> | undefined;
|
|
2445
|
+
pressure?: number[][] | undefined;
|
|
2446
|
+
dashes?: number[] | undefined;
|
|
2447
|
+
} | {
|
|
2448
|
+
id: string;
|
|
2449
|
+
page: number;
|
|
2450
|
+
rect: {
|
|
2451
|
+
x: number;
|
|
2452
|
+
y: number;
|
|
2453
|
+
width: number;
|
|
2454
|
+
height: number;
|
|
2455
|
+
};
|
|
2456
|
+
color: string;
|
|
2457
|
+
opacity: number;
|
|
2458
|
+
createdAt: string;
|
|
2459
|
+
modifiedAt: string;
|
|
2460
|
+
source: "session" | "pdf";
|
|
2461
|
+
type: "stamp";
|
|
2462
|
+
imagedata: string;
|
|
2463
|
+
author?: string | undefined;
|
|
2464
|
+
contents?: string | undefined;
|
|
2465
|
+
inReplyTo?: string | undefined;
|
|
2466
|
+
locked?: boolean | undefined;
|
|
2467
|
+
subject?: string | undefined;
|
|
2468
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2469
|
+
custom?: Record<string, unknown> | undefined;
|
|
2470
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
2471
|
+
} | {
|
|
2472
|
+
id: string;
|
|
2473
|
+
page: number;
|
|
2474
|
+
rect: {
|
|
2475
|
+
x: number;
|
|
2476
|
+
y: number;
|
|
2477
|
+
width: number;
|
|
2478
|
+
height: number;
|
|
2479
|
+
};
|
|
2480
|
+
color: string;
|
|
2481
|
+
opacity: number;
|
|
2482
|
+
createdAt: string;
|
|
2483
|
+
modifiedAt: string;
|
|
2484
|
+
source: "session" | "pdf";
|
|
2485
|
+
type: "loupe";
|
|
2486
|
+
magnification: number;
|
|
2487
|
+
width: number;
|
|
2488
|
+
author?: string | undefined;
|
|
2489
|
+
contents?: string | undefined;
|
|
2490
|
+
inReplyTo?: string | undefined;
|
|
2491
|
+
locked?: boolean | undefined;
|
|
2492
|
+
subject?: string | undefined;
|
|
2493
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2494
|
+
custom?: Record<string, unknown> | undefined;
|
|
2495
|
+
} | {
|
|
2496
|
+
id: string;
|
|
2497
|
+
page: number;
|
|
2498
|
+
rect: {
|
|
2499
|
+
x: number;
|
|
2500
|
+
y: number;
|
|
2501
|
+
width: number;
|
|
2502
|
+
height: number;
|
|
2503
|
+
};
|
|
2504
|
+
color: string;
|
|
2505
|
+
opacity: number;
|
|
2506
|
+
createdAt: string;
|
|
2507
|
+
modifiedAt: string;
|
|
2508
|
+
source: "session" | "pdf";
|
|
2509
|
+
type: "mask";
|
|
2510
|
+
shape: "rect" | "ellipse";
|
|
2511
|
+
dim: number;
|
|
2512
|
+
author?: string | undefined;
|
|
2513
|
+
contents?: string | undefined;
|
|
2514
|
+
inReplyTo?: string | undefined;
|
|
2515
|
+
locked?: boolean | undefined;
|
|
2516
|
+
subject?: string | undefined;
|
|
2517
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1464
2518
|
custom?: Record<string, unknown> | undefined;
|
|
1465
2519
|
} | {
|
|
1466
2520
|
id: string;
|
|
@@ -1483,6 +2537,8 @@ export declare function useAnnotations(): {
|
|
|
1483
2537
|
contents?: string | undefined;
|
|
1484
2538
|
inReplyTo?: string | undefined;
|
|
1485
2539
|
locked?: boolean | undefined;
|
|
2540
|
+
subject?: string | undefined;
|
|
2541
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1486
2542
|
custom?: Record<string, unknown> | undefined;
|
|
1487
2543
|
quads?: {
|
|
1488
2544
|
p1: {
|
|
@@ -1549,6 +2605,8 @@ export declare function useAnnotations(): {
|
|
|
1549
2605
|
contents?: string | undefined;
|
|
1550
2606
|
inReplyTo?: string | undefined;
|
|
1551
2607
|
locked?: boolean | undefined;
|
|
2608
|
+
subject?: string | undefined;
|
|
2609
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1552
2610
|
custom?: Record<string, unknown> | undefined;
|
|
1553
2611
|
} | {
|
|
1554
2612
|
id: string;
|
|
@@ -1565,11 +2623,13 @@ export declare function useAnnotations(): {
|
|
|
1565
2623
|
modifiedAt: string;
|
|
1566
2624
|
source: "session" | "pdf";
|
|
1567
2625
|
type: "text";
|
|
1568
|
-
icon: "
|
|
2626
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
1569
2627
|
author?: string | undefined;
|
|
1570
2628
|
contents?: string | undefined;
|
|
1571
2629
|
inReplyTo?: string | undefined;
|
|
1572
2630
|
locked?: boolean | undefined;
|
|
2631
|
+
subject?: string | undefined;
|
|
2632
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1573
2633
|
custom?: Record<string, unknown> | undefined;
|
|
1574
2634
|
} | {
|
|
1575
2635
|
id: string;
|
|
@@ -1580,24 +2640,73 @@ export declare function useAnnotations(): {
|
|
|
1580
2640
|
width: number;
|
|
1581
2641
|
height: number;
|
|
1582
2642
|
};
|
|
1583
|
-
color: string;
|
|
1584
2643
|
opacity: number;
|
|
1585
2644
|
createdAt: string;
|
|
1586
2645
|
modifiedAt: string;
|
|
1587
2646
|
source: "session" | "pdf";
|
|
1588
2647
|
type: "freetext";
|
|
1589
2648
|
contents: string;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
2649
|
+
width: number;
|
|
2650
|
+
defaultStyle: {
|
|
2651
|
+
fontFamily: string;
|
|
2652
|
+
fontSize: number;
|
|
2653
|
+
color: string;
|
|
2654
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
2655
|
+
fontWeight?: "bold" | undefined;
|
|
2656
|
+
fontStyle?: "italic" | undefined;
|
|
2657
|
+
textDecoration?: "underline" | undefined;
|
|
2658
|
+
align?: undefined;
|
|
2659
|
+
};
|
|
1593
2660
|
author?: string | undefined;
|
|
1594
2661
|
inReplyTo?: string | undefined;
|
|
1595
2662
|
locked?: boolean | undefined;
|
|
2663
|
+
subject?: string | undefined;
|
|
2664
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1596
2665
|
custom?: Record<string, unknown> | undefined;
|
|
2666
|
+
color?: string | undefined;
|
|
2667
|
+
borderColor?: string | undefined;
|
|
2668
|
+
dashes?: number[] | undefined;
|
|
2669
|
+
cornerRadius?: number | undefined;
|
|
2670
|
+
fringe?: {
|
|
2671
|
+
left: number;
|
|
2672
|
+
top: number;
|
|
2673
|
+
right: number;
|
|
2674
|
+
bottom: number;
|
|
2675
|
+
} | undefined;
|
|
1597
2676
|
callout?: {
|
|
1598
2677
|
x: number;
|
|
1599
2678
|
y: number;
|
|
1600
2679
|
}[] | undefined;
|
|
2680
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2681
|
+
fontFamily?: undefined;
|
|
2682
|
+
fontSize?: undefined;
|
|
2683
|
+
align?: undefined;
|
|
2684
|
+
} | {
|
|
2685
|
+
id: string;
|
|
2686
|
+
page: number;
|
|
2687
|
+
rect: {
|
|
2688
|
+
x: number;
|
|
2689
|
+
y: number;
|
|
2690
|
+
width: number;
|
|
2691
|
+
height: number;
|
|
2692
|
+
};
|
|
2693
|
+
color: string;
|
|
2694
|
+
opacity: number;
|
|
2695
|
+
createdAt: string;
|
|
2696
|
+
modifiedAt: string;
|
|
2697
|
+
source: "session" | "pdf";
|
|
2698
|
+
width: number;
|
|
2699
|
+
type: "square";
|
|
2700
|
+
author?: string | undefined;
|
|
2701
|
+
contents?: string | undefined;
|
|
2702
|
+
inReplyTo?: string | undefined;
|
|
2703
|
+
locked?: boolean | undefined;
|
|
2704
|
+
subject?: string | undefined;
|
|
2705
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2706
|
+
custom?: Record<string, unknown> | undefined;
|
|
2707
|
+
cornerRadius?: number | undefined;
|
|
2708
|
+
dashes?: number[] | undefined;
|
|
2709
|
+
interiorColor?: string | undefined;
|
|
1601
2710
|
} | {
|
|
1602
2711
|
id: string;
|
|
1603
2712
|
page: number;
|
|
@@ -1612,13 +2721,17 @@ export declare function useAnnotations(): {
|
|
|
1612
2721
|
createdAt: string;
|
|
1613
2722
|
modifiedAt: string;
|
|
1614
2723
|
source: "session" | "pdf";
|
|
1615
|
-
type: "square" | "circle";
|
|
1616
2724
|
width: number;
|
|
2725
|
+
type: "circle";
|
|
1617
2726
|
author?: string | undefined;
|
|
1618
2727
|
contents?: string | undefined;
|
|
1619
2728
|
inReplyTo?: string | undefined;
|
|
1620
2729
|
locked?: boolean | undefined;
|
|
2730
|
+
subject?: string | undefined;
|
|
2731
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1621
2732
|
custom?: Record<string, unknown> | undefined;
|
|
2733
|
+
cornerRadius?: undefined;
|
|
2734
|
+
dashes?: number[] | undefined;
|
|
1622
2735
|
interiorColor?: string | undefined;
|
|
1623
2736
|
} | {
|
|
1624
2737
|
id: string;
|
|
@@ -1648,9 +2761,43 @@ export declare function useAnnotations(): {
|
|
|
1648
2761
|
contents?: string | undefined;
|
|
1649
2762
|
inReplyTo?: string | undefined;
|
|
1650
2763
|
locked?: boolean | undefined;
|
|
2764
|
+
subject?: string | undefined;
|
|
2765
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2766
|
+
custom?: Record<string, unknown> | undefined;
|
|
2767
|
+
dashes?: number[] | undefined;
|
|
2768
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2769
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2770
|
+
} | {
|
|
2771
|
+
id: string;
|
|
2772
|
+
page: number;
|
|
2773
|
+
rect: {
|
|
2774
|
+
x: number;
|
|
2775
|
+
y: number;
|
|
2776
|
+
width: number;
|
|
2777
|
+
height: number;
|
|
2778
|
+
};
|
|
2779
|
+
color: string;
|
|
2780
|
+
opacity: number;
|
|
2781
|
+
createdAt: string;
|
|
2782
|
+
modifiedAt: string;
|
|
2783
|
+
source: "session" | "pdf";
|
|
2784
|
+
vertices: {
|
|
2785
|
+
x: number;
|
|
2786
|
+
y: number;
|
|
2787
|
+
}[];
|
|
2788
|
+
width: number;
|
|
2789
|
+
type: "polyline";
|
|
2790
|
+
author?: string | undefined;
|
|
2791
|
+
contents?: string | undefined;
|
|
2792
|
+
inReplyTo?: string | undefined;
|
|
2793
|
+
locked?: boolean | undefined;
|
|
2794
|
+
subject?: string | undefined;
|
|
2795
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1651
2796
|
custom?: Record<string, unknown> | undefined;
|
|
1652
|
-
head?: "
|
|
1653
|
-
tail?: "
|
|
2797
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2798
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2799
|
+
dashes?: number[] | undefined;
|
|
2800
|
+
interiorColor?: string | undefined;
|
|
1654
2801
|
} | {
|
|
1655
2802
|
id: string;
|
|
1656
2803
|
page: number;
|
|
@@ -1665,17 +2812,22 @@ export declare function useAnnotations(): {
|
|
|
1665
2812
|
createdAt: string;
|
|
1666
2813
|
modifiedAt: string;
|
|
1667
2814
|
source: "session" | "pdf";
|
|
1668
|
-
type: "polyline" | "polygon";
|
|
1669
2815
|
vertices: {
|
|
1670
2816
|
x: number;
|
|
1671
2817
|
y: number;
|
|
1672
2818
|
}[];
|
|
1673
2819
|
width: number;
|
|
2820
|
+
type: "polygon";
|
|
1674
2821
|
author?: string | undefined;
|
|
1675
2822
|
contents?: string | undefined;
|
|
1676
2823
|
inReplyTo?: string | undefined;
|
|
1677
2824
|
locked?: boolean | undefined;
|
|
2825
|
+
subject?: string | undefined;
|
|
2826
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1678
2827
|
custom?: Record<string, unknown> | undefined;
|
|
2828
|
+
head?: undefined;
|
|
2829
|
+
tail?: undefined;
|
|
2830
|
+
dashes?: number[] | undefined;
|
|
1679
2831
|
interiorColor?: string | undefined;
|
|
1680
2832
|
} | {
|
|
1681
2833
|
id: string;
|
|
@@ -1701,6 +2853,82 @@ export declare function useAnnotations(): {
|
|
|
1701
2853
|
contents?: string | undefined;
|
|
1702
2854
|
inReplyTo?: string | undefined;
|
|
1703
2855
|
locked?: boolean | undefined;
|
|
2856
|
+
subject?: string | undefined;
|
|
2857
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2858
|
+
custom?: Record<string, unknown> | undefined;
|
|
2859
|
+
pressure?: number[][] | undefined;
|
|
2860
|
+
dashes?: number[] | undefined;
|
|
2861
|
+
} | {
|
|
2862
|
+
id: string;
|
|
2863
|
+
page: number;
|
|
2864
|
+
rect: {
|
|
2865
|
+
x: number;
|
|
2866
|
+
y: number;
|
|
2867
|
+
width: number;
|
|
2868
|
+
height: number;
|
|
2869
|
+
};
|
|
2870
|
+
color: string;
|
|
2871
|
+
opacity: number;
|
|
2872
|
+
createdAt: string;
|
|
2873
|
+
modifiedAt: string;
|
|
2874
|
+
source: "session" | "pdf";
|
|
2875
|
+
type: "stamp";
|
|
2876
|
+
imagedata: string;
|
|
2877
|
+
author?: string | undefined;
|
|
2878
|
+
contents?: string | undefined;
|
|
2879
|
+
inReplyTo?: string | undefined;
|
|
2880
|
+
locked?: boolean | undefined;
|
|
2881
|
+
subject?: string | undefined;
|
|
2882
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2883
|
+
custom?: Record<string, unknown> | undefined;
|
|
2884
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
2885
|
+
} | {
|
|
2886
|
+
id: string;
|
|
2887
|
+
page: number;
|
|
2888
|
+
rect: {
|
|
2889
|
+
x: number;
|
|
2890
|
+
y: number;
|
|
2891
|
+
width: number;
|
|
2892
|
+
height: number;
|
|
2893
|
+
};
|
|
2894
|
+
color: string;
|
|
2895
|
+
opacity: number;
|
|
2896
|
+
createdAt: string;
|
|
2897
|
+
modifiedAt: string;
|
|
2898
|
+
source: "session" | "pdf";
|
|
2899
|
+
type: "loupe";
|
|
2900
|
+
magnification: number;
|
|
2901
|
+
width: number;
|
|
2902
|
+
author?: string | undefined;
|
|
2903
|
+
contents?: string | undefined;
|
|
2904
|
+
inReplyTo?: string | undefined;
|
|
2905
|
+
locked?: boolean | undefined;
|
|
2906
|
+
subject?: string | undefined;
|
|
2907
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2908
|
+
custom?: Record<string, unknown> | undefined;
|
|
2909
|
+
} | {
|
|
2910
|
+
id: string;
|
|
2911
|
+
page: number;
|
|
2912
|
+
rect: {
|
|
2913
|
+
x: number;
|
|
2914
|
+
y: number;
|
|
2915
|
+
width: number;
|
|
2916
|
+
height: number;
|
|
2917
|
+
};
|
|
2918
|
+
color: string;
|
|
2919
|
+
opacity: number;
|
|
2920
|
+
createdAt: string;
|
|
2921
|
+
modifiedAt: string;
|
|
2922
|
+
source: "session" | "pdf";
|
|
2923
|
+
type: "mask";
|
|
2924
|
+
shape: "rect" | "ellipse";
|
|
2925
|
+
dim: number;
|
|
2926
|
+
author?: string | undefined;
|
|
2927
|
+
contents?: string | undefined;
|
|
2928
|
+
inReplyTo?: string | undefined;
|
|
2929
|
+
locked?: boolean | undefined;
|
|
2930
|
+
subject?: string | undefined;
|
|
2931
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1704
2932
|
custom?: Record<string, unknown> | undefined;
|
|
1705
2933
|
} | {
|
|
1706
2934
|
id: string;
|
|
@@ -1723,6 +2951,8 @@ export declare function useAnnotations(): {
|
|
|
1723
2951
|
contents?: string | undefined;
|
|
1724
2952
|
inReplyTo?: string | undefined;
|
|
1725
2953
|
locked?: boolean | undefined;
|
|
2954
|
+
subject?: string | undefined;
|
|
2955
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1726
2956
|
custom?: Record<string, unknown> | undefined;
|
|
1727
2957
|
quads?: {
|
|
1728
2958
|
p1: {
|
|
@@ -1759,6 +2989,43 @@ export declare function useTool(): {
|
|
|
1759
2989
|
setTool: (id: import("@inkbar/core/dom").ToolId) => void;
|
|
1760
2990
|
};
|
|
1761
2991
|
//#endregion
|
|
2992
|
+
//#region src/hooks/useToolStyle.d.ts
|
|
2993
|
+
interface ToolStyleView {
|
|
2994
|
+
current: CurrentStyle;
|
|
2995
|
+
supported: ReadonlySet<StyleKey>;
|
|
2996
|
+
/** A group's own style. */
|
|
2997
|
+
get: (group: StyleGroup) => Readonly<StyleProps>;
|
|
2998
|
+
}
|
|
2999
|
+
/** The tool style for the active tool or the selection. */
|
|
3000
|
+
interface ToolStyleHandle extends ToolStyleView {
|
|
3001
|
+
set: (patch: StyleProps, opts?: {
|
|
3002
|
+
group?: StyleGroup;
|
|
3003
|
+
apply?: boolean;
|
|
3004
|
+
}) => void;
|
|
3005
|
+
}
|
|
3006
|
+
/** The tool style scoped to one group: `set` writes that group, so it takes no options. */
|
|
3007
|
+
interface ScopedToolStyleHandle extends ToolStyleView {
|
|
3008
|
+
set: (patch: StyleProps) => void;
|
|
3009
|
+
}
|
|
3010
|
+
/**
|
|
3011
|
+
* The tool style the style controls read and write: `current` shows the selection's values
|
|
3012
|
+
* (`'mixed'` where they differ), else the active tool's group; `supported` names the props
|
|
3013
|
+
* the active tool or the selection has. `set` updates the group and the selected annotations.
|
|
3014
|
+
*
|
|
3015
|
+
* With `group`, the style as a control for that group sees it, whatever tool is active: the
|
|
3016
|
+
* selection's when it is all in the group, else the group's own; `set` updates the group, and
|
|
3017
|
+
* the selection only when it is all in the group.
|
|
3018
|
+
*/
|
|
3019
|
+
export declare function useToolStyle(): ToolStyleHandle;
|
|
3020
|
+
export declare function useToolStyle(group: StyleGroup | undefined): ScopedToolStyleHandle;
|
|
3021
|
+
//#endregion
|
|
3022
|
+
//#region src/hooks/useToolOptions.d.ts
|
|
3023
|
+
/**
|
|
3024
|
+
* A tool's options and a setter that merges a patch into them without switching tools.
|
|
3025
|
+
* Options are empty, and the setter does nothing, until the viewport has mounted.
|
|
3026
|
+
*/
|
|
3027
|
+
export declare function useToolOptions<O extends object = object>(id: ToolId): [O, (patch: Partial<O>) => void];
|
|
3028
|
+
//#endregion
|
|
1762
3029
|
//#region src/hooks/useSelection.d.ts
|
|
1763
3030
|
export declare function useSelection(): {
|
|
1764
3031
|
selection: readonly string[];
|
|
@@ -1825,6 +3092,24 @@ interface InkRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
1825
3092
|
onChange?: ((change: AnnotationChange) => void) | undefined;
|
|
1826
3093
|
tool?: ToolId | undefined;
|
|
1827
3094
|
onToolChange?: ((tool: ToolId) => void) | undefined;
|
|
3095
|
+
/**
|
|
3096
|
+
* Host tools, added to the built-ins; one with a built-in's id replaces it. Read when a
|
|
3097
|
+
* document opens.
|
|
3098
|
+
*/
|
|
3099
|
+
tools?: Tool[] | undefined;
|
|
3100
|
+
/**
|
|
3101
|
+
* The font families text boxes offer, replacing the PDF standard families
|
|
3102
|
+
* (`FONT_FAMILIES`). Fonts beyond those are the PDF writer's to embed.
|
|
3103
|
+
*/
|
|
3104
|
+
fonts?: string[] | undefined;
|
|
3105
|
+
/**
|
|
3106
|
+
* Where saved signatures live. Default: memory, gone on reload. `createLocalSignatureStore`
|
|
3107
|
+
* keeps them in the browser; a host can keep them anywhere. A new store takes effect at
|
|
3108
|
+
* once, for the menus and the `signature` tool alike.
|
|
3109
|
+
*/
|
|
3110
|
+
signatures?: SignatureStore | undefined;
|
|
3111
|
+
/** The handwriting fonts a typed signature offers; the host loads them. */
|
|
3112
|
+
signatureFonts?: string[] | undefined;
|
|
1828
3113
|
page?: number | undefined;
|
|
1829
3114
|
onPageChange?: ((page: number) => void) | undefined;
|
|
1830
3115
|
zoom?: ZoomValue | undefined;
|
|
@@ -1841,7 +3126,7 @@ interface InkRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
1841
3126
|
}) => ReactNode);
|
|
1842
3127
|
ref?: Ref<InkRootHandle>;
|
|
1843
3128
|
}
|
|
1844
|
-
export declare function InkRoot({ src, assets, password, defaults, annotations, onAnnotationsChange, onChange, tool, onToolChange, page, onPageChange, zoom, onZoomChange, history, asChild, onReady, onError, onActivate, children, ref, ...rest }: InkRootProps): import("react").JSX.Element;
|
|
3129
|
+
export declare function InkRoot({ src, assets, password, defaults, annotations, onAnnotationsChange, onChange, tool, onToolChange, tools: hostTools, fonts: fontsProp, signatures: signatureStore, signatureFonts: signatureFontsProp, page, onPageChange, zoom, onZoomChange, history, asChild, onReady, onError, onActivate, children, ref, ...rest }: InkRootProps): import("react").JSX.Element;
|
|
1845
3130
|
//#endregion
|
|
1846
3131
|
//#region src/components/InkViewport.d.ts
|
|
1847
3132
|
interface InkViewportProps extends ComponentPropsWithoutRef<'div'> {
|
|
@@ -1976,11 +3261,81 @@ export declare function InkPrevPage({ asChild, className, children, disabled, on
|
|
|
1976
3261
|
//#region src/components/InkNextPage.d.ts
|
|
1977
3262
|
export declare function InkNextPage({ asChild, className, children, disabled, onClick, ...rest }: InkPageButtonProps): import("react").JSX.Element;
|
|
1978
3263
|
//#endregion
|
|
1979
|
-
//#region src/components/
|
|
1980
|
-
interface
|
|
1981
|
-
|
|
3264
|
+
//#region src/components/InkColorMenu.d.ts
|
|
3265
|
+
interface InkColorMenuProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
3266
|
+
/** The colour this menu sets. */
|
|
3267
|
+
property: ColorProperty;
|
|
3268
|
+
/** Accessible name; defaults to "Border colour", "Fill colour" or "Text colour". */
|
|
3269
|
+
label?: string;
|
|
3270
|
+
/** Replaces the swatch. */
|
|
3271
|
+
children?: ReactNode;
|
|
3272
|
+
/**
|
|
3273
|
+
* Renders the trigger outside the toolbar's roving focus, for a menu nested in another
|
|
3274
|
+
* panel (the text style menu's text colour).
|
|
3275
|
+
*/
|
|
3276
|
+
standalone?: boolean;
|
|
3277
|
+
/**
|
|
3278
|
+
* Scopes the menu to one style group: it shows and sets that group's colour whatever tool
|
|
3279
|
+
* is active, and recolours the selection only when it is all in the group.
|
|
3280
|
+
*/
|
|
3281
|
+
group?: StyleGroup;
|
|
3282
|
+
}
|
|
3283
|
+
export declare function InkColorMenu({ property, label, className, children, standalone, group, disabled, ...rest }: InkColorMenuProps): import("react").JSX.Element;
|
|
3284
|
+
//#endregion
|
|
3285
|
+
//#region src/components/InkShapeMenu.d.ts
|
|
3286
|
+
interface InkShapeMenuProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3287
|
+
/** Replaces the main button's icon. */
|
|
3288
|
+
children?: ReactNode;
|
|
3289
|
+
}
|
|
3290
|
+
export declare function InkShapeMenu({ className, children, ...rest }: InkShapeMenuProps): import("react").JSX.Element;
|
|
3291
|
+
//#endregion
|
|
3292
|
+
//#region src/components/InkSignatureMenu.d.ts
|
|
3293
|
+
interface InkSignatureMenuProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3294
|
+
/** Replaces the main button's icon. */
|
|
3295
|
+
children?: ReactNode;
|
|
3296
|
+
/** The fonts the dialog's Type tab offers. Default: InkRoot's `signatureFonts`. */
|
|
3297
|
+
fonts?: readonly string[] | undefined;
|
|
3298
|
+
}
|
|
3299
|
+
export declare function InkSignatureMenu({ className, children, fonts, ...rest }: InkSignatureMenuProps): import("react").JSX.Element;
|
|
3300
|
+
//#endregion
|
|
3301
|
+
//#region src/components/InkSignatureDialog.d.ts
|
|
3302
|
+
interface InkSignatureDialogProps {
|
|
3303
|
+
open: boolean;
|
|
3304
|
+
onOpenChange: (open: boolean) => void;
|
|
3305
|
+
/** The fonts the Type tab offers. Default: InkRoot's `signatureFonts`. */
|
|
3306
|
+
fonts?: readonly string[] | undefined;
|
|
3307
|
+
/** Called with the new template once it is saved and selected. */
|
|
3308
|
+
onSave?: ((template: SignatureTemplate) => void) | undefined;
|
|
3309
|
+
/** Where focus goes on close; by default, back to what had it before. */
|
|
3310
|
+
onCloseAutoFocus?: ((event: Event) => void) | undefined;
|
|
3311
|
+
className?: string | undefined;
|
|
3312
|
+
}
|
|
3313
|
+
export declare function InkSignatureDialog({ open, onOpenChange, fonts, onSave, onCloseAutoFocus, className }: InkSignatureDialogProps): import("react").JSX.Element;
|
|
3314
|
+
//#endregion
|
|
3315
|
+
//#region src/components/InkHighlightMenu.d.ts
|
|
3316
|
+
interface InkHighlightMenuProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
3317
|
+
/** Replaces the main button's icon. */
|
|
3318
|
+
children?: ReactNode;
|
|
3319
|
+
}
|
|
3320
|
+
export declare function InkHighlightMenu({ className, children, ...rest }: InkHighlightMenuProps): import("react").JSX.Element;
|
|
3321
|
+
//#endregion
|
|
3322
|
+
//#region src/components/InkTextStyleMenu.d.ts
|
|
3323
|
+
interface InkTextStyleMenuProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
3324
|
+
children?: ReactNode;
|
|
3325
|
+
}
|
|
3326
|
+
export declare function InkTextStyleMenu({ className, children, disabled, ...rest }: InkTextStyleMenuProps): import("react").JSX.Element;
|
|
3327
|
+
//#endregion
|
|
3328
|
+
//#region src/components/InkLineStyleMenu.d.ts
|
|
3329
|
+
interface InkLineStyleMenuProps extends Omit<ComponentPropsWithoutRef<'button'>, 'children'> {
|
|
3330
|
+
children?: ReactNode;
|
|
3331
|
+
}
|
|
3332
|
+
export declare function InkLineStyleMenu({ className, children, disabled, ...rest }: InkLineStyleMenuProps): import("react").JSX.Element;
|
|
3333
|
+
//#endregion
|
|
3334
|
+
//#region src/components/InkThreadPopover.d.ts
|
|
3335
|
+
interface InkThreadPopoverProps {
|
|
3336
|
+
children?: ((props: ThreadPopoverSlotProps$1) => ReactNode) | undefined;
|
|
1982
3337
|
}
|
|
1983
|
-
export declare function
|
|
3338
|
+
export declare function InkThreadPopover({ children }: InkThreadPopoverProps): import("react").JSX.Element;
|
|
1984
3339
|
//#endregion
|
|
1985
3340
|
//#region src/components/InkSuggestionCard.d.ts
|
|
1986
3341
|
interface InkSuggestionCardProps {
|
|
@@ -1988,5 +3343,5 @@ interface InkSuggestionCardProps {
|
|
|
1988
3343
|
}
|
|
1989
3344
|
export declare function InkSuggestionCard({ children }: InkSuggestionCardProps): import("react").JSX.Element;
|
|
1990
3345
|
//#endregion
|
|
1991
|
-
export type { AnnotationSlotProps, AnnotationState, ConfidenceBucket, InkAnnotationProps, InkContext, InkHistory, InkHistoryButtonProps, InkIconProps,
|
|
3346
|
+
export type { AnnotationSlotProps, AnnotationState, ConfidenceBucket, InkAnnotationProps, InkColorMenuProps, InkContext, InkHighlightMenuProps, InkHistory, InkHistoryButtonProps, InkIconProps, InkLineStyleMenuProps, InkPageButtonProps, InkPageInputProps, InkPageProps, InkRootHandle, InkRootProps, InkShapeMenuProps, InkSignatureDialogProps, InkSignatureMenuProps, InkStatus, InkSuggestionCardProps, InkTextStyleMenuProps, InkThreadPopoverProps, InkToolButtonProps, InkToolbarProps, InkToolbarSeparatorProps, InkViewportProps, InkZoomButtonProps, InkZoomSelectProps, ScopedToolStyleHandle, SuggestionCardSlotProps, ThreadPopoverSlotProps, ToolStyleHandle };
|
|
1992
3347
|
//# sourceMappingURL=index.d.mts.map
|