@inkbar/svelte 0.2.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 +33 -11
- package/dist/components/InkColorMenu.svelte +242 -0
- package/dist/components/InkColorMenu.svelte.d.ts +33 -0
- package/dist/components/InkColorMenu.svelte.d.ts.map +1 -0
- package/dist/components/InkHighlightMenu.svelte +166 -0
- package/dist/components/InkHighlightMenu.svelte.d.ts +16 -0
- package/dist/components/InkHighlightMenu.svelte.d.ts.map +1 -0
- package/dist/components/InkLineStyleMenu.svelte +141 -0
- package/dist/components/InkLineStyleMenu.svelte.d.ts +15 -0
- package/dist/components/InkLineStyleMenu.svelte.d.ts.map +1 -0
- package/dist/components/InkRoot.svelte +77 -3
- package/dist/components/InkRoot.svelte.d.ts +20 -2
- package/dist/components/InkRoot.svelte.d.ts.map +1 -1
- package/dist/components/InkShapeMenu.svelte +157 -0
- package/dist/components/InkShapeMenu.svelte.d.ts +15 -0
- package/dist/components/InkShapeMenu.svelte.d.ts.map +1 -0
- package/dist/components/InkSignatureDialog.svelte +70 -0
- package/dist/components/InkSignatureDialog.svelte.d.ts +22 -0
- package/dist/components/InkSignatureDialog.svelte.d.ts.map +1 -0
- package/dist/components/InkSignatureMenu.svelte +263 -0
- package/dist/components/InkSignatureMenu.svelte.d.ts +18 -0
- package/dist/components/InkSignatureMenu.svelte.d.ts.map +1 -0
- package/dist/components/InkTextStyleMenu.svelte +225 -0
- package/dist/components/InkTextStyleMenu.svelte.d.ts +15 -0
- package/dist/components/InkTextStyleMenu.svelte.d.ts.map +1 -0
- package/dist/components/{InkNotePopover.svelte → InkThreadPopover.svelte} +38 -33
- package/dist/components/InkThreadPopover.svelte.d.ts +9 -0
- package/dist/components/InkThreadPopover.svelte.d.ts.map +1 -0
- package/dist/components/InkToolButton.svelte +23 -7
- package/dist/components/InkToolButton.svelte.d.ts.map +1 -1
- package/dist/components/InkViewport.svelte +7 -0
- package/dist/components/InkViewport.svelte.d.ts.map +1 -1
- package/dist/components/SignatureForm.svelte +219 -0
- package/dist/components/SignatureForm.svelte.d.ts +10 -0
- package/dist/components/SignatureForm.svelte.d.ts.map +1 -0
- package/dist/components/ThreadForm.svelte +4 -2
- package/dist/components/ThreadForm.svelte.d.ts +1 -0
- package/dist/components/ThreadForm.svelte.d.ts.map +1 -1
- package/dist/components/child-snippet.d.ts +8 -0
- package/dist/components/child-snippet.d.ts.map +1 -1
- package/dist/components/child-snippet.js +15 -0
- package/dist/context.d.ts +14 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/hooks/useAnnotations.svelte.d.ts +1364 -146
- package/dist/hooks/useAnnotations.svelte.d.ts.map +1 -1
- package/dist/hooks/useToolOptions.svelte.d.ts +11 -0
- package/dist/hooks/useToolOptions.svelte.d.ts.map +1 -0
- package/dist/hooks/useToolOptions.svelte.js +19 -0
- package/dist/hooks/useToolStyle.svelte.d.ts +33 -0
- package/dist/hooks/useToolStyle.svelte.d.ts.map +1 -0
- package/dist/hooks/useToolStyle.svelte.js +33 -0
- package/dist/index.d.ts +20 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/package.json +5 -5
- package/dist/components/InkNotePopover.svelte.d.ts +0 -9
- package/dist/components/InkNotePopover.svelte.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AnnotationInput, AnnotationPatch } from '@inkbar/core';
|
|
2
2
|
export declare function useAnnotations(): {
|
|
3
3
|
readonly annotations: readonly ({
|
|
4
4
|
id: string;
|
|
@@ -37,6 +37,8 @@ export declare function useAnnotations(): {
|
|
|
37
37
|
contents?: string | undefined;
|
|
38
38
|
inReplyTo?: string | undefined;
|
|
39
39
|
locked?: boolean | undefined;
|
|
40
|
+
subject?: string | undefined;
|
|
41
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
40
42
|
custom?: Record<string, unknown> | undefined;
|
|
41
43
|
} | {
|
|
42
44
|
id: string;
|
|
@@ -52,12 +54,14 @@ export declare function useAnnotations(): {
|
|
|
52
54
|
createdAt: string;
|
|
53
55
|
modifiedAt: string;
|
|
54
56
|
source: "session" | "pdf";
|
|
55
|
-
type: "
|
|
56
|
-
icon: "
|
|
57
|
+
type: "text";
|
|
58
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
57
59
|
author?: string | undefined;
|
|
58
60
|
contents?: string | undefined;
|
|
59
61
|
inReplyTo?: string | undefined;
|
|
60
62
|
locked?: boolean | undefined;
|
|
63
|
+
subject?: string | undefined;
|
|
64
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
61
65
|
custom?: Record<string, unknown> | undefined;
|
|
62
66
|
} | {
|
|
63
67
|
id: string;
|
|
@@ -68,25 +72,73 @@ export declare function useAnnotations(): {
|
|
|
68
72
|
width: number;
|
|
69
73
|
height: number;
|
|
70
74
|
};
|
|
71
|
-
color: string;
|
|
72
75
|
opacity: number;
|
|
73
76
|
createdAt: string;
|
|
74
77
|
modifiedAt: string;
|
|
75
78
|
source: "session" | "pdf";
|
|
76
|
-
type: "
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
type: "freetext";
|
|
80
|
+
contents: string;
|
|
81
|
+
width: number;
|
|
82
|
+
defaultStyle: {
|
|
83
|
+
fontFamily: string;
|
|
84
|
+
fontSize: number;
|
|
85
|
+
color: string;
|
|
86
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
87
|
+
fontWeight?: "bold" | undefined;
|
|
88
|
+
fontStyle?: "italic" | undefined;
|
|
89
|
+
textDecoration?: "underline" | undefined;
|
|
90
|
+
align?: undefined;
|
|
91
|
+
};
|
|
81
92
|
author?: string | undefined;
|
|
82
|
-
contents?: string | undefined;
|
|
83
93
|
inReplyTo?: string | undefined;
|
|
84
94
|
locked?: boolean | undefined;
|
|
95
|
+
subject?: string | undefined;
|
|
96
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
85
97
|
custom?: Record<string, unknown> | undefined;
|
|
98
|
+
color?: string | undefined;
|
|
99
|
+
borderColor?: string | undefined;
|
|
100
|
+
dashes?: number[] | undefined;
|
|
101
|
+
cornerRadius?: number | undefined;
|
|
102
|
+
fringe?: {
|
|
103
|
+
left: number;
|
|
104
|
+
top: number;
|
|
105
|
+
right: number;
|
|
106
|
+
bottom: number;
|
|
107
|
+
} | undefined;
|
|
86
108
|
callout?: {
|
|
87
109
|
x: number;
|
|
88
110
|
y: number;
|
|
89
111
|
}[] | undefined;
|
|
112
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
113
|
+
fontFamily?: undefined;
|
|
114
|
+
fontSize?: undefined;
|
|
115
|
+
align?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
id: string;
|
|
118
|
+
page: number;
|
|
119
|
+
rect: {
|
|
120
|
+
x: number;
|
|
121
|
+
y: number;
|
|
122
|
+
width: number;
|
|
123
|
+
height: number;
|
|
124
|
+
};
|
|
125
|
+
color: string;
|
|
126
|
+
opacity: number;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
modifiedAt: string;
|
|
129
|
+
source: "session" | "pdf";
|
|
130
|
+
width: number;
|
|
131
|
+
type: "square";
|
|
132
|
+
author?: string | undefined;
|
|
133
|
+
contents?: string | undefined;
|
|
134
|
+
inReplyTo?: string | undefined;
|
|
135
|
+
locked?: boolean | undefined;
|
|
136
|
+
subject?: string | undefined;
|
|
137
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
138
|
+
custom?: Record<string, unknown> | undefined;
|
|
139
|
+
cornerRadius?: number | undefined;
|
|
140
|
+
dashes?: number[] | undefined;
|
|
141
|
+
interiorColor?: string | undefined;
|
|
90
142
|
} | {
|
|
91
143
|
id: string;
|
|
92
144
|
page: number;
|
|
@@ -101,14 +153,18 @@ export declare function useAnnotations(): {
|
|
|
101
153
|
createdAt: string;
|
|
102
154
|
modifiedAt: string;
|
|
103
155
|
source: "session" | "pdf";
|
|
104
|
-
|
|
105
|
-
|
|
156
|
+
width: number;
|
|
157
|
+
type: "circle";
|
|
106
158
|
author?: string | undefined;
|
|
107
159
|
contents?: string | undefined;
|
|
108
160
|
inReplyTo?: string | undefined;
|
|
109
161
|
locked?: boolean | undefined;
|
|
162
|
+
subject?: string | undefined;
|
|
163
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
110
164
|
custom?: Record<string, unknown> | undefined;
|
|
111
|
-
|
|
165
|
+
cornerRadius?: undefined;
|
|
166
|
+
dashes?: number[] | undefined;
|
|
167
|
+
interiorColor?: string | undefined;
|
|
112
168
|
} | {
|
|
113
169
|
id: string;
|
|
114
170
|
page: number;
|
|
@@ -132,13 +188,48 @@ export declare function useAnnotations(): {
|
|
|
132
188
|
x: number;
|
|
133
189
|
y: number;
|
|
134
190
|
};
|
|
135
|
-
|
|
191
|
+
width: number;
|
|
192
|
+
author?: string | undefined;
|
|
193
|
+
contents?: string | undefined;
|
|
194
|
+
inReplyTo?: string | undefined;
|
|
195
|
+
locked?: boolean | undefined;
|
|
196
|
+
subject?: string | undefined;
|
|
197
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
198
|
+
custom?: Record<string, unknown> | undefined;
|
|
199
|
+
dashes?: number[] | undefined;
|
|
200
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
201
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
202
|
+
} | {
|
|
203
|
+
id: string;
|
|
204
|
+
page: number;
|
|
205
|
+
rect: {
|
|
206
|
+
x: number;
|
|
207
|
+
y: number;
|
|
208
|
+
width: number;
|
|
209
|
+
height: number;
|
|
210
|
+
};
|
|
211
|
+
color: string;
|
|
212
|
+
opacity: number;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
modifiedAt: string;
|
|
215
|
+
source: "session" | "pdf";
|
|
216
|
+
vertices: {
|
|
217
|
+
x: number;
|
|
218
|
+
y: number;
|
|
219
|
+
}[];
|
|
220
|
+
width: number;
|
|
221
|
+
type: "polyline";
|
|
136
222
|
author?: string | undefined;
|
|
137
223
|
contents?: string | undefined;
|
|
138
224
|
inReplyTo?: string | undefined;
|
|
139
225
|
locked?: boolean | undefined;
|
|
226
|
+
subject?: string | undefined;
|
|
227
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
140
228
|
custom?: Record<string, unknown> | undefined;
|
|
141
|
-
|
|
229
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
230
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
231
|
+
dashes?: number[] | undefined;
|
|
232
|
+
interiorColor?: string | undefined;
|
|
142
233
|
} | {
|
|
143
234
|
id: string;
|
|
144
235
|
page: number;
|
|
@@ -153,18 +244,23 @@ export declare function useAnnotations(): {
|
|
|
153
244
|
createdAt: string;
|
|
154
245
|
modifiedAt: string;
|
|
155
246
|
source: "session" | "pdf";
|
|
156
|
-
type: "polyline" | "polygon";
|
|
157
247
|
vertices: {
|
|
158
248
|
x: number;
|
|
159
249
|
y: number;
|
|
160
250
|
}[];
|
|
161
|
-
|
|
251
|
+
width: number;
|
|
252
|
+
type: "polygon";
|
|
162
253
|
author?: string | undefined;
|
|
163
254
|
contents?: string | undefined;
|
|
164
255
|
inReplyTo?: string | undefined;
|
|
165
256
|
locked?: boolean | undefined;
|
|
257
|
+
subject?: string | undefined;
|
|
258
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
166
259
|
custom?: Record<string, unknown> | undefined;
|
|
167
|
-
|
|
260
|
+
head?: undefined;
|
|
261
|
+
tail?: undefined;
|
|
262
|
+
dashes?: number[] | undefined;
|
|
263
|
+
interiorColor?: string | undefined;
|
|
168
264
|
} | {
|
|
169
265
|
id: string;
|
|
170
266
|
page: number;
|
|
@@ -180,15 +276,91 @@ export declare function useAnnotations(): {
|
|
|
180
276
|
modifiedAt: string;
|
|
181
277
|
source: "session" | "pdf";
|
|
182
278
|
type: "ink";
|
|
183
|
-
|
|
279
|
+
inklist: {
|
|
184
280
|
x: number;
|
|
185
281
|
y: number;
|
|
186
282
|
}[][];
|
|
187
|
-
|
|
283
|
+
width: number;
|
|
284
|
+
author?: string | undefined;
|
|
285
|
+
contents?: string | undefined;
|
|
286
|
+
inReplyTo?: string | undefined;
|
|
287
|
+
locked?: boolean | undefined;
|
|
288
|
+
subject?: string | undefined;
|
|
289
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
290
|
+
custom?: Record<string, unknown> | undefined;
|
|
291
|
+
pressure?: number[][] | undefined;
|
|
292
|
+
dashes?: number[] | undefined;
|
|
293
|
+
} | {
|
|
294
|
+
id: string;
|
|
295
|
+
page: number;
|
|
296
|
+
rect: {
|
|
297
|
+
x: number;
|
|
298
|
+
y: number;
|
|
299
|
+
width: number;
|
|
300
|
+
height: number;
|
|
301
|
+
};
|
|
302
|
+
color: string;
|
|
303
|
+
opacity: number;
|
|
304
|
+
createdAt: string;
|
|
305
|
+
modifiedAt: string;
|
|
306
|
+
source: "session" | "pdf";
|
|
307
|
+
type: "stamp";
|
|
308
|
+
imagedata: string;
|
|
309
|
+
author?: string | undefined;
|
|
310
|
+
contents?: string | undefined;
|
|
311
|
+
inReplyTo?: string | undefined;
|
|
312
|
+
locked?: boolean | undefined;
|
|
313
|
+
subject?: string | undefined;
|
|
314
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
315
|
+
custom?: Record<string, unknown> | undefined;
|
|
316
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
317
|
+
} | {
|
|
318
|
+
id: string;
|
|
319
|
+
page: number;
|
|
320
|
+
rect: {
|
|
321
|
+
x: number;
|
|
322
|
+
y: number;
|
|
323
|
+
width: number;
|
|
324
|
+
height: number;
|
|
325
|
+
};
|
|
326
|
+
color: string;
|
|
327
|
+
opacity: number;
|
|
328
|
+
createdAt: string;
|
|
329
|
+
modifiedAt: string;
|
|
330
|
+
source: "session" | "pdf";
|
|
331
|
+
type: "loupe";
|
|
332
|
+
magnification: number;
|
|
333
|
+
width: number;
|
|
334
|
+
author?: string | undefined;
|
|
335
|
+
contents?: string | undefined;
|
|
336
|
+
inReplyTo?: string | undefined;
|
|
337
|
+
locked?: boolean | undefined;
|
|
338
|
+
subject?: string | undefined;
|
|
339
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
340
|
+
custom?: Record<string, unknown> | undefined;
|
|
341
|
+
} | {
|
|
342
|
+
id: string;
|
|
343
|
+
page: number;
|
|
344
|
+
rect: {
|
|
345
|
+
x: number;
|
|
346
|
+
y: number;
|
|
347
|
+
width: number;
|
|
348
|
+
height: number;
|
|
349
|
+
};
|
|
350
|
+
color: string;
|
|
351
|
+
opacity: number;
|
|
352
|
+
createdAt: string;
|
|
353
|
+
modifiedAt: string;
|
|
354
|
+
source: "session" | "pdf";
|
|
355
|
+
type: "mask";
|
|
356
|
+
shape: "rect" | "ellipse";
|
|
357
|
+
dim: number;
|
|
188
358
|
author?: string | undefined;
|
|
189
359
|
contents?: string | undefined;
|
|
190
360
|
inReplyTo?: string | undefined;
|
|
191
361
|
locked?: boolean | undefined;
|
|
362
|
+
subject?: string | undefined;
|
|
363
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
192
364
|
custom?: Record<string, unknown> | undefined;
|
|
193
365
|
} | {
|
|
194
366
|
id: string;
|
|
@@ -206,11 +378,13 @@ export declare function useAnnotations(): {
|
|
|
206
378
|
source: "session" | "pdf";
|
|
207
379
|
type: "redact";
|
|
208
380
|
origin: "user" | "suggested";
|
|
209
|
-
|
|
381
|
+
interiorColor: string;
|
|
210
382
|
author?: string | undefined;
|
|
211
383
|
contents?: string | undefined;
|
|
212
384
|
inReplyTo?: string | undefined;
|
|
213
385
|
locked?: boolean | undefined;
|
|
386
|
+
subject?: string | undefined;
|
|
387
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
214
388
|
custom?: Record<string, unknown> | undefined;
|
|
215
389
|
quads?: {
|
|
216
390
|
p1: {
|
|
@@ -277,6 +451,8 @@ export declare function useAnnotations(): {
|
|
|
277
451
|
contents?: string | undefined;
|
|
278
452
|
inReplyTo?: string | undefined;
|
|
279
453
|
locked?: boolean | undefined;
|
|
454
|
+
subject?: string | undefined;
|
|
455
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
280
456
|
custom?: Record<string, unknown> | undefined;
|
|
281
457
|
} | {
|
|
282
458
|
id: string;
|
|
@@ -292,12 +468,14 @@ export declare function useAnnotations(): {
|
|
|
292
468
|
createdAt: string;
|
|
293
469
|
modifiedAt: string;
|
|
294
470
|
source: "session" | "pdf";
|
|
295
|
-
type: "
|
|
296
|
-
icon: "
|
|
471
|
+
type: "text";
|
|
472
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
297
473
|
author?: string | undefined;
|
|
298
474
|
contents?: string | undefined;
|
|
299
475
|
inReplyTo?: string | undefined;
|
|
300
476
|
locked?: boolean | undefined;
|
|
477
|
+
subject?: string | undefined;
|
|
478
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
301
479
|
custom?: Record<string, unknown> | undefined;
|
|
302
480
|
} | {
|
|
303
481
|
id: string;
|
|
@@ -308,25 +486,73 @@ export declare function useAnnotations(): {
|
|
|
308
486
|
width: number;
|
|
309
487
|
height: number;
|
|
310
488
|
};
|
|
311
|
-
color: string;
|
|
312
489
|
opacity: number;
|
|
313
490
|
createdAt: string;
|
|
314
491
|
modifiedAt: string;
|
|
315
492
|
source: "session" | "pdf";
|
|
316
|
-
type: "
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
493
|
+
type: "freetext";
|
|
494
|
+
contents: string;
|
|
495
|
+
width: number;
|
|
496
|
+
defaultStyle: {
|
|
497
|
+
fontFamily: string;
|
|
498
|
+
fontSize: number;
|
|
499
|
+
color: string;
|
|
500
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
501
|
+
fontWeight?: "bold" | undefined;
|
|
502
|
+
fontStyle?: "italic" | undefined;
|
|
503
|
+
textDecoration?: "underline" | undefined;
|
|
504
|
+
align?: undefined;
|
|
505
|
+
};
|
|
321
506
|
author?: string | undefined;
|
|
322
|
-
contents?: string | undefined;
|
|
323
507
|
inReplyTo?: string | undefined;
|
|
324
508
|
locked?: boolean | undefined;
|
|
509
|
+
subject?: string | undefined;
|
|
510
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
325
511
|
custom?: Record<string, unknown> | undefined;
|
|
512
|
+
color?: string | undefined;
|
|
513
|
+
borderColor?: string | undefined;
|
|
514
|
+
dashes?: number[] | undefined;
|
|
515
|
+
cornerRadius?: number | undefined;
|
|
516
|
+
fringe?: {
|
|
517
|
+
left: number;
|
|
518
|
+
top: number;
|
|
519
|
+
right: number;
|
|
520
|
+
bottom: number;
|
|
521
|
+
} | undefined;
|
|
326
522
|
callout?: {
|
|
327
523
|
x: number;
|
|
328
524
|
y: number;
|
|
329
525
|
}[] | undefined;
|
|
526
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
527
|
+
fontFamily?: undefined;
|
|
528
|
+
fontSize?: undefined;
|
|
529
|
+
align?: undefined;
|
|
530
|
+
} | {
|
|
531
|
+
id: string;
|
|
532
|
+
page: number;
|
|
533
|
+
rect: {
|
|
534
|
+
x: number;
|
|
535
|
+
y: number;
|
|
536
|
+
width: number;
|
|
537
|
+
height: number;
|
|
538
|
+
};
|
|
539
|
+
color: string;
|
|
540
|
+
opacity: number;
|
|
541
|
+
createdAt: string;
|
|
542
|
+
modifiedAt: string;
|
|
543
|
+
source: "session" | "pdf";
|
|
544
|
+
width: number;
|
|
545
|
+
type: "square";
|
|
546
|
+
author?: string | undefined;
|
|
547
|
+
contents?: string | undefined;
|
|
548
|
+
inReplyTo?: string | undefined;
|
|
549
|
+
locked?: boolean | undefined;
|
|
550
|
+
subject?: string | undefined;
|
|
551
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
552
|
+
custom?: Record<string, unknown> | undefined;
|
|
553
|
+
cornerRadius?: number | undefined;
|
|
554
|
+
dashes?: number[] | undefined;
|
|
555
|
+
interiorColor?: string | undefined;
|
|
330
556
|
} | {
|
|
331
557
|
id: string;
|
|
332
558
|
page: number;
|
|
@@ -341,14 +567,18 @@ export declare function useAnnotations(): {
|
|
|
341
567
|
createdAt: string;
|
|
342
568
|
modifiedAt: string;
|
|
343
569
|
source: "session" | "pdf";
|
|
344
|
-
|
|
345
|
-
|
|
570
|
+
width: number;
|
|
571
|
+
type: "circle";
|
|
346
572
|
author?: string | undefined;
|
|
347
573
|
contents?: string | undefined;
|
|
348
574
|
inReplyTo?: string | undefined;
|
|
349
575
|
locked?: boolean | undefined;
|
|
576
|
+
subject?: string | undefined;
|
|
577
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
350
578
|
custom?: Record<string, unknown> | undefined;
|
|
351
|
-
|
|
579
|
+
cornerRadius?: undefined;
|
|
580
|
+
dashes?: number[] | undefined;
|
|
581
|
+
interiorColor?: string | undefined;
|
|
352
582
|
} | {
|
|
353
583
|
id: string;
|
|
354
584
|
page: number;
|
|
@@ -372,13 +602,48 @@ export declare function useAnnotations(): {
|
|
|
372
602
|
x: number;
|
|
373
603
|
y: number;
|
|
374
604
|
};
|
|
375
|
-
|
|
605
|
+
width: number;
|
|
606
|
+
author?: string | undefined;
|
|
607
|
+
contents?: string | undefined;
|
|
608
|
+
inReplyTo?: string | undefined;
|
|
609
|
+
locked?: boolean | undefined;
|
|
610
|
+
subject?: string | undefined;
|
|
611
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
612
|
+
custom?: Record<string, unknown> | undefined;
|
|
613
|
+
dashes?: number[] | undefined;
|
|
614
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
615
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
616
|
+
} | {
|
|
617
|
+
id: string;
|
|
618
|
+
page: number;
|
|
619
|
+
rect: {
|
|
620
|
+
x: number;
|
|
621
|
+
y: number;
|
|
622
|
+
width: number;
|
|
623
|
+
height: number;
|
|
624
|
+
};
|
|
625
|
+
color: string;
|
|
626
|
+
opacity: number;
|
|
627
|
+
createdAt: string;
|
|
628
|
+
modifiedAt: string;
|
|
629
|
+
source: "session" | "pdf";
|
|
630
|
+
vertices: {
|
|
631
|
+
x: number;
|
|
632
|
+
y: number;
|
|
633
|
+
}[];
|
|
634
|
+
width: number;
|
|
635
|
+
type: "polyline";
|
|
376
636
|
author?: string | undefined;
|
|
377
637
|
contents?: string | undefined;
|
|
378
638
|
inReplyTo?: string | undefined;
|
|
379
639
|
locked?: boolean | undefined;
|
|
640
|
+
subject?: string | undefined;
|
|
641
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
380
642
|
custom?: Record<string, unknown> | undefined;
|
|
381
|
-
|
|
643
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
644
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
645
|
+
dashes?: number[] | undefined;
|
|
646
|
+
interiorColor?: string | undefined;
|
|
382
647
|
} | {
|
|
383
648
|
id: string;
|
|
384
649
|
page: number;
|
|
@@ -393,18 +658,23 @@ export declare function useAnnotations(): {
|
|
|
393
658
|
createdAt: string;
|
|
394
659
|
modifiedAt: string;
|
|
395
660
|
source: "session" | "pdf";
|
|
396
|
-
type: "polyline" | "polygon";
|
|
397
661
|
vertices: {
|
|
398
662
|
x: number;
|
|
399
663
|
y: number;
|
|
400
664
|
}[];
|
|
401
|
-
|
|
665
|
+
width: number;
|
|
666
|
+
type: "polygon";
|
|
402
667
|
author?: string | undefined;
|
|
403
668
|
contents?: string | undefined;
|
|
404
669
|
inReplyTo?: string | undefined;
|
|
405
670
|
locked?: boolean | undefined;
|
|
671
|
+
subject?: string | undefined;
|
|
672
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
406
673
|
custom?: Record<string, unknown> | undefined;
|
|
407
|
-
|
|
674
|
+
head?: undefined;
|
|
675
|
+
tail?: undefined;
|
|
676
|
+
dashes?: number[] | undefined;
|
|
677
|
+
interiorColor?: string | undefined;
|
|
408
678
|
} | {
|
|
409
679
|
id: string;
|
|
410
680
|
page: number;
|
|
@@ -420,15 +690,91 @@ export declare function useAnnotations(): {
|
|
|
420
690
|
modifiedAt: string;
|
|
421
691
|
source: "session" | "pdf";
|
|
422
692
|
type: "ink";
|
|
423
|
-
|
|
693
|
+
inklist: {
|
|
424
694
|
x: number;
|
|
425
695
|
y: number;
|
|
426
696
|
}[][];
|
|
427
|
-
|
|
697
|
+
width: number;
|
|
698
|
+
author?: string | undefined;
|
|
699
|
+
contents?: string | undefined;
|
|
700
|
+
inReplyTo?: string | undefined;
|
|
701
|
+
locked?: boolean | undefined;
|
|
702
|
+
subject?: string | undefined;
|
|
703
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
704
|
+
custom?: Record<string, unknown> | undefined;
|
|
705
|
+
pressure?: number[][] | undefined;
|
|
706
|
+
dashes?: number[] | undefined;
|
|
707
|
+
} | {
|
|
708
|
+
id: string;
|
|
709
|
+
page: number;
|
|
710
|
+
rect: {
|
|
711
|
+
x: number;
|
|
712
|
+
y: number;
|
|
713
|
+
width: number;
|
|
714
|
+
height: number;
|
|
715
|
+
};
|
|
716
|
+
color: string;
|
|
717
|
+
opacity: number;
|
|
718
|
+
createdAt: string;
|
|
719
|
+
modifiedAt: string;
|
|
720
|
+
source: "session" | "pdf";
|
|
721
|
+
type: "stamp";
|
|
722
|
+
imagedata: string;
|
|
723
|
+
author?: string | undefined;
|
|
724
|
+
contents?: string | undefined;
|
|
725
|
+
inReplyTo?: string | undefined;
|
|
726
|
+
locked?: boolean | undefined;
|
|
727
|
+
subject?: string | undefined;
|
|
728
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
729
|
+
custom?: Record<string, unknown> | undefined;
|
|
730
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
731
|
+
} | {
|
|
732
|
+
id: string;
|
|
733
|
+
page: number;
|
|
734
|
+
rect: {
|
|
735
|
+
x: number;
|
|
736
|
+
y: number;
|
|
737
|
+
width: number;
|
|
738
|
+
height: number;
|
|
739
|
+
};
|
|
740
|
+
color: string;
|
|
741
|
+
opacity: number;
|
|
742
|
+
createdAt: string;
|
|
743
|
+
modifiedAt: string;
|
|
744
|
+
source: "session" | "pdf";
|
|
745
|
+
type: "loupe";
|
|
746
|
+
magnification: number;
|
|
747
|
+
width: number;
|
|
748
|
+
author?: string | undefined;
|
|
749
|
+
contents?: string | undefined;
|
|
750
|
+
inReplyTo?: string | undefined;
|
|
751
|
+
locked?: boolean | undefined;
|
|
752
|
+
subject?: string | undefined;
|
|
753
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
754
|
+
custom?: Record<string, unknown> | undefined;
|
|
755
|
+
} | {
|
|
756
|
+
id: string;
|
|
757
|
+
page: number;
|
|
758
|
+
rect: {
|
|
759
|
+
x: number;
|
|
760
|
+
y: number;
|
|
761
|
+
width: number;
|
|
762
|
+
height: number;
|
|
763
|
+
};
|
|
764
|
+
color: string;
|
|
765
|
+
opacity: number;
|
|
766
|
+
createdAt: string;
|
|
767
|
+
modifiedAt: string;
|
|
768
|
+
source: "session" | "pdf";
|
|
769
|
+
type: "mask";
|
|
770
|
+
shape: "rect" | "ellipse";
|
|
771
|
+
dim: number;
|
|
428
772
|
author?: string | undefined;
|
|
429
773
|
contents?: string | undefined;
|
|
430
774
|
inReplyTo?: string | undefined;
|
|
431
775
|
locked?: boolean | undefined;
|
|
776
|
+
subject?: string | undefined;
|
|
777
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
432
778
|
custom?: Record<string, unknown> | undefined;
|
|
433
779
|
} | {
|
|
434
780
|
id: string;
|
|
@@ -446,11 +792,13 @@ export declare function useAnnotations(): {
|
|
|
446
792
|
source: "session" | "pdf";
|
|
447
793
|
type: "redact";
|
|
448
794
|
origin: "user" | "suggested";
|
|
449
|
-
|
|
795
|
+
interiorColor: string;
|
|
450
796
|
author?: string | undefined;
|
|
451
797
|
contents?: string | undefined;
|
|
452
798
|
inReplyTo?: string | undefined;
|
|
453
799
|
locked?: boolean | undefined;
|
|
800
|
+
subject?: string | undefined;
|
|
801
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
454
802
|
custom?: Record<string, unknown> | undefined;
|
|
455
803
|
quads?: {
|
|
456
804
|
p1: {
|
|
@@ -516,6 +864,8 @@ export declare function useAnnotations(): {
|
|
|
516
864
|
contents?: string | undefined;
|
|
517
865
|
inReplyTo?: string | undefined;
|
|
518
866
|
locked?: boolean | undefined;
|
|
867
|
+
subject?: string | undefined;
|
|
868
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
519
869
|
custom?: Record<string, unknown> | undefined;
|
|
520
870
|
} | {
|
|
521
871
|
id: string;
|
|
@@ -531,12 +881,14 @@ export declare function useAnnotations(): {
|
|
|
531
881
|
createdAt: string;
|
|
532
882
|
modifiedAt: string;
|
|
533
883
|
source: "session" | "pdf";
|
|
534
|
-
type: "
|
|
535
|
-
icon: "
|
|
884
|
+
type: "text";
|
|
885
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
536
886
|
author?: string | undefined;
|
|
537
887
|
contents?: string | undefined;
|
|
538
888
|
inReplyTo?: string | undefined;
|
|
539
889
|
locked?: boolean | undefined;
|
|
890
|
+
subject?: string | undefined;
|
|
891
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
540
892
|
custom?: Record<string, unknown> | undefined;
|
|
541
893
|
} | {
|
|
542
894
|
id: string;
|
|
@@ -547,25 +899,73 @@ export declare function useAnnotations(): {
|
|
|
547
899
|
width: number;
|
|
548
900
|
height: number;
|
|
549
901
|
};
|
|
550
|
-
color: string;
|
|
551
902
|
opacity: number;
|
|
552
903
|
createdAt: string;
|
|
553
904
|
modifiedAt: string;
|
|
554
905
|
source: "session" | "pdf";
|
|
555
|
-
type: "
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
906
|
+
type: "freetext";
|
|
907
|
+
contents: string;
|
|
908
|
+
width: number;
|
|
909
|
+
defaultStyle: {
|
|
910
|
+
fontFamily: string;
|
|
911
|
+
fontSize: number;
|
|
912
|
+
color: string;
|
|
913
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
914
|
+
fontWeight?: "bold" | undefined;
|
|
915
|
+
fontStyle?: "italic" | undefined;
|
|
916
|
+
textDecoration?: "underline" | undefined;
|
|
917
|
+
align?: undefined;
|
|
918
|
+
};
|
|
560
919
|
author?: string | undefined;
|
|
561
|
-
contents?: string | undefined;
|
|
562
920
|
inReplyTo?: string | undefined;
|
|
563
921
|
locked?: boolean | undefined;
|
|
922
|
+
subject?: string | undefined;
|
|
923
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
564
924
|
custom?: Record<string, unknown> | undefined;
|
|
925
|
+
color?: string | undefined;
|
|
926
|
+
borderColor?: string | undefined;
|
|
927
|
+
dashes?: number[] | undefined;
|
|
928
|
+
cornerRadius?: number | undefined;
|
|
929
|
+
fringe?: {
|
|
930
|
+
left: number;
|
|
931
|
+
top: number;
|
|
932
|
+
right: number;
|
|
933
|
+
bottom: number;
|
|
934
|
+
} | undefined;
|
|
565
935
|
callout?: {
|
|
566
936
|
x: number;
|
|
567
937
|
y: number;
|
|
568
938
|
}[] | undefined;
|
|
939
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
940
|
+
fontFamily?: undefined;
|
|
941
|
+
fontSize?: undefined;
|
|
942
|
+
align?: undefined;
|
|
943
|
+
} | {
|
|
944
|
+
id: string;
|
|
945
|
+
page: number;
|
|
946
|
+
rect: {
|
|
947
|
+
x: number;
|
|
948
|
+
y: number;
|
|
949
|
+
width: number;
|
|
950
|
+
height: number;
|
|
951
|
+
};
|
|
952
|
+
color: string;
|
|
953
|
+
opacity: number;
|
|
954
|
+
createdAt: string;
|
|
955
|
+
modifiedAt: string;
|
|
956
|
+
source: "session" | "pdf";
|
|
957
|
+
width: number;
|
|
958
|
+
type: "square";
|
|
959
|
+
author?: string | undefined;
|
|
960
|
+
contents?: string | undefined;
|
|
961
|
+
inReplyTo?: string | undefined;
|
|
962
|
+
locked?: boolean | undefined;
|
|
963
|
+
subject?: string | undefined;
|
|
964
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
965
|
+
custom?: Record<string, unknown> | undefined;
|
|
966
|
+
cornerRadius?: number | undefined;
|
|
967
|
+
dashes?: number[] | undefined;
|
|
968
|
+
interiorColor?: string | undefined;
|
|
569
969
|
} | {
|
|
570
970
|
id: string;
|
|
571
971
|
page: number;
|
|
@@ -580,14 +980,18 @@ export declare function useAnnotations(): {
|
|
|
580
980
|
createdAt: string;
|
|
581
981
|
modifiedAt: string;
|
|
582
982
|
source: "session" | "pdf";
|
|
583
|
-
|
|
584
|
-
|
|
983
|
+
width: number;
|
|
984
|
+
type: "circle";
|
|
585
985
|
author?: string | undefined;
|
|
586
986
|
contents?: string | undefined;
|
|
587
987
|
inReplyTo?: string | undefined;
|
|
588
988
|
locked?: boolean | undefined;
|
|
989
|
+
subject?: string | undefined;
|
|
990
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
589
991
|
custom?: Record<string, unknown> | undefined;
|
|
590
|
-
|
|
992
|
+
cornerRadius?: undefined;
|
|
993
|
+
dashes?: number[] | undefined;
|
|
994
|
+
interiorColor?: string | undefined;
|
|
591
995
|
} | {
|
|
592
996
|
id: string;
|
|
593
997
|
page: number;
|
|
@@ -611,13 +1015,48 @@ export declare function useAnnotations(): {
|
|
|
611
1015
|
x: number;
|
|
612
1016
|
y: number;
|
|
613
1017
|
};
|
|
614
|
-
|
|
1018
|
+
width: number;
|
|
1019
|
+
author?: string | undefined;
|
|
1020
|
+
contents?: string | undefined;
|
|
1021
|
+
inReplyTo?: string | undefined;
|
|
1022
|
+
locked?: boolean | undefined;
|
|
1023
|
+
subject?: string | undefined;
|
|
1024
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1025
|
+
custom?: Record<string, unknown> | undefined;
|
|
1026
|
+
dashes?: number[] | undefined;
|
|
1027
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1028
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | 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
|
+
vertices: {
|
|
1044
|
+
x: number;
|
|
1045
|
+
y: number;
|
|
1046
|
+
}[];
|
|
1047
|
+
width: number;
|
|
1048
|
+
type: "polyline";
|
|
615
1049
|
author?: string | undefined;
|
|
616
1050
|
contents?: string | undefined;
|
|
617
1051
|
inReplyTo?: string | undefined;
|
|
618
1052
|
locked?: boolean | undefined;
|
|
1053
|
+
subject?: string | undefined;
|
|
1054
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
619
1055
|
custom?: Record<string, unknown> | undefined;
|
|
620
|
-
|
|
1056
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1057
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1058
|
+
dashes?: number[] | undefined;
|
|
1059
|
+
interiorColor?: string | undefined;
|
|
621
1060
|
} | {
|
|
622
1061
|
id: string;
|
|
623
1062
|
page: number;
|
|
@@ -632,18 +1071,23 @@ export declare function useAnnotations(): {
|
|
|
632
1071
|
createdAt: string;
|
|
633
1072
|
modifiedAt: string;
|
|
634
1073
|
source: "session" | "pdf";
|
|
635
|
-
type: "polyline" | "polygon";
|
|
636
1074
|
vertices: {
|
|
637
1075
|
x: number;
|
|
638
1076
|
y: number;
|
|
639
1077
|
}[];
|
|
640
|
-
|
|
1078
|
+
width: number;
|
|
1079
|
+
type: "polygon";
|
|
641
1080
|
author?: string | undefined;
|
|
642
1081
|
contents?: string | undefined;
|
|
643
1082
|
inReplyTo?: string | undefined;
|
|
644
1083
|
locked?: boolean | undefined;
|
|
1084
|
+
subject?: string | undefined;
|
|
1085
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
645
1086
|
custom?: Record<string, unknown> | undefined;
|
|
646
|
-
|
|
1087
|
+
head?: undefined;
|
|
1088
|
+
tail?: undefined;
|
|
1089
|
+
dashes?: number[] | undefined;
|
|
1090
|
+
interiorColor?: string | undefined;
|
|
647
1091
|
} | {
|
|
648
1092
|
id: string;
|
|
649
1093
|
page: number;
|
|
@@ -659,16 +1103,20 @@ export declare function useAnnotations(): {
|
|
|
659
1103
|
modifiedAt: string;
|
|
660
1104
|
source: "session" | "pdf";
|
|
661
1105
|
type: "ink";
|
|
662
|
-
|
|
1106
|
+
inklist: {
|
|
663
1107
|
x: number;
|
|
664
1108
|
y: number;
|
|
665
1109
|
}[][];
|
|
666
|
-
|
|
1110
|
+
width: number;
|
|
667
1111
|
author?: string | undefined;
|
|
668
1112
|
contents?: string | undefined;
|
|
669
1113
|
inReplyTo?: string | undefined;
|
|
670
1114
|
locked?: boolean | undefined;
|
|
1115
|
+
subject?: string | undefined;
|
|
1116
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
671
1117
|
custom?: Record<string, unknown> | undefined;
|
|
1118
|
+
pressure?: number[][] | undefined;
|
|
1119
|
+
dashes?: number[] | undefined;
|
|
672
1120
|
} | {
|
|
673
1121
|
id: string;
|
|
674
1122
|
page: number;
|
|
@@ -683,16 +1131,90 @@ export declare function useAnnotations(): {
|
|
|
683
1131
|
createdAt: string;
|
|
684
1132
|
modifiedAt: string;
|
|
685
1133
|
source: "session" | "pdf";
|
|
686
|
-
type: "
|
|
687
|
-
|
|
688
|
-
fill: string;
|
|
1134
|
+
type: "stamp";
|
|
1135
|
+
imagedata: string;
|
|
689
1136
|
author?: string | undefined;
|
|
690
1137
|
contents?: string | undefined;
|
|
691
1138
|
inReplyTo?: string | undefined;
|
|
692
1139
|
locked?: boolean | undefined;
|
|
1140
|
+
subject?: string | undefined;
|
|
1141
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
693
1142
|
custom?: Record<string, unknown> | undefined;
|
|
694
|
-
|
|
695
|
-
|
|
1143
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1144
|
+
} | {
|
|
1145
|
+
id: string;
|
|
1146
|
+
page: number;
|
|
1147
|
+
rect: {
|
|
1148
|
+
x: number;
|
|
1149
|
+
y: number;
|
|
1150
|
+
width: number;
|
|
1151
|
+
height: number;
|
|
1152
|
+
};
|
|
1153
|
+
color: string;
|
|
1154
|
+
opacity: number;
|
|
1155
|
+
createdAt: string;
|
|
1156
|
+
modifiedAt: string;
|
|
1157
|
+
source: "session" | "pdf";
|
|
1158
|
+
type: "loupe";
|
|
1159
|
+
magnification: number;
|
|
1160
|
+
width: number;
|
|
1161
|
+
author?: string | undefined;
|
|
1162
|
+
contents?: string | undefined;
|
|
1163
|
+
inReplyTo?: string | undefined;
|
|
1164
|
+
locked?: boolean | undefined;
|
|
1165
|
+
subject?: string | undefined;
|
|
1166
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1167
|
+
custom?: Record<string, unknown> | undefined;
|
|
1168
|
+
} | {
|
|
1169
|
+
id: string;
|
|
1170
|
+
page: number;
|
|
1171
|
+
rect: {
|
|
1172
|
+
x: number;
|
|
1173
|
+
y: number;
|
|
1174
|
+
width: number;
|
|
1175
|
+
height: number;
|
|
1176
|
+
};
|
|
1177
|
+
color: string;
|
|
1178
|
+
opacity: number;
|
|
1179
|
+
createdAt: string;
|
|
1180
|
+
modifiedAt: string;
|
|
1181
|
+
source: "session" | "pdf";
|
|
1182
|
+
type: "mask";
|
|
1183
|
+
shape: "rect" | "ellipse";
|
|
1184
|
+
dim: number;
|
|
1185
|
+
author?: string | undefined;
|
|
1186
|
+
contents?: string | undefined;
|
|
1187
|
+
inReplyTo?: string | undefined;
|
|
1188
|
+
locked?: boolean | undefined;
|
|
1189
|
+
subject?: string | undefined;
|
|
1190
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1191
|
+
custom?: Record<string, unknown> | undefined;
|
|
1192
|
+
} | {
|
|
1193
|
+
id: string;
|
|
1194
|
+
page: number;
|
|
1195
|
+
rect: {
|
|
1196
|
+
x: number;
|
|
1197
|
+
y: number;
|
|
1198
|
+
width: number;
|
|
1199
|
+
height: number;
|
|
1200
|
+
};
|
|
1201
|
+
color: string;
|
|
1202
|
+
opacity: number;
|
|
1203
|
+
createdAt: string;
|
|
1204
|
+
modifiedAt: string;
|
|
1205
|
+
source: "session" | "pdf";
|
|
1206
|
+
type: "redact";
|
|
1207
|
+
origin: "user" | "suggested";
|
|
1208
|
+
interiorColor: string;
|
|
1209
|
+
author?: string | undefined;
|
|
1210
|
+
contents?: string | undefined;
|
|
1211
|
+
inReplyTo?: string | undefined;
|
|
1212
|
+
locked?: boolean | undefined;
|
|
1213
|
+
subject?: string | undefined;
|
|
1214
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1215
|
+
custom?: Record<string, unknown> | undefined;
|
|
1216
|
+
quads?: {
|
|
1217
|
+
p1: {
|
|
696
1218
|
x: number;
|
|
697
1219
|
y: number;
|
|
698
1220
|
};
|
|
@@ -756,6 +1278,8 @@ export declare function useAnnotations(): {
|
|
|
756
1278
|
contents?: string | undefined;
|
|
757
1279
|
inReplyTo?: string | undefined;
|
|
758
1280
|
locked?: boolean | undefined;
|
|
1281
|
+
subject?: string | undefined;
|
|
1282
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
759
1283
|
custom?: Record<string, unknown> | undefined;
|
|
760
1284
|
} | {
|
|
761
1285
|
id: string;
|
|
@@ -771,12 +1295,14 @@ export declare function useAnnotations(): {
|
|
|
771
1295
|
createdAt: string;
|
|
772
1296
|
modifiedAt: string;
|
|
773
1297
|
source: "session" | "pdf";
|
|
774
|
-
type: "
|
|
775
|
-
icon: "
|
|
1298
|
+
type: "text";
|
|
1299
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
776
1300
|
author?: string | undefined;
|
|
777
1301
|
contents?: string | undefined;
|
|
778
1302
|
inReplyTo?: string | undefined;
|
|
779
1303
|
locked?: boolean | undefined;
|
|
1304
|
+
subject?: string | undefined;
|
|
1305
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
780
1306
|
custom?: Record<string, unknown> | undefined;
|
|
781
1307
|
} | {
|
|
782
1308
|
id: string;
|
|
@@ -787,25 +1313,73 @@ export declare function useAnnotations(): {
|
|
|
787
1313
|
width: number;
|
|
788
1314
|
height: number;
|
|
789
1315
|
};
|
|
790
|
-
color: string;
|
|
791
1316
|
opacity: number;
|
|
792
1317
|
createdAt: string;
|
|
793
1318
|
modifiedAt: string;
|
|
794
1319
|
source: "session" | "pdf";
|
|
795
|
-
type: "
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
1320
|
+
type: "freetext";
|
|
1321
|
+
contents: string;
|
|
1322
|
+
width: number;
|
|
1323
|
+
defaultStyle: {
|
|
1324
|
+
fontFamily: string;
|
|
1325
|
+
fontSize: number;
|
|
1326
|
+
color: string;
|
|
1327
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
1328
|
+
fontWeight?: "bold" | undefined;
|
|
1329
|
+
fontStyle?: "italic" | undefined;
|
|
1330
|
+
textDecoration?: "underline" | undefined;
|
|
1331
|
+
align?: undefined;
|
|
1332
|
+
};
|
|
800
1333
|
author?: string | undefined;
|
|
801
|
-
contents?: string | undefined;
|
|
802
1334
|
inReplyTo?: string | undefined;
|
|
803
1335
|
locked?: boolean | undefined;
|
|
1336
|
+
subject?: string | undefined;
|
|
1337
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
804
1338
|
custom?: Record<string, unknown> | undefined;
|
|
1339
|
+
color?: string | undefined;
|
|
1340
|
+
borderColor?: string | undefined;
|
|
1341
|
+
dashes?: number[] | undefined;
|
|
1342
|
+
cornerRadius?: number | undefined;
|
|
1343
|
+
fringe?: {
|
|
1344
|
+
left: number;
|
|
1345
|
+
top: number;
|
|
1346
|
+
right: number;
|
|
1347
|
+
bottom: number;
|
|
1348
|
+
} | undefined;
|
|
805
1349
|
callout?: {
|
|
806
1350
|
x: number;
|
|
807
1351
|
y: number;
|
|
808
1352
|
}[] | undefined;
|
|
1353
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1354
|
+
fontFamily?: undefined;
|
|
1355
|
+
fontSize?: undefined;
|
|
1356
|
+
align?: undefined;
|
|
1357
|
+
} | {
|
|
1358
|
+
id: string;
|
|
1359
|
+
page: number;
|
|
1360
|
+
rect: {
|
|
1361
|
+
x: number;
|
|
1362
|
+
y: number;
|
|
1363
|
+
width: number;
|
|
1364
|
+
height: number;
|
|
1365
|
+
};
|
|
1366
|
+
color: string;
|
|
1367
|
+
opacity: number;
|
|
1368
|
+
createdAt: string;
|
|
1369
|
+
modifiedAt: string;
|
|
1370
|
+
source: "session" | "pdf";
|
|
1371
|
+
width: number;
|
|
1372
|
+
type: "square";
|
|
1373
|
+
author?: string | undefined;
|
|
1374
|
+
contents?: string | undefined;
|
|
1375
|
+
inReplyTo?: string | undefined;
|
|
1376
|
+
locked?: boolean | undefined;
|
|
1377
|
+
subject?: string | undefined;
|
|
1378
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1379
|
+
custom?: Record<string, unknown> | undefined;
|
|
1380
|
+
cornerRadius?: number | undefined;
|
|
1381
|
+
dashes?: number[] | undefined;
|
|
1382
|
+
interiorColor?: string | undefined;
|
|
809
1383
|
} | {
|
|
810
1384
|
id: string;
|
|
811
1385
|
page: number;
|
|
@@ -820,14 +1394,18 @@ export declare function useAnnotations(): {
|
|
|
820
1394
|
createdAt: string;
|
|
821
1395
|
modifiedAt: string;
|
|
822
1396
|
source: "session" | "pdf";
|
|
823
|
-
|
|
824
|
-
|
|
1397
|
+
width: number;
|
|
1398
|
+
type: "circle";
|
|
825
1399
|
author?: string | undefined;
|
|
826
1400
|
contents?: string | undefined;
|
|
827
1401
|
inReplyTo?: string | undefined;
|
|
828
1402
|
locked?: boolean | undefined;
|
|
1403
|
+
subject?: string | undefined;
|
|
1404
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
829
1405
|
custom?: Record<string, unknown> | undefined;
|
|
830
|
-
|
|
1406
|
+
cornerRadius?: undefined;
|
|
1407
|
+
dashes?: number[] | undefined;
|
|
1408
|
+
interiorColor?: string | undefined;
|
|
831
1409
|
} | {
|
|
832
1410
|
id: string;
|
|
833
1411
|
page: number;
|
|
@@ -851,13 +1429,17 @@ export declare function useAnnotations(): {
|
|
|
851
1429
|
x: number;
|
|
852
1430
|
y: number;
|
|
853
1431
|
};
|
|
854
|
-
|
|
1432
|
+
width: number;
|
|
855
1433
|
author?: string | undefined;
|
|
856
1434
|
contents?: string | undefined;
|
|
857
1435
|
inReplyTo?: string | undefined;
|
|
858
1436
|
locked?: boolean | undefined;
|
|
1437
|
+
subject?: string | undefined;
|
|
1438
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
859
1439
|
custom?: Record<string, unknown> | undefined;
|
|
860
|
-
|
|
1440
|
+
dashes?: number[] | undefined;
|
|
1441
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1442
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
861
1443
|
} | {
|
|
862
1444
|
id: string;
|
|
863
1445
|
page: number;
|
|
@@ -872,18 +1454,54 @@ export declare function useAnnotations(): {
|
|
|
872
1454
|
createdAt: string;
|
|
873
1455
|
modifiedAt: string;
|
|
874
1456
|
source: "session" | "pdf";
|
|
875
|
-
type: "polyline" | "polygon";
|
|
876
1457
|
vertices: {
|
|
877
1458
|
x: number;
|
|
878
1459
|
y: number;
|
|
879
1460
|
}[];
|
|
880
|
-
|
|
1461
|
+
width: number;
|
|
1462
|
+
type: "polyline";
|
|
881
1463
|
author?: string | undefined;
|
|
882
1464
|
contents?: string | undefined;
|
|
883
1465
|
inReplyTo?: string | undefined;
|
|
884
1466
|
locked?: boolean | undefined;
|
|
1467
|
+
subject?: string | undefined;
|
|
1468
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
885
1469
|
custom?: Record<string, unknown> | undefined;
|
|
886
|
-
|
|
1470
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1471
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1472
|
+
dashes?: number[] | undefined;
|
|
1473
|
+
interiorColor?: string | undefined;
|
|
1474
|
+
} | {
|
|
1475
|
+
id: string;
|
|
1476
|
+
page: number;
|
|
1477
|
+
rect: {
|
|
1478
|
+
x: number;
|
|
1479
|
+
y: number;
|
|
1480
|
+
width: number;
|
|
1481
|
+
height: number;
|
|
1482
|
+
};
|
|
1483
|
+
color: string;
|
|
1484
|
+
opacity: number;
|
|
1485
|
+
createdAt: string;
|
|
1486
|
+
modifiedAt: string;
|
|
1487
|
+
source: "session" | "pdf";
|
|
1488
|
+
vertices: {
|
|
1489
|
+
x: number;
|
|
1490
|
+
y: number;
|
|
1491
|
+
}[];
|
|
1492
|
+
width: number;
|
|
1493
|
+
type: "polygon";
|
|
1494
|
+
author?: string | undefined;
|
|
1495
|
+
contents?: string | undefined;
|
|
1496
|
+
inReplyTo?: string | undefined;
|
|
1497
|
+
locked?: boolean | undefined;
|
|
1498
|
+
subject?: string | undefined;
|
|
1499
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1500
|
+
custom?: Record<string, unknown> | undefined;
|
|
1501
|
+
head?: undefined;
|
|
1502
|
+
tail?: undefined;
|
|
1503
|
+
dashes?: number[] | undefined;
|
|
1504
|
+
interiorColor?: string | undefined;
|
|
887
1505
|
} | {
|
|
888
1506
|
id: string;
|
|
889
1507
|
page: number;
|
|
@@ -899,15 +1517,91 @@ export declare function useAnnotations(): {
|
|
|
899
1517
|
modifiedAt: string;
|
|
900
1518
|
source: "session" | "pdf";
|
|
901
1519
|
type: "ink";
|
|
902
|
-
|
|
1520
|
+
inklist: {
|
|
903
1521
|
x: number;
|
|
904
1522
|
y: number;
|
|
905
1523
|
}[][];
|
|
906
|
-
|
|
1524
|
+
width: number;
|
|
907
1525
|
author?: string | undefined;
|
|
908
1526
|
contents?: string | undefined;
|
|
909
1527
|
inReplyTo?: string | undefined;
|
|
910
1528
|
locked?: boolean | undefined;
|
|
1529
|
+
subject?: string | undefined;
|
|
1530
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1531
|
+
custom?: Record<string, unknown> | undefined;
|
|
1532
|
+
pressure?: number[][] | undefined;
|
|
1533
|
+
dashes?: number[] | undefined;
|
|
1534
|
+
} | {
|
|
1535
|
+
id: string;
|
|
1536
|
+
page: number;
|
|
1537
|
+
rect: {
|
|
1538
|
+
x: number;
|
|
1539
|
+
y: number;
|
|
1540
|
+
width: number;
|
|
1541
|
+
height: number;
|
|
1542
|
+
};
|
|
1543
|
+
color: string;
|
|
1544
|
+
opacity: number;
|
|
1545
|
+
createdAt: string;
|
|
1546
|
+
modifiedAt: string;
|
|
1547
|
+
source: "session" | "pdf";
|
|
1548
|
+
type: "stamp";
|
|
1549
|
+
imagedata: string;
|
|
1550
|
+
author?: string | undefined;
|
|
1551
|
+
contents?: string | undefined;
|
|
1552
|
+
inReplyTo?: string | undefined;
|
|
1553
|
+
locked?: boolean | undefined;
|
|
1554
|
+
subject?: string | undefined;
|
|
1555
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1556
|
+
custom?: Record<string, unknown> | undefined;
|
|
1557
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1558
|
+
} | {
|
|
1559
|
+
id: string;
|
|
1560
|
+
page: number;
|
|
1561
|
+
rect: {
|
|
1562
|
+
x: number;
|
|
1563
|
+
y: number;
|
|
1564
|
+
width: number;
|
|
1565
|
+
height: number;
|
|
1566
|
+
};
|
|
1567
|
+
color: string;
|
|
1568
|
+
opacity: number;
|
|
1569
|
+
createdAt: string;
|
|
1570
|
+
modifiedAt: string;
|
|
1571
|
+
source: "session" | "pdf";
|
|
1572
|
+
type: "loupe";
|
|
1573
|
+
magnification: number;
|
|
1574
|
+
width: number;
|
|
1575
|
+
author?: string | undefined;
|
|
1576
|
+
contents?: string | undefined;
|
|
1577
|
+
inReplyTo?: string | undefined;
|
|
1578
|
+
locked?: boolean | undefined;
|
|
1579
|
+
subject?: string | undefined;
|
|
1580
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1581
|
+
custom?: Record<string, unknown> | undefined;
|
|
1582
|
+
} | {
|
|
1583
|
+
id: string;
|
|
1584
|
+
page: number;
|
|
1585
|
+
rect: {
|
|
1586
|
+
x: number;
|
|
1587
|
+
y: number;
|
|
1588
|
+
width: number;
|
|
1589
|
+
height: number;
|
|
1590
|
+
};
|
|
1591
|
+
color: string;
|
|
1592
|
+
opacity: number;
|
|
1593
|
+
createdAt: string;
|
|
1594
|
+
modifiedAt: string;
|
|
1595
|
+
source: "session" | "pdf";
|
|
1596
|
+
type: "mask";
|
|
1597
|
+
shape: "rect" | "ellipse";
|
|
1598
|
+
dim: number;
|
|
1599
|
+
author?: string | undefined;
|
|
1600
|
+
contents?: string | undefined;
|
|
1601
|
+
inReplyTo?: string | undefined;
|
|
1602
|
+
locked?: boolean | undefined;
|
|
1603
|
+
subject?: string | undefined;
|
|
1604
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
911
1605
|
custom?: Record<string, unknown> | undefined;
|
|
912
1606
|
} | {
|
|
913
1607
|
id: string;
|
|
@@ -925,11 +1619,13 @@ export declare function useAnnotations(): {
|
|
|
925
1619
|
source: "session" | "pdf";
|
|
926
1620
|
type: "redact";
|
|
927
1621
|
origin: "user" | "suggested";
|
|
928
|
-
|
|
1622
|
+
interiorColor: string;
|
|
929
1623
|
author?: string | undefined;
|
|
930
1624
|
contents?: string | undefined;
|
|
931
1625
|
inReplyTo?: string | undefined;
|
|
932
1626
|
locked?: boolean | undefined;
|
|
1627
|
+
subject?: string | undefined;
|
|
1628
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
933
1629
|
custom?: Record<string, unknown> | undefined;
|
|
934
1630
|
quads?: {
|
|
935
1631
|
p1: {
|
|
@@ -995,6 +1691,8 @@ export declare function useAnnotations(): {
|
|
|
995
1691
|
contents?: string | undefined;
|
|
996
1692
|
inReplyTo?: string | undefined;
|
|
997
1693
|
locked?: boolean | undefined;
|
|
1694
|
+
subject?: string | undefined;
|
|
1695
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
998
1696
|
custom?: Record<string, unknown> | undefined;
|
|
999
1697
|
} | {
|
|
1000
1698
|
id: string;
|
|
@@ -1010,12 +1708,14 @@ export declare function useAnnotations(): {
|
|
|
1010
1708
|
createdAt: string;
|
|
1011
1709
|
modifiedAt: string;
|
|
1012
1710
|
source: "session" | "pdf";
|
|
1013
|
-
type: "
|
|
1014
|
-
icon: "
|
|
1711
|
+
type: "text";
|
|
1712
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
1015
1713
|
author?: string | undefined;
|
|
1016
1714
|
contents?: string | undefined;
|
|
1017
1715
|
inReplyTo?: string | undefined;
|
|
1018
1716
|
locked?: boolean | undefined;
|
|
1717
|
+
subject?: string | undefined;
|
|
1718
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1019
1719
|
custom?: Record<string, unknown> | undefined;
|
|
1020
1720
|
} | {
|
|
1021
1721
|
id: string;
|
|
@@ -1026,25 +1726,73 @@ export declare function useAnnotations(): {
|
|
|
1026
1726
|
width: number;
|
|
1027
1727
|
height: number;
|
|
1028
1728
|
};
|
|
1029
|
-
color: string;
|
|
1030
1729
|
opacity: number;
|
|
1031
1730
|
createdAt: string;
|
|
1032
1731
|
modifiedAt: string;
|
|
1033
1732
|
source: "session" | "pdf";
|
|
1034
|
-
type: "
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1733
|
+
type: "freetext";
|
|
1734
|
+
contents: string;
|
|
1735
|
+
width: number;
|
|
1736
|
+
defaultStyle: {
|
|
1737
|
+
fontFamily: string;
|
|
1738
|
+
fontSize: number;
|
|
1739
|
+
color: string;
|
|
1740
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
1741
|
+
fontWeight?: "bold" | undefined;
|
|
1742
|
+
fontStyle?: "italic" | undefined;
|
|
1743
|
+
textDecoration?: "underline" | undefined;
|
|
1744
|
+
align?: undefined;
|
|
1745
|
+
};
|
|
1039
1746
|
author?: string | undefined;
|
|
1040
|
-
contents?: string | undefined;
|
|
1041
1747
|
inReplyTo?: string | undefined;
|
|
1042
1748
|
locked?: boolean | undefined;
|
|
1749
|
+
subject?: string | undefined;
|
|
1750
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1043
1751
|
custom?: Record<string, unknown> | undefined;
|
|
1752
|
+
color?: string | undefined;
|
|
1753
|
+
borderColor?: string | undefined;
|
|
1754
|
+
dashes?: number[] | undefined;
|
|
1755
|
+
cornerRadius?: number | undefined;
|
|
1756
|
+
fringe?: {
|
|
1757
|
+
left: number;
|
|
1758
|
+
top: number;
|
|
1759
|
+
right: number;
|
|
1760
|
+
bottom: number;
|
|
1761
|
+
} | undefined;
|
|
1044
1762
|
callout?: {
|
|
1045
1763
|
x: number;
|
|
1046
1764
|
y: number;
|
|
1047
1765
|
}[] | undefined;
|
|
1766
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1767
|
+
fontFamily?: undefined;
|
|
1768
|
+
fontSize?: undefined;
|
|
1769
|
+
align?: undefined;
|
|
1770
|
+
} | {
|
|
1771
|
+
id: string;
|
|
1772
|
+
page: number;
|
|
1773
|
+
rect: {
|
|
1774
|
+
x: number;
|
|
1775
|
+
y: number;
|
|
1776
|
+
width: number;
|
|
1777
|
+
height: number;
|
|
1778
|
+
};
|
|
1779
|
+
color: string;
|
|
1780
|
+
opacity: number;
|
|
1781
|
+
createdAt: string;
|
|
1782
|
+
modifiedAt: string;
|
|
1783
|
+
source: "session" | "pdf";
|
|
1784
|
+
width: number;
|
|
1785
|
+
type: "square";
|
|
1786
|
+
author?: string | undefined;
|
|
1787
|
+
contents?: string | undefined;
|
|
1788
|
+
inReplyTo?: string | undefined;
|
|
1789
|
+
locked?: boolean | undefined;
|
|
1790
|
+
subject?: string | undefined;
|
|
1791
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1792
|
+
custom?: Record<string, unknown> | undefined;
|
|
1793
|
+
cornerRadius?: number | undefined;
|
|
1794
|
+
dashes?: number[] | undefined;
|
|
1795
|
+
interiorColor?: string | undefined;
|
|
1048
1796
|
} | {
|
|
1049
1797
|
id: string;
|
|
1050
1798
|
page: number;
|
|
@@ -1059,14 +1807,18 @@ export declare function useAnnotations(): {
|
|
|
1059
1807
|
createdAt: string;
|
|
1060
1808
|
modifiedAt: string;
|
|
1061
1809
|
source: "session" | "pdf";
|
|
1062
|
-
|
|
1063
|
-
|
|
1810
|
+
width: number;
|
|
1811
|
+
type: "circle";
|
|
1064
1812
|
author?: string | undefined;
|
|
1065
1813
|
contents?: string | undefined;
|
|
1066
1814
|
inReplyTo?: string | undefined;
|
|
1067
1815
|
locked?: boolean | undefined;
|
|
1816
|
+
subject?: string | undefined;
|
|
1817
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1068
1818
|
custom?: Record<string, unknown> | undefined;
|
|
1069
|
-
|
|
1819
|
+
cornerRadius?: undefined;
|
|
1820
|
+
dashes?: number[] | undefined;
|
|
1821
|
+
interiorColor?: string | undefined;
|
|
1070
1822
|
} | {
|
|
1071
1823
|
id: string;
|
|
1072
1824
|
page: number;
|
|
@@ -1090,13 +1842,17 @@ export declare function useAnnotations(): {
|
|
|
1090
1842
|
x: number;
|
|
1091
1843
|
y: number;
|
|
1092
1844
|
};
|
|
1093
|
-
|
|
1845
|
+
width: number;
|
|
1094
1846
|
author?: string | undefined;
|
|
1095
1847
|
contents?: string | undefined;
|
|
1096
1848
|
inReplyTo?: string | undefined;
|
|
1097
1849
|
locked?: boolean | undefined;
|
|
1850
|
+
subject?: string | undefined;
|
|
1851
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1098
1852
|
custom?: Record<string, unknown> | undefined;
|
|
1099
|
-
|
|
1853
|
+
dashes?: number[] | undefined;
|
|
1854
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1855
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1100
1856
|
} | {
|
|
1101
1857
|
id: string;
|
|
1102
1858
|
page: number;
|
|
@@ -1111,18 +1867,54 @@ export declare function useAnnotations(): {
|
|
|
1111
1867
|
createdAt: string;
|
|
1112
1868
|
modifiedAt: string;
|
|
1113
1869
|
source: "session" | "pdf";
|
|
1114
|
-
type: "polyline" | "polygon";
|
|
1115
1870
|
vertices: {
|
|
1116
1871
|
x: number;
|
|
1117
1872
|
y: number;
|
|
1118
1873
|
}[];
|
|
1119
|
-
|
|
1874
|
+
width: number;
|
|
1875
|
+
type: "polyline";
|
|
1120
1876
|
author?: string | undefined;
|
|
1121
1877
|
contents?: string | undefined;
|
|
1122
1878
|
inReplyTo?: string | undefined;
|
|
1123
1879
|
locked?: boolean | undefined;
|
|
1880
|
+
subject?: string | undefined;
|
|
1881
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1124
1882
|
custom?: Record<string, unknown> | undefined;
|
|
1125
|
-
|
|
1883
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1884
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
1885
|
+
dashes?: number[] | undefined;
|
|
1886
|
+
interiorColor?: string | undefined;
|
|
1887
|
+
} | {
|
|
1888
|
+
id: string;
|
|
1889
|
+
page: number;
|
|
1890
|
+
rect: {
|
|
1891
|
+
x: number;
|
|
1892
|
+
y: number;
|
|
1893
|
+
width: number;
|
|
1894
|
+
height: number;
|
|
1895
|
+
};
|
|
1896
|
+
color: string;
|
|
1897
|
+
opacity: number;
|
|
1898
|
+
createdAt: string;
|
|
1899
|
+
modifiedAt: string;
|
|
1900
|
+
source: "session" | "pdf";
|
|
1901
|
+
vertices: {
|
|
1902
|
+
x: number;
|
|
1903
|
+
y: number;
|
|
1904
|
+
}[];
|
|
1905
|
+
width: number;
|
|
1906
|
+
type: "polygon";
|
|
1907
|
+
author?: string | undefined;
|
|
1908
|
+
contents?: string | undefined;
|
|
1909
|
+
inReplyTo?: string | undefined;
|
|
1910
|
+
locked?: boolean | undefined;
|
|
1911
|
+
subject?: string | undefined;
|
|
1912
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1913
|
+
custom?: Record<string, unknown> | undefined;
|
|
1914
|
+
head?: undefined;
|
|
1915
|
+
tail?: undefined;
|
|
1916
|
+
dashes?: number[] | undefined;
|
|
1917
|
+
interiorColor?: string | undefined;
|
|
1126
1918
|
} | {
|
|
1127
1919
|
id: string;
|
|
1128
1920
|
page: number;
|
|
@@ -1138,15 +1930,91 @@ export declare function useAnnotations(): {
|
|
|
1138
1930
|
modifiedAt: string;
|
|
1139
1931
|
source: "session" | "pdf";
|
|
1140
1932
|
type: "ink";
|
|
1141
|
-
|
|
1933
|
+
inklist: {
|
|
1142
1934
|
x: number;
|
|
1143
1935
|
y: number;
|
|
1144
1936
|
}[][];
|
|
1145
|
-
|
|
1937
|
+
width: number;
|
|
1146
1938
|
author?: string | undefined;
|
|
1147
1939
|
contents?: string | undefined;
|
|
1148
1940
|
inReplyTo?: string | undefined;
|
|
1149
1941
|
locked?: boolean | undefined;
|
|
1942
|
+
subject?: string | undefined;
|
|
1943
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1944
|
+
custom?: Record<string, unknown> | undefined;
|
|
1945
|
+
pressure?: number[][] | undefined;
|
|
1946
|
+
dashes?: number[] | undefined;
|
|
1947
|
+
} | {
|
|
1948
|
+
id: string;
|
|
1949
|
+
page: number;
|
|
1950
|
+
rect: {
|
|
1951
|
+
x: number;
|
|
1952
|
+
y: number;
|
|
1953
|
+
width: number;
|
|
1954
|
+
height: number;
|
|
1955
|
+
};
|
|
1956
|
+
color: string;
|
|
1957
|
+
opacity: number;
|
|
1958
|
+
createdAt: string;
|
|
1959
|
+
modifiedAt: string;
|
|
1960
|
+
source: "session" | "pdf";
|
|
1961
|
+
type: "stamp";
|
|
1962
|
+
imagedata: string;
|
|
1963
|
+
author?: string | undefined;
|
|
1964
|
+
contents?: string | undefined;
|
|
1965
|
+
inReplyTo?: string | undefined;
|
|
1966
|
+
locked?: boolean | undefined;
|
|
1967
|
+
subject?: string | undefined;
|
|
1968
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1969
|
+
custom?: Record<string, unknown> | undefined;
|
|
1970
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
1971
|
+
} | {
|
|
1972
|
+
id: string;
|
|
1973
|
+
page: number;
|
|
1974
|
+
rect: {
|
|
1975
|
+
x: number;
|
|
1976
|
+
y: number;
|
|
1977
|
+
width: number;
|
|
1978
|
+
height: number;
|
|
1979
|
+
};
|
|
1980
|
+
color: string;
|
|
1981
|
+
opacity: number;
|
|
1982
|
+
createdAt: string;
|
|
1983
|
+
modifiedAt: string;
|
|
1984
|
+
source: "session" | "pdf";
|
|
1985
|
+
type: "loupe";
|
|
1986
|
+
magnification: number;
|
|
1987
|
+
width: number;
|
|
1988
|
+
author?: string | undefined;
|
|
1989
|
+
contents?: string | undefined;
|
|
1990
|
+
inReplyTo?: string | undefined;
|
|
1991
|
+
locked?: boolean | undefined;
|
|
1992
|
+
subject?: string | undefined;
|
|
1993
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1994
|
+
custom?: Record<string, unknown> | undefined;
|
|
1995
|
+
} | {
|
|
1996
|
+
id: string;
|
|
1997
|
+
page: number;
|
|
1998
|
+
rect: {
|
|
1999
|
+
x: number;
|
|
2000
|
+
y: number;
|
|
2001
|
+
width: number;
|
|
2002
|
+
height: number;
|
|
2003
|
+
};
|
|
2004
|
+
color: string;
|
|
2005
|
+
opacity: number;
|
|
2006
|
+
createdAt: string;
|
|
2007
|
+
modifiedAt: string;
|
|
2008
|
+
source: "session" | "pdf";
|
|
2009
|
+
type: "mask";
|
|
2010
|
+
shape: "rect" | "ellipse";
|
|
2011
|
+
dim: number;
|
|
2012
|
+
author?: string | undefined;
|
|
2013
|
+
contents?: string | undefined;
|
|
2014
|
+
inReplyTo?: string | undefined;
|
|
2015
|
+
locked?: boolean | undefined;
|
|
2016
|
+
subject?: string | undefined;
|
|
2017
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1150
2018
|
custom?: Record<string, unknown> | undefined;
|
|
1151
2019
|
} | {
|
|
1152
2020
|
id: string;
|
|
@@ -1164,11 +2032,13 @@ export declare function useAnnotations(): {
|
|
|
1164
2032
|
source: "session" | "pdf";
|
|
1165
2033
|
type: "redact";
|
|
1166
2034
|
origin: "user" | "suggested";
|
|
1167
|
-
|
|
2035
|
+
interiorColor: string;
|
|
1168
2036
|
author?: string | undefined;
|
|
1169
2037
|
contents?: string | undefined;
|
|
1170
2038
|
inReplyTo?: string | undefined;
|
|
1171
2039
|
locked?: boolean | undefined;
|
|
2040
|
+
subject?: string | undefined;
|
|
2041
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1172
2042
|
custom?: Record<string, unknown> | undefined;
|
|
1173
2043
|
quads?: {
|
|
1174
2044
|
p1: {
|
|
@@ -1197,7 +2067,7 @@ export declare function useAnnotations(): {
|
|
|
1197
2067
|
} | undefined;
|
|
1198
2068
|
overlayText?: string | undefined;
|
|
1199
2069
|
} | undefined;
|
|
1200
|
-
update: (id: string, patch:
|
|
2070
|
+
update: (id: string, patch: AnnotationPatch) => {
|
|
1201
2071
|
id: string;
|
|
1202
2072
|
page: number;
|
|
1203
2073
|
rect: {
|
|
@@ -1234,6 +2104,8 @@ export declare function useAnnotations(): {
|
|
|
1234
2104
|
contents?: string | undefined;
|
|
1235
2105
|
inReplyTo?: string | undefined;
|
|
1236
2106
|
locked?: boolean | undefined;
|
|
2107
|
+
subject?: string | undefined;
|
|
2108
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1237
2109
|
custom?: Record<string, unknown> | undefined;
|
|
1238
2110
|
} | {
|
|
1239
2111
|
id: string;
|
|
@@ -1249,12 +2121,14 @@ export declare function useAnnotations(): {
|
|
|
1249
2121
|
createdAt: string;
|
|
1250
2122
|
modifiedAt: string;
|
|
1251
2123
|
source: "session" | "pdf";
|
|
1252
|
-
type: "
|
|
1253
|
-
icon: "
|
|
2124
|
+
type: "text";
|
|
2125
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
1254
2126
|
author?: string | undefined;
|
|
1255
2127
|
contents?: string | undefined;
|
|
1256
2128
|
inReplyTo?: string | undefined;
|
|
1257
2129
|
locked?: boolean | undefined;
|
|
2130
|
+
subject?: string | undefined;
|
|
2131
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1258
2132
|
custom?: Record<string, unknown> | undefined;
|
|
1259
2133
|
} | {
|
|
1260
2134
|
id: string;
|
|
@@ -1265,25 +2139,47 @@ export declare function useAnnotations(): {
|
|
|
1265
2139
|
width: number;
|
|
1266
2140
|
height: number;
|
|
1267
2141
|
};
|
|
1268
|
-
color: string;
|
|
1269
2142
|
opacity: number;
|
|
1270
2143
|
createdAt: string;
|
|
1271
2144
|
modifiedAt: string;
|
|
1272
2145
|
source: "session" | "pdf";
|
|
1273
|
-
type: "
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
2146
|
+
type: "freetext";
|
|
2147
|
+
contents: string;
|
|
2148
|
+
width: number;
|
|
2149
|
+
defaultStyle: {
|
|
2150
|
+
fontFamily: string;
|
|
2151
|
+
fontSize: number;
|
|
2152
|
+
color: string;
|
|
2153
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
2154
|
+
fontWeight?: "bold" | undefined;
|
|
2155
|
+
fontStyle?: "italic" | undefined;
|
|
2156
|
+
textDecoration?: "underline" | undefined;
|
|
2157
|
+
align?: undefined;
|
|
2158
|
+
};
|
|
1278
2159
|
author?: string | undefined;
|
|
1279
|
-
contents?: string | undefined;
|
|
1280
2160
|
inReplyTo?: string | undefined;
|
|
1281
2161
|
locked?: boolean | undefined;
|
|
2162
|
+
subject?: string | undefined;
|
|
2163
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1282
2164
|
custom?: Record<string, unknown> | undefined;
|
|
2165
|
+
color?: string | undefined;
|
|
2166
|
+
borderColor?: string | undefined;
|
|
2167
|
+
dashes?: number[] | undefined;
|
|
2168
|
+
cornerRadius?: number | undefined;
|
|
2169
|
+
fringe?: {
|
|
2170
|
+
left: number;
|
|
2171
|
+
top: number;
|
|
2172
|
+
right: number;
|
|
2173
|
+
bottom: number;
|
|
2174
|
+
} | undefined;
|
|
1283
2175
|
callout?: {
|
|
1284
2176
|
x: number;
|
|
1285
2177
|
y: number;
|
|
1286
2178
|
}[] | undefined;
|
|
2179
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2180
|
+
fontFamily?: undefined;
|
|
2181
|
+
fontSize?: undefined;
|
|
2182
|
+
align?: undefined;
|
|
1287
2183
|
} | {
|
|
1288
2184
|
id: string;
|
|
1289
2185
|
page: number;
|
|
@@ -1298,14 +2194,44 @@ export declare function useAnnotations(): {
|
|
|
1298
2194
|
createdAt: string;
|
|
1299
2195
|
modifiedAt: string;
|
|
1300
2196
|
source: "session" | "pdf";
|
|
1301
|
-
|
|
1302
|
-
|
|
2197
|
+
width: number;
|
|
2198
|
+
type: "square";
|
|
1303
2199
|
author?: string | undefined;
|
|
1304
2200
|
contents?: string | undefined;
|
|
1305
2201
|
inReplyTo?: string | undefined;
|
|
1306
2202
|
locked?: boolean | undefined;
|
|
2203
|
+
subject?: string | undefined;
|
|
2204
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1307
2205
|
custom?: Record<string, unknown> | undefined;
|
|
1308
|
-
|
|
2206
|
+
cornerRadius?: number | undefined;
|
|
2207
|
+
dashes?: number[] | undefined;
|
|
2208
|
+
interiorColor?: string | undefined;
|
|
2209
|
+
} | {
|
|
2210
|
+
id: string;
|
|
2211
|
+
page: number;
|
|
2212
|
+
rect: {
|
|
2213
|
+
x: number;
|
|
2214
|
+
y: number;
|
|
2215
|
+
width: number;
|
|
2216
|
+
height: number;
|
|
2217
|
+
};
|
|
2218
|
+
color: string;
|
|
2219
|
+
opacity: number;
|
|
2220
|
+
createdAt: string;
|
|
2221
|
+
modifiedAt: string;
|
|
2222
|
+
source: "session" | "pdf";
|
|
2223
|
+
width: number;
|
|
2224
|
+
type: "circle";
|
|
2225
|
+
author?: string | undefined;
|
|
2226
|
+
contents?: string | undefined;
|
|
2227
|
+
inReplyTo?: string | undefined;
|
|
2228
|
+
locked?: boolean | undefined;
|
|
2229
|
+
subject?: string | undefined;
|
|
2230
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2231
|
+
custom?: Record<string, unknown> | undefined;
|
|
2232
|
+
cornerRadius?: undefined;
|
|
2233
|
+
dashes?: number[] | undefined;
|
|
2234
|
+
interiorColor?: string | undefined;
|
|
1309
2235
|
} | {
|
|
1310
2236
|
id: string;
|
|
1311
2237
|
page: number;
|
|
@@ -1329,13 +2255,48 @@ export declare function useAnnotations(): {
|
|
|
1329
2255
|
x: number;
|
|
1330
2256
|
y: number;
|
|
1331
2257
|
};
|
|
1332
|
-
|
|
2258
|
+
width: number;
|
|
2259
|
+
author?: string | undefined;
|
|
2260
|
+
contents?: string | undefined;
|
|
2261
|
+
inReplyTo?: string | undefined;
|
|
2262
|
+
locked?: boolean | undefined;
|
|
2263
|
+
subject?: string | undefined;
|
|
2264
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2265
|
+
custom?: Record<string, unknown> | undefined;
|
|
2266
|
+
dashes?: number[] | undefined;
|
|
2267
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2268
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2269
|
+
} | {
|
|
2270
|
+
id: string;
|
|
2271
|
+
page: number;
|
|
2272
|
+
rect: {
|
|
2273
|
+
x: number;
|
|
2274
|
+
y: number;
|
|
2275
|
+
width: number;
|
|
2276
|
+
height: number;
|
|
2277
|
+
};
|
|
2278
|
+
color: string;
|
|
2279
|
+
opacity: number;
|
|
2280
|
+
createdAt: string;
|
|
2281
|
+
modifiedAt: string;
|
|
2282
|
+
source: "session" | "pdf";
|
|
2283
|
+
vertices: {
|
|
2284
|
+
x: number;
|
|
2285
|
+
y: number;
|
|
2286
|
+
}[];
|
|
2287
|
+
width: number;
|
|
2288
|
+
type: "polyline";
|
|
1333
2289
|
author?: string | undefined;
|
|
1334
2290
|
contents?: string | undefined;
|
|
1335
2291
|
inReplyTo?: string | undefined;
|
|
1336
2292
|
locked?: boolean | undefined;
|
|
2293
|
+
subject?: string | undefined;
|
|
2294
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1337
2295
|
custom?: Record<string, unknown> | undefined;
|
|
1338
|
-
|
|
2296
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2297
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2298
|
+
dashes?: number[] | undefined;
|
|
2299
|
+
interiorColor?: string | undefined;
|
|
1339
2300
|
} | {
|
|
1340
2301
|
id: string;
|
|
1341
2302
|
page: number;
|
|
@@ -1350,18 +2311,23 @@ export declare function useAnnotations(): {
|
|
|
1350
2311
|
createdAt: string;
|
|
1351
2312
|
modifiedAt: string;
|
|
1352
2313
|
source: "session" | "pdf";
|
|
1353
|
-
type: "polyline" | "polygon";
|
|
1354
2314
|
vertices: {
|
|
1355
2315
|
x: number;
|
|
1356
2316
|
y: number;
|
|
1357
2317
|
}[];
|
|
1358
|
-
|
|
2318
|
+
width: number;
|
|
2319
|
+
type: "polygon";
|
|
1359
2320
|
author?: string | undefined;
|
|
1360
2321
|
contents?: string | undefined;
|
|
1361
2322
|
inReplyTo?: string | undefined;
|
|
1362
2323
|
locked?: boolean | undefined;
|
|
2324
|
+
subject?: string | undefined;
|
|
2325
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1363
2326
|
custom?: Record<string, unknown> | undefined;
|
|
1364
|
-
|
|
2327
|
+
head?: undefined;
|
|
2328
|
+
tail?: undefined;
|
|
2329
|
+
dashes?: number[] | undefined;
|
|
2330
|
+
interiorColor?: string | undefined;
|
|
1365
2331
|
} | {
|
|
1366
2332
|
id: string;
|
|
1367
2333
|
page: number;
|
|
@@ -1377,15 +2343,91 @@ export declare function useAnnotations(): {
|
|
|
1377
2343
|
modifiedAt: string;
|
|
1378
2344
|
source: "session" | "pdf";
|
|
1379
2345
|
type: "ink";
|
|
1380
|
-
|
|
2346
|
+
inklist: {
|
|
1381
2347
|
x: number;
|
|
1382
2348
|
y: number;
|
|
1383
2349
|
}[][];
|
|
1384
|
-
|
|
2350
|
+
width: number;
|
|
2351
|
+
author?: string | undefined;
|
|
2352
|
+
contents?: string | undefined;
|
|
2353
|
+
inReplyTo?: string | undefined;
|
|
2354
|
+
locked?: boolean | undefined;
|
|
2355
|
+
subject?: string | undefined;
|
|
2356
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2357
|
+
custom?: Record<string, unknown> | undefined;
|
|
2358
|
+
pressure?: number[][] | undefined;
|
|
2359
|
+
dashes?: number[] | undefined;
|
|
2360
|
+
} | {
|
|
2361
|
+
id: string;
|
|
2362
|
+
page: number;
|
|
2363
|
+
rect: {
|
|
2364
|
+
x: number;
|
|
2365
|
+
y: number;
|
|
2366
|
+
width: number;
|
|
2367
|
+
height: number;
|
|
2368
|
+
};
|
|
2369
|
+
color: string;
|
|
2370
|
+
opacity: number;
|
|
2371
|
+
createdAt: string;
|
|
2372
|
+
modifiedAt: string;
|
|
2373
|
+
source: "session" | "pdf";
|
|
2374
|
+
type: "stamp";
|
|
2375
|
+
imagedata: string;
|
|
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;
|
|
2382
|
+
custom?: Record<string, unknown> | undefined;
|
|
2383
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
2384
|
+
} | {
|
|
2385
|
+
id: string;
|
|
2386
|
+
page: number;
|
|
2387
|
+
rect: {
|
|
2388
|
+
x: number;
|
|
2389
|
+
y: number;
|
|
2390
|
+
width: number;
|
|
2391
|
+
height: number;
|
|
2392
|
+
};
|
|
2393
|
+
color: string;
|
|
2394
|
+
opacity: number;
|
|
2395
|
+
createdAt: string;
|
|
2396
|
+
modifiedAt: string;
|
|
2397
|
+
source: "session" | "pdf";
|
|
2398
|
+
type: "loupe";
|
|
2399
|
+
magnification: number;
|
|
2400
|
+
width: number;
|
|
2401
|
+
author?: string | undefined;
|
|
2402
|
+
contents?: string | undefined;
|
|
2403
|
+
inReplyTo?: string | undefined;
|
|
2404
|
+
locked?: boolean | undefined;
|
|
2405
|
+
subject?: string | undefined;
|
|
2406
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2407
|
+
custom?: Record<string, unknown> | undefined;
|
|
2408
|
+
} | {
|
|
2409
|
+
id: string;
|
|
2410
|
+
page: number;
|
|
2411
|
+
rect: {
|
|
2412
|
+
x: number;
|
|
2413
|
+
y: number;
|
|
2414
|
+
width: number;
|
|
2415
|
+
height: number;
|
|
2416
|
+
};
|
|
2417
|
+
color: string;
|
|
2418
|
+
opacity: number;
|
|
2419
|
+
createdAt: string;
|
|
2420
|
+
modifiedAt: string;
|
|
2421
|
+
source: "session" | "pdf";
|
|
2422
|
+
type: "mask";
|
|
2423
|
+
shape: "rect" | "ellipse";
|
|
2424
|
+
dim: number;
|
|
1385
2425
|
author?: string | undefined;
|
|
1386
2426
|
contents?: string | undefined;
|
|
1387
2427
|
inReplyTo?: string | undefined;
|
|
1388
2428
|
locked?: boolean | undefined;
|
|
2429
|
+
subject?: string | undefined;
|
|
2430
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1389
2431
|
custom?: Record<string, unknown> | undefined;
|
|
1390
2432
|
} | {
|
|
1391
2433
|
id: string;
|
|
@@ -1403,11 +2445,13 @@ export declare function useAnnotations(): {
|
|
|
1403
2445
|
source: "session" | "pdf";
|
|
1404
2446
|
type: "redact";
|
|
1405
2447
|
origin: "user" | "suggested";
|
|
1406
|
-
|
|
2448
|
+
interiorColor: string;
|
|
1407
2449
|
author?: string | undefined;
|
|
1408
2450
|
contents?: string | undefined;
|
|
1409
2451
|
inReplyTo?: string | undefined;
|
|
1410
2452
|
locked?: boolean | undefined;
|
|
2453
|
+
subject?: string | undefined;
|
|
2454
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1411
2455
|
custom?: Record<string, unknown> | undefined;
|
|
1412
2456
|
quads?: {
|
|
1413
2457
|
p1: {
|
|
@@ -1476,6 +2520,8 @@ export declare function useAnnotations(): {
|
|
|
1476
2520
|
contents?: string | undefined;
|
|
1477
2521
|
inReplyTo?: string | undefined;
|
|
1478
2522
|
locked?: boolean | undefined;
|
|
2523
|
+
subject?: string | undefined;
|
|
2524
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1479
2525
|
custom?: Record<string, unknown> | undefined;
|
|
1480
2526
|
} | {
|
|
1481
2527
|
id: string;
|
|
@@ -1491,12 +2537,14 @@ export declare function useAnnotations(): {
|
|
|
1491
2537
|
createdAt: string;
|
|
1492
2538
|
modifiedAt: string;
|
|
1493
2539
|
source: "session" | "pdf";
|
|
1494
|
-
type: "
|
|
1495
|
-
icon: "
|
|
2540
|
+
type: "text";
|
|
2541
|
+
icon: (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph";
|
|
1496
2542
|
author?: string | undefined;
|
|
1497
2543
|
contents?: string | undefined;
|
|
1498
2544
|
inReplyTo?: string | undefined;
|
|
1499
2545
|
locked?: boolean | undefined;
|
|
2546
|
+
subject?: string | undefined;
|
|
2547
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1500
2548
|
custom?: Record<string, unknown> | undefined;
|
|
1501
2549
|
} | {
|
|
1502
2550
|
id: string;
|
|
@@ -1507,25 +2555,47 @@ export declare function useAnnotations(): {
|
|
|
1507
2555
|
width: number;
|
|
1508
2556
|
height: number;
|
|
1509
2557
|
};
|
|
1510
|
-
color: string;
|
|
1511
2558
|
opacity: number;
|
|
1512
2559
|
createdAt: string;
|
|
1513
2560
|
modifiedAt: string;
|
|
1514
2561
|
source: "session" | "pdf";
|
|
1515
|
-
type: "
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
2562
|
+
type: "freetext";
|
|
2563
|
+
contents: string;
|
|
2564
|
+
width: number;
|
|
2565
|
+
defaultStyle: {
|
|
2566
|
+
fontFamily: string;
|
|
2567
|
+
fontSize: number;
|
|
2568
|
+
color: string;
|
|
2569
|
+
textAlign: "left" | "right" | "center" | "justify";
|
|
2570
|
+
fontWeight?: "bold" | undefined;
|
|
2571
|
+
fontStyle?: "italic" | undefined;
|
|
2572
|
+
textDecoration?: "underline" | undefined;
|
|
2573
|
+
align?: undefined;
|
|
2574
|
+
};
|
|
1520
2575
|
author?: string | undefined;
|
|
1521
|
-
contents?: string | undefined;
|
|
1522
2576
|
inReplyTo?: string | undefined;
|
|
1523
2577
|
locked?: boolean | undefined;
|
|
2578
|
+
subject?: string | undefined;
|
|
2579
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1524
2580
|
custom?: Record<string, unknown> | undefined;
|
|
2581
|
+
color?: string | undefined;
|
|
2582
|
+
borderColor?: string | undefined;
|
|
2583
|
+
dashes?: number[] | undefined;
|
|
2584
|
+
cornerRadius?: number | undefined;
|
|
2585
|
+
fringe?: {
|
|
2586
|
+
left: number;
|
|
2587
|
+
top: number;
|
|
2588
|
+
right: number;
|
|
2589
|
+
bottom: number;
|
|
2590
|
+
} | undefined;
|
|
1525
2591
|
callout?: {
|
|
1526
2592
|
x: number;
|
|
1527
2593
|
y: number;
|
|
1528
2594
|
}[] | undefined;
|
|
2595
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2596
|
+
fontFamily?: undefined;
|
|
2597
|
+
fontSize?: undefined;
|
|
2598
|
+
align?: undefined;
|
|
1529
2599
|
} | {
|
|
1530
2600
|
id: string;
|
|
1531
2601
|
page: number;
|
|
@@ -1540,14 +2610,44 @@ export declare function useAnnotations(): {
|
|
|
1540
2610
|
createdAt: string;
|
|
1541
2611
|
modifiedAt: string;
|
|
1542
2612
|
source: "session" | "pdf";
|
|
1543
|
-
|
|
1544
|
-
|
|
2613
|
+
width: number;
|
|
2614
|
+
type: "square";
|
|
1545
2615
|
author?: string | undefined;
|
|
1546
2616
|
contents?: string | undefined;
|
|
1547
2617
|
inReplyTo?: string | undefined;
|
|
1548
2618
|
locked?: boolean | undefined;
|
|
2619
|
+
subject?: string | undefined;
|
|
2620
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1549
2621
|
custom?: Record<string, unknown> | undefined;
|
|
1550
|
-
|
|
2622
|
+
cornerRadius?: number | undefined;
|
|
2623
|
+
dashes?: number[] | undefined;
|
|
2624
|
+
interiorColor?: string | undefined;
|
|
2625
|
+
} | {
|
|
2626
|
+
id: string;
|
|
2627
|
+
page: number;
|
|
2628
|
+
rect: {
|
|
2629
|
+
x: number;
|
|
2630
|
+
y: number;
|
|
2631
|
+
width: number;
|
|
2632
|
+
height: number;
|
|
2633
|
+
};
|
|
2634
|
+
color: string;
|
|
2635
|
+
opacity: number;
|
|
2636
|
+
createdAt: string;
|
|
2637
|
+
modifiedAt: string;
|
|
2638
|
+
source: "session" | "pdf";
|
|
2639
|
+
width: number;
|
|
2640
|
+
type: "circle";
|
|
2641
|
+
author?: string | undefined;
|
|
2642
|
+
contents?: string | undefined;
|
|
2643
|
+
inReplyTo?: string | undefined;
|
|
2644
|
+
locked?: boolean | undefined;
|
|
2645
|
+
subject?: string | undefined;
|
|
2646
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2647
|
+
custom?: Record<string, unknown> | undefined;
|
|
2648
|
+
cornerRadius?: undefined;
|
|
2649
|
+
dashes?: number[] | undefined;
|
|
2650
|
+
interiorColor?: string | undefined;
|
|
1551
2651
|
} | {
|
|
1552
2652
|
id: string;
|
|
1553
2653
|
page: number;
|
|
@@ -1571,13 +2671,48 @@ export declare function useAnnotations(): {
|
|
|
1571
2671
|
x: number;
|
|
1572
2672
|
y: number;
|
|
1573
2673
|
};
|
|
1574
|
-
|
|
2674
|
+
width: number;
|
|
2675
|
+
author?: string | undefined;
|
|
2676
|
+
contents?: string | undefined;
|
|
2677
|
+
inReplyTo?: string | undefined;
|
|
2678
|
+
locked?: boolean | undefined;
|
|
2679
|
+
subject?: string | undefined;
|
|
2680
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2681
|
+
custom?: Record<string, unknown> | undefined;
|
|
2682
|
+
dashes?: number[] | undefined;
|
|
2683
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2684
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2685
|
+
} | {
|
|
2686
|
+
id: string;
|
|
2687
|
+
page: number;
|
|
2688
|
+
rect: {
|
|
2689
|
+
x: number;
|
|
2690
|
+
y: number;
|
|
2691
|
+
width: number;
|
|
2692
|
+
height: number;
|
|
2693
|
+
};
|
|
2694
|
+
color: string;
|
|
2695
|
+
opacity: number;
|
|
2696
|
+
createdAt: string;
|
|
2697
|
+
modifiedAt: string;
|
|
2698
|
+
source: "session" | "pdf";
|
|
2699
|
+
vertices: {
|
|
2700
|
+
x: number;
|
|
2701
|
+
y: number;
|
|
2702
|
+
}[];
|
|
2703
|
+
width: number;
|
|
2704
|
+
type: "polyline";
|
|
1575
2705
|
author?: string | undefined;
|
|
1576
2706
|
contents?: string | undefined;
|
|
1577
2707
|
inReplyTo?: string | undefined;
|
|
1578
2708
|
locked?: boolean | undefined;
|
|
2709
|
+
subject?: string | undefined;
|
|
2710
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1579
2711
|
custom?: Record<string, unknown> | undefined;
|
|
1580
|
-
|
|
2712
|
+
head?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2713
|
+
tail?: (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | undefined;
|
|
2714
|
+
dashes?: number[] | undefined;
|
|
2715
|
+
interiorColor?: string | undefined;
|
|
1581
2716
|
} | {
|
|
1582
2717
|
id: string;
|
|
1583
2718
|
page: number;
|
|
@@ -1592,18 +2727,23 @@ export declare function useAnnotations(): {
|
|
|
1592
2727
|
createdAt: string;
|
|
1593
2728
|
modifiedAt: string;
|
|
1594
2729
|
source: "session" | "pdf";
|
|
1595
|
-
type: "polyline" | "polygon";
|
|
1596
2730
|
vertices: {
|
|
1597
2731
|
x: number;
|
|
1598
2732
|
y: number;
|
|
1599
2733
|
}[];
|
|
1600
|
-
|
|
2734
|
+
width: number;
|
|
2735
|
+
type: "polygon";
|
|
1601
2736
|
author?: string | undefined;
|
|
1602
2737
|
contents?: string | undefined;
|
|
1603
2738
|
inReplyTo?: string | undefined;
|
|
1604
2739
|
locked?: boolean | undefined;
|
|
2740
|
+
subject?: string | undefined;
|
|
2741
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1605
2742
|
custom?: Record<string, unknown> | undefined;
|
|
1606
|
-
|
|
2743
|
+
head?: undefined;
|
|
2744
|
+
tail?: undefined;
|
|
2745
|
+
dashes?: number[] | undefined;
|
|
2746
|
+
interiorColor?: string | undefined;
|
|
1607
2747
|
} | {
|
|
1608
2748
|
id: string;
|
|
1609
2749
|
page: number;
|
|
@@ -1619,15 +2759,91 @@ export declare function useAnnotations(): {
|
|
|
1619
2759
|
modifiedAt: string;
|
|
1620
2760
|
source: "session" | "pdf";
|
|
1621
2761
|
type: "ink";
|
|
1622
|
-
|
|
2762
|
+
inklist: {
|
|
1623
2763
|
x: number;
|
|
1624
2764
|
y: number;
|
|
1625
2765
|
}[][];
|
|
1626
|
-
|
|
2766
|
+
width: number;
|
|
2767
|
+
author?: string | undefined;
|
|
2768
|
+
contents?: string | undefined;
|
|
2769
|
+
inReplyTo?: string | undefined;
|
|
2770
|
+
locked?: boolean | undefined;
|
|
2771
|
+
subject?: string | undefined;
|
|
2772
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2773
|
+
custom?: Record<string, unknown> | undefined;
|
|
2774
|
+
pressure?: number[][] | undefined;
|
|
2775
|
+
dashes?: number[] | undefined;
|
|
2776
|
+
} | {
|
|
2777
|
+
id: string;
|
|
2778
|
+
page: number;
|
|
2779
|
+
rect: {
|
|
2780
|
+
x: number;
|
|
2781
|
+
y: number;
|
|
2782
|
+
width: number;
|
|
2783
|
+
height: number;
|
|
2784
|
+
};
|
|
2785
|
+
color: string;
|
|
2786
|
+
opacity: number;
|
|
2787
|
+
createdAt: string;
|
|
2788
|
+
modifiedAt: string;
|
|
2789
|
+
source: "session" | "pdf";
|
|
2790
|
+
type: "stamp";
|
|
2791
|
+
imagedata: string;
|
|
2792
|
+
author?: string | undefined;
|
|
2793
|
+
contents?: string | undefined;
|
|
2794
|
+
inReplyTo?: string | undefined;
|
|
2795
|
+
locked?: boolean | undefined;
|
|
2796
|
+
subject?: string | undefined;
|
|
2797
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2798
|
+
custom?: Record<string, unknown> | undefined;
|
|
2799
|
+
rotation?: 0 | 90 | 180 | 270 | undefined;
|
|
2800
|
+
} | {
|
|
2801
|
+
id: string;
|
|
2802
|
+
page: number;
|
|
2803
|
+
rect: {
|
|
2804
|
+
x: number;
|
|
2805
|
+
y: number;
|
|
2806
|
+
width: number;
|
|
2807
|
+
height: number;
|
|
2808
|
+
};
|
|
2809
|
+
color: string;
|
|
2810
|
+
opacity: number;
|
|
2811
|
+
createdAt: string;
|
|
2812
|
+
modifiedAt: string;
|
|
2813
|
+
source: "session" | "pdf";
|
|
2814
|
+
type: "loupe";
|
|
2815
|
+
magnification: number;
|
|
2816
|
+
width: number;
|
|
2817
|
+
author?: string | undefined;
|
|
2818
|
+
contents?: string | undefined;
|
|
2819
|
+
inReplyTo?: string | undefined;
|
|
2820
|
+
locked?: boolean | undefined;
|
|
2821
|
+
subject?: string | undefined;
|
|
2822
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
2823
|
+
custom?: Record<string, unknown> | undefined;
|
|
2824
|
+
} | {
|
|
2825
|
+
id: string;
|
|
2826
|
+
page: number;
|
|
2827
|
+
rect: {
|
|
2828
|
+
x: number;
|
|
2829
|
+
y: number;
|
|
2830
|
+
width: number;
|
|
2831
|
+
height: number;
|
|
2832
|
+
};
|
|
2833
|
+
color: string;
|
|
2834
|
+
opacity: number;
|
|
2835
|
+
createdAt: string;
|
|
2836
|
+
modifiedAt: string;
|
|
2837
|
+
source: "session" | "pdf";
|
|
2838
|
+
type: "mask";
|
|
2839
|
+
shape: "rect" | "ellipse";
|
|
2840
|
+
dim: number;
|
|
1627
2841
|
author?: string | undefined;
|
|
1628
2842
|
contents?: string | undefined;
|
|
1629
2843
|
inReplyTo?: string | undefined;
|
|
1630
2844
|
locked?: boolean | undefined;
|
|
2845
|
+
subject?: string | undefined;
|
|
2846
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1631
2847
|
custom?: Record<string, unknown> | undefined;
|
|
1632
2848
|
} | {
|
|
1633
2849
|
id: string;
|
|
@@ -1645,11 +2861,13 @@ export declare function useAnnotations(): {
|
|
|
1645
2861
|
source: "session" | "pdf";
|
|
1646
2862
|
type: "redact";
|
|
1647
2863
|
origin: "user" | "suggested";
|
|
1648
|
-
|
|
2864
|
+
interiorColor: string;
|
|
1649
2865
|
author?: string | undefined;
|
|
1650
2866
|
contents?: string | undefined;
|
|
1651
2867
|
inReplyTo?: string | undefined;
|
|
1652
2868
|
locked?: boolean | undefined;
|
|
2869
|
+
subject?: string | undefined;
|
|
2870
|
+
intent?: (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | undefined;
|
|
1653
2871
|
custom?: Record<string, unknown> | undefined;
|
|
1654
2872
|
quads?: {
|
|
1655
2873
|
p1: {
|