@docmentis/udoc-viewer 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/package.json +56 -0
  2. package/dist/src/UDocClient.d.ts +383 -0
  3. package/dist/src/UDocClient.d.ts.map +1 -0
  4. package/dist/src/UDocClient.js +428 -0
  5. package/dist/src/UDocClient.js.map +1 -0
  6. package/dist/src/UDocViewer.d.ts +275 -0
  7. package/dist/src/UDocViewer.d.ts.map +1 -0
  8. package/dist/src/UDocViewer.js +796 -0
  9. package/dist/src/UDocViewer.js.map +1 -0
  10. package/dist/src/fonts.d.ts +29 -0
  11. package/dist/src/fonts.d.ts.map +1 -0
  12. package/dist/src/fonts.js +30 -0
  13. package/dist/src/fonts.js.map +1 -0
  14. package/dist/src/index.d.ts +9 -0
  15. package/dist/src/index.d.ts.map +1 -0
  16. package/dist/src/index.js +8 -0
  17. package/dist/src/index.js.map +1 -0
  18. package/dist/src/performance/PerformanceCounter.d.ts +132 -0
  19. package/dist/src/performance/PerformanceCounter.d.ts.map +1 -0
  20. package/dist/src/performance/PerformanceCounter.js +129 -0
  21. package/dist/src/performance/PerformanceCounter.js.map +1 -0
  22. package/dist/src/performance/index.d.ts +2 -0
  23. package/dist/src/performance/index.d.ts.map +1 -0
  24. package/dist/src/performance/index.js +2 -0
  25. package/dist/src/performance/index.js.map +1 -0
  26. package/dist/src/ui/framework/component.d.ts +68 -0
  27. package/dist/src/ui/framework/component.d.ts.map +1 -0
  28. package/dist/src/ui/framework/component.js +87 -0
  29. package/dist/src/ui/framework/component.js.map +1 -0
  30. package/dist/src/ui/framework/dom.d.ts +19 -0
  31. package/dist/src/ui/framework/dom.d.ts.map +1 -0
  32. package/dist/src/ui/framework/dom.js +29 -0
  33. package/dist/src/ui/framework/dom.js.map +1 -0
  34. package/dist/src/ui/framework/events.d.ts +18 -0
  35. package/dist/src/ui/framework/events.d.ts.map +1 -0
  36. package/dist/src/ui/framework/events.js +23 -0
  37. package/dist/src/ui/framework/events.js.map +1 -0
  38. package/dist/src/ui/framework/index.d.ts +15 -0
  39. package/dist/src/ui/framework/index.d.ts.map +1 -0
  40. package/dist/src/ui/framework/index.js +15 -0
  41. package/dist/src/ui/framework/index.js.map +1 -0
  42. package/dist/src/ui/framework/selectors.d.ts +51 -0
  43. package/dist/src/ui/framework/selectors.d.ts.map +1 -0
  44. package/dist/src/ui/framework/selectors.js +30 -0
  45. package/dist/src/ui/framework/selectors.js.map +1 -0
  46. package/dist/src/ui/framework/store.d.ts +37 -0
  47. package/dist/src/ui/framework/store.d.ts.map +1 -0
  48. package/dist/src/ui/framework/store.js +54 -0
  49. package/dist/src/ui/framework/store.js.map +1 -0
  50. package/dist/src/ui/viewer/actions.d.ts +132 -0
  51. package/dist/src/ui/viewer/actions.d.ts.map +1 -0
  52. package/dist/src/ui/viewer/actions.js +2 -0
  53. package/dist/src/ui/viewer/actions.js.map +1 -0
  54. package/dist/src/ui/viewer/annotation/LinkRenderer.d.ts +9 -0
  55. package/dist/src/ui/viewer/annotation/LinkRenderer.d.ts.map +1 -0
  56. package/dist/src/ui/viewer/annotation/LinkRenderer.js +17 -0
  57. package/dist/src/ui/viewer/annotation/LinkRenderer.js.map +1 -0
  58. package/dist/src/ui/viewer/annotation/MarkupRenderer.d.ts +21 -0
  59. package/dist/src/ui/viewer/annotation/MarkupRenderer.d.ts.map +1 -0
  60. package/dist/src/ui/viewer/annotation/MarkupRenderer.js +138 -0
  61. package/dist/src/ui/viewer/annotation/MarkupRenderer.js.map +1 -0
  62. package/dist/src/ui/viewer/annotation/ShapeRenderer.d.ts +33 -0
  63. package/dist/src/ui/viewer/annotation/ShapeRenderer.d.ts.map +1 -0
  64. package/dist/src/ui/viewer/annotation/ShapeRenderer.js +378 -0
  65. package/dist/src/ui/viewer/annotation/ShapeRenderer.js.map +1 -0
  66. package/dist/src/ui/viewer/annotation/TextRenderer.d.ts +23 -0
  67. package/dist/src/ui/viewer/annotation/TextRenderer.d.ts.map +1 -0
  68. package/dist/src/ui/viewer/annotation/TextRenderer.js +196 -0
  69. package/dist/src/ui/viewer/annotation/TextRenderer.js.map +1 -0
  70. package/dist/src/ui/viewer/annotation/index.d.ts +8 -0
  71. package/dist/src/ui/viewer/annotation/index.d.ts.map +1 -0
  72. package/dist/src/ui/viewer/annotation/index.js +8 -0
  73. package/dist/src/ui/viewer/annotation/index.js.map +1 -0
  74. package/dist/src/ui/viewer/annotation/render.d.ts +24 -0
  75. package/dist/src/ui/viewer/annotation/render.d.ts.map +1 -0
  76. package/dist/src/ui/viewer/annotation/render.js +184 -0
  77. package/dist/src/ui/viewer/annotation/render.js.map +1 -0
  78. package/dist/src/ui/viewer/annotation/types.d.ts +239 -0
  79. package/dist/src/ui/viewer/annotation/types.d.ts.map +1 -0
  80. package/dist/src/ui/viewer/annotation/types.js +7 -0
  81. package/dist/src/ui/viewer/annotation/types.js.map +1 -0
  82. package/dist/src/ui/viewer/annotation/utils.d.ts +37 -0
  83. package/dist/src/ui/viewer/annotation/utils.d.ts.map +1 -0
  84. package/dist/src/ui/viewer/annotation/utils.js +82 -0
  85. package/dist/src/ui/viewer/annotation/utils.js.map +1 -0
  86. package/dist/src/ui/viewer/components/AnnotationPanel.d.ts +19 -0
  87. package/dist/src/ui/viewer/components/AnnotationPanel.d.ts.map +1 -0
  88. package/dist/src/ui/viewer/components/AnnotationPanel.js +284 -0
  89. package/dist/src/ui/viewer/components/AnnotationPanel.js.map +1 -0
  90. package/dist/src/ui/viewer/components/FloatingToolbar.d.ts +9 -0
  91. package/dist/src/ui/viewer/components/FloatingToolbar.d.ts.map +1 -0
  92. package/dist/src/ui/viewer/components/FloatingToolbar.js +305 -0
  93. package/dist/src/ui/viewer/components/FloatingToolbar.js.map +1 -0
  94. package/dist/src/ui/viewer/components/LeftPanel.d.ts +10 -0
  95. package/dist/src/ui/viewer/components/LeftPanel.d.ts.map +1 -0
  96. package/dist/src/ui/viewer/components/LeftPanel.js +165 -0
  97. package/dist/src/ui/viewer/components/LeftPanel.js.map +1 -0
  98. package/dist/src/ui/viewer/components/LoadingOverlay.d.ts +12 -0
  99. package/dist/src/ui/viewer/components/LoadingOverlay.d.ts.map +1 -0
  100. package/dist/src/ui/viewer/components/LoadingOverlay.js +88 -0
  101. package/dist/src/ui/viewer/components/LoadingOverlay.js.map +1 -0
  102. package/dist/src/ui/viewer/components/OutlinePanel.d.ts +10 -0
  103. package/dist/src/ui/viewer/components/OutlinePanel.d.ts.map +1 -0
  104. package/dist/src/ui/viewer/components/OutlinePanel.js +169 -0
  105. package/dist/src/ui/viewer/components/OutlinePanel.js.map +1 -0
  106. package/dist/src/ui/viewer/components/PasswordDialog.d.ts +15 -0
  107. package/dist/src/ui/viewer/components/PasswordDialog.d.ts.map +1 -0
  108. package/dist/src/ui/viewer/components/PasswordDialog.js +143 -0
  109. package/dist/src/ui/viewer/components/PasswordDialog.js.map +1 -0
  110. package/dist/src/ui/viewer/components/RightPanel.d.ts +9 -0
  111. package/dist/src/ui/viewer/components/RightPanel.d.ts.map +1 -0
  112. package/dist/src/ui/viewer/components/RightPanel.js +102 -0
  113. package/dist/src/ui/viewer/components/RightPanel.js.map +1 -0
  114. package/dist/src/ui/viewer/components/Spread.d.ts +43 -0
  115. package/dist/src/ui/viewer/components/Spread.d.ts.map +1 -0
  116. package/dist/src/ui/viewer/components/Spread.js +345 -0
  117. package/dist/src/ui/viewer/components/Spread.js.map +1 -0
  118. package/dist/src/ui/viewer/components/ThumbnailPanel.d.ts +11 -0
  119. package/dist/src/ui/viewer/components/ThumbnailPanel.d.ts.map +1 -0
  120. package/dist/src/ui/viewer/components/ThumbnailPanel.js +240 -0
  121. package/dist/src/ui/viewer/components/ThumbnailPanel.js.map +1 -0
  122. package/dist/src/ui/viewer/components/Toolbar.d.ts +9 -0
  123. package/dist/src/ui/viewer/components/Toolbar.d.ts.map +1 -0
  124. package/dist/src/ui/viewer/components/Toolbar.js +93 -0
  125. package/dist/src/ui/viewer/components/Toolbar.js.map +1 -0
  126. package/dist/src/ui/viewer/components/ViewModeMenu.d.ts +9 -0
  127. package/dist/src/ui/viewer/components/ViewModeMenu.d.ts.map +1 -0
  128. package/dist/src/ui/viewer/components/ViewModeMenu.js +169 -0
  129. package/dist/src/ui/viewer/components/ViewModeMenu.js.map +1 -0
  130. package/dist/src/ui/viewer/components/Viewport.d.ts +10 -0
  131. package/dist/src/ui/viewer/components/Viewport.d.ts.map +1 -0
  132. package/dist/src/ui/viewer/components/Viewport.js +1076 -0
  133. package/dist/src/ui/viewer/components/Viewport.js.map +1 -0
  134. package/dist/src/ui/viewer/effects.d.ts +8 -0
  135. package/dist/src/ui/viewer/effects.d.ts.map +1 -0
  136. package/dist/src/ui/viewer/effects.js +207 -0
  137. package/dist/src/ui/viewer/effects.js.map +1 -0
  138. package/dist/src/ui/viewer/icons.d.ts +32 -0
  139. package/dist/src/ui/viewer/icons.d.ts.map +1 -0
  140. package/dist/src/ui/viewer/icons.js +44 -0
  141. package/dist/src/ui/viewer/icons.js.map +1 -0
  142. package/dist/src/ui/viewer/index.d.ts +6 -0
  143. package/dist/src/ui/viewer/index.d.ts.map +1 -0
  144. package/dist/src/ui/viewer/index.js +6 -0
  145. package/dist/src/ui/viewer/index.js.map +1 -0
  146. package/dist/src/ui/viewer/layout/index.d.ts +3 -0
  147. package/dist/src/ui/viewer/layout/index.d.ts.map +1 -0
  148. package/dist/src/ui/viewer/layout/index.js +3 -0
  149. package/dist/src/ui/viewer/layout/index.js.map +1 -0
  150. package/dist/src/ui/viewer/layout/pixelAlign.d.ts +7 -0
  151. package/dist/src/ui/viewer/layout/pixelAlign.d.ts.map +1 -0
  152. package/dist/src/ui/viewer/layout/pixelAlign.js +22 -0
  153. package/dist/src/ui/viewer/layout/pixelAlign.js.map +1 -0
  154. package/dist/src/ui/viewer/layout/spreadLayout.d.ts +93 -0
  155. package/dist/src/ui/viewer/layout/spreadLayout.d.ts.map +1 -0
  156. package/dist/src/ui/viewer/layout/spreadLayout.js +315 -0
  157. package/dist/src/ui/viewer/layout/spreadLayout.js.map +1 -0
  158. package/dist/src/ui/viewer/navigation.d.ts +80 -0
  159. package/dist/src/ui/viewer/navigation.d.ts.map +1 -0
  160. package/dist/src/ui/viewer/navigation.js +59 -0
  161. package/dist/src/ui/viewer/navigation.js.map +1 -0
  162. package/dist/src/ui/viewer/reducer.d.ts +4 -0
  163. package/dist/src/ui/viewer/reducer.d.ts.map +1 -0
  164. package/dist/src/ui/viewer/reducer.js +317 -0
  165. package/dist/src/ui/viewer/reducer.js.map +1 -0
  166. package/dist/src/ui/viewer/shell.d.ts +34 -0
  167. package/dist/src/ui/viewer/shell.d.ts.map +1 -0
  168. package/dist/src/ui/viewer/shell.js +93 -0
  169. package/dist/src/ui/viewer/shell.js.map +1 -0
  170. package/dist/src/ui/viewer/state.d.ts +105 -0
  171. package/dist/src/ui/viewer/state.d.ts.map +1 -0
  172. package/dist/src/ui/viewer/state.js +65 -0
  173. package/dist/src/ui/viewer/state.js.map +1 -0
  174. package/dist/src/ui/viewer/styles-inline.d.ts +2 -0
  175. package/dist/src/ui/viewer/styles-inline.d.ts.map +1 -0
  176. package/dist/src/ui/viewer/styles-inline.js +1584 -0
  177. package/dist/src/ui/viewer/styles-inline.js.map +1 -0
  178. package/dist/src/ui/viewer/text/index.d.ts +7 -0
  179. package/dist/src/ui/viewer/text/index.d.ts.map +1 -0
  180. package/dist/src/ui/viewer/text/index.js +3 -0
  181. package/dist/src/ui/viewer/text/index.js.map +1 -0
  182. package/dist/src/ui/viewer/text/render.d.ts +19 -0
  183. package/dist/src/ui/viewer/text/render.d.ts.map +1 -0
  184. package/dist/src/ui/viewer/text/render.js +228 -0
  185. package/dist/src/ui/viewer/text/render.js.map +1 -0
  186. package/dist/src/ui/viewer/text/selection.d.ts +12 -0
  187. package/dist/src/ui/viewer/text/selection.d.ts.map +1 -0
  188. package/dist/src/ui/viewer/text/selection.js +70 -0
  189. package/dist/src/ui/viewer/text/selection.js.map +1 -0
  190. package/dist/src/ui/viewer/text/types.d.ts +37 -0
  191. package/dist/src/ui/viewer/text/types.d.ts.map +1 -0
  192. package/dist/src/ui/viewer/text/types.js +7 -0
  193. package/dist/src/ui/viewer/text/types.js.map +1 -0
  194. package/dist/src/wasm/LICENSE +104 -0
  195. package/dist/src/wasm/udoc.d.ts +480 -0
  196. package/dist/src/wasm/udoc.js +1738 -0
  197. package/dist/src/wasm/udoc_bg.wasm +0 -0
  198. package/dist/src/wasm/udoc_bg.wasm.d.ts +45 -0
  199. package/dist/src/worker/WorkerClient.d.ts +335 -0
  200. package/dist/src/worker/WorkerClient.d.ts.map +1 -0
  201. package/dist/src/worker/WorkerClient.js +903 -0
  202. package/dist/src/worker/WorkerClient.js.map +1 -0
  203. package/dist/src/worker/index.d.ts +4 -0
  204. package/dist/src/worker/index.d.ts.map +1 -0
  205. package/dist/src/worker/index.js +2 -0
  206. package/dist/src/worker/index.js.map +1 -0
  207. package/dist/src/worker/worker.d.ts +437 -0
  208. package/dist/src/worker/worker.d.ts.map +1 -0
  209. package/dist/src/worker/worker.js +237 -0
  210. package/dist/src/worker/worker.js.map +1 -0
  211. package/package.json +1 -1
@@ -0,0 +1,239 @@
1
+ /**
2
+ * Annotation type definitions.
3
+ *
4
+ * Uses discriminated union types for type-safe annotation handling.
5
+ */
6
+ /** Rectangle in page coordinates (points). */
7
+ export interface Rect {
8
+ x: number;
9
+ y: number;
10
+ width: number;
11
+ height: number;
12
+ }
13
+ /** Point in page coordinates (points). */
14
+ export interface Point {
15
+ x: number;
16
+ y: number;
17
+ }
18
+ /**
19
+ * Quadrilateral defined by 4 corner points.
20
+ * Points are ordered: [bottom-left, bottom-right, top-right, top-left]
21
+ */
22
+ export interface Quad {
23
+ points: [Point, Point, Point, Point];
24
+ }
25
+ /** RGB color with components in range 0.0-1.0. */
26
+ export interface AnnotationColor {
27
+ r: number;
28
+ g: number;
29
+ b: number;
30
+ }
31
+ /**
32
+ * Metadata for markup annotations (author, subject, contents, state).
33
+ * Displayed in annotation popups and comment threads.
34
+ */
35
+ export interface MarkupMetadata {
36
+ author?: string;
37
+ subject?: string;
38
+ contents?: string;
39
+ state?: string;
40
+ stateModel?: string;
41
+ }
42
+ /** Base annotation properties shared by all annotation types. */
43
+ interface BaseAnnotation {
44
+ /** Bounding rectangle in page coordinates. */
45
+ bounds: Rect;
46
+ /** Reply annotations nested under this annotation. */
47
+ replies?: Annotation[];
48
+ /** Metadata for markup annotations. */
49
+ metadata?: MarkupMetadata;
50
+ }
51
+ /** Destination within a document. */
52
+ export interface Destination {
53
+ pageIndex: number;
54
+ display: DestinationDisplay;
55
+ }
56
+ export type DestinationDisplay = {
57
+ type: "xyz";
58
+ left?: number;
59
+ top?: number;
60
+ zoom?: number;
61
+ } | {
62
+ type: "fit";
63
+ } | {
64
+ type: "fitH";
65
+ top?: number;
66
+ } | {
67
+ type: "fitV";
68
+ left?: number;
69
+ } | {
70
+ type: "fitR";
71
+ left: number;
72
+ top: number;
73
+ right: number;
74
+ bottom: number;
75
+ } | {
76
+ type: "fitB";
77
+ } | {
78
+ type: "fitBH";
79
+ top?: number;
80
+ } | {
81
+ type: "fitBV";
82
+ left?: number;
83
+ };
84
+ /** Link action type. */
85
+ export type LinkAction = {
86
+ actionType: "goTo";
87
+ destination: Destination;
88
+ } | {
89
+ actionType: "uri";
90
+ uri: string;
91
+ };
92
+ /** Link annotation that navigates to a destination or opens a URI. */
93
+ export interface LinkAnnotation extends BaseAnnotation {
94
+ type: "link";
95
+ action: LinkAction;
96
+ }
97
+ /** Highlight annotation. */
98
+ export interface HighlightAnnotation extends BaseAnnotation {
99
+ type: "highlight";
100
+ quads: Quad[];
101
+ color?: AnnotationColor;
102
+ opacity?: number;
103
+ }
104
+ /** Underline annotation. */
105
+ export interface UnderlineAnnotation extends BaseAnnotation {
106
+ type: "underline";
107
+ quads: Quad[];
108
+ color?: AnnotationColor;
109
+ opacity?: number;
110
+ }
111
+ /** Strikeout annotation. */
112
+ export interface StrikeOutAnnotation extends BaseAnnotation {
113
+ type: "strikeOut";
114
+ quads: Quad[];
115
+ color?: AnnotationColor;
116
+ opacity?: number;
117
+ }
118
+ /** Squiggly underline annotation. */
119
+ export interface SquigglyAnnotation extends BaseAnnotation {
120
+ type: "squiggly";
121
+ quads: Quad[];
122
+ color?: AnnotationColor;
123
+ opacity?: number;
124
+ }
125
+ /** Icon type for text (sticky note) annotations. */
126
+ export type TextAnnotationIcon = "Comment" | "Key" | "Note" | "Help" | "NewParagraph" | "Paragraph" | "Insert";
127
+ /** Text justification. */
128
+ export type TextJustification = "left" | "center" | "right";
129
+ /** Text (sticky note) annotation. */
130
+ export interface TextAnnotation extends BaseAnnotation {
131
+ type: "text";
132
+ icon?: TextAnnotationIcon;
133
+ open?: boolean;
134
+ contents?: string;
135
+ color?: AnnotationColor;
136
+ }
137
+ /** Free text (typewriter/text box) annotation. */
138
+ export interface FreeTextAnnotation extends BaseAnnotation {
139
+ type: "freeText";
140
+ contents?: string;
141
+ justification?: TextJustification;
142
+ defaultAppearance?: string;
143
+ color?: AnnotationColor;
144
+ borderColor?: AnnotationColor;
145
+ calloutLine?: Point[];
146
+ }
147
+ /** Stamp annotation. */
148
+ export interface StampAnnotation extends BaseAnnotation {
149
+ type: "stamp";
150
+ name?: string;
151
+ hasCustomAppearance?: boolean;
152
+ color?: AnnotationColor;
153
+ }
154
+ /** Symbol type for caret annotations. */
155
+ export type CaretSymbol = "None" | "P";
156
+ /** Caret (text insertion point) annotation. */
157
+ export interface CaretAnnotation extends BaseAnnotation {
158
+ type: "caret";
159
+ symbol?: CaretSymbol;
160
+ color?: AnnotationColor;
161
+ opacity?: number;
162
+ }
163
+ /** Line ending style. */
164
+ export type LineEnding = "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash";
165
+ /** Border style. */
166
+ export type BorderStyle = "solid" | "dashed" | "beveled" | "inset" | "underline";
167
+ /** Line annotation. */
168
+ export interface LineAnnotation extends BaseAnnotation {
169
+ type: "line";
170
+ start: Point;
171
+ end: Point;
172
+ startEnding?: LineEnding;
173
+ endEnding?: LineEnding;
174
+ color?: AnnotationColor;
175
+ interiorColor?: AnnotationColor;
176
+ borderWidth?: number;
177
+ opacity?: number;
178
+ }
179
+ /** Square/rectangle annotation. */
180
+ export interface SquareAnnotation extends BaseAnnotation {
181
+ type: "square";
182
+ color?: AnnotationColor;
183
+ interiorColor?: AnnotationColor;
184
+ borderWidth?: number;
185
+ borderStyle?: BorderStyle;
186
+ opacity?: number;
187
+ }
188
+ /** Circle/ellipse annotation. */
189
+ export interface CircleAnnotation extends BaseAnnotation {
190
+ type: "circle";
191
+ color?: AnnotationColor;
192
+ interiorColor?: AnnotationColor;
193
+ borderWidth?: number;
194
+ borderStyle?: BorderStyle;
195
+ opacity?: number;
196
+ }
197
+ /** Polygon annotation (closed shape). */
198
+ export interface PolygonAnnotation extends BaseAnnotation {
199
+ type: "polygon";
200
+ vertices: Point[];
201
+ color?: AnnotationColor;
202
+ interiorColor?: AnnotationColor;
203
+ borderWidth?: number;
204
+ opacity?: number;
205
+ }
206
+ /** Polyline annotation (open path). */
207
+ export interface PolyLineAnnotation extends BaseAnnotation {
208
+ type: "polyLine";
209
+ vertices: Point[];
210
+ color?: AnnotationColor;
211
+ interiorColor?: AnnotationColor;
212
+ borderWidth?: number;
213
+ opacity?: number;
214
+ }
215
+ /** Ink (freehand drawing) annotation. */
216
+ export interface InkAnnotation extends BaseAnnotation {
217
+ type: "ink";
218
+ inkList: Point[][];
219
+ color?: AnnotationColor;
220
+ borderWidth?: number;
221
+ opacity?: number;
222
+ }
223
+ /** Redact annotation (marks content for removal). */
224
+ export interface RedactAnnotation extends BaseAnnotation {
225
+ type: "redact";
226
+ quads?: Quad[];
227
+ interiorColor?: AnnotationColor;
228
+ overlayText?: string;
229
+ justification?: TextJustification;
230
+ repeat?: boolean;
231
+ color?: AnnotationColor;
232
+ opacity?: number;
233
+ }
234
+ /** All supported annotation types. */
235
+ export type Annotation = LinkAnnotation | HighlightAnnotation | UnderlineAnnotation | StrikeOutAnnotation | SquigglyAnnotation | TextAnnotation | FreeTextAnnotation | StampAnnotation | CaretAnnotation | LineAnnotation | SquareAnnotation | CircleAnnotation | PolygonAnnotation | PolyLineAnnotation | InkAnnotation | RedactAnnotation;
236
+ /** Annotation type string. */
237
+ export type AnnotationType = Annotation["type"];
238
+ export {};
239
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ui/viewer/annotation/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,8CAA8C;AAC9C,MAAM,WAAW,IAAI;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,0CAA0C;AAC1C,MAAM,WAAW,KAAK;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,IAAI;IACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;CACxC;AAED,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAMD,iEAAiE;AACjE,UAAU,cAAc;IACpB,8CAA8C;IAC9C,MAAM,EAAE,IAAI,CAAC;IACb,sDAAsD;IAC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C,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yCAAyC;AACzC,MAAM,WAAW,aAAc,SAAQ,cAAc;IACjD,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qDAAqD;AACrD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACpD,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,sCAAsC;AACtC,MAAM,MAAM,UAAU,GAChB,cAAc,GACd,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,aAAa,GACb,gBAAgB,CAAC;AAEvB,8BAA8B;AAC9B,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Annotation type definitions.
3
+ *
4
+ * Uses discriminated union types for type-safe annotation handling.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/ui/viewer/annotation/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Shared utilities for annotation rendering.
3
+ */
4
+ import type { AnnotationColor, Point, Rect } from "./types";
5
+ /**
6
+ * Convert annotation color to CSS rgba() string.
7
+ */
8
+ export declare function colorToRgba(color: AnnotationColor | undefined, opacity: number, defaultColor?: string): string;
9
+ /**
10
+ * Convert annotation color to CSS rgb() string.
11
+ */
12
+ export declare function colorToRgb(color: AnnotationColor | undefined, defaultColor?: string): string;
13
+ /**
14
+ * Scale a point from page coordinates to screen pixels.
15
+ */
16
+ export declare function scalePoint(point: Point, scale: number): Point;
17
+ /**
18
+ * Scale bounds from page coordinates to screen pixels.
19
+ */
20
+ export declare function scaleBounds(bounds: Rect, scale: number): Rect;
21
+ /**
22
+ * Apply bounds as inline styles to an element.
23
+ */
24
+ export declare function applyBoundsStyle(el: HTMLElement, bounds: Rect, scale: number): void;
25
+ /**
26
+ * Create an SVG element sized to cover the annotation layer.
27
+ */
28
+ export declare function createSvgOverlay(): SVGSVGElement;
29
+ /**
30
+ * Create SVG namespace element helper.
31
+ */
32
+ export declare function createSvgElement<K extends keyof SVGElementTagNameMap>(tagName: K): SVGElementTagNameMap[K];
33
+ /**
34
+ * Check if two bounds are approximately equal (for highlight matching).
35
+ */
36
+ export declare function boundsMatch(a: Rect, b: Rect, epsilon?: number): boolean;
37
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/ui/viewer/annotation/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE5D;;GAEG;AACH,wBAAgB,WAAW,CACvB,KAAK,EAAE,eAAe,GAAG,SAAS,EAClC,OAAO,EAAE,MAAM,EACf,YAAY,SAA2B,GACxC,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,UAAU,CACtB,KAAK,EAAE,eAAe,GAAG,SAAS,EAClC,YAAY,SAAiB,GAC9B,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,CAK7D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAO7D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMnF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAUhD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,oBAAoB,EACjE,OAAO,EAAE,CAAC,GACX,oBAAoB,CAAC,CAAC,CAAC,CAEzB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,SAAM,GAAG,OAAO,CAOpE"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Convert annotation color to CSS rgba() string.
3
+ */
4
+ export function colorToRgba(color, opacity, defaultColor = "rgba(255, 255, 0, 0.3)") {
5
+ if (!color)
6
+ return defaultColor;
7
+ const r = Math.round(color.r * 255);
8
+ const g = Math.round(color.g * 255);
9
+ const b = Math.round(color.b * 255);
10
+ return `rgba(${r}, ${g}, ${b}, ${opacity})`;
11
+ }
12
+ /**
13
+ * Convert annotation color to CSS rgb() string.
14
+ */
15
+ export function colorToRgb(color, defaultColor = "rgb(0, 0, 0)") {
16
+ if (!color)
17
+ return defaultColor;
18
+ const r = Math.round(color.r * 255);
19
+ const g = Math.round(color.g * 255);
20
+ const b = Math.round(color.b * 255);
21
+ return `rgb(${r}, ${g}, ${b})`;
22
+ }
23
+ /**
24
+ * Scale a point from page coordinates to screen pixels.
25
+ */
26
+ export function scalePoint(point, scale) {
27
+ return {
28
+ x: point.x * scale,
29
+ y: point.y * scale
30
+ };
31
+ }
32
+ /**
33
+ * Scale bounds from page coordinates to screen pixels.
34
+ */
35
+ export function scaleBounds(bounds, scale) {
36
+ return {
37
+ x: bounds.x * scale,
38
+ y: bounds.y * scale,
39
+ width: bounds.width * scale,
40
+ height: bounds.height * scale
41
+ };
42
+ }
43
+ /**
44
+ * Apply bounds as inline styles to an element.
45
+ */
46
+ export function applyBoundsStyle(el, bounds, scale) {
47
+ el.style.position = "absolute";
48
+ el.style.left = `${bounds.x * scale}px`;
49
+ el.style.top = `${bounds.y * scale}px`;
50
+ el.style.width = `${bounds.width * scale}px`;
51
+ el.style.height = `${bounds.height * scale}px`;
52
+ }
53
+ /**
54
+ * Create an SVG element sized to cover the annotation layer.
55
+ */
56
+ export function createSvgOverlay() {
57
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
58
+ svg.style.position = "absolute";
59
+ svg.style.top = "0";
60
+ svg.style.left = "0";
61
+ svg.style.width = "100%";
62
+ svg.style.height = "100%";
63
+ svg.style.pointerEvents = "none";
64
+ svg.style.overflow = "visible";
65
+ return svg;
66
+ }
67
+ /**
68
+ * Create SVG namespace element helper.
69
+ */
70
+ export function createSvgElement(tagName) {
71
+ return document.createElementNS("http://www.w3.org/2000/svg", tagName);
72
+ }
73
+ /**
74
+ * Check if two bounds are approximately equal (for highlight matching).
75
+ */
76
+ export function boundsMatch(a, b, epsilon = 0.1) {
77
+ return (Math.abs(a.x - b.x) < epsilon &&
78
+ Math.abs(a.y - b.y) < epsilon &&
79
+ Math.abs(a.width - b.width) < epsilon &&
80
+ Math.abs(a.height - b.height) < epsilon);
81
+ }
82
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/ui/viewer/annotation/utils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,UAAU,WAAW,CACvB,KAAkC,EAClC,OAAe,EACf,YAAY,GAAG,wBAAw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AC,eAAe,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC3E,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,CAAO,EAAE,CAAO,EAAE,OAAO,GAAG,GAAG;IACvD,OAAO,CACH,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO;QAC7B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO;QAC7B,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO;QACrC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,OAAO,CAC1C,CAAC;AACN,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * AnnotationPanel - Displays annotations grouped by page in the right panel.
3
+ *
4
+ * Features:
5
+ * - Groups annotations by page
6
+ * - Collapsible page sections
7
+ * - Shows author, status, and content
8
+ * - Collapsible reply threads
9
+ * - Click to navigate to page
10
+ */
11
+ import type { Store } from "../../framework/store";
12
+ import type { ViewerState } from "../state";
13
+ import type { Action } from "../actions";
14
+ export declare function createAnnotationPanel(): {
15
+ el: HTMLDivElement;
16
+ mount: (container: HTMLElement, store: Store<ViewerState, Action>) => void;
17
+ destroy: () => void;
18
+ };
19
+ //# sourceMappingURL=AnnotationPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationPanel.d.ts","sourceRoot":"","sources":["../../../../../src/ui/viewer/components/AnnotationPanel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAsEzC,wBAAgB,qBAAqB;;uBAqNP,WAAW,SAAS,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,KAAG,IAAI;mBAU3D,IAAI;EAO3B"}