@embedpdf/plugin-annotation 2.14.4 → 3.0.0-next.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.
Files changed (348) hide show
  1. package/LICENSE +192 -21
  2. package/dist/capability-fghl0JmE.js +2680 -0
  3. package/dist/capability-fghl0JmE.js.map +1 -0
  4. package/dist/capability-hb2AU0f6.cjs +2739 -0
  5. package/dist/capability-hb2AU0f6.cjs.map +1 -0
  6. package/dist/index.cjs +593 -2
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +65 -0
  9. package/dist/index.d.ts +65 -1
  10. package/dist/index.js +562 -6998
  11. package/dist/index.js.map +1 -1
  12. package/dist/internal.cjs +5 -0
  13. package/dist/internal.d.cts +13 -0
  14. package/dist/internal.d.ts +13 -0
  15. package/dist/internal.js +2 -0
  16. package/dist/types-BhWgqgbX.d.cts +879 -0
  17. package/dist/types-Da6JRmhw.d.ts +879 -0
  18. package/package.json +26 -66
  19. package/dist/lib/actions.d.ts +0 -192
  20. package/dist/lib/annotation-plugin.d.ts +0 -310
  21. package/dist/lib/geometry/cloudy-border.d.ts +0 -90
  22. package/dist/lib/geometry/index.d.ts +0 -2
  23. package/dist/lib/geometry/rotation.d.ts +0 -32
  24. package/dist/lib/handlers/callout-free-text.handler.d.ts +0 -3
  25. package/dist/lib/handlers/circle.handler.d.ts +0 -3
  26. package/dist/lib/handlers/click-detector.d.ts +0 -27
  27. package/dist/lib/handlers/free-text.handler.d.ts +0 -3
  28. package/dist/lib/handlers/index.d.ts +0 -14
  29. package/dist/lib/handlers/ink.handler.d.ts +0 -3
  30. package/dist/lib/handlers/insert-text.handler.d.ts +0 -8
  31. package/dist/lib/handlers/line.handler.d.ts +0 -3
  32. package/dist/lib/handlers/link.handler.d.ts +0 -3
  33. package/dist/lib/handlers/polygon.handler.d.ts +0 -3
  34. package/dist/lib/handlers/polyline.handler.d.ts +0 -3
  35. package/dist/lib/handlers/replace-text.handler.d.ts +0 -9
  36. package/dist/lib/handlers/selection-utils.d.ts +0 -7
  37. package/dist/lib/handlers/square.handler.d.ts +0 -3
  38. package/dist/lib/handlers/stamp.handler.d.ts +0 -3
  39. package/dist/lib/handlers/text-markup.handler.d.ts +0 -7
  40. package/dist/lib/handlers/text.handler.d.ts +0 -3
  41. package/dist/lib/handlers/types.d.ts +0 -176
  42. package/dist/lib/helpers.d.ts +0 -46
  43. package/dist/lib/index.d.ts +0 -21
  44. package/dist/lib/manifest.d.ts +0 -4
  45. package/dist/lib/patching/base-patch.d.ts +0 -87
  46. package/dist/lib/patching/index.d.ts +0 -6
  47. package/dist/lib/patching/insert-upright.d.ts +0 -20
  48. package/dist/lib/patching/line-ending-handlers.d.ts +0 -20
  49. package/dist/lib/patching/line-endings.d.ts +0 -13
  50. package/dist/lib/patching/patch-registry.d.ts +0 -40
  51. package/dist/lib/patching/patch-utils.d.ts +0 -97
  52. package/dist/lib/patching/patches/callout-freetext.patch.d.ts +0 -3
  53. package/dist/lib/patching/patches/circle.patch.d.ts +0 -3
  54. package/dist/lib/patching/patches/freetext.patch.d.ts +0 -3
  55. package/dist/lib/patching/patches/index.d.ts +0 -9
  56. package/dist/lib/patching/patches/ink.patch.d.ts +0 -3
  57. package/dist/lib/patching/patches/line.patch.d.ts +0 -3
  58. package/dist/lib/patching/patches/polygon.patch.d.ts +0 -3
  59. package/dist/lib/patching/patches/polyline.patch.d.ts +0 -3
  60. package/dist/lib/patching/patches/square.patch.d.ts +0 -3
  61. package/dist/lib/patching/patches/stamp.patch.d.ts +0 -3
  62. package/dist/lib/reducer.d.ts +0 -6
  63. package/dist/lib/selectors.d.ts +0 -139
  64. package/dist/lib/tools/default-tools.d.ts +0 -521
  65. package/dist/lib/tools/tools-utils.d.ts +0 -453
  66. package/dist/lib/tools/types.d.ts +0 -209
  67. package/dist/lib/types.d.ts +0 -671
  68. package/dist/lib/utils/index.d.ts +0 -1
  69. package/dist/lib/utils/use-state.d.ts +0 -12
  70. package/dist/preact/adapter.d.ts +0 -14
  71. package/dist/preact/core.d.ts +0 -1
  72. package/dist/preact/index.cjs +0 -2
  73. package/dist/preact/index.cjs.map +0 -1
  74. package/dist/preact/index.d.ts +0 -1
  75. package/dist/preact/index.js +0 -4013
  76. package/dist/preact/index.js.map +0 -1
  77. package/dist/preact/interaction-manager.d.ts +0 -1
  78. package/dist/preact/selection.d.ts +0 -1
  79. package/dist/preact/utils.d.ts +0 -1
  80. package/dist/react/adapter.d.ts +0 -6
  81. package/dist/react/core.d.ts +0 -1
  82. package/dist/react/index.cjs +0 -2
  83. package/dist/react/index.cjs.map +0 -1
  84. package/dist/react/index.d.ts +0 -1
  85. package/dist/react/index.js +0 -4014
  86. package/dist/react/index.js.map +0 -1
  87. package/dist/react/interaction-manager.d.ts +0 -1
  88. package/dist/react/selection.d.ts +0 -1
  89. package/dist/react/utils.d.ts +0 -1
  90. package/dist/shared/annotation-bounds.d.ts +0 -14
  91. package/dist/shared/components/annotation-container.d.ts +0 -71
  92. package/dist/shared/components/annotation-layer.d.ts +0 -33
  93. package/dist/shared/components/annotation-navigation-handler.d.ts +0 -1
  94. package/dist/shared/components/annotation-paint-layer.d.ts +0 -7
  95. package/dist/shared/components/annotations/callout-free-text-preview.d.ts +0 -15
  96. package/dist/shared/components/annotations/callout-free-text.d.ts +0 -15
  97. package/dist/shared/components/annotations/caret.d.ts +0 -24
  98. package/dist/shared/components/annotations/circle.d.ts +0 -35
  99. package/dist/shared/components/annotations/free-text.d.ts +0 -17
  100. package/dist/shared/components/annotations/ink.d.ts +0 -27
  101. package/dist/shared/components/annotations/line.d.ts +0 -35
  102. package/dist/shared/components/annotations/link-locked.d.ts +0 -3
  103. package/dist/shared/components/annotations/link.d.ts +0 -28
  104. package/dist/shared/components/annotations/polygon.d.ts +0 -23
  105. package/dist/shared/components/annotations/polyline.d.ts +0 -23
  106. package/dist/shared/components/annotations/square.d.ts +0 -35
  107. package/dist/shared/components/annotations/stamp.d.ts +0 -13
  108. package/dist/shared/components/annotations/text.d.ts +0 -14
  109. package/dist/shared/components/annotations.d.ts +0 -22
  110. package/dist/shared/components/appearance-image.d.ts +0 -12
  111. package/dist/shared/components/built-in-renderers.d.ts +0 -2
  112. package/dist/shared/components/group-selection-box.d.ts +0 -40
  113. package/dist/shared/components/index.d.ts +0 -2
  114. package/dist/shared/components/preview-renderer.d.ts +0 -8
  115. package/dist/shared/components/render-annotation.d.ts +0 -13
  116. package/dist/shared/components/text-markup/highlight.d.ts +0 -16
  117. package/dist/shared/components/text-markup/squiggly.d.ts +0 -16
  118. package/dist/shared/components/text-markup/strikeout.d.ts +0 -16
  119. package/dist/shared/components/text-markup/underline.d.ts +0 -16
  120. package/dist/shared/components/text-markup.d.ts +0 -7
  121. package/dist/shared/components/types.d.ts +0 -253
  122. package/dist/shared/context/index.d.ts +0 -1
  123. package/dist/shared/context/renderer-registry.d.ts +0 -21
  124. package/dist/shared/hooks/index.d.ts +0 -2
  125. package/dist/shared/hooks/use-annotation.d.ts +0 -19
  126. package/dist/shared/hooks/use-ios-zoom-prevention.d.ts +0 -16
  127. package/dist/shared/index.d.ts +0 -6
  128. package/dist/shared/types.d.ts +0 -10
  129. package/dist/shared-preact/annotation-bounds.d.ts +0 -14
  130. package/dist/shared-preact/components/annotation-container.d.ts +0 -71
  131. package/dist/shared-preact/components/annotation-layer.d.ts +0 -33
  132. package/dist/shared-preact/components/annotation-navigation-handler.d.ts +0 -1
  133. package/dist/shared-preact/components/annotation-paint-layer.d.ts +0 -7
  134. package/dist/shared-preact/components/annotations/callout-free-text-preview.d.ts +0 -15
  135. package/dist/shared-preact/components/annotations/callout-free-text.d.ts +0 -15
  136. package/dist/shared-preact/components/annotations/caret.d.ts +0 -24
  137. package/dist/shared-preact/components/annotations/circle.d.ts +0 -35
  138. package/dist/shared-preact/components/annotations/free-text.d.ts +0 -17
  139. package/dist/shared-preact/components/annotations/ink.d.ts +0 -27
  140. package/dist/shared-preact/components/annotations/line.d.ts +0 -35
  141. package/dist/shared-preact/components/annotations/link-locked.d.ts +0 -3
  142. package/dist/shared-preact/components/annotations/link.d.ts +0 -28
  143. package/dist/shared-preact/components/annotations/polygon.d.ts +0 -23
  144. package/dist/shared-preact/components/annotations/polyline.d.ts +0 -23
  145. package/dist/shared-preact/components/annotations/square.d.ts +0 -35
  146. package/dist/shared-preact/components/annotations/stamp.d.ts +0 -13
  147. package/dist/shared-preact/components/annotations/text.d.ts +0 -14
  148. package/dist/shared-preact/components/annotations.d.ts +0 -22
  149. package/dist/shared-preact/components/appearance-image.d.ts +0 -12
  150. package/dist/shared-preact/components/built-in-renderers.d.ts +0 -2
  151. package/dist/shared-preact/components/group-selection-box.d.ts +0 -40
  152. package/dist/shared-preact/components/index.d.ts +0 -2
  153. package/dist/shared-preact/components/preview-renderer.d.ts +0 -8
  154. package/dist/shared-preact/components/render-annotation.d.ts +0 -13
  155. package/dist/shared-preact/components/text-markup/highlight.d.ts +0 -16
  156. package/dist/shared-preact/components/text-markup/squiggly.d.ts +0 -16
  157. package/dist/shared-preact/components/text-markup/strikeout.d.ts +0 -16
  158. package/dist/shared-preact/components/text-markup/underline.d.ts +0 -16
  159. package/dist/shared-preact/components/text-markup.d.ts +0 -7
  160. package/dist/shared-preact/components/types.d.ts +0 -253
  161. package/dist/shared-preact/context/index.d.ts +0 -1
  162. package/dist/shared-preact/context/renderer-registry.d.ts +0 -21
  163. package/dist/shared-preact/hooks/index.d.ts +0 -2
  164. package/dist/shared-preact/hooks/use-annotation.d.ts +0 -19
  165. package/dist/shared-preact/hooks/use-ios-zoom-prevention.d.ts +0 -15
  166. package/dist/shared-preact/index.d.ts +0 -6
  167. package/dist/shared-preact/types.d.ts +0 -10
  168. package/dist/shared-react/annotation-bounds.d.ts +0 -14
  169. package/dist/shared-react/components/annotation-container.d.ts +0 -71
  170. package/dist/shared-react/components/annotation-layer.d.ts +0 -33
  171. package/dist/shared-react/components/annotation-navigation-handler.d.ts +0 -1
  172. package/dist/shared-react/components/annotation-paint-layer.d.ts +0 -7
  173. package/dist/shared-react/components/annotations/callout-free-text-preview.d.ts +0 -15
  174. package/dist/shared-react/components/annotations/callout-free-text.d.ts +0 -15
  175. package/dist/shared-react/components/annotations/caret.d.ts +0 -24
  176. package/dist/shared-react/components/annotations/circle.d.ts +0 -35
  177. package/dist/shared-react/components/annotations/free-text.d.ts +0 -17
  178. package/dist/shared-react/components/annotations/ink.d.ts +0 -27
  179. package/dist/shared-react/components/annotations/line.d.ts +0 -35
  180. package/dist/shared-react/components/annotations/link-locked.d.ts +0 -3
  181. package/dist/shared-react/components/annotations/link.d.ts +0 -28
  182. package/dist/shared-react/components/annotations/polygon.d.ts +0 -23
  183. package/dist/shared-react/components/annotations/polyline.d.ts +0 -23
  184. package/dist/shared-react/components/annotations/square.d.ts +0 -35
  185. package/dist/shared-react/components/annotations/stamp.d.ts +0 -13
  186. package/dist/shared-react/components/annotations/text.d.ts +0 -14
  187. package/dist/shared-react/components/annotations.d.ts +0 -22
  188. package/dist/shared-react/components/appearance-image.d.ts +0 -12
  189. package/dist/shared-react/components/built-in-renderers.d.ts +0 -2
  190. package/dist/shared-react/components/group-selection-box.d.ts +0 -40
  191. package/dist/shared-react/components/index.d.ts +0 -2
  192. package/dist/shared-react/components/preview-renderer.d.ts +0 -8
  193. package/dist/shared-react/components/render-annotation.d.ts +0 -13
  194. package/dist/shared-react/components/text-markup/highlight.d.ts +0 -16
  195. package/dist/shared-react/components/text-markup/squiggly.d.ts +0 -16
  196. package/dist/shared-react/components/text-markup/strikeout.d.ts +0 -16
  197. package/dist/shared-react/components/text-markup/underline.d.ts +0 -16
  198. package/dist/shared-react/components/text-markup.d.ts +0 -7
  199. package/dist/shared-react/components/types.d.ts +0 -253
  200. package/dist/shared-react/context/index.d.ts +0 -1
  201. package/dist/shared-react/context/renderer-registry.d.ts +0 -21
  202. package/dist/shared-react/hooks/index.d.ts +0 -2
  203. package/dist/shared-react/hooks/use-annotation.d.ts +0 -19
  204. package/dist/shared-react/hooks/use-ios-zoom-prevention.d.ts +0 -16
  205. package/dist/shared-react/index.d.ts +0 -6
  206. package/dist/shared-react/types.d.ts +0 -10
  207. package/dist/shared-vue/annotation-bounds.d.ts +0 -14
  208. package/dist/svelte/components/AnnotationContainer.svelte.d.ts +0 -26
  209. package/dist/svelte/components/AnnotationLayer.svelte.d.ts +0 -40
  210. package/dist/svelte/components/AnnotationNavigationHandler.svelte.d.ts +0 -3
  211. package/dist/svelte/components/AnnotationPaintLayer.svelte.d.ts +0 -8
  212. package/dist/svelte/components/Annotations.svelte.d.ts +0 -28
  213. package/dist/svelte/components/AppearanceImage.svelte.d.ts +0 -8
  214. package/dist/svelte/components/GroupSelectionBox.svelte.d.ts +0 -40
  215. package/dist/svelte/components/PreviewRenderer.svelte.d.ts +0 -9
  216. package/dist/svelte/components/RenderAnnotation.svelte.d.ts +0 -14
  217. package/dist/svelte/components/RendererRegistryProvider.svelte.d.ts +0 -7
  218. package/dist/svelte/components/TextMarkup.svelte.d.ts +0 -8
  219. package/dist/svelte/components/annotations/CalloutFreeText.svelte.d.ts +0 -15
  220. package/dist/svelte/components/annotations/CalloutFreeTextPreview.svelte.d.ts +0 -10
  221. package/dist/svelte/components/annotations/Caret.svelte.d.ts +0 -13
  222. package/dist/svelte/components/annotations/Circle.svelte.d.ts +0 -19
  223. package/dist/svelte/components/annotations/CirclePreview.svelte.d.ts +0 -10
  224. package/dist/svelte/components/annotations/FreeText.svelte.d.ts +0 -16
  225. package/dist/svelte/components/annotations/FreeTextPreview.svelte.d.ts +0 -10
  226. package/dist/svelte/components/annotations/Ink.svelte.d.ts +0 -15
  227. package/dist/svelte/components/annotations/InkPreview.svelte.d.ts +0 -10
  228. package/dist/svelte/components/annotations/Line.svelte.d.ts +0 -19
  229. package/dist/svelte/components/annotations/LinePreview.svelte.d.ts +0 -10
  230. package/dist/svelte/components/annotations/Link.svelte.d.ts +0 -24
  231. package/dist/svelte/components/annotations/LinkLockedMode.svelte.d.ts +0 -5
  232. package/dist/svelte/components/annotations/LinkPreview.svelte.d.ts +0 -10
  233. package/dist/svelte/components/annotations/Polygon.svelte.d.ts +0 -21
  234. package/dist/svelte/components/annotations/PolygonPreview.svelte.d.ts +0 -10
  235. package/dist/svelte/components/annotations/Polyline.svelte.d.ts +0 -19
  236. package/dist/svelte/components/annotations/PolylinePreview.svelte.d.ts +0 -10
  237. package/dist/svelte/components/annotations/Square.svelte.d.ts +0 -19
  238. package/dist/svelte/components/annotations/SquarePreview.svelte.d.ts +0 -10
  239. package/dist/svelte/components/annotations/Stamp.svelte.d.ts +0 -13
  240. package/dist/svelte/components/annotations/StampPreview.svelte.d.ts +0 -10
  241. package/dist/svelte/components/annotations/Text.svelte.d.ts +0 -10
  242. package/dist/svelte/components/annotations/index.d.ts +0 -10
  243. package/dist/svelte/components/built-in-renderers.d.ts +0 -2
  244. package/dist/svelte/components/index.d.ts +0 -11
  245. package/dist/svelte/components/renderers/CalloutFreeTextRenderer.svelte.d.ts +0 -5
  246. package/dist/svelte/components/renderers/CaretRenderer.svelte.d.ts +0 -5
  247. package/dist/svelte/components/renderers/CircleRenderer.svelte.d.ts +0 -5
  248. package/dist/svelte/components/renderers/FreeTextRenderer.svelte.d.ts +0 -5
  249. package/dist/svelte/components/renderers/HighlightRenderer.svelte.d.ts +0 -5
  250. package/dist/svelte/components/renderers/InkRenderer.svelte.d.ts +0 -5
  251. package/dist/svelte/components/renderers/LineRenderer.svelte.d.ts +0 -5
  252. package/dist/svelte/components/renderers/LinkRenderer.svelte.d.ts +0 -5
  253. package/dist/svelte/components/renderers/PolygonRenderer.svelte.d.ts +0 -5
  254. package/dist/svelte/components/renderers/PolylineRenderer.svelte.d.ts +0 -5
  255. package/dist/svelte/components/renderers/SquareRenderer.svelte.d.ts +0 -5
  256. package/dist/svelte/components/renderers/SquigglyRenderer.svelte.d.ts +0 -5
  257. package/dist/svelte/components/renderers/StampRenderer.svelte.d.ts +0 -5
  258. package/dist/svelte/components/renderers/StrikeoutRenderer.svelte.d.ts +0 -5
  259. package/dist/svelte/components/renderers/TextRenderer.svelte.d.ts +0 -5
  260. package/dist/svelte/components/renderers/UnderlineRenderer.svelte.d.ts +0 -5
  261. package/dist/svelte/components/text-markup/Highlight.svelte.d.ts +0 -16
  262. package/dist/svelte/components/text-markup/Squiggly.svelte.d.ts +0 -16
  263. package/dist/svelte/components/text-markup/Strikeout.svelte.d.ts +0 -16
  264. package/dist/svelte/components/text-markup/Underline.svelte.d.ts +0 -16
  265. package/dist/svelte/components/text-markup/index.d.ts +0 -4
  266. package/dist/svelte/components/types.d.ts +0 -66
  267. package/dist/svelte/context/index.d.ts +0 -2
  268. package/dist/svelte/context/renderer-registry.svelte.d.ts +0 -20
  269. package/dist/svelte/context/types.d.ts +0 -129
  270. package/dist/svelte/hooks/index.d.ts +0 -2
  271. package/dist/svelte/hooks/use-annotation.svelte.d.ts +0 -21
  272. package/dist/svelte/hooks/use-ios-zoom-prevention.svelte.d.ts +0 -6
  273. package/dist/svelte/index.cjs +0 -2
  274. package/dist/svelte/index.cjs.map +0 -1
  275. package/dist/svelte/index.d.ts +0 -6
  276. package/dist/svelte/index.js +0 -5237
  277. package/dist/svelte/index.js.map +0 -1
  278. package/dist/svelte/types.d.ts +0 -126
  279. package/dist/vue/components/annotation-container.vue.d.ts +0 -134
  280. package/dist/vue/components/annotation-layer.vue.d.ts +0 -99
  281. package/dist/vue/components/annotation-navigation-handler.vue.d.ts +0 -3
  282. package/dist/vue/components/annotation-paint-layer.vue.d.ts +0 -8
  283. package/dist/vue/components/annotations/callout-free-text-preview.vue.d.ts +0 -10
  284. package/dist/vue/components/annotations/callout-free-text.vue.d.ts +0 -25
  285. package/dist/vue/components/annotations/caret.vue.d.ts +0 -24
  286. package/dist/vue/components/annotations/circle-preview.vue.d.ts +0 -10
  287. package/dist/vue/components/annotations/circle.vue.d.ts +0 -37
  288. package/dist/vue/components/annotations/free-text-preview.vue.d.ts +0 -10
  289. package/dist/vue/components/annotations/free-text.vue.d.ts +0 -25
  290. package/dist/vue/components/annotations/index.d.ts +0 -10
  291. package/dist/vue/components/annotations/ink-preview.vue.d.ts +0 -10
  292. package/dist/vue/components/annotations/ink.vue.d.ts +0 -27
  293. package/dist/vue/components/annotations/line-preview.vue.d.ts +0 -10
  294. package/dist/vue/components/annotations/line.vue.d.ts +0 -38
  295. package/dist/vue/components/annotations/link-locked.vue.d.ts +0 -5
  296. package/dist/vue/components/annotations/link-preview.vue.d.ts +0 -10
  297. package/dist/vue/components/annotations/link.vue.d.ts +0 -47
  298. package/dist/vue/components/annotations/polygon-preview.vue.d.ts +0 -10
  299. package/dist/vue/components/annotations/polygon.vue.d.ts +0 -43
  300. package/dist/vue/components/annotations/polyline-preview.vue.d.ts +0 -10
  301. package/dist/vue/components/annotations/polyline.vue.d.ts +0 -38
  302. package/dist/vue/components/annotations/square-preview.vue.d.ts +0 -10
  303. package/dist/vue/components/annotations/square.vue.d.ts +0 -37
  304. package/dist/vue/components/annotations/stamp-preview.vue.d.ts +0 -10
  305. package/dist/vue/components/annotations/stamp.vue.d.ts +0 -19
  306. package/dist/vue/components/annotations/text.vue.d.ts +0 -14
  307. package/dist/vue/components/annotations.vue.d.ts +0 -111
  308. package/dist/vue/components/appearance-image.vue.d.ts +0 -9
  309. package/dist/vue/components/built-in-renderers.d.ts +0 -2
  310. package/dist/vue/components/group-selection-box.vue.d.ts +0 -98
  311. package/dist/vue/components/index.d.ts +0 -11
  312. package/dist/vue/components/preview-renderer.vue.d.ts +0 -9
  313. package/dist/vue/components/render-annotation.vue.d.ts +0 -16
  314. package/dist/vue/components/renderer-registry-provider.vue.d.ts +0 -13
  315. package/dist/vue/components/renderers/callout-free-text-renderer.vue.d.ts +0 -6
  316. package/dist/vue/components/renderers/caret-renderer.vue.d.ts +0 -6
  317. package/dist/vue/components/renderers/circle-renderer.vue.d.ts +0 -6
  318. package/dist/vue/components/renderers/free-text-renderer.vue.d.ts +0 -6
  319. package/dist/vue/components/renderers/highlight-renderer.vue.d.ts +0 -6
  320. package/dist/vue/components/renderers/ink-renderer.vue.d.ts +0 -6
  321. package/dist/vue/components/renderers/line-renderer.vue.d.ts +0 -6
  322. package/dist/vue/components/renderers/link-renderer.vue.d.ts +0 -6
  323. package/dist/vue/components/renderers/polygon-renderer.vue.d.ts +0 -6
  324. package/dist/vue/components/renderers/polyline-renderer.vue.d.ts +0 -6
  325. package/dist/vue/components/renderers/square-renderer.vue.d.ts +0 -6
  326. package/dist/vue/components/renderers/squiggly-renderer.vue.d.ts +0 -6
  327. package/dist/vue/components/renderers/stamp-renderer.vue.d.ts +0 -6
  328. package/dist/vue/components/renderers/strikeout-renderer.vue.d.ts +0 -6
  329. package/dist/vue/components/renderers/text-renderer.vue.d.ts +0 -6
  330. package/dist/vue/components/renderers/underline-renderer.vue.d.ts +0 -6
  331. package/dist/vue/components/text-markup/highlight.vue.d.ts +0 -27
  332. package/dist/vue/components/text-markup/index.d.ts +0 -4
  333. package/dist/vue/components/text-markup/squiggly.vue.d.ts +0 -27
  334. package/dist/vue/components/text-markup/strikeout.vue.d.ts +0 -27
  335. package/dist/vue/components/text-markup/underline.vue.d.ts +0 -27
  336. package/dist/vue/components/text-markup.vue.d.ts +0 -8
  337. package/dist/vue/context/index.d.ts +0 -2
  338. package/dist/vue/context/renderer-registry.d.ts +0 -26
  339. package/dist/vue/context/types.d.ts +0 -129
  340. package/dist/vue/hooks/index.d.ts +0 -2
  341. package/dist/vue/hooks/use-annotation.d.ts +0 -50
  342. package/dist/vue/hooks/use-ios-zoom-prevention.d.ts +0 -7
  343. package/dist/vue/index.cjs +0 -2
  344. package/dist/vue/index.cjs.map +0 -1
  345. package/dist/vue/index.d.ts +0 -6
  346. package/dist/vue/index.js +0 -4984
  347. package/dist/vue/index.js.map +0 -1
  348. package/dist/vue/types.d.ts +0 -94
@@ -1 +0,0 @@
1
- export * from '@embedpdf/plugin-interaction-manager/react';
@@ -1 +0,0 @@
1
- export * from '@embedpdf/plugin-selection/react';
@@ -1 +0,0 @@
1
- export * from '@embedpdf/utils/react';
@@ -1,14 +0,0 @@
1
- import { Rotation } from '@embedpdf/models';
2
- import { TrackedAnnotation } from '../index.ts';
3
- export interface ScreenBounds {
4
- left: number;
5
- top: number;
6
- right: number;
7
- bottom: number;
8
- }
9
- /**
10
- * Compute the screen-space bounding box of an annotation, correctly accounting
11
- * for `noZoom` (constant pixel size regardless of zoom) and `noRotate`
12
- * (visually upright regardless of page rotation) annotation flags.
13
- */
14
- export declare function getAnnotationScreenBounds(annotation: TrackedAnnotation, scale: number, rotation: Rotation): ScreenBounds;
@@ -1,71 +0,0 @@
1
- import { PdfAnnotationObject, AnnotationAppearances, CssBlendMode } from '@embedpdf/models';
2
- import { TrackedAnnotation } from '../../index.ts';
3
- import { JSX, CSSProperties } from '../../react/adapter.ts';
4
- import { CustomAnnotationRenderer, ResizeHandleUI, AnnotationSelectionMenuRenderFn, AnnotationInteractionEvent, VertexHandleUI, RotationHandleUI, GroupSelectionMenuRenderFn, BoxedAnnotationRenderer, SelectionOutline } from './types';
5
- import { VertexConfig } from '../types';
6
- interface AnnotationContainerProps<T extends PdfAnnotationObject> {
7
- scale: number;
8
- documentId: string;
9
- pageIndex: number;
10
- rotation: number;
11
- pageWidth: number;
12
- pageHeight: number;
13
- trackedAnnotation: TrackedAnnotation<T>;
14
- children: JSX.Element | ((annotation: T, options: {
15
- appearanceActive: boolean;
16
- }) => JSX.Element);
17
- isSelected: boolean;
18
- /** Whether the annotation is in editing mode (e.g., FreeText text editing) */
19
- isEditing?: boolean;
20
- /** Whether multiple annotations are selected (container becomes passive) */
21
- isMultiSelected?: boolean;
22
- isDraggable: boolean;
23
- isResizable: boolean;
24
- isRotatable?: boolean;
25
- lockAspectRatio?: boolean;
26
- style?: CSSProperties;
27
- vertexConfig?: VertexConfig<T>;
28
- selectionMenu?: AnnotationSelectionMenuRenderFn;
29
- /**
30
- * Derived: PDF `locked` flag is set OR the annotation is non-interactive.
31
- * Threaded into the selection menu context so custom menus can disable move/
32
- * resize/rotate/delete/property-change items without recomputing flags.
33
- */
34
- structurallyLocked?: boolean;
35
- /**
36
- * Derived: PDF `lockedContents` flag is set OR the annotation is non-interactive.
37
- * Threaded into the selection menu context so custom menus can disable content
38
- * edit items without recomputing flags.
39
- */
40
- contentLocked?: boolean;
41
- /** @deprecated Use `selectionOutline.offset` instead */
42
- outlineOffset?: number;
43
- onDoubleClick?: (event: any) => void;
44
- onSelect: (event: AnnotationInteractionEvent) => void;
45
- /** Pre-rendered appearance stream images for AP mode rendering */
46
- appearance?: AnnotationAppearances<Blob> | null;
47
- /** Blend mode applied only to the visual content (children + AP image), not to interaction handles */
48
- blendMode?: CssBlendMode;
49
- zIndex?: number;
50
- resizeUI?: ResizeHandleUI;
51
- vertexUI?: VertexHandleUI;
52
- rotationUI?: RotationHandleUI;
53
- /** @deprecated Use `selectionOutline.color` instead */
54
- selectionOutlineColor?: string;
55
- /** Customize the selection outline (color, style, width, offset) */
56
- selectionOutline?: SelectionOutline;
57
- customAnnotationRenderer?: CustomAnnotationRenderer<T>;
58
- /** Passed from parent but not used - destructured to prevent DOM spread */
59
- groupSelectionMenu?: GroupSelectionMenuRenderFn;
60
- /** Passed from parent but not used - destructured to prevent DOM spread */
61
- groupSelectionOutline?: SelectionOutline;
62
- /** Passed from parent but not used - destructured to prevent DOM spread */
63
- annotationRenderers?: BoxedAnnotationRenderer[];
64
- }
65
- /**
66
- * AnnotationContainer wraps individual annotations with interaction handles.
67
- * When isMultiSelected is true, the container becomes passive - drag/resize
68
- * is handled by the GroupSelectionBox instead.
69
- */
70
- export declare function AnnotationContainer<T extends PdfAnnotationObject>({ scale, documentId, pageIndex, rotation, pageWidth, pageHeight, trackedAnnotation, children, isSelected, isEditing, isMultiSelected, isDraggable, isResizable, isRotatable, lockAspectRatio, style, blendMode, vertexConfig, selectionMenu, structurallyLocked, contentLocked, outlineOffset, onDoubleClick, onSelect, appearance, zIndex, resizeUI, vertexUI, rotationUI, selectionOutlineColor, selectionOutline, customAnnotationRenderer, groupSelectionMenu: _groupSelectionMenu, groupSelectionOutline: _groupSelectionOutline, annotationRenderers: _annotationRenderers, ...props }: AnnotationContainerProps<T>): JSX.Element;
71
- export {};
@@ -1,33 +0,0 @@
1
- import { HTMLAttributes, CSSProperties } from '../../react/adapter.ts';
2
- import { ResizeHandleUI, VertexHandleUI, RotationHandleUI, SelectionOutline, CustomAnnotationRenderer, AnnotationSelectionMenuRenderFn, GroupSelectionMenuRenderFn, BoxedAnnotationRenderer } from './types';
3
- import { PdfAnnotationObject } from '@embedpdf/models';
4
- type AnnotationLayerProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
5
- /** The ID of the document that this layer displays annotations for */
6
- documentId: string;
7
- pageIndex: number;
8
- scale?: number;
9
- rotation?: number;
10
- /** Customize selection menu across all annotations on this layer */
11
- selectionMenu?: AnnotationSelectionMenuRenderFn;
12
- /** Customize group selection menu across all annotations on this layer */
13
- groupSelectionMenu?: GroupSelectionMenuRenderFn;
14
- style?: CSSProperties;
15
- /** Customize resize handles */
16
- resizeUI?: ResizeHandleUI;
17
- /** Customize vertex handles */
18
- vertexUI?: VertexHandleUI;
19
- /** Customize rotation handle */
20
- rotationUI?: RotationHandleUI;
21
- /** @deprecated Use `selectionOutline` instead */
22
- selectionOutlineColor?: string;
23
- /** Customize the selection outline for individual annotations */
24
- selectionOutline?: SelectionOutline;
25
- /** Customize the selection outline for the group selection box (falls back to selectionOutline) */
26
- groupSelectionOutline?: SelectionOutline;
27
- /** Customize annotation renderer */
28
- customAnnotationRenderer?: CustomAnnotationRenderer<PdfAnnotationObject>;
29
- /** Custom renderers for specific annotation types (provided by external plugins) */
30
- annotationRenderers?: BoxedAnnotationRenderer[];
31
- };
32
- export declare function AnnotationLayer({ style, documentId, pageIndex, scale: overrideScale, rotation: overrideRotation, selectionMenu, groupSelectionMenu, resizeUI, vertexUI, rotationUI, selectionOutlineColor, selectionOutline, groupSelectionOutline, customAnnotationRenderer, annotationRenderers, ...props }: AnnotationLayerProps): import("react/jsx-runtime").JSX.Element;
33
- export {};
@@ -1 +0,0 @@
1
- export declare function AnnotationNavigationHandler(): null;
@@ -1,7 +0,0 @@
1
- interface Props {
2
- documentId: string;
3
- pageIndex: number;
4
- scale: number;
5
- }
6
- export declare function AnnotationPaintLayer({ documentId, pageIndex, scale }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,15 +0,0 @@
1
- import { Rect, PdfAnnotationLineEnding, Position } from '@embedpdf/models';
2
- interface CalloutFreeTextPreviewProps {
3
- calloutLine?: Position[];
4
- textBox?: Rect;
5
- bounds: Rect;
6
- scale: number;
7
- strokeColor?: string;
8
- strokeWidth?: number;
9
- color?: string;
10
- backgroundColor?: string;
11
- opacity?: number;
12
- lineEnding?: PdfAnnotationLineEnding;
13
- }
14
- export declare function CalloutFreeTextPreview({ calloutLine, textBox, bounds, scale, strokeColor, strokeWidth, color, backgroundColor, opacity, lineEnding, }: CalloutFreeTextPreviewProps): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,15 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { PdfFreeTextAnnoObject } from '@embedpdf/models';
3
- import { TrackedAnnotation } from '../../../index.ts';
4
- interface CalloutFreeTextProps {
5
- documentId: string;
6
- isSelected: boolean;
7
- isEditing: boolean;
8
- annotation: TrackedAnnotation<PdfFreeTextAnnoObject>;
9
- pageIndex: number;
10
- scale: number;
11
- onClick?: (e: MouseEvent<Element>) => void;
12
- appearanceActive?: boolean;
13
- }
14
- export declare function CalloutFreeText({ documentId, isSelected, isEditing, annotation, pageIndex, scale, onClick, appearanceActive, }: CalloutFreeTextProps): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,24 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { Rect } from '@embedpdf/models';
3
- interface CaretProps {
4
- /** Whether the annotation is selected */
5
- isSelected: boolean;
6
- /** Stroke colour */
7
- strokeColor?: string;
8
- /** 0 – 1 */
9
- opacity?: number;
10
- /** Bounding box of the annotation (PDF units) */
11
- rect: Rect;
12
- /** Current page zoom factor */
13
- scale: number;
14
- /** Click handler (used for selection) */
15
- onClick?: (e: MouseEvent<SVGElement>) => void;
16
- /** When true, AP canvas provides the visual; only render hit area */
17
- appearanceActive?: boolean;
18
- }
19
- /**
20
- * Renders a PDF Caret annotation as an SVG ^ symbol using bezier curves
21
- * that mirror the C++ appearance stream.
22
- */
23
- export declare function Caret({ isSelected, strokeColor, opacity, rect, scale, onClick, appearanceActive, }: CaretProps): JSX.Element;
24
- export {};
@@ -1,35 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { PdfAnnotationBorderStyle, PdfRectDifferences, Rect } from '@embedpdf/models';
3
- interface CircleProps {
4
- /** Whether the annotation is selected */
5
- isSelected: boolean;
6
- /** Fill colour – defaults to PDFium's black if omitted */
7
- color?: string;
8
- /** Stroke colour – defaults to same as fill when omitted */
9
- strokeColor?: string;
10
- /** 0 – 1 */
11
- opacity?: number;
12
- /** Stroke width in PDF units */
13
- strokeWidth: number;
14
- /** Stroke type – defaults to solid when omitted */
15
- strokeStyle?: PdfAnnotationBorderStyle;
16
- /** Stroke dash array – defaults to undefined when omitted */
17
- strokeDashArray?: number[];
18
- /** Bounding box of the annotation */
19
- rect: Rect;
20
- /** Current page zoom factor */
21
- scale: number;
22
- /** Click handler (used for selection) */
23
- onClick?: (e: MouseEvent<SVGElement>) => void;
24
- /** When true, AP canvas provides the visual; only render hit area */
25
- appearanceActive?: boolean;
26
- /** Cloudy border intensity (0 = no cloud, typically 1 or 2) */
27
- cloudyBorderIntensity?: number;
28
- /** Rectangle differences – inset from Rect to drawn area */
29
- rectangleDifferences?: PdfRectDifferences;
30
- }
31
- /**
32
- * Renders a PDF Circle annotation (ellipse) as SVG.
33
- */
34
- export declare function Circle({ color, strokeColor, opacity, strokeWidth, strokeStyle, strokeDashArray, rect, scale, onClick, isSelected, appearanceActive, cloudyBorderIntensity, rectangleDifferences, }: CircleProps): JSX.Element;
35
- export {};
@@ -1,17 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { PdfFreeTextAnnoObject } from '@embedpdf/models';
3
- import { TrackedAnnotation } from '../../../index.ts';
4
- interface FreeTextProps {
5
- documentId: string;
6
- isSelected: boolean;
7
- isEditing: boolean;
8
- annotation: TrackedAnnotation<PdfFreeTextAnnoObject>;
9
- pageIndex: number;
10
- scale: number;
11
- onClick?: (e: MouseEvent<HTMLDivElement>) => void;
12
- onDoubleClick?: (event: MouseEvent<HTMLDivElement>) => void;
13
- /** When true, AP canvas provides the visual; hide text content */
14
- appearanceActive?: boolean;
15
- }
16
- export declare function FreeText({ documentId, isSelected, isEditing, annotation, pageIndex, scale, onClick, appearanceActive, }: FreeTextProps): import("react/jsx-runtime").JSX.Element;
17
- export {};
@@ -1,27 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { PdfInkListObject, Rect } from '@embedpdf/models';
3
- interface InkProps {
4
- /** Whether the annotation is selected */
5
- isSelected: boolean;
6
- /** Stroke color */
7
- strokeColor?: string;
8
- /** 0 – 1 */
9
- opacity?: number;
10
- /** Line width in PDF units */
11
- strokeWidth: number;
12
- /** Array of strokes — exactly as in your JSON */
13
- inkList: PdfInkListObject[];
14
- /** Bounding box of the whole annotation */
15
- rect: Rect;
16
- /** Page zoom factor */
17
- scale: number;
18
- /** Callback for when the annotation is clicked */
19
- onClick?: (e: MouseEvent<SVGPathElement>) => void;
20
- /** When true, AP canvas provides the visual; only render hit area */
21
- appearanceActive?: boolean;
22
- }
23
- /**
24
- * Renders a PDF Ink annotation (free-hand drawing) as SVG.
25
- */
26
- export declare function Ink({ isSelected, strokeColor, opacity, strokeWidth, inkList, rect, scale, onClick, appearanceActive, }: InkProps): JSX.Element;
27
- export {};
@@ -1,35 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { Rect, LinePoints, LineEndings, PdfAnnotationBorderStyle } from '@embedpdf/models';
3
- interface LineProps {
4
- /** interior colour */
5
- color?: string;
6
- /** 0 – 1 */
7
- opacity?: number;
8
- /** Stroke width in PDF units */
9
- strokeWidth: number;
10
- /** Stroke colour (falls back to PDFium default black) */
11
- strokeColor?: string;
12
- /** Stroke style */
13
- strokeStyle?: PdfAnnotationBorderStyle;
14
- /** Stroke dash array */
15
- strokeDashArray?: number[];
16
- /** Bounding box of the annotation */
17
- rect: Rect;
18
- /** Line start / end points (page units) */
19
- linePoints: LinePoints;
20
- /** Line endings (eg. OpenArrow / Butt) */
21
- lineEndings?: LineEndings;
22
- /** Current page zoom factor */
23
- scale: number;
24
- /** Click handler (used for selection) */
25
- onClick?: (e: MouseEvent<SVGElement>) => void;
26
- /** Whether the annotation is selected */
27
- isSelected: boolean;
28
- /** When true, AP canvas provides the visual; only render hit area */
29
- appearanceActive?: boolean;
30
- }
31
- /**
32
- * Renders a PDF Line annotation as SVG (with arrow/butt endings).
33
- */
34
- export declare function Line({ color, opacity, strokeWidth, strokeColor, strokeStyle, strokeDashArray, rect, linePoints, lineEndings, scale, onClick, isSelected, appearanceActive, }: LineProps): JSX.Element;
35
- export {};
@@ -1,3 +0,0 @@
1
- import { PdfLinkAnnoObject } from '@embedpdf/models';
2
- import { AnnotationRendererProps } from '../types';
3
- export declare function LinkLockedMode({ annotation, documentId, }: AnnotationRendererProps<PdfLinkAnnoObject>): import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { PdfAnnotationBorderStyle, Rect } from '@embedpdf/models';
3
- interface LinkProps {
4
- /** Whether the annotation is selected */
5
- isSelected: boolean;
6
- /** Stroke colour – defaults to blue when omitted */
7
- strokeColor?: string;
8
- /** Stroke width in PDF units */
9
- strokeWidth?: number;
10
- /** Stroke type – defaults to underline when omitted */
11
- strokeStyle?: PdfAnnotationBorderStyle;
12
- /** Stroke dash array – for dashed style */
13
- strokeDashArray?: number[];
14
- /** Bounding box of the annotation (PDF units) */
15
- rect: Rect;
16
- /** Current page zoom factor */
17
- scale: number;
18
- /** Click handler (used for selection) */
19
- onClick?: (e: MouseEvent<SVGElement>) => void;
20
- /** Whether this link has an IRT (In Reply To) reference - disables direct interaction */
21
- hasIRT?: boolean;
22
- }
23
- /**
24
- * Renders a PDF Link annotation as SVG.
25
- * Supports underline (default), solid, and dashed border styles.
26
- */
27
- export declare function Link({ isSelected, strokeColor, strokeWidth, strokeStyle, strokeDashArray, rect, scale, onClick, hasIRT, }: LinkProps): JSX.Element;
28
- export {};
@@ -1,23 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { Rect, Position, PdfAnnotationBorderStyle } from '@embedpdf/models';
3
- interface PolygonProps {
4
- rect: Rect;
5
- vertices: Position[];
6
- color?: string;
7
- strokeColor?: string;
8
- opacity?: number;
9
- strokeWidth: number;
10
- strokeStyle?: PdfAnnotationBorderStyle;
11
- strokeDashArray?: number[];
12
- scale: number;
13
- isSelected: boolean;
14
- onClick?: (e: MouseEvent<SVGElement>) => void;
15
- currentVertex?: Position;
16
- handleSize?: number;
17
- /** When true, AP canvas provides the visual; only render hit area */
18
- appearanceActive?: boolean;
19
- /** Cloudy border intensity (0 = no cloud, typically 1 or 2) */
20
- cloudyBorderIntensity?: number;
21
- }
22
- export declare function Polygon({ rect, vertices, color, strokeColor, opacity, strokeWidth, strokeStyle, strokeDashArray, scale, isSelected, onClick, currentVertex, handleSize, appearanceActive, cloudyBorderIntensity, }: PolygonProps): JSX.Element;
23
- export {};
@@ -1,23 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { Rect, Position, LineEndings, PdfAnnotationBorderStyle } from '@embedpdf/models';
3
- interface PolylineProps {
4
- rect: Rect;
5
- vertices: Position[];
6
- color?: string;
7
- strokeColor?: string;
8
- opacity?: number;
9
- strokeWidth: number;
10
- /** Stroke style */
11
- strokeStyle?: PdfAnnotationBorderStyle;
12
- /** Stroke dash array */
13
- strokeDashArray?: number[];
14
- scale: number;
15
- isSelected: boolean;
16
- onClick?: (e: MouseEvent<SVGElement>) => void;
17
- /** Optional start & end endings */
18
- lineEndings?: LineEndings;
19
- /** When true, AP canvas provides the visual; only render hit area */
20
- appearanceActive?: boolean;
21
- }
22
- export declare function Polyline({ rect, vertices, color, strokeColor, opacity, strokeWidth, strokeStyle, strokeDashArray, scale, isSelected, onClick, lineEndings, appearanceActive, }: PolylineProps): JSX.Element;
23
- export {};
@@ -1,35 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { PdfAnnotationBorderStyle, PdfRectDifferences, Rect } from '@embedpdf/models';
3
- interface SquareProps {
4
- /** Whether the annotation is selected */
5
- isSelected: boolean;
6
- /** Fill colour – defaults to PDFium's black if omitted */
7
- color?: string;
8
- /** Stroke colour – defaults to same as fill when omitted */
9
- strokeColor?: string;
10
- /** 0 – 1 */
11
- opacity?: number;
12
- /** Stroke width in PDF units */
13
- strokeWidth: number;
14
- /** Stroke type – defaults to solid when omitted */
15
- strokeStyle?: PdfAnnotationBorderStyle;
16
- /** Stroke dash array – defaults to undefined when omitted */
17
- strokeDashArray?: number[];
18
- /** Bounding box of the annotation (PDF units) */
19
- rect: Rect;
20
- /** Current page zoom factor */
21
- scale: number;
22
- /** Click handler (used for selection) */
23
- onClick?: (e: MouseEvent<SVGElement>) => void;
24
- /** When true, AP canvas provides the visual; only render hit area */
25
- appearanceActive?: boolean;
26
- /** Cloudy border intensity (0 = no cloud, typically 1 or 2) */
27
- cloudyBorderIntensity?: number;
28
- /** Rectangle differences – inset from Rect to drawn area */
29
- rectangleDifferences?: PdfRectDifferences;
30
- }
31
- /**
32
- * Renders a PDF Square annotation (rectangle) as SVG.
33
- */
34
- export declare function Square({ isSelected, color, strokeColor, opacity, strokeWidth, strokeStyle, strokeDashArray, rect, scale, onClick, appearanceActive, cloudyBorderIntensity, rectangleDifferences, }: SquareProps): JSX.Element;
35
- export {};
@@ -1,13 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- import { PdfStampAnnoObject } from '@embedpdf/models';
3
- import { TrackedAnnotation } from '../../../index.ts';
4
- interface StampProps {
5
- isSelected: boolean;
6
- annotation: TrackedAnnotation<PdfStampAnnoObject>;
7
- documentId: string;
8
- pageIndex: number;
9
- scale: number;
10
- onClick?: (e: MouseEvent<HTMLDivElement>) => void;
11
- }
12
- export declare function Stamp({ isSelected, annotation, documentId, pageIndex, scale, onClick, }: StampProps): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,14 +0,0 @@
1
- import { MouseEvent } from '../../../react/adapter.ts';
2
- interface TextProps {
3
- isSelected: boolean;
4
- color?: string;
5
- opacity?: number;
6
- onClick?: (e: MouseEvent<HTMLDivElement>) => void;
7
- appearanceActive?: boolean;
8
- }
9
- /**
10
- * Renders a fallback sticky-note icon for PDF Text annotations when no
11
- * appearance stream image is available.
12
- */
13
- export declare function Text({ isSelected, color, opacity, onClick, appearanceActive, }: TextProps): JSX.Element;
14
- export {};
@@ -1,22 +0,0 @@
1
- import { PdfAnnotationObject } from '@embedpdf/models';
2
- import { CustomAnnotationRenderer, ResizeHandleUI, AnnotationSelectionMenuRenderFn, GroupSelectionMenuRenderFn, VertexHandleUI, RotationHandleUI, SelectionOutline, BoxedAnnotationRenderer } from './types';
3
- interface AnnotationsProps {
4
- documentId: string;
5
- pageIndex: number;
6
- scale: number;
7
- rotation: number;
8
- pageWidth: number;
9
- pageHeight: number;
10
- selectionMenu?: AnnotationSelectionMenuRenderFn;
11
- groupSelectionMenu?: GroupSelectionMenuRenderFn;
12
- resizeUI?: ResizeHandleUI;
13
- vertexUI?: VertexHandleUI;
14
- rotationUI?: RotationHandleUI;
15
- selectionOutlineColor?: string;
16
- selectionOutline?: SelectionOutline;
17
- groupSelectionOutline?: SelectionOutline;
18
- customAnnotationRenderer?: CustomAnnotationRenderer<PdfAnnotationObject>;
19
- annotationRenderers?: BoxedAnnotationRenderer[];
20
- }
21
- export declare function Annotations(annotationsProps: AnnotationsProps): import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1,12 +0,0 @@
1
- import { AnnotationAppearanceImage } from '@embedpdf/models';
2
- import { CSSProperties } from '../../react/adapter.ts';
3
- interface AppearanceImageProps {
4
- appearance: AnnotationAppearanceImage<Blob>;
5
- style?: CSSProperties;
6
- }
7
- /**
8
- * Renders a pre-rendered annotation appearance stream image as an img URL.
9
- * Purely visual -- pointer events are always disabled; hit-area SVG handles interaction.
10
- */
11
- export declare function AppearanceImage({ appearance, style }: AppearanceImageProps): import("react/jsx-runtime").JSX.Element | null;
12
- export {};
@@ -1,2 +0,0 @@
1
- import { BoxedAnnotationRenderer } from './types';
2
- export declare const builtInRenderers: BoxedAnnotationRenderer[];
@@ -1,40 +0,0 @@
1
- import { TrackedAnnotation } from '../../index.ts';
2
- import { ResizeHandleUI, RotationHandleUI, GroupSelectionMenuRenderFn, SelectionOutline } from './types';
3
- interface GroupSelectionBoxProps {
4
- documentId: string;
5
- pageIndex: number;
6
- scale: number;
7
- rotation: number;
8
- pageWidth: number;
9
- pageHeight: number;
10
- /** All selected annotations on this page */
11
- selectedAnnotations: TrackedAnnotation[];
12
- /** Whether the group is draggable (all annotations must be group-draggable) */
13
- isDraggable: boolean;
14
- /** Whether the group is resizable (all annotations must be group-resizable) */
15
- isResizable: boolean;
16
- /** Whether the group can be rotated */
17
- isRotatable?: boolean;
18
- /** Whether to lock aspect ratio during group resize */
19
- lockAspectRatio?: boolean;
20
- /** Resize handle UI customization */
21
- resizeUI?: ResizeHandleUI;
22
- /** Rotation handle UI customization */
23
- rotationUI?: RotationHandleUI;
24
- /** @deprecated Use `selectionOutline.color` instead */
25
- selectionOutlineColor?: string;
26
- /** @deprecated Use `selectionOutline.offset` instead */
27
- outlineOffset?: number;
28
- /** Customize the selection outline (color, style, width, offset) */
29
- selectionOutline?: SelectionOutline;
30
- /** Z-index for the group box */
31
- zIndex?: number;
32
- /** Group selection menu render function */
33
- groupSelectionMenu?: GroupSelectionMenuRenderFn;
34
- }
35
- /**
36
- * GroupSelectionBox renders a bounding box around all selected annotations
37
- * with drag and resize handles for group manipulation.
38
- */
39
- export declare function GroupSelectionBox({ documentId, pageIndex, scale, rotation, pageWidth, pageHeight, selectedAnnotations, isDraggable, isResizable, isRotatable, lockAspectRatio, resizeUI, rotationUI, selectionOutlineColor, outlineOffset, selectionOutline, zIndex, groupSelectionMenu, }: GroupSelectionBoxProps): JSX.Element | null;
40
- export {};
@@ -1,2 +0,0 @@
1
- export * from './annotation-layer';
2
- export * from './group-selection-box';
@@ -1,8 +0,0 @@
1
- import { PreviewState } from '../../index.ts';
2
- interface Props {
3
- toolId: string;
4
- preview: PreviewState;
5
- scale: number;
6
- }
7
- export declare function PreviewRenderer({ toolId, preview, scale }: Props): import("react/jsx-runtime").JSX.Element | null;
8
- export {};
@@ -1,13 +0,0 @@
1
- import { HTMLAttributes, CSSProperties } from '../../react/adapter.ts';
2
- import { PdfAnnotationObject } from '@embedpdf/models';
3
- type RenderAnnotationProps = Omit<HTMLAttributes<HTMLImageElement>, 'style'> & {
4
- documentId: string;
5
- pageIndex: number;
6
- annotation: PdfAnnotationObject;
7
- scaleFactor?: number;
8
- dpr?: number;
9
- style?: CSSProperties;
10
- unrotated?: boolean;
11
- };
12
- export declare function RenderAnnotation({ documentId, pageIndex, annotation, scaleFactor, unrotated, style, ...props }: RenderAnnotationProps): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,16 +0,0 @@
1
- import { CSSProperties, MouseEvent } from '../../../react/adapter.ts';
2
- import { Rect } from '@embedpdf/models';
3
- type HighlightProps = {
4
- /** Stroke/markup color */
5
- strokeColor?: string;
6
- opacity?: number;
7
- segmentRects: Rect[];
8
- rect?: Rect;
9
- scale: number;
10
- onClick?: (e: MouseEvent<HTMLDivElement>) => void;
11
- style?: CSSProperties;
12
- /** When true, AP image provides the visual; only render hit area */
13
- appearanceActive?: boolean;
14
- };
15
- export declare function Highlight({ strokeColor, opacity, segmentRects, rect, scale, onClick, style, appearanceActive, }: HighlightProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,16 +0,0 @@
1
- import { CSSProperties, MouseEvent } from '../../../react/adapter.ts';
2
- import { Rect } from '@embedpdf/models';
3
- type SquigglyProps = {
4
- /** Stroke/markup color */
5
- strokeColor?: string;
6
- opacity?: number;
7
- segmentRects: Rect[];
8
- rect?: Rect;
9
- scale: number;
10
- onClick?: (e: MouseEvent<HTMLDivElement>) => void;
11
- style?: CSSProperties;
12
- /** When true, AP image provides the visual; only render hit area */
13
- appearanceActive?: boolean;
14
- };
15
- export declare function Squiggly({ strokeColor, opacity, segmentRects, rect, scale, onClick, style, appearanceActive, }: SquigglyProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,16 +0,0 @@
1
- import { CSSProperties, MouseEvent } from '../../../react/adapter.ts';
2
- import { Rect } from '@embedpdf/models';
3
- type StrikeoutProps = {
4
- /** Stroke/markup color */
5
- strokeColor?: string;
6
- opacity?: number;
7
- segmentRects: Rect[];
8
- rect?: Rect;
9
- scale: number;
10
- onClick?: (e: MouseEvent<HTMLDivElement>) => void;
11
- style?: CSSProperties;
12
- /** When true, AP image provides the visual; only render hit area */
13
- appearanceActive?: boolean;
14
- };
15
- export declare function Strikeout({ strokeColor, opacity, segmentRects, rect, scale, onClick, style, appearanceActive, }: StrikeoutProps): import("react/jsx-runtime").JSX.Element;
16
- export {};