@mlightcad/cad-simple-viewer 1.6.3 → 1.7.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 (808) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +185 -180
  3. package/dist/cad-simple-viewer.js +34895 -23320
  4. package/dist/cad-simple-viewer.umd.cjs +2570 -372
  5. package/dist/mtext-renderer-worker.js +15359 -15067
  6. package/icons.ts +7 -7
  7. package/lib/app/AcApBrand.d.ts +2 -2
  8. package/lib/app/AcApBrand.d.ts.map +1 -1
  9. package/lib/app/AcApBrand.js +2 -2
  10. package/lib/app/AcApBrand.js.map +1 -1
  11. package/lib/app/AcApContext.d.ts.map +1 -1
  12. package/lib/app/AcApContext.js +4 -3
  13. package/lib/app/AcApContext.js.map +1 -1
  14. package/lib/app/AcApDocManager.d.ts +107 -25
  15. package/lib/app/AcApDocManager.d.ts.map +1 -1
  16. package/lib/app/AcApDocManager.js +209 -93
  17. package/lib/app/AcApDocManager.js.map +1 -1
  18. package/lib/app/AcApDocsUrl.d.ts +57 -0
  19. package/lib/app/AcApDocsUrl.d.ts.map +1 -0
  20. package/lib/app/AcApDocsUrl.js +76 -0
  21. package/lib/app/AcApDocsUrl.js.map +1 -0
  22. package/lib/app/AcApDocument.d.ts +1 -1
  23. package/lib/app/AcApDocument.d.ts.map +1 -1
  24. package/lib/app/AcApDocument.js.map +1 -1
  25. package/lib/app/AcApFontLoader.d.ts +6 -0
  26. package/lib/app/AcApFontLoader.d.ts.map +1 -1
  27. package/lib/app/AcApFontLoader.js +11 -0
  28. package/lib/app/AcApFontLoader.js.map +1 -1
  29. package/lib/app/AcApOpenDatabaseOptions.d.ts +106 -0
  30. package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
  31. package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +2 -2
  32. package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
  33. package/lib/app/AcApOpenFileDialog.d.ts +1 -1
  34. package/lib/app/AcApOpenFileProgressController.d.ts +4 -2
  35. package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
  36. package/lib/app/AcApOpenFileProgressController.js +4 -2
  37. package/lib/app/AcApOpenFileProgressController.js.map +1 -1
  38. package/lib/app/AcApSettingManager.d.ts +156 -43
  39. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  40. package/lib/app/AcApSettingManager.js +216 -66
  41. package/lib/app/AcApSettingManager.js.map +1 -1
  42. package/lib/app/index.d.ts +4 -2
  43. package/lib/app/index.d.ts.map +1 -1
  44. package/lib/app/index.js +3 -1
  45. package/lib/app/index.js.map +1 -1
  46. package/lib/app/notification/AcApNotificationEventBridge.d.ts +130 -0
  47. package/lib/app/notification/AcApNotificationEventBridge.d.ts.map +1 -0
  48. package/lib/app/notification/AcApNotificationEventBridge.js +309 -0
  49. package/lib/app/notification/AcApNotificationEventBridge.js.map +1 -0
  50. package/lib/app/notification/AcApNotificationService.d.ts +185 -0
  51. package/lib/app/notification/AcApNotificationService.d.ts.map +1 -0
  52. package/lib/app/notification/AcApNotificationService.js +271 -0
  53. package/lib/app/notification/AcApNotificationService.js.map +1 -0
  54. package/lib/app/notification/AcApNotificationStore.d.ts +147 -0
  55. package/lib/app/notification/AcApNotificationStore.d.ts.map +1 -0
  56. package/lib/app/notification/AcApNotificationStore.js +345 -0
  57. package/lib/app/notification/AcApNotificationStore.js.map +1 -0
  58. package/lib/app/notification/AcApNotificationTypes.d.ts +195 -0
  59. package/lib/app/notification/AcApNotificationTypes.d.ts.map +1 -0
  60. package/lib/app/notification/AcApNotificationTypes.js +78 -0
  61. package/lib/app/notification/AcApNotificationTypes.js.map +1 -0
  62. package/lib/app/notification/index.d.ts +13 -0
  63. package/lib/app/notification/index.d.ts.map +1 -0
  64. package/lib/app/notification/index.js +13 -0
  65. package/lib/app/notification/index.js.map +1 -0
  66. package/lib/command/AcApDrawOverlayInput.d.ts +6 -0
  67. package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
  68. package/lib/command/AcApDrawOverlayInput.js +64 -0
  69. package/lib/command/AcApDrawOverlayInput.js.map +1 -0
  70. package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
  71. package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
  72. package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
  73. package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
  74. package/lib/command/AcApDrawStyleSession.d.ts +20 -0
  75. package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
  76. package/lib/command/AcApDrawStyleSession.js +2 -0
  77. package/lib/command/AcApDrawStyleSession.js.map +1 -0
  78. package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
  79. package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
  80. package/lib/command/AcApInstallDrawStyleSessionAccessory.js +178 -0
  81. package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
  82. package/lib/command/AcApReadingModeCmd.d.ts +17 -0
  83. package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
  84. package/lib/command/AcApReadingModeCmd.js +82 -0
  85. package/lib/command/AcApReadingModeCmd.js.map +1 -0
  86. package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
  87. package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
  88. package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
  89. package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
  90. package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
  91. package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
  92. package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
  93. package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
  94. package/lib/command/AcApSwitchBgCmd.d.ts.map +1 -1
  95. package/lib/command/AcApSwitchBgCmd.js +7 -2
  96. package/lib/command/AcApSwitchBgCmd.js.map +1 -1
  97. package/lib/command/AcApToolbarDocBind.d.ts +19 -0
  98. package/lib/command/AcApToolbarDocBind.d.ts.map +1 -0
  99. package/lib/command/AcApToolbarDocBind.js +62 -0
  100. package/lib/command/AcApToolbarDocBind.js.map +1 -0
  101. package/lib/command/AcApZoomCmd.d.ts +39 -1
  102. package/lib/command/AcApZoomCmd.d.ts.map +1 -1
  103. package/lib/command/AcApZoomCmd.js +70 -6
  104. package/lib/command/AcApZoomCmd.js.map +1 -1
  105. package/lib/command/convert/AcApConvertToBmpCmd.d.ts +14 -0
  106. package/lib/command/convert/AcApConvertToBmpCmd.d.ts.map +1 -0
  107. package/lib/command/convert/AcApConvertToBmpCmd.js +34 -0
  108. package/lib/command/convert/AcApConvertToBmpCmd.js.map +1 -0
  109. package/lib/command/convert/AcApConvertToJpgCmd.d.ts +14 -0
  110. package/lib/command/convert/AcApConvertToJpgCmd.d.ts.map +1 -0
  111. package/lib/command/convert/AcApConvertToJpgCmd.js +34 -0
  112. package/lib/command/convert/AcApConvertToJpgCmd.js.map +1 -0
  113. package/lib/command/convert/AcApConvertToPngCmd.d.ts +4 -36
  114. package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
  115. package/lib/command/convert/AcApConvertToPngCmd.js +4 -138
  116. package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
  117. package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts +40 -0
  118. package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts.map +1 -0
  119. package/lib/command/convert/AcApConvertToRasterImageCmd.js +161 -0
  120. package/lib/command/convert/AcApConvertToRasterImageCmd.js.map +1 -0
  121. package/lib/command/convert/{AcApPngConvertor.d.ts → AcApRasterImageConvertor.d.ts} +36 -12
  122. package/lib/command/convert/AcApRasterImageConvertor.d.ts.map +1 -0
  123. package/lib/command/convert/{AcApPngConvertor.js → AcApRasterImageConvertor.js} +163 -32
  124. package/lib/command/convert/AcApRasterImageConvertor.js.map +1 -0
  125. package/lib/command/convert/index.d.ts +4 -1
  126. package/lib/command/convert/index.d.ts.map +1 -1
  127. package/lib/command/convert/index.js +4 -1
  128. package/lib/command/convert/index.js.map +1 -1
  129. package/lib/command/draw/AcApHatchCmd.js +1 -1
  130. package/lib/command/draw/AcApHatchCmd.js.map +1 -1
  131. package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
  132. package/lib/command/draw/AcApMTextCmd.js +11 -7
  133. package/lib/command/draw/AcApMTextCmd.js.map +1 -1
  134. package/lib/command/index.d.ts +5 -0
  135. package/lib/command/index.d.ts.map +1 -1
  136. package/lib/command/index.js +5 -0
  137. package/lib/command/index.js.map +1 -1
  138. package/lib/command/markup/AcApMarkupArrowCmd.d.ts +2 -3
  139. package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
  140. package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
  141. package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
  142. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
  143. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
  144. package/lib/command/markup/AcApMarkupCalloutCmd.js +69 -13
  145. package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
  146. package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
  147. package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
  148. package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
  149. package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
  150. package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
  151. package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
  152. package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
  153. package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
  154. package/lib/command/markup/AcApMarkupCmdUtil.d.ts +12 -1
  155. package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
  156. package/lib/command/markup/AcApMarkupCmdUtil.js +37 -9
  157. package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
  158. package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
  159. package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
  160. package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
  161. package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
  162. package/lib/command/markup/AcApMarkupGeometry.d.ts +19 -2
  163. package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
  164. package/lib/command/markup/AcApMarkupGeometry.js +43 -2
  165. package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
  166. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
  167. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
  168. package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
  169. package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
  170. package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
  171. package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
  172. package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
  173. package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
  174. package/lib/command/markup/AcApMarkupPresenter.d.ts +16 -2
  175. package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
  176. package/lib/command/markup/AcApMarkupPresenter.js +66 -14
  177. package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
  178. package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
  179. package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
  180. package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
  181. package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
  182. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
  183. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
  184. package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
  185. package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
  186. package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
  187. package/lib/command/markup/AcApMarkupShapeCallout.js +61 -4
  188. package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
  189. package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
  190. package/lib/command/markup/AcApMarkupSidecar.js +39 -5
  191. package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
  192. package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
  193. package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
  194. package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
  195. package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
  196. package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
  197. package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
  198. package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
  199. package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
  200. package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
  201. package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
  202. package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
  203. package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
  204. package/lib/command/markup/AcApMarkupUtil.js +149 -34
  205. package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
  206. package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
  207. package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
  208. package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
  209. package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
  210. package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
  211. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
  212. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
  213. package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
  214. package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
  215. package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
  216. package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
  217. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
  218. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
  219. package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
  220. package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
  221. package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
  222. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
  223. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
  224. package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
  225. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
  226. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
  227. package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
  228. package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
  229. package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
  230. package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
  231. package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
  232. package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
  233. package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
  234. package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
  235. package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
  236. package/lib/command/markup/index.d.ts +2 -0
  237. package/lib/command/markup/index.d.ts.map +1 -1
  238. package/lib/command/markup/index.js +2 -0
  239. package/lib/command/markup/index.js.map +1 -1
  240. package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
  241. package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
  242. package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
  243. package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
  244. package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
  245. package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
  246. package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
  247. package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
  248. package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
  249. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
  250. package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
  251. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
  252. package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
  253. package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
  254. package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
  255. package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
  256. package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
  257. package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
  258. package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
  259. package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
  260. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
  261. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
  262. package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
  263. package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
  264. package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
  265. package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
  266. package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
  267. package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
  268. package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
  269. package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
  270. package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
  271. package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
  272. package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
  273. package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
  274. package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
  275. package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
  276. package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
  277. package/lib/command/measure/AcApMeasurementHistory.js +3 -1
  278. package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
  279. package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
  280. package/lib/command/measure/AcApMeasurementPlace.js +22 -5
  281. package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
  282. package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
  283. package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
  284. package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
  285. package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
  286. package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
  287. package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
  288. package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
  289. package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
  290. package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
  291. package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
  292. package/lib/command/measure/AcApMeasurementStore.js +277 -33
  293. package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
  294. package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
  295. package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
  296. package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
  297. package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
  298. package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
  299. package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
  300. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
  301. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
  302. package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
  303. package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
  304. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
  305. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
  306. package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
  307. package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
  308. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
  309. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
  310. package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
  311. package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
  312. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
  313. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
  314. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
  315. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
  316. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
  317. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
  318. package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
  319. package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
  320. package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
  321. package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
  322. package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
  323. package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
  324. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
  325. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
  326. package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
  327. package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
  328. package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
  329. package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
  330. package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
  331. package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
  332. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
  333. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
  334. package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
  335. package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
  336. package/lib/command/measure/entity/index.d.ts +1 -0
  337. package/lib/command/measure/entity/index.d.ts.map +1 -1
  338. package/lib/command/measure/entity/index.js +1 -0
  339. package/lib/command/measure/entity/index.js.map +1 -1
  340. package/lib/command/measure/index.d.ts +4 -0
  341. package/lib/command/measure/index.d.ts.map +1 -1
  342. package/lib/command/measure/index.js +4 -0
  343. package/lib/command/measure/index.js.map +1 -1
  344. package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
  345. package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
  346. package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
  347. package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
  348. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
  349. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
  350. package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
  351. package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
  352. package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
  353. package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
  354. package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
  355. package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
  356. package/lib/editor/command/AcEdCommand.d.ts +17 -0
  357. package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
  358. package/lib/editor/command/AcEdCommand.js +81 -1
  359. package/lib/editor/command/AcEdCommand.js.map +1 -1
  360. package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
  361. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  362. package/lib/editor/command/AcEdCommandStack.js +39 -3
  363. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  364. package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
  365. package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
  366. package/lib/editor/command/AcEdSessionAccessory.js +15 -0
  367. package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
  368. package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
  369. package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
  370. package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
  371. package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
  372. package/lib/editor/command/index.d.ts +4 -0
  373. package/lib/editor/command/index.d.ts.map +1 -1
  374. package/lib/editor/command/index.js +3 -0
  375. package/lib/editor/command/index.js.map +1 -1
  376. package/lib/editor/global/AcEdUiColor.d.ts +10 -0
  377. package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
  378. package/lib/editor/global/AcEdUiColor.js +14 -0
  379. package/lib/editor/global/AcEdUiColor.js.map +1 -1
  380. package/lib/editor/global/AcEdUiLayout.d.ts +108 -0
  381. package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
  382. package/lib/editor/global/AcEdUiLayout.js +143 -0
  383. package/lib/editor/global/AcEdUiLayout.js.map +1 -1
  384. package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
  385. package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
  386. package/lib/editor/global/AcEdUiTheme.js +113 -6
  387. package/lib/editor/global/AcEdUiTheme.js.map +1 -1
  388. package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
  389. package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
  390. package/lib/editor/grip/AcEdGripAppearance.js +23 -1
  391. package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
  392. package/lib/editor/grip/AcEdGripEditSession.js +2 -2
  393. package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
  394. package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
  395. package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
  396. package/lib/editor/grip/AcEdGripHandle.js +4 -13
  397. package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
  398. package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
  399. package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
  400. package/lib/editor/grip/AcEdGripManager.js +30 -14
  401. package/lib/editor/grip/AcEdGripManager.js.map +1 -1
  402. package/lib/editor/grip/index.d.ts +1 -0
  403. package/lib/editor/grip/index.d.ts.map +1 -1
  404. package/lib/editor/grip/index.js +1 -0
  405. package/lib/editor/grip/index.js.map +1 -1
  406. package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
  407. package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
  408. package/lib/editor/input/AcEdDynamicInput.js +22 -0
  409. package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
  410. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
  411. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
  412. package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
  413. package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
  414. package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
  415. package/lib/editor/input/AcEdOsnapResolver.js +216 -35
  416. package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
  417. package/lib/editor/input/AcEditor.d.ts +14 -1
  418. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  419. package/lib/editor/input/AcEditor.js +18 -2
  420. package/lib/editor/input/AcEditor.js.map +1 -1
  421. package/lib/editor/input/index.d.ts +1 -0
  422. package/lib/editor/input/index.d.ts.map +1 -1
  423. package/lib/editor/input/index.js +1 -0
  424. package/lib/editor/input/index.js.map +1 -1
  425. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
  426. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
  427. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
  428. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
  429. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
  430. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
  431. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
  432. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
  433. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts +31 -0
  434. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts.map +1 -0
  435. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js +67 -0
  436. package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js.map +1 -0
  437. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
  438. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
  439. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
  440. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
  441. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
  442. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
  443. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
  444. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
  445. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +146 -0
  446. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  447. package/lib/editor/input/ui/AcEdFloatingInput.js +423 -13
  448. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  449. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +8 -1
  450. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  451. package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
  452. package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
  453. package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
  454. package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
  455. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  456. package/lib/editor/input/ui/AcEdInputManager.js +846 -165
  457. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  458. package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
  459. package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
  460. package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
  461. package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
  462. package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
  463. package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
  464. package/lib/editor/input/ui/AcEdMobileBoxGesture.js +203 -0
  465. package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
  466. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +103 -0
  467. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
  468. package/lib/editor/input/ui/AcEdMobileCommandChrome.js +157 -0
  469. package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
  470. package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
  471. package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
  472. package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
  473. package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
  474. package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
  475. package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
  476. package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
  477. package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
  478. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +121 -0
  479. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
  480. package/lib/editor/input/ui/AcEdSessionAccessoryController.js +306 -0
  481. package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
  482. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
  483. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
  484. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
  485. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
  486. package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
  487. package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
  488. package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
  489. package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
  490. package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
  491. package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
  492. package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
  493. package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
  494. package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
  495. package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
  496. package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
  497. package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
  498. package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
  499. package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
  500. package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
  501. package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
  502. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
  503. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
  504. package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
  505. package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
  506. package/lib/editor/input/ui/index.d.ts +14 -0
  507. package/lib/editor/input/ui/index.d.ts.map +1 -1
  508. package/lib/editor/input/ui/index.js +14 -0
  509. package/lib/editor/input/ui/index.js.map +1 -1
  510. package/lib/editor/view/AcEdBaseView.d.ts +144 -39
  511. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  512. package/lib/editor/view/AcEdBaseView.js +200 -49
  513. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  514. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +36 -0
  515. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -0
  516. package/lib/editor/view/AcEdSelectionBoxIntersect.js +113 -0
  517. package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -0
  518. package/lib/editor/view/AcEdViewMode.d.ts +34 -0
  519. package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
  520. package/lib/editor/view/AcEdViewMode.js +35 -0
  521. package/lib/editor/view/AcEdViewMode.js.map +1 -0
  522. package/lib/editor/view/index.d.ts +2 -0
  523. package/lib/editor/view/index.d.ts.map +1 -1
  524. package/lib/editor/view/index.js +2 -0
  525. package/lib/editor/view/index.js.map +1 -1
  526. package/lib/i18n/AcApI18n.d.ts +2 -1
  527. package/lib/i18n/AcApI18n.d.ts.map +1 -1
  528. package/lib/i18n/AcApI18n.js +5 -2
  529. package/lib/i18n/AcApI18n.js.map +1 -1
  530. package/lib/i18n/ar/command.d.ts +18 -0
  531. package/lib/i18n/ar/command.d.ts.map +1 -1
  532. package/lib/i18n/ar/command.js +1 -1
  533. package/lib/i18n/ar/command.js.map +1 -1
  534. package/lib/i18n/ar/jig.d.ts +67 -0
  535. package/lib/i18n/ar/jig.d.ts.map +1 -1
  536. package/lib/i18n/ar/jig.js +31 -3
  537. package/lib/i18n/ar/jig.js.map +1 -1
  538. package/lib/i18n/ar/main.d.ts +100 -1
  539. package/lib/i18n/ar/main.d.ts.map +1 -1
  540. package/lib/i18n/ar/main.js +101 -2
  541. package/lib/i18n/ar/main.js.map +1 -1
  542. package/lib/i18n/cs/command.d.ts +15 -0
  543. package/lib/i18n/cs/command.d.ts.map +1 -1
  544. package/lib/i18n/cs/command.js +15 -0
  545. package/lib/i18n/cs/command.js.map +1 -1
  546. package/lib/i18n/cs/jig.d.ts +67 -0
  547. package/lib/i18n/cs/jig.d.ts.map +1 -1
  548. package/lib/i18n/cs/jig.js +67 -0
  549. package/lib/i18n/cs/jig.js.map +1 -1
  550. package/lib/i18n/cs/main.d.ts +100 -1
  551. package/lib/i18n/cs/main.d.ts.map +1 -1
  552. package/lib/i18n/cs/main.js +101 -2
  553. package/lib/i18n/cs/main.js.map +1 -1
  554. package/lib/i18n/en/command.d.ts +18 -0
  555. package/lib/i18n/en/command.d.ts.map +1 -1
  556. package/lib/i18n/en/command.js +18 -0
  557. package/lib/i18n/en/command.js.map +1 -1
  558. package/lib/i18n/en/jig.d.ts +67 -0
  559. package/lib/i18n/en/jig.d.ts.map +1 -1
  560. package/lib/i18n/en/jig.js +67 -0
  561. package/lib/i18n/en/jig.js.map +1 -1
  562. package/lib/i18n/en/main.d.ts +100 -1
  563. package/lib/i18n/en/main.d.ts.map +1 -1
  564. package/lib/i18n/en/main.js +101 -2
  565. package/lib/i18n/en/main.js.map +1 -1
  566. package/lib/i18n/index.d.ts +2 -2
  567. package/lib/i18n/index.d.ts.map +1 -1
  568. package/lib/i18n/index.js.map +1 -1
  569. package/lib/i18n/tr/command.d.ts +15 -0
  570. package/lib/i18n/tr/command.d.ts.map +1 -1
  571. package/lib/i18n/tr/command.js +15 -0
  572. package/lib/i18n/tr/command.js.map +1 -1
  573. package/lib/i18n/tr/jig.d.ts +67 -0
  574. package/lib/i18n/tr/jig.d.ts.map +1 -1
  575. package/lib/i18n/tr/jig.js +67 -0
  576. package/lib/i18n/tr/jig.js.map +1 -1
  577. package/lib/i18n/tr/main.d.ts +100 -1
  578. package/lib/i18n/tr/main.d.ts.map +1 -1
  579. package/lib/i18n/tr/main.js +101 -2
  580. package/lib/i18n/tr/main.js.map +1 -1
  581. package/lib/i18n/zh/command.d.ts +18 -0
  582. package/lib/i18n/zh/command.d.ts.map +1 -1
  583. package/lib/i18n/zh/command.js +18 -0
  584. package/lib/i18n/zh/command.js.map +1 -1
  585. package/lib/i18n/zh/jig.d.ts +67 -0
  586. package/lib/i18n/zh/jig.d.ts.map +1 -1
  587. package/lib/i18n/zh/jig.js +67 -0
  588. package/lib/i18n/zh/jig.js.map +1 -1
  589. package/lib/i18n/zh/main.d.ts +100 -1
  590. package/lib/i18n/zh/main.d.ts.map +1 -1
  591. package/lib/i18n/zh/main.js +102 -3
  592. package/lib/i18n/zh/main.js.map +1 -1
  593. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +6 -0
  594. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
  595. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +10 -0
  596. package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
  597. package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +4 -0
  598. package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
  599. package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -0
  600. package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
  601. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +4 -0
  602. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
  603. package/lib/spatialIndex/AcTrRBushSpatialIndex.js +20 -4
  604. package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
  605. package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
  606. package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
  607. package/lib/ui/AcUiAciColorDialog.js +91 -0
  608. package/lib/ui/AcUiAciColorDialog.js.map +1 -0
  609. package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
  610. package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
  611. package/lib/ui/AcUiAciPaletteUi.js +521 -0
  612. package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
  613. package/lib/ui/AcUiDefaultNotificationUi.d.ts +167 -0
  614. package/lib/ui/AcUiDefaultNotificationUi.d.ts.map +1 -0
  615. package/lib/ui/AcUiDefaultNotificationUi.js +603 -0
  616. package/lib/ui/AcUiDefaultNotificationUi.js.map +1 -0
  617. package/lib/ui/AcUiDialog.d.ts +38 -2
  618. package/lib/ui/AcUiDialog.d.ts.map +1 -1
  619. package/lib/ui/AcUiDialog.js +45 -16
  620. package/lib/ui/AcUiDialog.js.map +1 -1
  621. package/lib/ui/AcUiDrawStyle.d.ts +60 -0
  622. package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
  623. package/lib/ui/AcUiDrawStyle.js +95 -0
  624. package/lib/ui/AcUiDrawStyle.js.map +1 -0
  625. package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
  626. package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
  627. package/lib/ui/AcUiDrawStyleSessionAccessory.js +459 -0
  628. package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
  629. package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
  630. package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
  631. package/lib/ui/AcUiFullscreenPanel.js +224 -0
  632. package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
  633. package/lib/ui/AcUiHelpPanel.d.ts +49 -0
  634. package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
  635. package/lib/ui/AcUiHelpPanel.js +124 -0
  636. package/lib/ui/AcUiHelpPanel.js.map +1 -0
  637. package/lib/ui/AcUiMobileSessionPanel.d.ts +239 -0
  638. package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
  639. package/lib/ui/AcUiMobileSessionPanel.js +822 -0
  640. package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
  641. package/lib/ui/AcUiShortCutToolbar.d.ts +160 -0
  642. package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
  643. package/lib/ui/AcUiShortCutToolbar.js +318 -0
  644. package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
  645. package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
  646. package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
  647. package/lib/ui/AcUiSimpleToolbar.js +431 -0
  648. package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
  649. package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
  650. package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
  651. package/lib/ui/AcUiTextHeightDialog.js +205 -0
  652. package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
  653. package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
  654. package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
  655. package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
  656. package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
  657. package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
  658. package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
  659. package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
  660. package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
  661. package/lib/ui/icons.d.ts +54 -27
  662. package/lib/ui/icons.d.ts.map +1 -1
  663. package/lib/ui/icons.js +79 -25
  664. package/lib/ui/icons.js.map +1 -1
  665. package/lib/ui/index.d.ts +15 -2
  666. package/lib/ui/index.d.ts.map +1 -1
  667. package/lib/ui/index.js +15 -2
  668. package/lib/ui/index.js.map +1 -1
  669. package/lib/ui/toolbar/AcUiDropdownMenu.d.ts +48 -0
  670. package/lib/ui/toolbar/AcUiDropdownMenu.d.ts.map +1 -0
  671. package/lib/ui/toolbar/AcUiDropdownMenu.js +116 -0
  672. package/lib/ui/toolbar/AcUiDropdownMenu.js.map +1 -0
  673. package/lib/ui/toolbar/AcUiSubToolbar.d.ts +125 -0
  674. package/lib/ui/toolbar/AcUiSubToolbar.d.ts.map +1 -0
  675. package/lib/ui/toolbar/AcUiSubToolbar.js +625 -0
  676. package/lib/ui/toolbar/AcUiSubToolbar.js.map +1 -0
  677. package/lib/ui/toolbar/AcUiToolbar.d.ts +446 -0
  678. package/lib/ui/toolbar/AcUiToolbar.d.ts.map +1 -0
  679. package/lib/ui/toolbar/AcUiToolbar.js +1550 -0
  680. package/lib/ui/toolbar/AcUiToolbar.js.map +1 -0
  681. package/lib/ui/toolbar/AcUiToolbarStyles.d.ts +20 -0
  682. package/lib/ui/toolbar/AcUiToolbarStyles.d.ts.map +1 -0
  683. package/lib/ui/toolbar/AcUiToolbarStyles.js +34 -0
  684. package/lib/ui/toolbar/AcUiToolbarStyles.js.map +1 -0
  685. package/lib/ui/toolbar/acuiWrapPackLayout.d.ts +19 -0
  686. package/lib/ui/toolbar/acuiWrapPackLayout.d.ts.map +1 -0
  687. package/lib/ui/toolbar/acuiWrapPackLayout.js +36 -0
  688. package/lib/ui/toolbar/acuiWrapPackLayout.js.map +1 -0
  689. package/lib/ui/toolbar/index.d.ts +19 -0
  690. package/lib/ui/toolbar/index.d.ts.map +1 -0
  691. package/lib/ui/toolbar/index.js +15 -0
  692. package/lib/ui/toolbar/index.js.map +1 -0
  693. package/lib/ui/toolbar/resolveToolbarChrome.d.ts +14 -0
  694. package/lib/ui/toolbar/resolveToolbarChrome.d.ts.map +1 -0
  695. package/lib/ui/toolbar/resolveToolbarChrome.js +35 -0
  696. package/lib/ui/toolbar/resolveToolbarChrome.js.map +1 -0
  697. package/lib/ui/toolbar/resolveToolbarItemState.d.ts +63 -0
  698. package/lib/ui/toolbar/resolveToolbarItemState.d.ts.map +1 -0
  699. package/lib/ui/toolbar/resolveToolbarItemState.js +171 -0
  700. package/lib/ui/toolbar/resolveToolbarItemState.js.map +1 -0
  701. package/lib/ui/toolbar/toolbarItemUtils.d.ts +62 -0
  702. package/lib/ui/toolbar/toolbarItemUtils.d.ts.map +1 -0
  703. package/lib/ui/toolbar/toolbarItemUtils.js +184 -0
  704. package/lib/ui/toolbar/toolbarItemUtils.js.map +1 -0
  705. package/lib/ui/toolbar/types.d.ts +268 -0
  706. package/lib/ui/toolbar/types.d.ts.map +1 -0
  707. package/lib/ui/toolbar/types.js +8 -0
  708. package/lib/ui/toolbar/types.js.map +1 -0
  709. package/lib/ui/touch-point-tutorial.d.ts +64 -0
  710. package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
  711. package/lib/ui/touch-point-tutorial.js +271 -0
  712. package/lib/ui/touch-point-tutorial.js.map +1 -0
  713. package/lib/ui-html-entry.d.ts +38 -0
  714. package/lib/ui-html-entry.d.ts.map +1 -0
  715. package/lib/ui-html-entry.js +28 -0
  716. package/lib/ui-html-entry.js.map +1 -0
  717. package/lib/util/AcApAciPalette.d.ts +7 -0
  718. package/lib/util/AcApAciPalette.d.ts.map +1 -0
  719. package/lib/util/AcApAciPalette.js +51 -0
  720. package/lib/util/AcApAciPalette.js.map +1 -0
  721. package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts +53 -0
  722. package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts.map +1 -0
  723. package/lib/util/AcApAnalyzeUnsupportedDrawing.js +164 -0
  724. package/lib/util/AcApAnalyzeUnsupportedDrawing.js.map +1 -0
  725. package/lib/util/AcApCommandUtil.d.ts +15 -0
  726. package/lib/util/AcApCommandUtil.d.ts.map +1 -0
  727. package/lib/util/AcApCommandUtil.js +38 -0
  728. package/lib/util/AcApCommandUtil.js.map +1 -0
  729. package/lib/util/AcApCssColor.d.ts +10 -0
  730. package/lib/util/AcApCssColor.d.ts.map +1 -1
  731. package/lib/util/AcApCssColor.js +52 -0
  732. package/lib/util/AcApCssColor.js.map +1 -1
  733. package/lib/util/AcApFormatFontMissedMessage.d.ts +32 -0
  734. package/lib/util/AcApFormatFontMissedMessage.d.ts.map +1 -0
  735. package/lib/util/AcApFormatFontMissedMessage.js +46 -0
  736. package/lib/util/AcApFormatFontMissedMessage.js.map +1 -0
  737. package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts +44 -0
  738. package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts.map +1 -0
  739. package/lib/util/AcApFormatUnsupportedEntitiesMessage.js +105 -0
  740. package/lib/util/AcApFormatUnsupportedEntitiesMessage.js.map +1 -0
  741. package/lib/util/AcApMeasurementUnits.d.ts +13 -1
  742. package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
  743. package/lib/util/AcApMeasurementUnits.js +144 -10
  744. package/lib/util/AcApMeasurementUnits.js.map +1 -1
  745. package/lib/util/AcApMeasurementUtil.d.ts +30 -9
  746. package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
  747. package/lib/util/AcApMeasurementUtil.js +70 -40
  748. package/lib/util/AcApMeasurementUtil.js.map +1 -1
  749. package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
  750. package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
  751. package/lib/util/AcApOpenFileErrorMessage.js +121 -0
  752. package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
  753. package/lib/util/index.d.ts +6 -0
  754. package/lib/util/index.d.ts.map +1 -1
  755. package/lib/util/index.js +6 -0
  756. package/lib/util/index.js.map +1 -1
  757. package/lib/view/AcApReadingMode.d.ts +52 -0
  758. package/lib/view/AcApReadingMode.d.ts.map +1 -0
  759. package/lib/view/AcApReadingMode.js +81 -0
  760. package/lib/view/AcApReadingMode.js.map +1 -0
  761. package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
  762. package/lib/view/AcEdViewKeyHandler.js +6 -1
  763. package/lib/view/AcEdViewKeyHandler.js.map +1 -1
  764. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
  765. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
  766. package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
  767. package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
  768. package/lib/view/AcTrLayer.d.ts +13 -1
  769. package/lib/view/AcTrLayer.d.ts.map +1 -1
  770. package/lib/view/AcTrLayer.js +28 -11
  771. package/lib/view/AcTrLayer.js.map +1 -1
  772. package/lib/view/AcTrLayout.d.ts +17 -2
  773. package/lib/view/AcTrLayout.d.ts.map +1 -1
  774. package/lib/view/AcTrLayout.js +67 -15
  775. package/lib/view/AcTrLayout.js.map +1 -1
  776. package/lib/view/AcTrLayoutView.d.ts +25 -1
  777. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  778. package/lib/view/AcTrLayoutView.js +62 -1
  779. package/lib/view/AcTrLayoutView.js.map +1 -1
  780. package/lib/view/AcTrScene.d.ts +4 -0
  781. package/lib/view/AcTrScene.d.ts.map +1 -1
  782. package/lib/view/AcTrScene.js +6 -0
  783. package/lib/view/AcTrScene.js.map +1 -1
  784. package/lib/view/AcTrView2d.d.ts +128 -15
  785. package/lib/view/AcTrView2d.d.ts.map +1 -1
  786. package/lib/view/AcTrView2d.js +634 -149
  787. package/lib/view/AcTrView2d.js.map +1 -1
  788. package/lib/view/AcTrViewSessionState.d.ts +6 -0
  789. package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
  790. package/lib/view/index.d.ts +1 -0
  791. package/lib/view/index.d.ts.map +1 -1
  792. package/lib/view/index.js +1 -0
  793. package/lib/view/index.js.map +1 -1
  794. package/package.json +8 -8
  795. package/src/ui/icons.ts +387 -293
  796. package/lib/app/AcDbOpenDatabaseOptions.d.ts +0 -63
  797. package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
  798. package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
  799. package/lib/command/convert/AcApPngConvertor.d.ts.map +0 -1
  800. package/lib/command/convert/AcApPngConvertor.js.map +0 -1
  801. package/lib/ui/AcApDrawStyle.d.ts +0 -81
  802. package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
  803. package/lib/ui/AcApDrawStyle.js +0 -170
  804. package/lib/ui/AcApDrawStyle.js.map +0 -1
  805. package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
  806. package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
  807. package/lib/ui/AcApDrawStyleToolbar.js +0 -607
  808. package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
@@ -0,0 +1,198 @@
1
+ /**
2
+ * Long-press / short-tap state machine for touch point picking.
3
+ *
4
+ * Timing constants live in {@link ./AcEdTouchPointTiming} so the offline HTML
5
+ * viewer can share the same values without importing this session module.
6
+ */
7
+ export { ACED_TOUCH_POINT_LONG_PRESS_MS, ACED_TOUCH_POINT_MOVE_CANCEL_PX } from './AcEdTouchPointTiming';
8
+ /**
9
+ * Ignore compatibility mouse events this long after a touch pick ends.
10
+ *
11
+ * Chrome fires a `pointerType: 'mouse'` `pointerdown` then `click` after
12
+ * touch `pointerup`. Those coordinates are near the finger, so a two-point
13
+ * command (measure distance) would commit both points from one long-press.
14
+ */
15
+ export declare const ACED_TOUCH_MOUSE_GUARD_MS = 1000;
16
+ /**
17
+ * Whether a mouse/pen event is a leftover from a touch gesture.
18
+ *
19
+ * Browsers synthesize `pointerType: 'mouse'` (and `click`) after touch.
20
+ * Those events often have `clientX/clientY` of `0`, which maps to the
21
+ * canvas origin — the top-left of the view.
22
+ */
23
+ export declare function acedIsTouchDerivedMouseEvent(event: MouseEvent | PointerEvent): boolean;
24
+ /**
25
+ * Whether client coordinates are the document origin.
26
+ *
27
+ * Compatibility mouse events after a toolbar tap are often dispatched at
28
+ * `(0, 0)`, which would commit a point at the canvas top-left.
29
+ *
30
+ * @param event - Event with client coordinates.
31
+ * @returns True when both client axes are zero.
32
+ */
33
+ export declare function acedIsGhostClientOrigin(event: {
34
+ clientX: number;
35
+ clientY: number;
36
+ }): boolean;
37
+ /**
38
+ * Stops the next `click` in the capture phase and ignores compatibility
39
+ * mouse events for {@link ACED_TOUCH_MOUSE_GUARD_MS}.
40
+ *
41
+ * Touch picking commits on `pointerup`. The browser then synthesizes a
42
+ * mouse `pointerdown` + `click` near the finger. A new point prompt would
43
+ * treat that as a real mouse pick unless this guard stays armed across
44
+ * prompt instances.
45
+ */
46
+ export declare function acedSinkFollowingClick(): void;
47
+ /**
48
+ * Removes {@link acedSinkFollowingClick} if it is armed.
49
+ */
50
+ export declare function acedClearFollowingClickSink(): void;
51
+ /**
52
+ * Arms the compatibility-mouse ignore window after a touch pick.
53
+ *
54
+ * @param now - Current time in milliseconds; defaults to `performance.now()`.
55
+ */
56
+ export declare function acedArmTouchMouseGuard(now?: number): void;
57
+ /**
58
+ * Whether mouse `pointerdown` / `click` should be ignored as leftover from
59
+ * a touch pick (including on a newly created prompt).
60
+ *
61
+ * @param now - Current time in milliseconds; defaults to `performance.now()`.
62
+ * @returns True while a following-click sink is armed or the guard window
63
+ * has not expired.
64
+ */
65
+ export declare function acedShouldIgnoreCompatMouse(now?: number): boolean;
66
+ /**
67
+ * Whether a `contextmenu` event is leftover from a touch long-press.
68
+ *
69
+ * Phones synthesize `contextmenu` ~500ms after finger-down — the same
70
+ * gesture that opens the snap loupe. Point prompts treat right-click as
71
+ * Enter; that leftover must not cancel the command.
72
+ *
73
+ * After `pointercancel`, some browsers omit `firesTouchEvents` and report
74
+ * `button === 2`. The compat-mouse guard covers that case.
75
+ *
76
+ * @param event - Context-menu mouse event.
77
+ * @returns True when the event should not be treated as right-click Enter.
78
+ */
79
+ export declare function acedIsTouchLongPressContextMenu(event: MouseEvent): boolean;
80
+ /**
81
+ * Clears the click sink and mouse guard. Used by tests.
82
+ */
83
+ export declare function acedResetTouchMouseGuard(): void;
84
+ /**
85
+ * Phases of a one-finger point-pick gesture.
86
+ *
87
+ * - `idle` — no gesture in progress.
88
+ * - `pending` — finger is down; waiting for a short tap, long-press, or pan.
89
+ * - `loupe` — long-press fired; the magnifier is visible.
90
+ * - `panning` — moved past the cancel threshold before the timer; pick aborted.
91
+ */
92
+ export type AcEdTouchPointPhase = 'idle' | 'pending' | 'loupe' | 'panning';
93
+ /**
94
+ * Long-press / short-tap state machine for touch point picking.
95
+ *
96
+ * - Short tap (`pending` → end): commit at the last sample.
97
+ * - Hold until {@link ACED_TOUCH_POINT_LONG_PRESS_MS}: enter `loupe`.
98
+ * - Move beyond {@link ACED_TOUCH_POINT_MOVE_CANCEL_PX} before the timer
99
+ * (when `cancelOnMove` is true): enter `panning` and do not commit.
100
+ */
101
+ export declare class AcEdTouchPointSession {
102
+ /** Current gesture phase. */
103
+ private _phase;
104
+ /** Pointer id of the active finger, or `-1` when idle. */
105
+ private _pointerId;
106
+ /** Client X of the finger-down sample. */
107
+ private _startX;
108
+ /** Client Y of the finger-down sample. */
109
+ private _startY;
110
+ /** Latest sample X in the same space as {@link start}. */
111
+ private _x;
112
+ /** Latest sample Y in the same space as {@link start}. */
113
+ private _y;
114
+ /** Pending long-press timer, or `null` when none is scheduled. */
115
+ private _timer;
116
+ /** Callback invoked once when the session enters the `loupe` phase. */
117
+ private _onLongPress;
118
+ /**
119
+ * Current gesture phase.
120
+ *
121
+ * @returns One of {@link AcEdTouchPointPhase}.
122
+ */
123
+ get phase(): AcEdTouchPointPhase;
124
+ /**
125
+ * Active pointer id, or `-1` when idle.
126
+ *
127
+ * @returns The pointer id passed to {@link start}, or `-1`.
128
+ */
129
+ get pointerId(): number;
130
+ /**
131
+ * Latest sample X in the same space as {@link start}.
132
+ *
133
+ * @returns Client (or canvas-host) X of the last sample.
134
+ */
135
+ get x(): number;
136
+ /**
137
+ * Latest sample Y in the same space as {@link start}.
138
+ *
139
+ * @returns Client (or canvas-host) Y of the last sample.
140
+ */
141
+ get y(): number;
142
+ /**
143
+ * Begins a touch pick. Invokes `onLongPress` after the long-press delay
144
+ * unless the session is cancelled or converted to a pan.
145
+ *
146
+ * @param pointerId - Pointer id of the finger that started the gesture.
147
+ * @param x - Sample X in client (or canvas-host) CSS pixels.
148
+ * @param y - Sample Y in client (or canvas-host) CSS pixels.
149
+ * @param onLongPress - Called once when the session enters the `loupe` phase.
150
+ * @param longPressMs - Delay before the loupe appears; defaults to
151
+ * {@link ACED_TOUCH_POINT_LONG_PRESS_MS}.
152
+ */
153
+ start(pointerId: number, x: number, y: number, onLongPress: () => void, longPressMs?: number): void;
154
+ /**
155
+ * Updates the sample position.
156
+ *
157
+ * @param x - New sample X in the same space as {@link start}.
158
+ * @param y - New sample Y in the same space as {@link start}.
159
+ * @param cancelOnMove - When true, movement past the cancel threshold
160
+ * before the loupe appears aborts the pick (live viewer pan).
161
+ * @param cancelPx - Movement threshold in CSS pixels; defaults to
162
+ * {@link ACED_TOUCH_POINT_MOVE_CANCEL_PX}.
163
+ * @returns `'panning'` when the pick was aborted, otherwise `'continue'`.
164
+ */
165
+ move(x: number, y: number, cancelOnMove: boolean, cancelPx?: number): 'continue' | 'panning';
166
+ /**
167
+ * Ends the gesture.
168
+ *
169
+ * @returns `'commit'` for a short tap or loupe release, `'ignore'` otherwise.
170
+ */
171
+ end(): 'commit' | 'ignore';
172
+ /**
173
+ * Aborts without committing (for example on `pointercancel`).
174
+ */
175
+ cancel(): void;
176
+ /**
177
+ * Whether a pick is in progress (including while the loupe is visible).
178
+ *
179
+ * @returns True in the `pending` or `loupe` phase.
180
+ */
181
+ get isPicking(): boolean;
182
+ /**
183
+ * Whether the long-press magnifier is currently shown.
184
+ *
185
+ * @returns True in the `loupe` phase.
186
+ */
187
+ get isLoupe(): boolean;
188
+ /**
189
+ * Clears the pending long-press timer, if any.
190
+ */
191
+ private clearTimer;
192
+ /**
193
+ * Returns the session to {@link AcEdTouchPointPhase | idle} and drops the
194
+ * long-press callback.
195
+ */
196
+ private reset;
197
+ }
198
+ //# sourceMappingURL=AcEdTouchPointSession.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdTouchPointSession.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdTouchPointSession.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,wBAAwB,CAAA;AAK/B;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAG7C;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,UAAU,GAAG,YAAY,GAC/B,OAAO,CAQT;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,OAAO,CAEV;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,SAgBrC;AAED;;GAEG;AACH,wBAAgB,2BAA2B,SAQ1C;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,GAAE,MAA0B,QAKrE;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,GAAE,MAA0B,GAC9B,OAAO,CAET;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAG1E;AAED;;GAEG;AACH,wBAAgB,wBAAwB,SAGvC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAE1E;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAChC,6BAA6B;IAC7B,OAAO,CAAC,MAAM,CAA8B;IAC5C,0DAA0D;IAC1D,OAAO,CAAC,UAAU,CAAK;IACvB,0CAA0C;IAC1C,OAAO,CAAC,OAAO,CAAI;IACnB,0CAA0C;IAC1C,OAAO,CAAC,OAAO,CAAI;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,CAAI;IACd,0DAA0D;IAC1D,OAAO,CAAC,EAAE,CAAI;IACd,kEAAkE;IAClE,OAAO,CAAC,MAAM,CAA6C;IAC3D,uEAAuE;IACvE,OAAO,CAAC,YAAY,CAA4B;IAEhD;;;;OAIG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAE/B;IAED;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED;;;;OAIG;IACH,IAAI,CAAC,IAAI,MAAM,CAEd;IAED;;;;OAIG;IACH,IAAI,CAAC,IAAI,MAAM,CAEd;IAED;;;;;;;;;;OAUG;IACH,KAAK,CACH,SAAS,EAAE,MAAM,EACjB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,MAAM,IAAI,EACvB,WAAW,GAAE,MAAuC;IAkBtD;;;;;;;;;;OAUG;IACH,IAAI,CACF,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,YAAY,EAAE,OAAO,EACrB,QAAQ,GAAE,MAAwC,GACjD,UAAU,GAAG,SAAS;IAczB;;;;OAIG;IACH,GAAG,IAAI,QAAQ,GAAG,QAAQ;IAO1B;;OAEG;IACH,MAAM;IAIN;;;;OAIG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;OAIG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,OAAO,CAAC,UAAU;IAOlB;;;OAGG;IACH,OAAO,CAAC,KAAK;CAMd"}
@@ -0,0 +1,329 @@
1
+ /**
2
+ * Long-press / short-tap state machine for touch point picking.
3
+ *
4
+ * Timing constants live in {@link ./AcEdTouchPointTiming} so the offline HTML
5
+ * viewer can share the same values without importing this session module.
6
+ */
7
+ import { ACED_TOUCH_POINT_LONG_PRESS_MS, ACED_TOUCH_POINT_MOVE_CANCEL_PX } from './AcEdTouchPointTiming';
8
+ export { ACED_TOUCH_POINT_LONG_PRESS_MS, ACED_TOUCH_POINT_MOVE_CANCEL_PX } from './AcEdTouchPointTiming';
9
+ var followingClickSink = null;
10
+ var followingClickSinkTimer = null;
11
+ /**
12
+ * Ignore compatibility mouse events this long after a touch pick ends.
13
+ *
14
+ * Chrome fires a `pointerType: 'mouse'` `pointerdown` then `click` after
15
+ * touch `pointerup`. Those coordinates are near the finger, so a two-point
16
+ * command (measure distance) would commit both points from one long-press.
17
+ */
18
+ export var ACED_TOUCH_MOUSE_GUARD_MS = 1000;
19
+ var ignoreCompatMouseUntil = 0;
20
+ /**
21
+ * Whether a mouse/pen event is a leftover from a touch gesture.
22
+ *
23
+ * Browsers synthesize `pointerType: 'mouse'` (and `click`) after touch.
24
+ * Those events often have `clientX/clientY` of `0`, which maps to the
25
+ * canvas origin — the top-left of the view.
26
+ */
27
+ export function acedIsTouchDerivedMouseEvent(event) {
28
+ if ('pointerType' in event && event.pointerType === 'touch')
29
+ return true;
30
+ var caps = event.sourceCapabilities;
31
+ return (caps === null || caps === void 0 ? void 0 : caps.firesTouchEvents) === true;
32
+ }
33
+ /**
34
+ * Whether client coordinates are the document origin.
35
+ *
36
+ * Compatibility mouse events after a toolbar tap are often dispatched at
37
+ * `(0, 0)`, which would commit a point at the canvas top-left.
38
+ *
39
+ * @param event - Event with client coordinates.
40
+ * @returns True when both client axes are zero.
41
+ */
42
+ export function acedIsGhostClientOrigin(event) {
43
+ return event.clientX === 0 && event.clientY === 0;
44
+ }
45
+ /**
46
+ * Stops the next `click` in the capture phase and ignores compatibility
47
+ * mouse events for {@link ACED_TOUCH_MOUSE_GUARD_MS}.
48
+ *
49
+ * Touch picking commits on `pointerup`. The browser then synthesizes a
50
+ * mouse `pointerdown` + `click` near the finger. A new point prompt would
51
+ * treat that as a real mouse pick unless this guard stays armed across
52
+ * prompt instances.
53
+ */
54
+ export function acedSinkFollowingClick() {
55
+ acedArmTouchMouseGuard();
56
+ if (followingClickSink)
57
+ return;
58
+ var sink = function (event) {
59
+ event.preventDefault();
60
+ event.stopImmediatePropagation();
61
+ acedClearFollowingClickSink();
62
+ };
63
+ followingClickSink = sink;
64
+ window.addEventListener('click', sink, true);
65
+ // If `preventDefault` on touch pointerdown already suppressed the leftover
66
+ // click, do not leave the sink armed forever — that would eat the next
67
+ // real mouse click on a hybrid (touch + mouse) device.
68
+ followingClickSinkTimer = setTimeout(function () {
69
+ acedClearFollowingClickSink();
70
+ }, ACED_TOUCH_MOUSE_GUARD_MS);
71
+ }
72
+ /**
73
+ * Removes {@link acedSinkFollowingClick} if it is armed.
74
+ */
75
+ export function acedClearFollowingClickSink() {
76
+ if (followingClickSinkTimer != null) {
77
+ clearTimeout(followingClickSinkTimer);
78
+ followingClickSinkTimer = null;
79
+ }
80
+ if (!followingClickSink)
81
+ return;
82
+ window.removeEventListener('click', followingClickSink, true);
83
+ followingClickSink = null;
84
+ }
85
+ /**
86
+ * Arms the compatibility-mouse ignore window after a touch pick.
87
+ *
88
+ * @param now - Current time in milliseconds; defaults to `performance.now()`.
89
+ */
90
+ export function acedArmTouchMouseGuard(now) {
91
+ if (now === void 0) { now = performance.now(); }
92
+ ignoreCompatMouseUntil = Math.max(ignoreCompatMouseUntil, now + ACED_TOUCH_MOUSE_GUARD_MS);
93
+ }
94
+ /**
95
+ * Whether mouse `pointerdown` / `click` should be ignored as leftover from
96
+ * a touch pick (including on a newly created prompt).
97
+ *
98
+ * @param now - Current time in milliseconds; defaults to `performance.now()`.
99
+ * @returns True while a following-click sink is armed or the guard window
100
+ * has not expired.
101
+ */
102
+ export function acedShouldIgnoreCompatMouse(now) {
103
+ if (now === void 0) { now = performance.now(); }
104
+ return followingClickSink != null || now < ignoreCompatMouseUntil;
105
+ }
106
+ /**
107
+ * Whether a `contextmenu` event is leftover from a touch long-press.
108
+ *
109
+ * Phones synthesize `contextmenu` ~500ms after finger-down — the same
110
+ * gesture that opens the snap loupe. Point prompts treat right-click as
111
+ * Enter; that leftover must not cancel the command.
112
+ *
113
+ * After `pointercancel`, some browsers omit `firesTouchEvents` and report
114
+ * `button === 2`. The compat-mouse guard covers that case.
115
+ *
116
+ * @param event - Context-menu mouse event.
117
+ * @returns True when the event should not be treated as right-click Enter.
118
+ */
119
+ export function acedIsTouchLongPressContextMenu(event) {
120
+ if (acedIsTouchDerivedMouseEvent(event))
121
+ return true;
122
+ return acedShouldIgnoreCompatMouse();
123
+ }
124
+ /**
125
+ * Clears the click sink and mouse guard. Used by tests.
126
+ */
127
+ export function acedResetTouchMouseGuard() {
128
+ acedClearFollowingClickSink();
129
+ ignoreCompatMouseUntil = 0;
130
+ }
131
+ /**
132
+ * Long-press / short-tap state machine for touch point picking.
133
+ *
134
+ * - Short tap (`pending` → end): commit at the last sample.
135
+ * - Hold until {@link ACED_TOUCH_POINT_LONG_PRESS_MS}: enter `loupe`.
136
+ * - Move beyond {@link ACED_TOUCH_POINT_MOVE_CANCEL_PX} before the timer
137
+ * (when `cancelOnMove` is true): enter `panning` and do not commit.
138
+ */
139
+ var AcEdTouchPointSession = /** @class */ (function () {
140
+ function AcEdTouchPointSession() {
141
+ /** Current gesture phase. */
142
+ this._phase = 'idle';
143
+ /** Pointer id of the active finger, or `-1` when idle. */
144
+ this._pointerId = -1;
145
+ /** Client X of the finger-down sample. */
146
+ this._startX = 0;
147
+ /** Client Y of the finger-down sample. */
148
+ this._startY = 0;
149
+ /** Latest sample X in the same space as {@link start}. */
150
+ this._x = 0;
151
+ /** Latest sample Y in the same space as {@link start}. */
152
+ this._y = 0;
153
+ /** Pending long-press timer, or `null` when none is scheduled. */
154
+ this._timer = null;
155
+ /** Callback invoked once when the session enters the `loupe` phase. */
156
+ this._onLongPress = null;
157
+ }
158
+ Object.defineProperty(AcEdTouchPointSession.prototype, "phase", {
159
+ /**
160
+ * Current gesture phase.
161
+ *
162
+ * @returns One of {@link AcEdTouchPointPhase}.
163
+ */
164
+ get: function () {
165
+ return this._phase;
166
+ },
167
+ enumerable: false,
168
+ configurable: true
169
+ });
170
+ Object.defineProperty(AcEdTouchPointSession.prototype, "pointerId", {
171
+ /**
172
+ * Active pointer id, or `-1` when idle.
173
+ *
174
+ * @returns The pointer id passed to {@link start}, or `-1`.
175
+ */
176
+ get: function () {
177
+ return this._pointerId;
178
+ },
179
+ enumerable: false,
180
+ configurable: true
181
+ });
182
+ Object.defineProperty(AcEdTouchPointSession.prototype, "x", {
183
+ /**
184
+ * Latest sample X in the same space as {@link start}.
185
+ *
186
+ * @returns Client (or canvas-host) X of the last sample.
187
+ */
188
+ get: function () {
189
+ return this._x;
190
+ },
191
+ enumerable: false,
192
+ configurable: true
193
+ });
194
+ Object.defineProperty(AcEdTouchPointSession.prototype, "y", {
195
+ /**
196
+ * Latest sample Y in the same space as {@link start}.
197
+ *
198
+ * @returns Client (or canvas-host) Y of the last sample.
199
+ */
200
+ get: function () {
201
+ return this._y;
202
+ },
203
+ enumerable: false,
204
+ configurable: true
205
+ });
206
+ /**
207
+ * Begins a touch pick. Invokes `onLongPress` after the long-press delay
208
+ * unless the session is cancelled or converted to a pan.
209
+ *
210
+ * @param pointerId - Pointer id of the finger that started the gesture.
211
+ * @param x - Sample X in client (or canvas-host) CSS pixels.
212
+ * @param y - Sample Y in client (or canvas-host) CSS pixels.
213
+ * @param onLongPress - Called once when the session enters the `loupe` phase.
214
+ * @param longPressMs - Delay before the loupe appears; defaults to
215
+ * {@link ACED_TOUCH_POINT_LONG_PRESS_MS}.
216
+ */
217
+ AcEdTouchPointSession.prototype.start = function (pointerId, x, y, onLongPress, longPressMs) {
218
+ var _this = this;
219
+ if (longPressMs === void 0) { longPressMs = ACED_TOUCH_POINT_LONG_PRESS_MS; }
220
+ this.reset();
221
+ this._phase = 'pending';
222
+ this._pointerId = pointerId;
223
+ this._startX = x;
224
+ this._startY = y;
225
+ this._x = x;
226
+ this._y = y;
227
+ this._onLongPress = onLongPress;
228
+ this._timer = setTimeout(function () {
229
+ var _a;
230
+ _this._timer = null;
231
+ if (_this._phase !== 'pending')
232
+ return;
233
+ _this._phase = 'loupe';
234
+ (_a = _this._onLongPress) === null || _a === void 0 ? void 0 : _a.call(_this);
235
+ }, longPressMs);
236
+ };
237
+ /**
238
+ * Updates the sample position.
239
+ *
240
+ * @param x - New sample X in the same space as {@link start}.
241
+ * @param y - New sample Y in the same space as {@link start}.
242
+ * @param cancelOnMove - When true, movement past the cancel threshold
243
+ * before the loupe appears aborts the pick (live viewer pan).
244
+ * @param cancelPx - Movement threshold in CSS pixels; defaults to
245
+ * {@link ACED_TOUCH_POINT_MOVE_CANCEL_PX}.
246
+ * @returns `'panning'` when the pick was aborted, otherwise `'continue'`.
247
+ */
248
+ AcEdTouchPointSession.prototype.move = function (x, y, cancelOnMove, cancelPx) {
249
+ if (cancelPx === void 0) { cancelPx = ACED_TOUCH_POINT_MOVE_CANCEL_PX; }
250
+ if (this._phase === 'idle' || this._phase === 'panning')
251
+ return 'continue';
252
+ this._x = x;
253
+ this._y = y;
254
+ if (this._phase !== 'pending' || !cancelOnMove)
255
+ return 'continue';
256
+ var dx = x - this._startX;
257
+ var dy = y - this._startY;
258
+ if (dx * dx + dy * dy < cancelPx * cancelPx)
259
+ return 'continue';
260
+ this.clearTimer();
261
+ this._phase = 'panning';
262
+ this._onLongPress = null;
263
+ return 'panning';
264
+ };
265
+ /**
266
+ * Ends the gesture.
267
+ *
268
+ * @returns `'commit'` for a short tap or loupe release, `'ignore'` otherwise.
269
+ */
270
+ AcEdTouchPointSession.prototype.end = function () {
271
+ var phase = this._phase;
272
+ this.reset();
273
+ if (phase === 'pending' || phase === 'loupe')
274
+ return 'commit';
275
+ return 'ignore';
276
+ };
277
+ /**
278
+ * Aborts without committing (for example on `pointercancel`).
279
+ */
280
+ AcEdTouchPointSession.prototype.cancel = function () {
281
+ this.reset();
282
+ };
283
+ Object.defineProperty(AcEdTouchPointSession.prototype, "isPicking", {
284
+ /**
285
+ * Whether a pick is in progress (including while the loupe is visible).
286
+ *
287
+ * @returns True in the `pending` or `loupe` phase.
288
+ */
289
+ get: function () {
290
+ return this._phase === 'pending' || this._phase === 'loupe';
291
+ },
292
+ enumerable: false,
293
+ configurable: true
294
+ });
295
+ Object.defineProperty(AcEdTouchPointSession.prototype, "isLoupe", {
296
+ /**
297
+ * Whether the long-press magnifier is currently shown.
298
+ *
299
+ * @returns True in the `loupe` phase.
300
+ */
301
+ get: function () {
302
+ return this._phase === 'loupe';
303
+ },
304
+ enumerable: false,
305
+ configurable: true
306
+ });
307
+ /**
308
+ * Clears the pending long-press timer, if any.
309
+ */
310
+ AcEdTouchPointSession.prototype.clearTimer = function () {
311
+ if (this._timer != null) {
312
+ clearTimeout(this._timer);
313
+ this._timer = null;
314
+ }
315
+ };
316
+ /**
317
+ * Returns the session to {@link AcEdTouchPointPhase | idle} and drops the
318
+ * long-press callback.
319
+ */
320
+ AcEdTouchPointSession.prototype.reset = function () {
321
+ this.clearTimer();
322
+ this._phase = 'idle';
323
+ this._pointerId = -1;
324
+ this._onLongPress = null;
325
+ };
326
+ return AcEdTouchPointSession;
327
+ }());
328
+ export { AcEdTouchPointSession };
329
+ //# sourceMappingURL=AcEdTouchPointSession.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdTouchPointSession.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdTouchPointSession.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Shared timing for touch precise point capture.
3
+ *
4
+ * Kept in a tiny module so {@link @mlightcad/cad-html-plugin} can share the
5
+ * same values via the main package export (tree-shaken into the offline HTML
6
+ * IIFE) without depending on {@link ./AcEdTouchPointSession}.
7
+ */
8
+ /**
9
+ * Long-press delay before precise capture activates (simulated mouse or
10
+ * snap loupe), in milliseconds.
11
+ */
12
+ export declare const ACED_TOUCH_POINT_LONG_PRESS_MS = 500;
13
+ /**
14
+ * Pointer movement in CSS pixels that cancels a pending long-press so the
15
+ * gesture can be treated as a pan instead of a pick.
16
+ */
17
+ export declare const ACED_TOUCH_POINT_MOVE_CANCEL_PX = 10;
18
+ //# sourceMappingURL=AcEdTouchPointTiming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdTouchPointTiming.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdTouchPointTiming.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,eAAO,MAAM,8BAA8B,MAAM,CAAA;AAEjD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,KAAK,CAAA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Shared timing for touch precise point capture.
3
+ *
4
+ * Kept in a tiny module so {@link @mlightcad/cad-html-plugin} can share the
5
+ * same values via the main package export (tree-shaken into the offline HTML
6
+ * IIFE) without depending on {@link ./AcEdTouchPointSession}.
7
+ */
8
+ /**
9
+ * Long-press delay before precise capture activates (simulated mouse or
10
+ * snap loupe), in milliseconds.
11
+ */
12
+ export var ACED_TOUCH_POINT_LONG_PRESS_MS = 500;
13
+ /**
14
+ * Pointer movement in CSS pixels that cancels a pending long-press so the
15
+ * gesture can be treated as a pan instead of a pick.
16
+ */
17
+ export var ACED_TOUCH_POINT_MOVE_CANCEL_PX = 10;
18
+ //# sourceMappingURL=AcEdTouchPointTiming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdTouchPointTiming.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdTouchPointTiming.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,CAAC,IAAM,8BAA8B,GAAG,GAAG,CAAA;AAEjD;;;GAGG;AACH,MAAM,CAAC,IAAM,+BAA+B,GAAG,EAAE,CAAA"}
@@ -1,6 +1,20 @@
1
+ export * from './AcEdCanvasTouchCalloutGuard';
1
2
  export * from './AcEdCommandLine';
3
+ export * from './AcEdDesktopSessionAccessoryChrome';
4
+ export * from './AcEdEntityPickCancelChrome';
2
5
  export * from './AcEdInputManager';
6
+ export * from './AcEdInteractionStrategy';
3
7
  export * from './AcEdMessageType';
8
+ export * from './AcEdMobileBoxGesture';
9
+ export * from './AcEdMobileCommandChrome';
10
+ export * from './AcEdMobileSessionMetrics';
4
11
  export * from './AcEdMTextEditor';
12
+ export * from './AcEdSessionAccessoryController';
13
+ export * from './AcEdMobileSnapLoupe';
14
+ export * from './AcEdSimulatedMouseCursor';
15
+ export * from './AcEdSnapLoupe';
16
+ export * from './AcEdTouchPickStrategy';
17
+ export * from './AcEdTouchPointTiming';
18
+ export * from './AcEdTouchPointSession';
5
19
  export type { MTextToolbarColorPickerContext, MTextToolbarColorPickerFactory, MTextToolbarColorPickerInstance } from '@mlightcad/mtext-input-box';
6
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,YAAY,EACV,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,qCAAqC,CAAA;AACnD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,YAAY,EACV,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,4BAA4B,CAAA"}
@@ -1,5 +1,19 @@
1
+ export * from './AcEdCanvasTouchCalloutGuard';
1
2
  export * from './AcEdCommandLine';
3
+ export * from './AcEdDesktopSessionAccessoryChrome';
4
+ export * from './AcEdEntityPickCancelChrome';
2
5
  export * from './AcEdInputManager';
6
+ export * from './AcEdInteractionStrategy';
3
7
  export * from './AcEdMessageType';
8
+ export * from './AcEdMobileBoxGesture';
9
+ export * from './AcEdMobileCommandChrome';
10
+ export * from './AcEdMobileSessionMetrics';
4
11
  export * from './AcEdMTextEditor';
12
+ export * from './AcEdSessionAccessoryController';
13
+ export * from './AcEdMobileSnapLoupe';
14
+ export * from './AcEdSimulatedMouseCursor';
15
+ export * from './AcEdSnapLoupe';
16
+ export * from './AcEdTouchPickStrategy';
17
+ export * from './AcEdTouchPointTiming';
18
+ export * from './AcEdTouchPointSession';
5
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,qCAAqC,CAAA;AACnD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA"}