@docmentis/udoc-viewer 0.1.0 → 0.1.1

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 (263) hide show
  1. package/dist/wasm/udoc_bg.wasm +0 -0
  2. package/dist/worker/WorkerClient.js +1 -1
  3. package/package.json +11 -3
  4. package/dist/WorkerClient.d.ts +0 -36
  5. package/dist/WorkerClient.d.ts.map +0 -1
  6. package/dist/WorkerClient.js +0 -121
  7. package/dist/WorkerClient.js.map +0 -1
  8. package/dist/annotation/AnnotationLayer.d.ts +0 -166
  9. package/dist/annotation/AnnotationLayer.d.ts.map +0 -1
  10. package/dist/annotation/AnnotationLayer.js +0 -1090
  11. package/dist/annotation/AnnotationLayer.js.map +0 -1
  12. package/dist/annotation/index.d.ts +0 -6
  13. package/dist/annotation/index.d.ts.map +0 -1
  14. package/dist/annotation/index.js +0 -6
  15. package/dist/annotation/index.js.map +0 -1
  16. package/dist/components/FloatingBar.d.ts +0 -102
  17. package/dist/components/FloatingBar.d.ts.map +0 -1
  18. package/dist/components/FloatingBar.js +0 -513
  19. package/dist/components/FloatingBar.js.map +0 -1
  20. package/dist/components/Header.d.ts +0 -46
  21. package/dist/components/Header.d.ts.map +0 -1
  22. package/dist/components/Header.js +0 -93
  23. package/dist/components/Header.js.map +0 -1
  24. package/dist/components/index.d.ts +0 -6
  25. package/dist/components/index.d.ts.map +0 -1
  26. package/dist/components/index.js +0 -4
  27. package/dist/components/index.js.map +0 -1
  28. package/dist/components/panels/CommentsPanel.d.ts +0 -33
  29. package/dist/components/panels/CommentsPanel.d.ts.map +0 -1
  30. package/dist/components/panels/CommentsPanel.js +0 -176
  31. package/dist/components/panels/CommentsPanel.js.map +0 -1
  32. package/dist/components/panels/OutlinePanel.d.ts +0 -30
  33. package/dist/components/panels/OutlinePanel.d.ts.map +0 -1
  34. package/dist/components/panels/OutlinePanel.js +0 -144
  35. package/dist/components/panels/OutlinePanel.js.map +0 -1
  36. package/dist/components/panels/ThumbnailsPanel.d.ts +0 -51
  37. package/dist/components/panels/ThumbnailsPanel.d.ts.map +0 -1
  38. package/dist/components/panels/ThumbnailsPanel.js +0 -160
  39. package/dist/components/panels/ThumbnailsPanel.js.map +0 -1
  40. package/dist/components/panels/index.d.ts +0 -7
  41. package/dist/components/panels/index.d.ts.map +0 -1
  42. package/dist/components/panels/index.js +0 -4
  43. package/dist/components/panels/index.js.map +0 -1
  44. package/dist/constants.d.ts +0 -25
  45. package/dist/constants.d.ts.map +0 -1
  46. package/dist/constants.js +0 -46
  47. package/dist/constants.js.map +0 -1
  48. package/dist/core/NavigationController.d.ts +0 -54
  49. package/dist/core/NavigationController.d.ts.map +0 -1
  50. package/dist/core/NavigationController.js +0 -145
  51. package/dist/core/NavigationController.js.map +0 -1
  52. package/dist/core/PerfTimer.d.ts +0 -12
  53. package/dist/core/PerfTimer.d.ts.map +0 -1
  54. package/dist/core/PerfTimer.js +0 -32
  55. package/dist/core/PerfTimer.js.map +0 -1
  56. package/dist/core/ViewerState.d.ts +0 -108
  57. package/dist/core/ViewerState.d.ts.map +0 -1
  58. package/dist/core/ViewerState.js +0 -179
  59. package/dist/core/ViewerState.js.map +0 -1
  60. package/dist/core/constants.d.ts +0 -24
  61. package/dist/core/constants.d.ts.map +0 -1
  62. package/dist/core/constants.js +0 -42
  63. package/dist/core/constants.js.map +0 -1
  64. package/dist/core/index.d.ts +0 -8
  65. package/dist/core/index.d.ts.map +0 -1
  66. package/dist/core/index.js +0 -11
  67. package/dist/core/index.js.map +0 -1
  68. package/dist/core/types.d.ts +0 -573
  69. package/dist/core/types.d.ts.map +0 -1
  70. package/dist/core/types.js +0 -5
  71. package/dist/core/types.js.map +0 -1
  72. package/dist/icons/icons.d.ts +0 -41
  73. package/dist/icons/icons.d.ts.map +0 -1
  74. package/dist/icons/icons.js +0 -51
  75. package/dist/icons/icons.js.map +0 -1
  76. package/dist/icons/index.d.ts +0 -3
  77. package/dist/icons/index.d.ts.map +0 -1
  78. package/dist/icons/index.js +0 -2
  79. package/dist/icons/index.js.map +0 -1
  80. package/dist/layout/BandManager.d.ts +0 -87
  81. package/dist/layout/BandManager.d.ts.map +0 -1
  82. package/dist/layout/BandManager.js +0 -185
  83. package/dist/layout/BandManager.js.map +0 -1
  84. package/dist/layout/LayoutCalculator.d.ts +0 -42
  85. package/dist/layout/LayoutCalculator.d.ts.map +0 -1
  86. package/dist/layout/LayoutCalculator.js +0 -180
  87. package/dist/layout/LayoutCalculator.js.map +0 -1
  88. package/dist/layout/LayoutState.d.ts +0 -46
  89. package/dist/layout/LayoutState.d.ts.map +0 -1
  90. package/dist/layout/LayoutState.js +0 -109
  91. package/dist/layout/LayoutState.js.map +0 -1
  92. package/dist/layout/TransitionCoordinator.d.ts +0 -11
  93. package/dist/layout/TransitionCoordinator.d.ts.map +0 -1
  94. package/dist/layout/TransitionCoordinator.js +0 -22
  95. package/dist/layout/TransitionCoordinator.js.map +0 -1
  96. package/dist/layout/index.d.ts +0 -7
  97. package/dist/layout/index.d.ts.map +0 -1
  98. package/dist/layout/index.js +0 -4
  99. package/dist/layout/index.js.map +0 -1
  100. package/dist/rendering/BandManager.d.ts +0 -87
  101. package/dist/rendering/BandManager.d.ts.map +0 -1
  102. package/dist/rendering/BandManager.js +0 -185
  103. package/dist/rendering/BandManager.js.map +0 -1
  104. package/dist/rendering/PageCache.d.ts +0 -75
  105. package/dist/rendering/PageCache.d.ts.map +0 -1
  106. package/dist/rendering/PageCache.js +0 -122
  107. package/dist/rendering/PageCache.js.map +0 -1
  108. package/dist/rendering/RenderQueue.d.ts +0 -75
  109. package/dist/rendering/RenderQueue.d.ts.map +0 -1
  110. package/dist/rendering/RenderQueue.js +0 -105
  111. package/dist/rendering/RenderQueue.js.map +0 -1
  112. package/dist/rendering/ThumbnailQueue.d.ts +0 -57
  113. package/dist/rendering/ThumbnailQueue.d.ts.map +0 -1
  114. package/dist/rendering/ThumbnailQueue.js +0 -85
  115. package/dist/rendering/ThumbnailQueue.js.map +0 -1
  116. package/dist/rendering/index.d.ts +0 -13
  117. package/dist/rendering/index.d.ts.map +0 -1
  118. package/dist/rendering/index.js +0 -10
  119. package/dist/rendering/index.js.map +0 -1
  120. package/dist/rendering/types.d.ts +0 -72
  121. package/dist/rendering/types.d.ts.map +0 -1
  122. package/dist/rendering/types.js +0 -5
  123. package/dist/rendering/types.js.map +0 -1
  124. package/dist/styles/index.d.ts +0 -6
  125. package/dist/styles/index.d.ts.map +0 -1
  126. package/dist/styles/index.js +0 -1221
  127. package/dist/styles/index.js.map +0 -1
  128. package/dist/types.d.ts +0 -6
  129. package/dist/types.d.ts.map +0 -1
  130. package/dist/types.js +0 -6
  131. package/dist/types.js.map +0 -1
  132. package/dist/ui/Component.d.ts +0 -127
  133. package/dist/ui/Component.d.ts.map +0 -1
  134. package/dist/ui/Component.js +0 -201
  135. package/dist/ui/Component.js.map +0 -1
  136. package/dist/ui/annotation/AnnotationLayer.d.ts +0 -90
  137. package/dist/ui/annotation/AnnotationLayer.d.ts.map +0 -1
  138. package/dist/ui/annotation/AnnotationLayer.js +0 -322
  139. package/dist/ui/annotation/AnnotationLayer.js.map +0 -1
  140. package/dist/ui/annotation/LinkRenderer.d.ts +0 -32
  141. package/dist/ui/annotation/LinkRenderer.d.ts.map +0 -1
  142. package/dist/ui/annotation/LinkRenderer.js +0 -74
  143. package/dist/ui/annotation/LinkRenderer.js.map +0 -1
  144. package/dist/ui/annotation/MarkupRenderer.d.ts +0 -40
  145. package/dist/ui/annotation/MarkupRenderer.d.ts.map +0 -1
  146. package/dist/ui/annotation/MarkupRenderer.js +0 -154
  147. package/dist/ui/annotation/MarkupRenderer.js.map +0 -1
  148. package/dist/ui/annotation/ShapeRenderer.d.ts +0 -46
  149. package/dist/ui/annotation/ShapeRenderer.d.ts.map +0 -1
  150. package/dist/ui/annotation/ShapeRenderer.js +0 -376
  151. package/dist/ui/annotation/ShapeRenderer.js.map +0 -1
  152. package/dist/ui/annotation/TextRenderer.d.ts +0 -36
  153. package/dist/ui/annotation/TextRenderer.d.ts.map +0 -1
  154. package/dist/ui/annotation/TextRenderer.js +0 -199
  155. package/dist/ui/annotation/TextRenderer.js.map +0 -1
  156. package/dist/ui/annotation/index.d.ts +0 -17
  157. package/dist/ui/annotation/index.d.ts.map +0 -1
  158. package/dist/ui/annotation/index.js +0 -13
  159. package/dist/ui/annotation/index.js.map +0 -1
  160. package/dist/ui/annotation/utils.d.ts +0 -40
  161. package/dist/ui/annotation/utils.d.ts.map +0 -1
  162. package/dist/ui/annotation/utils.js +0 -62
  163. package/dist/ui/annotation/utils.js.map +0 -1
  164. package/dist/ui/components/CommentsContent.d.ts +0 -35
  165. package/dist/ui/components/CommentsContent.d.ts.map +0 -1
  166. package/dist/ui/components/CommentsContent.js +0 -203
  167. package/dist/ui/components/CommentsContent.js.map +0 -1
  168. package/dist/ui/components/FloatingBar.d.ts +0 -55
  169. package/dist/ui/components/FloatingBar.d.ts.map +0 -1
  170. package/dist/ui/components/FloatingBar.js +0 -585
  171. package/dist/ui/components/FloatingBar.js.map +0 -1
  172. package/dist/ui/components/Header.d.ts +0 -29
  173. package/dist/ui/components/Header.d.ts.map +0 -1
  174. package/dist/ui/components/Header.js +0 -127
  175. package/dist/ui/components/Header.js.map +0 -1
  176. package/dist/ui/components/LeftPanel.d.ts +0 -54
  177. package/dist/ui/components/LeftPanel.d.ts.map +0 -1
  178. package/dist/ui/components/LeftPanel.js +0 -202
  179. package/dist/ui/components/LeftPanel.js.map +0 -1
  180. package/dist/ui/components/OutlineContent.d.ts +0 -34
  181. package/dist/ui/components/OutlineContent.d.ts.map +0 -1
  182. package/dist/ui/components/OutlineContent.js +0 -147
  183. package/dist/ui/components/OutlineContent.js.map +0 -1
  184. package/dist/ui/components/RightPanel.d.ts +0 -52
  185. package/dist/ui/components/RightPanel.d.ts.map +0 -1
  186. package/dist/ui/components/RightPanel.js +0 -142
  187. package/dist/ui/components/RightPanel.js.map +0 -1
  188. package/dist/ui/components/Viewport.d.ts +0 -70
  189. package/dist/ui/components/Viewport.d.ts.map +0 -1
  190. package/dist/ui/components/Viewport.js +0 -173
  191. package/dist/ui/components/Viewport.js.map +0 -1
  192. package/dist/ui/components/index.d.ts +0 -11
  193. package/dist/ui/components/index.d.ts.map +0 -1
  194. package/dist/ui/components/index.js +0 -10
  195. package/dist/ui/components/index.js.map +0 -1
  196. package/dist/ui/icons/icons.d.ts +0 -43
  197. package/dist/ui/icons/icons.d.ts.map +0 -1
  198. package/dist/ui/icons/icons.js +0 -46
  199. package/dist/ui/icons/icons.js.map +0 -1
  200. package/dist/ui/icons/index.d.ts +0 -11
  201. package/dist/ui/icons/index.d.ts.map +0 -1
  202. package/dist/ui/icons/index.js +0 -18
  203. package/dist/ui/icons/index.js.map +0 -1
  204. package/dist/ui/index.d.ts +0 -7
  205. package/dist/ui/index.d.ts.map +0 -1
  206. package/dist/ui/index.js +0 -9
  207. package/dist/ui/index.js.map +0 -1
  208. package/dist/ui/styles/base.css.d.ts +0 -5
  209. package/dist/ui/styles/base.css.d.ts.map +0 -1
  210. package/dist/ui/styles/base.css.js +0 -49
  211. package/dist/ui/styles/base.css.js.map +0 -1
  212. package/dist/ui/styles/floating-bar.css.d.ts +0 -5
  213. package/dist/ui/styles/floating-bar.css.d.ts.map +0 -1
  214. package/dist/ui/styles/floating-bar.css.js +0 -417
  215. package/dist/ui/styles/floating-bar.css.js.map +0 -1
  216. package/dist/ui/styles/header.css.d.ts +0 -5
  217. package/dist/ui/styles/header.css.d.ts.map +0 -1
  218. package/dist/ui/styles/header.css.js +0 -49
  219. package/dist/ui/styles/header.css.js.map +0 -1
  220. package/dist/ui/styles/index.d.ts +0 -21
  221. package/dist/ui/styles/index.d.ts.map +0 -1
  222. package/dist/ui/styles/index.js +0 -48
  223. package/dist/ui/styles/index.js.map +0 -1
  224. package/dist/ui/styles/panels.css.d.ts +0 -5
  225. package/dist/ui/styles/panels.css.d.ts.map +0 -1
  226. package/dist/ui/styles/panels.css.js +0 -446
  227. package/dist/ui/styles/panels.css.js.map +0 -1
  228. package/dist/ui/styles/responsive.css.d.ts +0 -5
  229. package/dist/ui/styles/responsive.css.d.ts.map +0 -1
  230. package/dist/ui/styles/responsive.css.js +0 -201
  231. package/dist/ui/styles/responsive.css.js.map +0 -1
  232. package/dist/ui/styles/variables.css.d.ts +0 -6
  233. package/dist/ui/styles/variables.css.d.ts.map +0 -1
  234. package/dist/ui/styles/variables.css.js +0 -75
  235. package/dist/ui/styles/variables.css.js.map +0 -1
  236. package/dist/ui/styles/viewport.css.d.ts +0 -5
  237. package/dist/ui/styles/viewport.css.d.ts.map +0 -1
  238. package/dist/ui/styles/viewport.css.js +0 -87
  239. package/dist/ui/styles/viewport.css.js.map +0 -1
  240. package/dist/view/LayoutCalculator.d.ts +0 -42
  241. package/dist/view/LayoutCalculator.d.ts.map +0 -1
  242. package/dist/view/LayoutCalculator.js +0 -180
  243. package/dist/view/LayoutCalculator.js.map +0 -1
  244. package/dist/view/TransitionCoordinator.d.ts +0 -11
  245. package/dist/view/TransitionCoordinator.d.ts.map +0 -1
  246. package/dist/view/TransitionCoordinator.js +0 -22
  247. package/dist/view/TransitionCoordinator.js.map +0 -1
  248. package/dist/view/ViewState.d.ts +0 -46
  249. package/dist/view/ViewState.d.ts.map +0 -1
  250. package/dist/view/ViewState.js +0 -109
  251. package/dist/view/ViewState.js.map +0 -1
  252. package/dist/view/index.d.ts +0 -7
  253. package/dist/view/index.d.ts.map +0 -1
  254. package/dist/view/index.js +0 -4
  255. package/dist/view/index.js.map +0 -1
  256. package/dist/worker/types.d.ts +0 -81
  257. package/dist/worker/types.d.ts.map +0 -1
  258. package/dist/worker/types.js +0 -6
  259. package/dist/worker/types.js.map +0 -1
  260. package/dist/worker.d.ts +0 -2
  261. package/dist/worker.d.ts.map +0 -1
  262. package/dist/worker.js +0 -205
  263. package/dist/worker.js.map +0 -1
@@ -1,573 +0,0 @@
1
- /**
2
- * Zoom mode for the viewer.
3
- */
4
- export type ZoomMode = 'fit-width' | 'fit-height' | 'fit-page' | 'actual-size' | 'custom';
5
- /**
6
- * Display mode for the viewer.
7
- */
8
- export type DisplayMode = 'single' | 'scroll';
9
- /**
10
- * Layout mode for bands.
11
- */
12
- export type LayoutMode = 'single' | 'double' | 'double-cover' | 'grid';
13
- /**
14
- * Rotation for pages.
15
- */
16
- export type Rotation = 0 | 90 | 180 | 270;
17
- /**
18
- * Default gap size between pages when not in seamless mode.
19
- */
20
- export declare const PAGE_GAP_SIZE = 16;
21
- /**
22
- * Grid layout settings.
23
- */
24
- export interface GridOptions {
25
- columns: number;
26
- rows: number;
27
- }
28
- /**
29
- * Options for creating a UDocViewer instance.
30
- */
31
- export interface UDocViewerOptions {
32
- /**
33
- * Initial zoom scale factor. Default: 1.0
34
- * Only used when initialZoomMode is 'custom'.
35
- */
36
- initialZoom?: number;
37
- /**
38
- * Initial zoom mode. Default: 'fit-page'
39
- */
40
- initialZoomMode?: ZoomMode;
41
- /**
42
- * Display mode. Default: 'single'
43
- */
44
- displayMode?: DisplayMode;
45
- /**
46
- * Layout mode. Default: 'single'
47
- */
48
- layoutMode?: LayoutMode;
49
- /**
50
- * Page rotation. Default: 0
51
- */
52
- rotation?: Rotation;
53
- /**
54
- * Enable seamless mode (no gaps between pages). Default: false
55
- */
56
- seamless?: boolean;
57
- /**
58
- * Grid layout options.
59
- */
60
- grid?: Partial<GridOptions>;
61
- /**
62
- * Maximum allowed zoom scale. Default: 5.0
63
- */
64
- maxZoom?: number;
65
- /**
66
- * Minimum allowed zoom scale. Default: 0.25
67
- */
68
- minZoom?: number;
69
- /**
70
- * Zoom increment for zoomIn/zoomOut. Default: 0.25
71
- */
72
- zoomStep?: number;
73
- /**
74
- * Render format. Default: 'png'
75
- * - 'png': Render to PNG (better quality, slightly slower)
76
- * - 'rgba': Render to raw RGBA data (faster, uses canvas)
77
- */
78
- renderFormat?: 'png' | 'rgba';
79
- /**
80
- * Number of rendered pages to keep in the image cache. Default: 12
81
- * Set to 0 to disable caching.
82
- */
83
- pageCacheSize?: number;
84
- /**
85
- * Show the header bar with document name and controls. Default: true
86
- */
87
- showHeader?: boolean;
88
- /**
89
- * Show the left panel with thumbnails, outline, etc. Default: true
90
- */
91
- showLeftPanel?: boolean;
92
- /**
93
- * Initial left panel state. Default: false (collapsed)
94
- */
95
- leftPanelOpen?: boolean;
96
- /**
97
- * Show the right panel with comments, annotations, etc. Default: true
98
- */
99
- showRightPanel?: boolean;
100
- /**
101
- * Initial right panel state. Default: false (collapsed)
102
- */
103
- rightPanelOpen?: boolean;
104
- /**
105
- * Show the floating control bar. Default: true
106
- */
107
- showFloatingBar?: boolean;
108
- }
109
- /**
110
- * Event detail for 'load' event.
111
- */
112
- export interface LoadEventDetail {
113
- pageCount: number;
114
- }
115
- /**
116
- * Event detail for 'error' event.
117
- */
118
- export interface ErrorEventDetail {
119
- error: Error;
120
- context: string;
121
- }
122
- /**
123
- * Event detail for 'pagechange' event.
124
- */
125
- export interface PageChangeEventDetail {
126
- page: number;
127
- pageCount: number;
128
- }
129
- /**
130
- * Event detail for 'zoomchange' event.
131
- */
132
- export interface ZoomChangeEventDetail {
133
- zoom: number;
134
- mode: ZoomMode;
135
- }
136
- /**
137
- * Event detail for 'loadstart' event.
138
- */
139
- export interface LoadStartEventDetail {
140
- }
141
- /**
142
- * Event detail for 'renderstart' and 'renderend' events.
143
- */
144
- export interface RenderEventDetail {
145
- page: number;
146
- }
147
- /**
148
- * Event detail for panel change events.
149
- */
150
- export interface PanelChangeEventDetail {
151
- open: boolean;
152
- }
153
- /**
154
- * Left panel tab types.
155
- */
156
- export type LeftPanelTab = 'thumbnails' | 'outline' | 'bookmarks' | 'attachments';
157
- /**
158
- * Right panel tab types.
159
- */
160
- export type RightPanelTab = 'comments' | 'search';
161
- /**
162
- * Interaction tool types.
163
- */
164
- export type Tool = 'select' | 'hand';
165
- /**
166
- * An item in the document outline (bookmarks/table of contents).
167
- */
168
- export interface OutlineItem {
169
- /** Display title for the outline item. */
170
- title: string;
171
- /** Destination to navigate to when clicked (optional). */
172
- destination?: Destination;
173
- /** Child items nested under this item. */
174
- children: OutlineItem[];
175
- /**
176
- * Whether this item should be initially collapsed in the viewer.
177
- *
178
- * In PDF, this is derived from the outline item's Count field:
179
- * - Count > 0: expanded (initiallyCollapsed = false)
180
- * - Count < 0: collapsed (initiallyCollapsed = true)
181
- * - Count = 0 or absent: expanded by default (initiallyCollapsed = false)
182
- */
183
- initiallyCollapsed: boolean;
184
- }
185
- /**
186
- * A destination within a document.
187
- *
188
- * Represents a location that can be navigated to, consisting of a page index
189
- * and display parameters.
190
- */
191
- export interface Destination {
192
- /** Zero-based page index within the document. */
193
- pageIndex: number;
194
- /** Display parameters for how the page should be shown. */
195
- display: DestinationDisplay;
196
- }
197
- /**
198
- * Display parameters for a destination.
199
- *
200
- * Defines how a page should be displayed when navigating to a destination.
201
- * All coordinates use udoc's coordinate system: top-left origin with Y
202
- * increasing downward.
203
- */
204
- export type DestinationDisplay = {
205
- type: 'xyz';
206
- left?: number;
207
- top?: number;
208
- zoom?: number;
209
- } | {
210
- type: 'fit';
211
- } | {
212
- type: 'fitH';
213
- top?: number;
214
- } | {
215
- type: 'fitV';
216
- left?: number;
217
- } | {
218
- type: 'fitR';
219
- left: number;
220
- top: number;
221
- right: number;
222
- bottom: number;
223
- } | {
224
- type: 'fitB';
225
- } | {
226
- type: 'fitBH';
227
- top?: number;
228
- } | {
229
- type: 'fitBV';
230
- left?: number;
231
- };
232
- /**
233
- * A rectangle in page coordinates.
234
- */
235
- export interface Rect {
236
- x: number;
237
- y: number;
238
- width: number;
239
- height: number;
240
- }
241
- /**
242
- * A point in page coordinates.
243
- */
244
- export interface Point {
245
- x: number;
246
- y: number;
247
- }
248
- /**
249
- * A quadrilateral defined by 4 corner points.
250
- * Points are ordered: [bottom-left, bottom-right, top-right, top-left] (clockwise in screen coords)
251
- * Used for text markup annotations where text may be rotated or skewed.
252
- */
253
- export interface Quad {
254
- points: [Point, Point, Point, Point];
255
- }
256
- /**
257
- * RGB color with components in range 0.0-1.0.
258
- */
259
- export interface AnnotationColor {
260
- r: number;
261
- g: number;
262
- b: number;
263
- }
264
- /**
265
- * Metadata for markup annotations (author, subject, contents, state).
266
- * This information is displayed in annotation popups and comment threads.
267
- */
268
- export interface MarkupMetadata {
269
- /** The author who created the annotation. */
270
- author?: string;
271
- /** The subject/title of the annotation. */
272
- subject?: string;
273
- /** The text content/comment of the annotation. */
274
- contents?: string;
275
- /** Annotation state (e.g., "Accepted", "Rejected", "Completed", "Marked"). */
276
- state?: string;
277
- /** State model (e.g., "Review" or "Marked"). */
278
- stateModel?: string;
279
- }
280
- /**
281
- * Base annotation properties.
282
- */
283
- interface BaseAnnotation {
284
- /** Bounding rectangle in page coordinates. */
285
- bounds: Rect;
286
- /** Reply annotations nested under this annotation.
287
- * These are comments/replies displayed in comment threads. */
288
- replies: Annotation[];
289
- /** Metadata for markup annotations (author, subject, contents, state). */
290
- metadata?: MarkupMetadata;
291
- }
292
- /**
293
- * A link annotation that navigates to a destination or opens a URI.
294
- */
295
- export interface LinkAnnotation extends BaseAnnotation {
296
- type: 'link';
297
- action: LinkAction;
298
- }
299
- /**
300
- * A highlight annotation that highlights text with a colored overlay.
301
- */
302
- export interface HighlightAnnotation extends BaseAnnotation {
303
- type: 'highlight';
304
- /** QuadPoints defining the highlighted text regions. */
305
- quads: Quad[];
306
- /** Annotation color (RGB, 0.0-1.0). */
307
- color?: AnnotationColor;
308
- /** Opacity (0.0-1.0, default 1.0). */
309
- opacity?: number;
310
- }
311
- /**
312
- * An underline annotation that draws a line under text.
313
- */
314
- export interface UnderlineAnnotation extends BaseAnnotation {
315
- type: 'underline';
316
- /** QuadPoints defining the underlined text regions. */
317
- quads: Quad[];
318
- /** Annotation color (RGB, 0.0-1.0). */
319
- color?: AnnotationColor;
320
- /** Opacity (0.0-1.0, default 1.0). */
321
- opacity?: number;
322
- }
323
- /**
324
- * A strikeout annotation that draws a line through text.
325
- */
326
- export interface StrikeOutAnnotation extends BaseAnnotation {
327
- type: 'strikeOut';
328
- /** QuadPoints defining the struck-out text regions. */
329
- quads: Quad[];
330
- /** Annotation color (RGB, 0.0-1.0). */
331
- color?: AnnotationColor;
332
- /** Opacity (0.0-1.0, default 1.0). */
333
- opacity?: number;
334
- }
335
- /**
336
- * A squiggly annotation that draws a wavy line under text.
337
- */
338
- export interface SquigglyAnnotation extends BaseAnnotation {
339
- type: 'squiggly';
340
- /** QuadPoints defining the squiggly-underlined text regions. */
341
- quads: Quad[];
342
- /** Annotation color (RGB, 0.0-1.0). */
343
- color?: AnnotationColor;
344
- /** Opacity (0.0-1.0, default 1.0). */
345
- opacity?: number;
346
- }
347
- /**
348
- * Icon type for text (sticky note) annotations.
349
- */
350
- export type TextAnnotationIcon = 'Comment' | 'Key' | 'Note' | 'Help' | 'NewParagraph' | 'Paragraph' | 'Insert';
351
- /**
352
- * Text justification for free text annotations.
353
- */
354
- export type TextJustification = 'left' | 'center' | 'right';
355
- /**
356
- * A text (sticky note) annotation that displays an icon with optional popup content.
357
- */
358
- export interface TextAnnotation extends BaseAnnotation {
359
- type: 'text';
360
- /** Icon to display for the annotation. */
361
- icon: TextAnnotationIcon;
362
- /** Whether the popup is initially open. */
363
- open: boolean;
364
- /** Annotation color (RGB, 0.0-1.0). */
365
- color?: AnnotationColor;
366
- }
367
- /**
368
- * A free text (typewriter/text box) annotation that displays text directly on the page.
369
- */
370
- export interface FreeTextAnnotation extends BaseAnnotation {
371
- type: 'freeText';
372
- /** Text content to display. */
373
- contents?: string;
374
- /** Text justification. */
375
- justification: TextJustification;
376
- /** Default appearance string (for font info). */
377
- defaultAppearance?: string;
378
- /** Text color. */
379
- color?: AnnotationColor;
380
- /** Border/stroke color. */
381
- borderColor?: AnnotationColor;
382
- /** Callout line coordinates (if present). */
383
- calloutLine?: Point[];
384
- }
385
- /**
386
- * A stamp annotation that displays a stamp icon or text.
387
- */
388
- export interface StampAnnotation extends BaseAnnotation {
389
- type: 'stamp';
390
- /** Stamp name/type (e.g., "Approved", "Draft", "Confidential"). */
391
- name?: string;
392
- /** Whether the stamp has a custom appearance stream. */
393
- hasCustomAppearance: boolean;
394
- /** Annotation color (RGB, 0.0-1.0). */
395
- color?: AnnotationColor;
396
- }
397
- /**
398
- * Line ending style for line annotations.
399
- */
400
- export type LineEnding = 'None' | 'Square' | 'Circle' | 'Diamond' | 'OpenArrow' | 'ClosedArrow' | 'Butt' | 'ROpenArrow' | 'RClosedArrow' | 'Slash';
401
- /**
402
- * Border style for shape annotations.
403
- */
404
- export type BorderStyle = 'solid' | 'dashed' | 'beveled' | 'inset' | 'underline';
405
- /**
406
- * A line annotation that draws a line between two points.
407
- */
408
- export interface LineAnnotation extends BaseAnnotation {
409
- type: 'line';
410
- /** Start point of the line. */
411
- start: Point;
412
- /** End point of the line. */
413
- end: Point;
414
- /** Line ending style at the start point. */
415
- startEnding: LineEnding;
416
- /** Line ending style at the end point. */
417
- endEnding: LineEnding;
418
- /** Stroke color. */
419
- color?: AnnotationColor;
420
- /** Interior (fill) color for closed line endings. */
421
- interiorColor?: AnnotationColor;
422
- /** Border width. */
423
- borderWidth?: number;
424
- /** Opacity (0.0-1.0). */
425
- opacity?: number;
426
- }
427
- /**
428
- * A square/rectangle annotation.
429
- */
430
- export interface SquareAnnotation extends BaseAnnotation {
431
- type: 'square';
432
- /** Stroke color. */
433
- color?: AnnotationColor;
434
- /** Interior (fill) color. */
435
- interiorColor?: AnnotationColor;
436
- /** Border width. */
437
- borderWidth?: number;
438
- /** Border style. */
439
- borderStyle: BorderStyle;
440
- /** Opacity (0.0-1.0). */
441
- opacity?: number;
442
- }
443
- /**
444
- * A circle/ellipse annotation.
445
- */
446
- export interface CircleAnnotation extends BaseAnnotation {
447
- type: 'circle';
448
- /** Stroke color. */
449
- color?: AnnotationColor;
450
- /** Interior (fill) color. */
451
- interiorColor?: AnnotationColor;
452
- /** Border width. */
453
- borderWidth?: number;
454
- /** Border style. */
455
- borderStyle: BorderStyle;
456
- /** Opacity (0.0-1.0). */
457
- opacity?: number;
458
- }
459
- /**
460
- * A polygon annotation (closed shape).
461
- */
462
- export interface PolygonAnnotation extends BaseAnnotation {
463
- type: 'polygon';
464
- /** Vertices of the polygon. */
465
- vertices: Point[];
466
- /** Stroke color. */
467
- color?: AnnotationColor;
468
- /** Interior (fill) color. */
469
- interiorColor?: AnnotationColor;
470
- /** Border width. */
471
- borderWidth?: number;
472
- /** Opacity (0.0-1.0). */
473
- opacity?: number;
474
- }
475
- /**
476
- * A polyline annotation (open path).
477
- */
478
- export interface PolyLineAnnotation extends BaseAnnotation {
479
- type: 'polyLine';
480
- /** Vertices of the polyline. */
481
- vertices: Point[];
482
- /** Stroke color. */
483
- color?: AnnotationColor;
484
- /** Interior (fill) color. */
485
- interiorColor?: AnnotationColor;
486
- /** Border width. */
487
- borderWidth?: number;
488
- /** Opacity (0.0-1.0). */
489
- opacity?: number;
490
- }
491
- /**
492
- * An ink (freehand drawing) annotation.
493
- */
494
- export interface InkAnnotation extends BaseAnnotation {
495
- type: 'ink';
496
- /** List of ink strokes, each stroke is a list of points. */
497
- inkList: Point[][];
498
- /** Stroke color. */
499
- color?: AnnotationColor;
500
- /** Border width (stroke width). */
501
- borderWidth?: number;
502
- /** Opacity (0.0-1.0). */
503
- opacity?: number;
504
- }
505
- /**
506
- * Symbol type for caret annotations.
507
- */
508
- export type CaretSymbol = 'None' | 'P';
509
- /**
510
- * A caret (text insertion point) annotation.
511
- * Indicates where text should be inserted in the document.
512
- */
513
- export interface CaretAnnotation extends BaseAnnotation {
514
- type: 'caret';
515
- /** Caret symbol type ('None' for default caret, 'P' for paragraph). */
516
- symbol: CaretSymbol;
517
- /** Annotation color (RGB, 0.0-1.0). */
518
- color?: AnnotationColor;
519
- /** Opacity (0.0-1.0). */
520
- opacity?: number;
521
- }
522
- /**
523
- * A redact annotation that marks content for removal.
524
- * Shows the redaction overlay before the redaction is applied.
525
- */
526
- export interface RedactAnnotation extends BaseAnnotation {
527
- type: 'redact';
528
- /** QuadPoints defining the regions to be redacted. */
529
- quads: Quad[];
530
- /** Interior (fill) color shown after redaction. */
531
- interiorColor?: AnnotationColor;
532
- /** Overlay text to display over the redacted region. */
533
- overlayText?: string;
534
- /** Text justification for overlay text. */
535
- justification: TextJustification;
536
- /** Whether to repeat the overlay text to fill the redacted area. */
537
- repeat: boolean;
538
- /** Annotation color (border/outline color). */
539
- color?: AnnotationColor;
540
- /** Opacity (0.0-1.0). */
541
- opacity?: number;
542
- }
543
- /**
544
- * An annotation on a document page.
545
- * Union of all supported annotation types.
546
- */
547
- export type Annotation = LinkAnnotation | HighlightAnnotation | UnderlineAnnotation | StrikeOutAnnotation | SquigglyAnnotation | TextAnnotation | FreeTextAnnotation | StampAnnotation | LineAnnotation | SquareAnnotation | CircleAnnotation | PolygonAnnotation | PolyLineAnnotation | InkAnnotation | CaretAnnotation | RedactAnnotation;
548
- /**
549
- * The action to perform when a link is activated.
550
- */
551
- export type LinkAction = {
552
- actionType: 'goTo';
553
- destination: Destination;
554
- } | {
555
- actionType: 'uri';
556
- uri: string;
557
- };
558
- /**
559
- * Map of event names to their CustomEvent types.
560
- */
561
- export interface UDocViewerEventMap {
562
- load: CustomEvent<LoadEventDetail>;
563
- error: CustomEvent<ErrorEventDetail>;
564
- pagechange: CustomEvent<PageChangeEventDetail>;
565
- zoomchange: CustomEvent<ZoomChangeEventDetail>;
566
- loadstart: CustomEvent<LoadStartEventDetail>;
567
- renderstart: CustomEvent<RenderEventDetail>;
568
- renderend: CustomEvent<RenderEventDetail>;
569
- leftpanelchange: CustomEvent<PanelChangeEventDetail>;
570
- rightpanelchange: CustomEvent<PanelChangeEventDetail>;
571
- }
572
- export {};
573
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,aAAa,GAAG,QAAQ,CAAC;AAE1F;;GAE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M,CAAC;IAAC,WAAW,EAAE,WAAW,CAAA;CAAE,GAChD;IAAE,UAAU,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IACnC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACrC,UAAU,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC/C,UAAU,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC/C,SAAS,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC7C,WAAW,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC5C,SAAS,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAC1C,eAAe,EAAE,WAAW,CAAC,sBAAsB,CAAC,CAAC;IACrD,gBAAgB,EAAE,WAAW,CAAC,sBAAsB,CAAC,CAAC;CACzD"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Default gap size between pages when not in seamless mode.
3
- */
4
- export const PAGE_GAP_SIZE = 16;
5
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAoBA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC"}
@@ -1,41 +0,0 @@
1
- /**
2
- * SVG icons used by the document viewer.
3
- * All icons use currentColor for fill/stroke to inherit text color.
4
- */
5
- export declare const ICONS: {
6
- readonly menu: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z\"/></svg>";
7
- readonly chevronLeft: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/></svg>";
8
- readonly chevronRight: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/></svg>";
9
- readonly chevronDown: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z\"/></svg>";
10
- readonly fullscreen: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z\"/></svg>";
11
- readonly fullscreenExit: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z\"/></svg>";
12
- readonly zoomIn: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"/></svg>";
13
- readonly zoomOut: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M19 13H5v-2h14v2z\"/></svg>";
14
- readonly settings: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z\"/></svg>";
15
- readonly displaySingle: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><rect x=\"5\" y=\"4\" width=\"14\" height=\"16\" rx=\"1\"/></svg>";
16
- readonly displayScroll: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M5 2 L5 11 L19 11 L19 2\"/><path d=\"M5 24 L5 15 L19 15 L19 24\"/></svg>";
17
- readonly layout1up: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><rect x=\"6\" y=\"3\" width=\"12\" height=\"18\" rx=\"1\"/></svg>";
18
- readonly layout2up: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><rect x=\"2\" y=\"4\" width=\"8\" height=\"16\" rx=\"1\"/><rect x=\"14\" y=\"4\" width=\"8\" height=\"16\" rx=\"1\"/></svg>";
19
- readonly layout2upCover: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><rect x=\"2\" y=\"4\" width=\"8\" height=\"16\" rx=\"1\" stroke-dasharray=\"3 2\"/><rect x=\"14\" y=\"4\" width=\"8\" height=\"16\" rx=\"1\"/></svg>";
20
- readonly layoutGrid: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"/></svg>";
21
- readonly rotate0: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M6 4 L14 4 L18 8 L18 20 L6 20 Z\"/><path d=\"M14 4 L14 8 L18 8\"/></svg>";
22
- readonly rotate90: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M20 18 L20 10 L16 6 L4 6 L4 18 Z\"/><path d=\"M20 10 L16 10 L16 6\"/></svg>";
23
- readonly rotate180: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M18 20 L10 20 L6 16 L6 4 L18 4 Z\"/><path d=\"M10 20 L10 16 L6 16\"/></svg>";
24
- readonly rotate270: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M4 6 L4 14 L8 18 L20 18 L20 6 Z\"/><path d=\"M4 14 L8 14 L8 18\"/></svg>";
25
- readonly thumbnails: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><rect x=\"3\" y=\"3\" width=\"7\" height=\"8\" rx=\"1\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"8\" rx=\"1\"/><rect x=\"3\" y=\"13\" width=\"7\" height=\"8\" rx=\"1\"/><rect x=\"14\" y=\"13\" width=\"7\" height=\"8\" rx=\"1\"/></svg>";
26
- readonly outline: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16-12v2h2V5h-2zm0 6h2v-2h-2v2zm0 6h2v-2h-2v2z\"/></svg>";
27
- readonly bookmark: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z\"/></svg>";
28
- readonly attachment: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 0 1 5 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 0 0 5 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z\"/></svg>";
29
- readonly comments: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M21 6h-2V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2v3a1 1 0 0 0 1 1h13l4 3v-17zM7 14H4V4h12v10H7z\"/></svg>";
30
- readonly annotations: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z\"/></svg>";
31
- readonly search: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"/></svg>";
32
- readonly properties: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z\"/></svg>";
33
- readonly rightPanel: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14h-6V6h6v12z\"/></svg>";
34
- readonly toolSelect: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7 2l12 11.2-5.8.5 3.3 7.3-2.2 1-3.2-7.4L7 18.5V2z\"/></svg>";
35
- readonly toolHand: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M18 11V6a2 2 0 0 0-2-2 2 2 0 0 0-2 2v0\"/><path d=\"M14 10V4a2 2 0 0 0-2-2 2 2 0 0 0-2 2v2\"/><path d=\"M10 10.5V6a2 2 0 0 0-2-2 2 2 0 0 0-2 2v8\"/><path d=\"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\"/></svg>";
36
- readonly seamlessOff: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M10 2v8H2M14 2v8h8M10 22v-8H2M14 22v-8h8\"/></svg>";
37
- readonly seamlessOn: "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M12 2v20M2 12h20\"/></svg>";
38
- readonly stickyNote: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H15l6-6V5c0-1.11-.9-2-2-2zm-7 8H7V9h5v2zm5-4H7V5h10v2zm-1 10v-4.5c0-.28.22-.5.5-.5H21l-5 5z\"/></svg>";
39
- };
40
- export type IconName = keyof typeof ICONS;
41
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/icons/icons.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDR,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAC"}