@mlightcad/cad-simple-viewer 1.6.2 → 1.7.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 (728) hide show
  1. package/dist/cad-simple-viewer.js +28736 -18706
  2. package/dist/cad-simple-viewer.umd.cjs +1639 -308
  3. package/dist/mtext-renderer-worker.js +14590 -14441
  4. package/icons.ts +7 -0
  5. package/lib/app/AcApBrand.d.ts +2 -2
  6. package/lib/app/AcApBrand.d.ts.map +1 -1
  7. package/lib/app/AcApBrand.js +2 -2
  8. package/lib/app/AcApBrand.js.map +1 -1
  9. package/lib/app/AcApBusyIndicator.d.ts +6 -0
  10. package/lib/app/AcApBusyIndicator.d.ts.map +1 -1
  11. package/lib/app/AcApBusyIndicator.js +8 -0
  12. package/lib/app/AcApBusyIndicator.js.map +1 -1
  13. package/lib/app/AcApContext.d.ts +24 -0
  14. package/lib/app/AcApContext.d.ts.map +1 -1
  15. package/lib/app/AcApContext.js +103 -18
  16. package/lib/app/AcApContext.js.map +1 -1
  17. package/lib/app/AcApDocManager.d.ts +293 -31
  18. package/lib/app/AcApDocManager.d.ts.map +1 -1
  19. package/lib/app/AcApDocManager.js +972 -184
  20. package/lib/app/AcApDocManager.js.map +1 -1
  21. package/lib/app/AcApDocSession.d.ts +41 -0
  22. package/lib/app/AcApDocSession.d.ts.map +1 -0
  23. package/lib/app/AcApDocSession.js +29 -0
  24. package/lib/app/AcApDocSession.js.map +1 -0
  25. package/lib/app/AcApDocsUrl.d.ts +57 -0
  26. package/lib/app/AcApDocsUrl.d.ts.map +1 -0
  27. package/lib/app/AcApDocsUrl.js +76 -0
  28. package/lib/app/AcApDocsUrl.js.map +1 -0
  29. package/lib/app/AcApDocument.d.ts +6 -1
  30. package/lib/app/AcApDocument.d.ts.map +1 -1
  31. package/lib/app/AcApDocument.js +21 -0
  32. package/lib/app/AcApDocument.js.map +1 -1
  33. package/lib/app/AcApFontLoader.d.ts +6 -0
  34. package/lib/app/AcApFontLoader.d.ts.map +1 -1
  35. package/lib/app/AcApFontLoader.js +11 -0
  36. package/lib/app/AcApFontLoader.js.map +1 -1
  37. package/lib/app/{AcDbOpenDatabaseOptions.d.ts → AcApOpenDatabaseOptions.d.ts} +35 -8
  38. package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
  39. package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +1 -1
  40. package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
  41. package/lib/app/AcApOpenFileDialog.d.ts +1 -1
  42. package/lib/app/AcApOpenFileProgressController.d.ts +14 -0
  43. package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
  44. package/lib/app/AcApOpenFileProgressController.js +18 -0
  45. package/lib/app/AcApOpenFileProgressController.js.map +1 -1
  46. package/lib/app/AcApProgress.d.ts +6 -0
  47. package/lib/app/AcApProgress.d.ts.map +1 -1
  48. package/lib/app/AcApProgress.js +17 -0
  49. package/lib/app/AcApProgress.js.map +1 -1
  50. package/lib/app/AcApSettingManager.d.ts +156 -43
  51. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  52. package/lib/app/AcApSettingManager.js +216 -66
  53. package/lib/app/AcApSettingManager.js.map +1 -1
  54. package/lib/app/index.d.ts +4 -2
  55. package/lib/app/index.d.ts.map +1 -1
  56. package/lib/app/index.js +3 -1
  57. package/lib/app/index.js.map +1 -1
  58. package/lib/command/AcApCloseCmd.d.ts +15 -0
  59. package/lib/command/AcApCloseCmd.d.ts.map +1 -0
  60. package/lib/command/AcApCloseCmd.js +83 -0
  61. package/lib/command/AcApCloseCmd.js.map +1 -0
  62. package/lib/command/AcApDrawOverlayInput.d.ts +6 -0
  63. package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
  64. package/lib/command/AcApDrawOverlayInput.js +64 -0
  65. package/lib/command/AcApDrawOverlayInput.js.map +1 -0
  66. package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
  67. package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
  68. package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
  69. package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
  70. package/lib/command/AcApDrawStyleSession.d.ts +20 -0
  71. package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
  72. package/lib/command/AcApDrawStyleSession.js +2 -0
  73. package/lib/command/AcApDrawStyleSession.js.map +1 -0
  74. package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
  75. package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
  76. package/lib/command/AcApInstallDrawStyleSessionAccessory.js +174 -0
  77. package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
  78. package/lib/command/AcApReadingModeCmd.d.ts +17 -0
  79. package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
  80. package/lib/command/AcApReadingModeCmd.js +82 -0
  81. package/lib/command/AcApReadingModeCmd.js.map +1 -0
  82. package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
  83. package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
  84. package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
  85. package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
  86. package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
  87. package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
  88. package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
  89. package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
  90. package/lib/command/AcApZoomCmd.d.ts +39 -1
  91. package/lib/command/AcApZoomCmd.d.ts.map +1 -1
  92. package/lib/command/AcApZoomCmd.js +70 -6
  93. package/lib/command/AcApZoomCmd.js.map +1 -1
  94. package/lib/command/draw/AcApHatchCmd.js +1 -1
  95. package/lib/command/draw/AcApHatchCmd.js.map +1 -1
  96. package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
  97. package/lib/command/draw/AcApMTextCmd.js +11 -7
  98. package/lib/command/draw/AcApMTextCmd.js.map +1 -1
  99. package/lib/command/index.d.ts +4 -0
  100. package/lib/command/index.d.ts.map +1 -1
  101. package/lib/command/index.js +4 -0
  102. package/lib/command/index.js.map +1 -1
  103. package/lib/command/markup/AcApMarkupArrowCmd.d.ts +2 -3
  104. package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
  105. package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
  106. package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
  107. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
  108. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
  109. package/lib/command/markup/AcApMarkupCalloutCmd.js +47 -22
  110. package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
  111. package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
  112. package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
  113. package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
  114. package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
  115. package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
  116. package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
  117. package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
  118. package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
  119. package/lib/command/markup/AcApMarkupCmdUtil.d.ts +7 -1
  120. package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
  121. package/lib/command/markup/AcApMarkupCmdUtil.js +10 -0
  122. package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
  123. package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
  124. package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
  125. package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
  126. package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
  127. package/lib/command/markup/AcApMarkupGeometry.d.ts +39 -3
  128. package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
  129. package/lib/command/markup/AcApMarkupGeometry.js +127 -26
  130. package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
  131. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
  132. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
  133. package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
  134. package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
  135. package/lib/command/markup/AcApMarkupHistory.d.ts +1 -1
  136. package/lib/command/markup/AcApMarkupHistory.d.ts.map +1 -1
  137. package/lib/command/markup/AcApMarkupHistory.js +4 -11
  138. package/lib/command/markup/AcApMarkupHistory.js.map +1 -1
  139. package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
  140. package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
  141. package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
  142. package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
  143. package/lib/command/markup/AcApMarkupPresenter.d.ts +24 -4
  144. package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
  145. package/lib/command/markup/AcApMarkupPresenter.js +100 -18
  146. package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
  147. package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
  148. package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
  149. package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
  150. package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
  151. package/lib/command/markup/AcApMarkupSession.d.ts +54 -0
  152. package/lib/command/markup/AcApMarkupSession.d.ts.map +1 -0
  153. package/lib/command/markup/AcApMarkupSession.js +85 -0
  154. package/lib/command/markup/AcApMarkupSession.js.map +1 -0
  155. package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts +2 -0
  156. package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts.map +1 -0
  157. package/lib/command/markup/AcApMarkupSessionBootstrap.js +12 -0
  158. package/lib/command/markup/AcApMarkupSessionBootstrap.js.map +1 -0
  159. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
  160. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
  161. package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
  162. package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
  163. package/lib/command/markup/AcApMarkupShapeCallout.d.ts +21 -1
  164. package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
  165. package/lib/command/markup/AcApMarkupShapeCallout.js +41 -25
  166. package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
  167. package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
  168. package/lib/command/markup/AcApMarkupSidecar.js +39 -5
  169. package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
  170. package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
  171. package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
  172. package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
  173. package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
  174. package/lib/command/markup/AcApMarkupStore.d.ts +1 -1
  175. package/lib/command/markup/AcApMarkupStore.d.ts.map +1 -1
  176. package/lib/command/markup/AcApMarkupStore.js +3 -6
  177. package/lib/command/markup/AcApMarkupStore.js.map +1 -1
  178. package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
  179. package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
  180. package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
  181. package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
  182. package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
  183. package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
  184. package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
  185. package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
  186. package/lib/command/markup/AcApMarkupUtil.js +149 -34
  187. package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
  188. package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
  189. package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
  190. package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
  191. package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
  192. package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
  193. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
  194. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
  195. package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
  196. package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
  197. package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
  198. package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
  199. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
  200. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
  201. package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
  202. package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
  203. package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
  204. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
  205. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
  206. package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
  207. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
  208. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
  209. package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
  210. package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
  211. package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
  212. package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
  213. package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
  214. package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
  215. package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
  216. package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
  217. package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
  218. package/lib/command/markup/index.d.ts +4 -0
  219. package/lib/command/markup/index.d.ts.map +1 -1
  220. package/lib/command/markup/index.js +5 -0
  221. package/lib/command/markup/index.js.map +1 -1
  222. package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
  223. package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
  224. package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
  225. package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
  226. package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
  227. package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
  228. package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
  229. package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
  230. package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
  231. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
  232. package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
  233. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
  234. package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
  235. package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
  236. package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
  237. package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
  238. package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
  239. package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
  240. package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
  241. package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
  242. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
  243. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
  244. package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
  245. package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
  246. package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
  247. package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
  248. package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
  249. package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
  250. package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
  251. package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
  252. package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
  253. package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
  254. package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
  255. package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
  256. package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
  257. package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
  258. package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
  259. package/lib/command/measure/AcApMeasurementHistory.js +3 -1
  260. package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
  261. package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
  262. package/lib/command/measure/AcApMeasurementPlace.js +22 -5
  263. package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
  264. package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
  265. package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
  266. package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
  267. package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
  268. package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
  269. package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
  270. package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
  271. package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
  272. package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
  273. package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
  274. package/lib/command/measure/AcApMeasurementStore.js +277 -33
  275. package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
  276. package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
  277. package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
  278. package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
  279. package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
  280. package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
  281. package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
  282. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
  283. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
  284. package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
  285. package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
  286. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
  287. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
  288. package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
  289. package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
  290. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
  291. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
  292. package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
  293. package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
  294. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
  295. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
  296. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
  297. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
  298. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
  299. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
  300. package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
  301. package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
  302. package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
  303. package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
  304. package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
  305. package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
  306. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
  307. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
  308. package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
  309. package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
  310. package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
  311. package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
  312. package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
  313. package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
  314. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
  315. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
  316. package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
  317. package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
  318. package/lib/command/measure/entity/index.d.ts +1 -0
  319. package/lib/command/measure/entity/index.d.ts.map +1 -1
  320. package/lib/command/measure/entity/index.js +1 -0
  321. package/lib/command/measure/entity/index.js.map +1 -1
  322. package/lib/command/measure/index.d.ts +4 -0
  323. package/lib/command/measure/index.d.ts.map +1 -1
  324. package/lib/command/measure/index.js +4 -0
  325. package/lib/command/measure/index.js.map +1 -1
  326. package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
  327. package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
  328. package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
  329. package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
  330. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
  331. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
  332. package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
  333. package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
  334. package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
  335. package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
  336. package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
  337. package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
  338. package/lib/editor/command/AcEdCommand.d.ts +17 -0
  339. package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
  340. package/lib/editor/command/AcEdCommand.js +81 -1
  341. package/lib/editor/command/AcEdCommand.js.map +1 -1
  342. package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
  343. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  344. package/lib/editor/command/AcEdCommandStack.js +39 -3
  345. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  346. package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
  347. package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
  348. package/lib/editor/command/AcEdSessionAccessory.js +15 -0
  349. package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
  350. package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
  351. package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
  352. package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
  353. package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
  354. package/lib/editor/command/index.d.ts +4 -0
  355. package/lib/editor/command/index.d.ts.map +1 -1
  356. package/lib/editor/command/index.js +3 -0
  357. package/lib/editor/command/index.js.map +1 -1
  358. package/lib/editor/global/AcEdUiColor.d.ts +10 -0
  359. package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
  360. package/lib/editor/global/AcEdUiColor.js +14 -0
  361. package/lib/editor/global/AcEdUiColor.js.map +1 -1
  362. package/lib/editor/global/AcEdUiLayout.d.ts +102 -0
  363. package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
  364. package/lib/editor/global/AcEdUiLayout.js +137 -0
  365. package/lib/editor/global/AcEdUiLayout.js.map +1 -1
  366. package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
  367. package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
  368. package/lib/editor/global/AcEdUiTheme.js +113 -6
  369. package/lib/editor/global/AcEdUiTheme.js.map +1 -1
  370. package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
  371. package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
  372. package/lib/editor/grip/AcEdGripAppearance.js +23 -1
  373. package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
  374. package/lib/editor/grip/AcEdGripEditSession.js +2 -2
  375. package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
  376. package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
  377. package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
  378. package/lib/editor/grip/AcEdGripHandle.js +4 -13
  379. package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
  380. package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
  381. package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
  382. package/lib/editor/grip/AcEdGripManager.js +30 -14
  383. package/lib/editor/grip/AcEdGripManager.js.map +1 -1
  384. package/lib/editor/grip/index.d.ts +1 -0
  385. package/lib/editor/grip/index.d.ts.map +1 -1
  386. package/lib/editor/grip/index.js +1 -0
  387. package/lib/editor/grip/index.js.map +1 -1
  388. package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
  389. package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
  390. package/lib/editor/input/AcEdDynamicInput.js +22 -0
  391. package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
  392. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
  393. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
  394. package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
  395. package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
  396. package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
  397. package/lib/editor/input/AcEdOsnapResolver.js +216 -35
  398. package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
  399. package/lib/editor/input/AcEditor.d.ts +14 -1
  400. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  401. package/lib/editor/input/AcEditor.js +18 -2
  402. package/lib/editor/input/AcEditor.js.map +1 -1
  403. package/lib/editor/input/index.d.ts +1 -0
  404. package/lib/editor/input/index.d.ts.map +1 -1
  405. package/lib/editor/input/index.js +1 -0
  406. package/lib/editor/input/index.js.map +1 -1
  407. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
  408. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
  409. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
  410. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
  411. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
  412. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
  413. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
  414. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
  415. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
  416. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
  417. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
  418. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
  419. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
  420. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
  421. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
  422. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
  423. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +144 -0
  424. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  425. package/lib/editor/input/ui/AcEdFloatingInput.js +412 -13
  426. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  427. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +2 -1
  428. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  429. package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
  430. package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
  431. package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
  432. package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
  433. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  434. package/lib/editor/input/ui/AcEdInputManager.js +805 -164
  435. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  436. package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
  437. package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
  438. package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
  439. package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
  440. package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
  441. package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
  442. package/lib/editor/input/ui/AcEdMobileBoxGesture.js +201 -0
  443. package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
  444. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +89 -0
  445. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
  446. package/lib/editor/input/ui/AcEdMobileCommandChrome.js +143 -0
  447. package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
  448. package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
  449. package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
  450. package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
  451. package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
  452. package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
  453. package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
  454. package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
  455. package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
  456. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +113 -0
  457. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
  458. package/lib/editor/input/ui/AcEdSessionAccessoryController.js +295 -0
  459. package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
  460. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
  461. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
  462. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
  463. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
  464. package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
  465. package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
  466. package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
  467. package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
  468. package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
  469. package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
  470. package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
  471. package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
  472. package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
  473. package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
  474. package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
  475. package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
  476. package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
  477. package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
  478. package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
  479. package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
  480. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
  481. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
  482. package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
  483. package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
  484. package/lib/editor/input/ui/index.d.ts +13 -0
  485. package/lib/editor/input/ui/index.d.ts.map +1 -1
  486. package/lib/editor/input/ui/index.js +13 -0
  487. package/lib/editor/input/ui/index.js.map +1 -1
  488. package/lib/editor/view/AcEdBaseView.d.ts +144 -39
  489. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  490. package/lib/editor/view/AcEdBaseView.js +210 -41
  491. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  492. package/lib/editor/view/AcEdViewMode.d.ts +34 -0
  493. package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
  494. package/lib/editor/view/AcEdViewMode.js +35 -0
  495. package/lib/editor/view/AcEdViewMode.js.map +1 -0
  496. package/lib/editor/view/index.d.ts +1 -0
  497. package/lib/editor/view/index.d.ts.map +1 -1
  498. package/lib/editor/view/index.js +1 -0
  499. package/lib/editor/view/index.js.map +1 -1
  500. package/lib/i18n/AcApI18n.d.ts +1 -1
  501. package/lib/i18n/AcApI18n.d.ts.map +1 -1
  502. package/lib/i18n/AcApI18n.js +3 -2
  503. package/lib/i18n/AcApI18n.js.map +1 -1
  504. package/lib/i18n/ar/command.d.ts +465 -0
  505. package/lib/i18n/ar/command.d.ts.map +1 -0
  506. package/lib/i18n/ar/command.js +14 -0
  507. package/lib/i18n/ar/command.js.map +1 -0
  508. package/lib/i18n/ar/jig.d.ts +1251 -0
  509. package/lib/i18n/ar/jig.d.ts.map +1 -0
  510. package/lib/i18n/ar/jig.js +606 -0
  511. package/lib/i18n/ar/jig.js.map +1 -0
  512. package/lib/i18n/ar/main.d.ts +133 -0
  513. package/lib/i18n/ar/main.d.ts.map +1 -0
  514. package/lib/i18n/ar/main.js +132 -0
  515. package/lib/i18n/ar/main.js.map +1 -0
  516. package/lib/i18n/cs/command.d.ts +9 -0
  517. package/lib/i18n/cs/command.d.ts.map +1 -1
  518. package/lib/i18n/cs/command.js +9 -0
  519. package/lib/i18n/cs/command.js.map +1 -1
  520. package/lib/i18n/cs/jig.d.ts +20 -0
  521. package/lib/i18n/cs/jig.d.ts.map +1 -1
  522. package/lib/i18n/cs/jig.js +21 -1
  523. package/lib/i18n/cs/jig.js.map +1 -1
  524. package/lib/i18n/cs/main.d.ts +70 -1
  525. package/lib/i18n/cs/main.d.ts.map +1 -1
  526. package/lib/i18n/cs/main.js +71 -2
  527. package/lib/i18n/cs/main.js.map +1 -1
  528. package/lib/i18n/en/command.d.ts +12 -0
  529. package/lib/i18n/en/command.d.ts.map +1 -1
  530. package/lib/i18n/en/command.js +12 -0
  531. package/lib/i18n/en/command.js.map +1 -1
  532. package/lib/i18n/en/jig.d.ts +20 -0
  533. package/lib/i18n/en/jig.d.ts.map +1 -1
  534. package/lib/i18n/en/jig.js +21 -1
  535. package/lib/i18n/en/jig.js.map +1 -1
  536. package/lib/i18n/en/main.d.ts +70 -1
  537. package/lib/i18n/en/main.d.ts.map +1 -1
  538. package/lib/i18n/en/main.js +71 -2
  539. package/lib/i18n/en/main.js.map +1 -1
  540. package/lib/i18n/index.d.ts.map +1 -1
  541. package/lib/i18n/index.js +8 -0
  542. package/lib/i18n/index.js.map +1 -1
  543. package/lib/i18n/tr/command.d.ts +9 -0
  544. package/lib/i18n/tr/command.d.ts.map +1 -1
  545. package/lib/i18n/tr/command.js +9 -0
  546. package/lib/i18n/tr/command.js.map +1 -1
  547. package/lib/i18n/tr/jig.d.ts +20 -0
  548. package/lib/i18n/tr/jig.d.ts.map +1 -1
  549. package/lib/i18n/tr/jig.js +21 -1
  550. package/lib/i18n/tr/jig.js.map +1 -1
  551. package/lib/i18n/tr/main.d.ts +70 -1
  552. package/lib/i18n/tr/main.d.ts.map +1 -1
  553. package/lib/i18n/tr/main.js +71 -2
  554. package/lib/i18n/tr/main.js.map +1 -1
  555. package/lib/i18n/zh/command.d.ts +12 -0
  556. package/lib/i18n/zh/command.d.ts.map +1 -1
  557. package/lib/i18n/zh/command.js +12 -0
  558. package/lib/i18n/zh/command.js.map +1 -1
  559. package/lib/i18n/zh/jig.d.ts +20 -0
  560. package/lib/i18n/zh/jig.d.ts.map +1 -1
  561. package/lib/i18n/zh/jig.js +21 -1
  562. package/lib/i18n/zh/jig.js.map +1 -1
  563. package/lib/i18n/zh/main.d.ts +70 -1
  564. package/lib/i18n/zh/main.d.ts.map +1 -1
  565. package/lib/i18n/zh/main.js +72 -3
  566. package/lib/i18n/zh/main.js.map +1 -1
  567. package/lib/plugin/AcApPluginManager.d.ts +10 -0
  568. package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
  569. package/lib/plugin/AcApPluginManager.js +18 -0
  570. package/lib/plugin/AcApPluginManager.js.map +1 -1
  571. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
  572. package/lib/spatialIndex/AcTrRBushSpatialIndex.js +11 -4
  573. package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
  574. package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
  575. package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
  576. package/lib/ui/AcUiAciColorDialog.js +91 -0
  577. package/lib/ui/AcUiAciColorDialog.js.map +1 -0
  578. package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
  579. package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
  580. package/lib/ui/AcUiAciPaletteUi.js +521 -0
  581. package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
  582. package/lib/ui/AcUiDialog.d.ts +38 -2
  583. package/lib/ui/AcUiDialog.d.ts.map +1 -1
  584. package/lib/ui/AcUiDialog.js +45 -16
  585. package/lib/ui/AcUiDialog.js.map +1 -1
  586. package/lib/ui/AcUiDrawStyle.d.ts +59 -0
  587. package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
  588. package/lib/ui/AcUiDrawStyle.js +94 -0
  589. package/lib/ui/AcUiDrawStyle.js.map +1 -0
  590. package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
  591. package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
  592. package/lib/ui/AcUiDrawStyleSessionAccessory.js +455 -0
  593. package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
  594. package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
  595. package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
  596. package/lib/ui/AcUiFullscreenPanel.js +224 -0
  597. package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
  598. package/lib/ui/AcUiHelpPanel.d.ts +49 -0
  599. package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
  600. package/lib/ui/AcUiHelpPanel.js +124 -0
  601. package/lib/ui/AcUiHelpPanel.js.map +1 -0
  602. package/lib/ui/AcUiMobileSessionPanel.d.ts +174 -0
  603. package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
  604. package/lib/ui/AcUiMobileSessionPanel.js +557 -0
  605. package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
  606. package/lib/ui/AcUiShortCutToolbar.d.ts +136 -0
  607. package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
  608. package/lib/ui/AcUiShortCutToolbar.js +250 -0
  609. package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
  610. package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
  611. package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
  612. package/lib/ui/AcUiSimpleToolbar.js +431 -0
  613. package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
  614. package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
  615. package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
  616. package/lib/ui/AcUiTextHeightDialog.js +205 -0
  617. package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
  618. package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
  619. package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
  620. package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
  621. package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
  622. package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
  623. package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
  624. package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
  625. package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
  626. package/lib/ui/icons.d.ts +175 -0
  627. package/lib/ui/icons.d.ts.map +1 -0
  628. package/lib/ui/icons.js +227 -0
  629. package/lib/ui/icons.js.map +1 -0
  630. package/lib/ui/index.d.ts +14 -2
  631. package/lib/ui/index.d.ts.map +1 -1
  632. package/lib/ui/index.js +14 -2
  633. package/lib/ui/index.js.map +1 -1
  634. package/lib/ui/touch-point-tutorial.d.ts +64 -0
  635. package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
  636. package/lib/ui/touch-point-tutorial.js +271 -0
  637. package/lib/ui/touch-point-tutorial.js.map +1 -0
  638. package/lib/ui-html-entry.d.ts +31 -0
  639. package/lib/ui-html-entry.d.ts.map +1 -0
  640. package/lib/ui-html-entry.js +23 -0
  641. package/lib/ui-html-entry.js.map +1 -0
  642. package/lib/util/AcApAciPalette.d.ts +7 -0
  643. package/lib/util/AcApAciPalette.d.ts.map +1 -0
  644. package/lib/util/AcApAciPalette.js +51 -0
  645. package/lib/util/AcApAciPalette.js.map +1 -0
  646. package/lib/util/AcApCommandUtil.d.ts +15 -0
  647. package/lib/util/AcApCommandUtil.d.ts.map +1 -0
  648. package/lib/util/AcApCommandUtil.js +38 -0
  649. package/lib/util/AcApCommandUtil.js.map +1 -0
  650. package/lib/util/AcApCssColor.d.ts +10 -0
  651. package/lib/util/AcApCssColor.d.ts.map +1 -1
  652. package/lib/util/AcApCssColor.js +52 -0
  653. package/lib/util/AcApCssColor.js.map +1 -1
  654. package/lib/util/AcApMeasurementUnits.d.ts +13 -1
  655. package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
  656. package/lib/util/AcApMeasurementUnits.js +144 -10
  657. package/lib/util/AcApMeasurementUnits.js.map +1 -1
  658. package/lib/util/AcApMeasurementUtil.d.ts +30 -9
  659. package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
  660. package/lib/util/AcApMeasurementUtil.js +70 -40
  661. package/lib/util/AcApMeasurementUtil.js.map +1 -1
  662. package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
  663. package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
  664. package/lib/util/AcApOpenFileErrorMessage.js +121 -0
  665. package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
  666. package/lib/util/index.d.ts +3 -0
  667. package/lib/util/index.d.ts.map +1 -1
  668. package/lib/util/index.js +3 -0
  669. package/lib/util/index.js.map +1 -1
  670. package/lib/view/AcApCompareDisplay.d.ts +37 -0
  671. package/lib/view/AcApCompareDisplay.d.ts.map +1 -0
  672. package/lib/view/AcApCompareDisplay.js +8 -0
  673. package/lib/view/AcApCompareDisplay.js.map +1 -0
  674. package/lib/view/AcApReadingMode.d.ts +52 -0
  675. package/lib/view/AcApReadingMode.d.ts.map +1 -0
  676. package/lib/view/AcApReadingMode.js +81 -0
  677. package/lib/view/AcApReadingMode.js.map +1 -0
  678. package/lib/view/AcEdReviewOverlayPick.d.ts +9 -0
  679. package/lib/view/AcEdReviewOverlayPick.d.ts.map +1 -1
  680. package/lib/view/AcEdReviewOverlayPick.js +30 -1
  681. package/lib/view/AcEdReviewOverlayPick.js.map +1 -1
  682. package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
  683. package/lib/view/AcEdViewKeyHandler.js +6 -1
  684. package/lib/view/AcEdViewKeyHandler.js.map +1 -1
  685. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
  686. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
  687. package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
  688. package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
  689. package/lib/view/AcTrLayer.d.ts +6 -0
  690. package/lib/view/AcTrLayer.d.ts.map +1 -1
  691. package/lib/view/AcTrLayer.js +8 -0
  692. package/lib/view/AcTrLayer.js.map +1 -1
  693. package/lib/view/AcTrLayout.d.ts +12 -0
  694. package/lib/view/AcTrLayout.d.ts.map +1 -1
  695. package/lib/view/AcTrLayout.js +35 -12
  696. package/lib/view/AcTrLayout.js.map +1 -1
  697. package/lib/view/AcTrLayoutView.d.ts +25 -1
  698. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  699. package/lib/view/AcTrLayoutView.js +62 -1
  700. package/lib/view/AcTrLayoutView.js.map +1 -1
  701. package/lib/view/AcTrScene.d.ts +7 -0
  702. package/lib/view/AcTrScene.d.ts.map +1 -1
  703. package/lib/view/AcTrScene.js +13 -0
  704. package/lib/view/AcTrScene.js.map +1 -1
  705. package/lib/view/AcTrView2d.d.ts +79 -2
  706. package/lib/view/AcTrView2d.d.ts.map +1 -1
  707. package/lib/view/AcTrView2d.js +407 -57
  708. package/lib/view/AcTrView2d.js.map +1 -1
  709. package/lib/view/AcTrViewSessionState.d.ts +32 -0
  710. package/lib/view/AcTrViewSessionState.d.ts.map +1 -0
  711. package/lib/view/AcTrViewSessionState.js +2 -0
  712. package/lib/view/AcTrViewSessionState.js.map +1 -0
  713. package/lib/view/index.d.ts +3 -0
  714. package/lib/view/index.d.ts.map +1 -1
  715. package/lib/view/index.js +3 -0
  716. package/lib/view/index.js.map +1 -1
  717. package/package.json +15 -8
  718. package/src/ui/icons.ts +387 -0
  719. package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
  720. package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
  721. package/lib/ui/AcApDrawStyle.d.ts +0 -81
  722. package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
  723. package/lib/ui/AcApDrawStyle.js +0 -170
  724. package/lib/ui/AcApDrawStyle.js.map +0 -1
  725. package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
  726. package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
  727. package/lib/ui/AcApDrawStyleToolbar.js +0 -607
  728. package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
@@ -0,0 +1,109 @@
1
+ import { AcGeBox2d, AcGePoint2d } from '@mlightcad/data-model';
2
+ import { AcEdMarker } from '../marker/AcEdMarker';
3
+ import { acedInteractionStrategy } from './AcEdInteractionStrategy';
4
+ import { ACED_SNAP_LOUPE_SIZE_PX, ACED_SNAP_LOUPE_ZOOM, acedLoupeLocalFromCanvasDelta, acedResolveLoupePlacement } from './AcEdSnapLoupeMath';
5
+ export { ACED_SNAP_LOUPE_GAP_BELOW_PROMPT_PX, ACED_SNAP_LOUPE_INSET_PX, ACED_SNAP_LOUPE_SIZE_PX, ACED_SNAP_LOUPE_ZOOM, acedLoupeLocalFromCanvasDelta, acedResolveLoupePlacement } from './AcEdSnapLoupeMath';
6
+ /**
7
+ * DOM chrome for the mobile snap loupe: border and OSNAP glyph.
8
+ *
9
+ * CAD geometry is drawn by the view's overlay viewport; this widget only
10
+ * drives that viewport and paints HUD on top.
11
+ */
12
+ var AcEdSnapLoupe = /** @class */ (function () {
13
+ /**
14
+ * Creates the loupe HUD and attaches it to the view container.
15
+ *
16
+ * @param view - View that owns the overlay viewport and coordinate helpers.
17
+ */
18
+ function AcEdSnapLoupe(view) {
19
+ this.view = view;
20
+ AcEdSnapLoupe.injectCss();
21
+ this.root = document.createElement('div');
22
+ this.root.className = 'ml-snap-loupe';
23
+ this.root.setAttribute('aria-hidden', 'true');
24
+ var hostPosition = getComputedStyle(view.container).position;
25
+ if (hostPosition === 'static') {
26
+ view.container.style.position = 'relative';
27
+ }
28
+ view.container.appendChild(this.root);
29
+ this.marker = new AcEdMarker('rect', 12, 'var(--ml-ui-canvas-line, green)', this.root);
30
+ this.hide();
31
+ }
32
+ /**
33
+ * Shows the loupe at the canvas-local sample and updates the overlay viewport.
34
+ *
35
+ * @param canvasX - Sample X in canvas CSS pixels.
36
+ * @param canvasY - Sample Y in canvas CSS pixels.
37
+ * @param snapCanvas - Snapped point in canvas CSS pixels, if any.
38
+ * @param snapType - OSNAP marker shape when snapped.
39
+ */
40
+ AcEdSnapLoupe.prototype.show = function (canvasX, canvasY, snapCanvas, snapType) {
41
+ var placement = acedResolveLoupePlacement(this.view.container, {
42
+ usesSessionChrome: acedInteractionStrategy().point.usesSessionChrome
43
+ });
44
+ var inset = placement.x, top = placement.y, size = placement.size;
45
+ var viewBox = acedLoupeViewBoxFromCanvasSample(this.view, canvasX, canvasY);
46
+ this.view.setSnapLoupe({ x: inset, y: top, size: size, viewBox: viewBox });
47
+ var host = this.view.canvasToContainer({ x: inset, y: top });
48
+ this.root.style.left = "".concat(host.x, "px");
49
+ this.root.style.top = "".concat(host.y, "px");
50
+ this.root.style.display = 'block';
51
+ if (snapCanvas && snapType) {
52
+ this.marker.type = snapType;
53
+ this.marker.setPosition(acedLoupeLocalFromCanvasDelta(snapCanvas.x - canvasX, snapCanvas.y - canvasY));
54
+ }
55
+ else {
56
+ this.marker.setPosition({ x: -1000, y: -1000 });
57
+ }
58
+ };
59
+ /**
60
+ * Hides the HUD and the overlay viewport.
61
+ */
62
+ AcEdSnapLoupe.prototype.hide = function () {
63
+ this.root.style.display = 'none';
64
+ this.view.setSnapLoupe(null);
65
+ this.marker.setPosition({ x: -1000, y: -1000 });
66
+ };
67
+ /**
68
+ * Hides the loupe and removes its DOM from the view container.
69
+ */
70
+ AcEdSnapLoupe.prototype.dispose = function () {
71
+ this.hide();
72
+ this.marker.destroy();
73
+ this.root.remove();
74
+ };
75
+ /**
76
+ * Injects loupe HUD styles into `document.head` once per page.
77
+ */
78
+ AcEdSnapLoupe.injectCss = function () {
79
+ if (AcEdSnapLoupe.stylesInjected)
80
+ return;
81
+ AcEdSnapLoupe.stylesInjected = true;
82
+ var style = document.createElement('style');
83
+ style.id = 'ml-snap-loupe-style';
84
+ style.textContent = "\n .ml-snap-loupe {\n position: absolute;\n width: ".concat(ACED_SNAP_LOUPE_SIZE_PX, "px;\n height: ").concat(ACED_SNAP_LOUPE_SIZE_PX, "px;\n box-sizing: border-box;\n border: 2px solid var(--ml-ui-canvas-line, #0f0);\n border-radius: 2px;\n pointer-events: none;\n z-index: 20;\n overflow: hidden;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);\n }\n ");
85
+ document.head.appendChild(style);
86
+ };
87
+ /** Whether the loupe stylesheet has been injected into `document.head`. */
88
+ AcEdSnapLoupe.stylesInjected = false;
89
+ return AcEdSnapLoupe;
90
+ }());
91
+ export { AcEdSnapLoupe };
92
+ /**
93
+ * World box around a canvas sample that fills the loupe at {@link ACED_SNAP_LOUPE_ZOOM}.
94
+ *
95
+ * @param view - View used to convert canvas samples to world coordinates.
96
+ * @param canvasX - Sample X in canvas CSS pixels (loupe center).
97
+ * @param canvasY - Sample Y in canvas CSS pixels (loupe center).
98
+ * @returns Axis-aligned world box mapped onto the square loupe.
99
+ */
100
+ export function acedLoupeViewBoxFromCanvasSample(view, canvasX, canvasY) {
101
+ var half = ACED_SNAP_LOUPE_SIZE_PX / ACED_SNAP_LOUPE_ZOOM / 2;
102
+ var p1 = view.screenToWorld({ x: canvasX - half, y: canvasY - half });
103
+ var p2 = view.screenToWorld({ x: canvasX + half, y: canvasY + half });
104
+ var box = new AcGeBox2d();
105
+ box.expandByPoint(new AcGePoint2d(p1.x, p1.y));
106
+ box.expandByPoint(new AcGePoint2d(p2.x, p2.y));
107
+ return box;
108
+ }
109
+ //# sourceMappingURL=AcEdSnapLoupe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSnapLoupe.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdSnapLoupe.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,47 @@
1
+ /** Square loupe size in CSS pixels. */
2
+ export declare const ACED_SNAP_LOUPE_SIZE_PX = 128;
3
+ /** Magnification relative to the main view. */
4
+ export declare const ACED_SNAP_LOUPE_ZOOM = 3;
5
+ /** Offset of the loupe from the canvas top-left. */
6
+ export declare const ACED_SNAP_LOUPE_INSET_PX = 8;
7
+ /**
8
+ * @deprecated Prompt is no longer a top bar; kept for re-export stability.
9
+ */
10
+ export declare const ACED_SNAP_LOUPE_GAP_BELOW_PROMPT_PX = 8;
11
+ /**
12
+ * Resolves the loupe top-left in host-local CSS pixels.
13
+ *
14
+ * Session prompts live in the bottom panel, so the loupe stays at the top
15
+ * inset whether or not session chrome is active.
16
+ *
17
+ * @param _host - View / canvas container (unused; kept for call-site stability).
18
+ * @param _options - Layout hints (unused; kept for call-site stability).
19
+ * @returns Loupe `x` / `y` / `size` in host-local CSS pixels.
20
+ */
21
+ export declare function acedResolveLoupePlacement(_host: HTMLElement, _options: {
22
+ usesSessionChrome: boolean;
23
+ promptSelector?: string;
24
+ }): {
25
+ x: number;
26
+ y: number;
27
+ size: number;
28
+ };
29
+ /**
30
+ * Maps a canvas-space delta (snap − finger) into loupe-local pixels.
31
+ *
32
+ * The loupe center corresponds to the finger sample; the snap glyph is
33
+ * offset from that center by `delta * zoom`.
34
+ *
35
+ * @param dx - Canvas-space X from finger to snap (CSS pixels).
36
+ * @param dy - Canvas-space Y from finger to snap (CSS pixels).
37
+ * @param size - Loupe width/height in CSS pixels; defaults to
38
+ * {@link ACED_SNAP_LOUPE_SIZE_PX}.
39
+ * @param zoom - Magnification relative to the main view; defaults to
40
+ * {@link ACED_SNAP_LOUPE_ZOOM}.
41
+ * @returns Loupe-local coordinates with origin at the loupe top-left.
42
+ */
43
+ export declare function acedLoupeLocalFromCanvasDelta(dx: number, dy: number, size?: number, zoom?: number): {
44
+ x: number;
45
+ y: number;
46
+ };
47
+ //# sourceMappingURL=AcEdSnapLoupeMath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSnapLoupeMath.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdSnapLoupeMath.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAC1C,+CAA+C;AAC/C,eAAO,MAAM,oBAAoB,IAAI,CAAA;AACrC,oDAAoD;AACpD,eAAO,MAAM,wBAAwB,IAAI,CAAA;AACzC;;GAEG;AACH,eAAO,MAAM,mCAAmC,IAAI,CAAA;AAEpD;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE;IACR,iBAAiB,EAAE,OAAO,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GACA;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAMxC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,6BAA6B,CAC3C,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,MAAgC,EACtC,IAAI,GAAE,MAA6B,GAClC;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAK1B"}
@@ -0,0 +1,50 @@
1
+ /** Square loupe size in CSS pixels. */
2
+ export var ACED_SNAP_LOUPE_SIZE_PX = 128;
3
+ /** Magnification relative to the main view. */
4
+ export var ACED_SNAP_LOUPE_ZOOM = 3;
5
+ /** Offset of the loupe from the canvas top-left. */
6
+ export var ACED_SNAP_LOUPE_INSET_PX = 8;
7
+ /**
8
+ * @deprecated Prompt is no longer a top bar; kept for re-export stability.
9
+ */
10
+ export var ACED_SNAP_LOUPE_GAP_BELOW_PROMPT_PX = 8;
11
+ /**
12
+ * Resolves the loupe top-left in host-local CSS pixels.
13
+ *
14
+ * Session prompts live in the bottom panel, so the loupe stays at the top
15
+ * inset whether or not session chrome is active.
16
+ *
17
+ * @param _host - View / canvas container (unused; kept for call-site stability).
18
+ * @param _options - Layout hints (unused; kept for call-site stability).
19
+ * @returns Loupe `x` / `y` / `size` in host-local CSS pixels.
20
+ */
21
+ export function acedResolveLoupePlacement(_host, _options) {
22
+ return {
23
+ x: ACED_SNAP_LOUPE_INSET_PX,
24
+ y: ACED_SNAP_LOUPE_INSET_PX,
25
+ size: ACED_SNAP_LOUPE_SIZE_PX
26
+ };
27
+ }
28
+ /**
29
+ * Maps a canvas-space delta (snap − finger) into loupe-local pixels.
30
+ *
31
+ * The loupe center corresponds to the finger sample; the snap glyph is
32
+ * offset from that center by `delta * zoom`.
33
+ *
34
+ * @param dx - Canvas-space X from finger to snap (CSS pixels).
35
+ * @param dy - Canvas-space Y from finger to snap (CSS pixels).
36
+ * @param size - Loupe width/height in CSS pixels; defaults to
37
+ * {@link ACED_SNAP_LOUPE_SIZE_PX}.
38
+ * @param zoom - Magnification relative to the main view; defaults to
39
+ * {@link ACED_SNAP_LOUPE_ZOOM}.
40
+ * @returns Loupe-local coordinates with origin at the loupe top-left.
41
+ */
42
+ export function acedLoupeLocalFromCanvasDelta(dx, dy, size, zoom) {
43
+ if (size === void 0) { size = ACED_SNAP_LOUPE_SIZE_PX; }
44
+ if (zoom === void 0) { zoom = ACED_SNAP_LOUPE_ZOOM; }
45
+ return {
46
+ x: size / 2 + dx * zoom,
47
+ y: size / 2 + dy * zoom
48
+ };
49
+ }
50
+ //# sourceMappingURL=AcEdSnapLoupeMath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSnapLoupeMath.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdSnapLoupeMath.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,MAAM,CAAC,IAAM,uBAAuB,GAAG,GAAG,CAAA;AAC1C,+CAA+C;AAC/C,MAAM,CAAC,IAAM,oBAAoB,GAAG,CAAC,CAAA;AACrC,oDAAoD;AACpD,MAAM,CAAC,IAAM,wBAAwB,GAAG,CAAC,CAAA;AACzC;;GAEG;AACH,MAAM,CAAC,IAAM,mCAAmC,GAAG,CAAC,CAAA;AAEpD;;;;;;;;;GASG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAkB,EAClB,QAGC;IAED,OAAO;QACL,CAAC,EAAE,wBAAwB;QAC3B,CAAC,EAAE,wBAAwB;QAC3B,IAAI,EAAE,uBAAuB;KAC9B,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,6BAA6B,CAC3C,EAAU,EACV,EAAU,EACV,IAAsC,EACtC,IAAmC;IADnC,qBAAA,EAAA,8BAAsC;IACtC,qBAAA,EAAA,2BAAmC;IAEnC,OAAO;QACL,CAAC,EAAE,IAAI,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI;QACvB,CAAC,EAAE,IAAI,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI;KACxB,CAAA;AACH,CAAC"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Touch precise-pick strategies: finger loupe vs simulated mouse crosshair.
3
+ *
4
+ * Layout ({@link acedInteractionStrategy}) and pointer type remain separate
5
+ * axes. This strategy chooses how a long-press touch sample is mapped and
6
+ * which HUD chrome is shown during precise capture. The magnifier loupe is
7
+ * shown in both modes after a long press; simulated mouse only changes the
8
+ * sample offset and whether a crosshair is drawn.
9
+ */
10
+ /**
11
+ * Vertical offset (CSS px) from the finger contact to the simulated-mouse
12
+ * crosshair center. Keeps the sample above the fingertip so geometry stays
13
+ * visible while dragging.
14
+ */
15
+ export declare const ACED_SIMULATED_MOUSE_OFFSET_Y_PX = 52;
16
+ /**
17
+ * HUD operations a touch-pick strategy may drive during precise capture.
18
+ * Implemented by the active point prompt (for example {@link AcEdFloatingInput}).
19
+ */
20
+ export interface AcEdTouchPickHudHost {
21
+ /** Magnifier loupe centered on the pick sample. */
22
+ refreshSnapLoupe(clientX: number, clientY: number, snap?: {
23
+ x: number;
24
+ y: number;
25
+ type: number;
26
+ } | null): void;
27
+ /** Hides the magnifier loupe. */
28
+ hideSnapLoupe(): void;
29
+ /** Crosshair cursor at the pick sample (above the finger). */
30
+ refreshSimulatedCursor(clientX: number, clientY: number): void;
31
+ /** Hides the simulated-mouse crosshair. */
32
+ hideSimulatedCursor(): void;
33
+ }
34
+ /**
35
+ * Maps a finger sample to a pick sample and owns precise-capture chrome.
36
+ *
37
+ * Callers resolve the active strategy via {@link acedTouchPickStrategy}
38
+ * instead of branching on {@link AcApSettings.useSimulatedMouseOnTouch}.
39
+ */
40
+ export interface AcEdTouchPickStrategy {
41
+ /**
42
+ * Maps finger client coordinates to the WCS / OSNAP sample used for the
43
+ * pick. Loupe mode is identity; simulated mouse offsets upward.
44
+ */
45
+ mapFingerToSample(clientX: number, clientY: number): {
46
+ x: number;
47
+ y: number;
48
+ };
49
+ /** Shows or repositions this strategy's precise-capture HUD. */
50
+ showPreciseHud(host: AcEdTouchPickHudHost, sampleX: number, sampleY: number, snap?: {
51
+ x: number;
52
+ y: number;
53
+ type: number;
54
+ } | null): void;
55
+ /** Hides this strategy's precise-capture HUD. */
56
+ hidePreciseHud(host: AcEdTouchPickHudHost): void;
57
+ }
58
+ /**
59
+ * Classic mobile pick: sample at the finger; magnifier loupe tracks the tip.
60
+ */
61
+ export declare class AcEdLoupeTouchPickStrategy implements AcEdTouchPickStrategy {
62
+ mapFingerToSample(clientX: number, clientY: number): {
63
+ x: number;
64
+ y: number;
65
+ };
66
+ showPreciseHud(host: AcEdTouchPickHudHost, sampleX: number, sampleY: number, snap?: {
67
+ x: number;
68
+ y: number;
69
+ type: number;
70
+ } | null): void;
71
+ hidePreciseHud(host: AcEdTouchPickHudHost): void;
72
+ }
73
+ /**
74
+ * Simulated mouse: sample and crosshair sit above the finger so the tip
75
+ * does not block the geometry being snapped to. The magnifier loupe still
76
+ * tracks the (offset) sample — it does not conflict with the crosshair.
77
+ */
78
+ export declare class AcEdSimulatedMouseTouchPickStrategy implements AcEdTouchPickStrategy {
79
+ mapFingerToSample(clientX: number, clientY: number): {
80
+ x: number;
81
+ y: number;
82
+ };
83
+ showPreciseHud(host: AcEdTouchPickHudHost, sampleX: number, sampleY: number, snap?: {
84
+ x: number;
85
+ y: number;
86
+ type: number;
87
+ } | null): void;
88
+ hidePreciseHud(host: AcEdTouchPickHudHost): void;
89
+ }
90
+ /**
91
+ * Active touch precise-pick strategy from {@link AcApSettings}.
92
+ *
93
+ * Re-evaluated each call so toggling the setting mid-command applies on the
94
+ * next gesture (and the next move while a finger is still down).
95
+ */
96
+ export declare function acedTouchPickStrategy(): AcEdTouchPickStrategy;
97
+ //# sourceMappingURL=AcEdTouchPickStrategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdTouchPickStrategy.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdTouchPickStrategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAA;AAElD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,mDAAmD;IACnD,gBAAgB,CACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GACnD,IAAI,CAAA;IACP,iCAAiC;IACjC,aAAa,IAAI,IAAI,CAAA;IACrB,8DAA8D;IAC9D,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9D,2CAA2C;IAC3C,mBAAmB,IAAI,IAAI,CAAA;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3B,gEAAgE;IAChE,cAAc,CACZ,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GACnD,IAAI,CAAA;IACP,iDAAiD;IACjD,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAA;CACjD;AAED;;GAEG;AACH,qBAAa,0BAA2B,YAAW,qBAAqB;IACtE,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAI3B,cAAc,CACZ,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GACnD,IAAI;IAKP,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI;CAGjD;AAED;;;;GAIG;AACH,qBAAa,mCACX,YAAW,qBAAqB;IAEhC,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAO3B,cAAc,CACZ,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GACnD,IAAI;IAKP,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI;CAIjD;AAKD;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,qBAAqB,CAI7D"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Touch precise-pick strategies: finger loupe vs simulated mouse crosshair.
3
+ *
4
+ * Layout ({@link acedInteractionStrategy}) and pointer type remain separate
5
+ * axes. This strategy chooses how a long-press touch sample is mapped and
6
+ * which HUD chrome is shown during precise capture. The magnifier loupe is
7
+ * shown in both modes after a long press; simulated mouse only changes the
8
+ * sample offset and whether a crosshair is drawn.
9
+ */
10
+ import { AcApSettingManager } from '../../../app/AcApSettingManager';
11
+ /**
12
+ * Vertical offset (CSS px) from the finger contact to the simulated-mouse
13
+ * crosshair center. Keeps the sample above the fingertip so geometry stays
14
+ * visible while dragging.
15
+ */
16
+ export var ACED_SIMULATED_MOUSE_OFFSET_Y_PX = 52;
17
+ /**
18
+ * Classic mobile pick: sample at the finger; magnifier loupe tracks the tip.
19
+ */
20
+ var AcEdLoupeTouchPickStrategy = /** @class */ (function () {
21
+ function AcEdLoupeTouchPickStrategy() {
22
+ }
23
+ AcEdLoupeTouchPickStrategy.prototype.mapFingerToSample = function (clientX, clientY) {
24
+ return { x: clientX, y: clientY };
25
+ };
26
+ AcEdLoupeTouchPickStrategy.prototype.showPreciseHud = function (host, sampleX, sampleY, snap) {
27
+ host.hideSimulatedCursor();
28
+ host.refreshSnapLoupe(sampleX, sampleY, snap);
29
+ };
30
+ AcEdLoupeTouchPickStrategy.prototype.hidePreciseHud = function (host) {
31
+ host.hideSnapLoupe();
32
+ };
33
+ return AcEdLoupeTouchPickStrategy;
34
+ }());
35
+ export { AcEdLoupeTouchPickStrategy };
36
+ /**
37
+ * Simulated mouse: sample and crosshair sit above the finger so the tip
38
+ * does not block the geometry being snapped to. The magnifier loupe still
39
+ * tracks the (offset) sample — it does not conflict with the crosshair.
40
+ */
41
+ var AcEdSimulatedMouseTouchPickStrategy = /** @class */ (function () {
42
+ function AcEdSimulatedMouseTouchPickStrategy() {
43
+ }
44
+ AcEdSimulatedMouseTouchPickStrategy.prototype.mapFingerToSample = function (clientX, clientY) {
45
+ return {
46
+ x: clientX,
47
+ y: Math.max(0, clientY - ACED_SIMULATED_MOUSE_OFFSET_Y_PX)
48
+ };
49
+ };
50
+ AcEdSimulatedMouseTouchPickStrategy.prototype.showPreciseHud = function (host, sampleX, sampleY, snap) {
51
+ host.refreshSimulatedCursor(sampleX, sampleY);
52
+ host.refreshSnapLoupe(sampleX, sampleY, snap);
53
+ };
54
+ AcEdSimulatedMouseTouchPickStrategy.prototype.hidePreciseHud = function (host) {
55
+ host.hideSimulatedCursor();
56
+ host.hideSnapLoupe();
57
+ };
58
+ return AcEdSimulatedMouseTouchPickStrategy;
59
+ }());
60
+ export { AcEdSimulatedMouseTouchPickStrategy };
61
+ var loupeStrategy = new AcEdLoupeTouchPickStrategy();
62
+ var simulatedMouseStrategy = new AcEdSimulatedMouseTouchPickStrategy();
63
+ /**
64
+ * Active touch precise-pick strategy from {@link AcApSettings}.
65
+ *
66
+ * Re-evaluated each call so toggling the setting mid-command applies on the
67
+ * next gesture (and the next move while a finger is still down).
68
+ */
69
+ export function acedTouchPickStrategy() {
70
+ return AcApSettingManager.instance.get('useSimulatedMouseOnTouch')
71
+ ? simulatedMouseStrategy
72
+ : loupeStrategy;
73
+ }
74
+ //# sourceMappingURL=AcEdTouchPickStrategy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdTouchPickStrategy.js","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdTouchPickStrategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAEpE;;;;GAIG;AACH,MAAM,CAAC,IAAM,gCAAgC,GAAG,EAAE,CAAA;AA+ClD;;GAEG;AACH;IAAA;IAqBA,CAAC;IApBC,sDAAiB,GAAjB,UACE,OAAe,EACf,OAAe;QAEf,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAA;IACnC,CAAC;IAED,mDAAc,GAAd,UACE,IAA0B,EAC1B,OAAe,EACf,OAAe,EACf,IAAoD;QAEpD,IAAI,CAAC,mBAAmB,EAAE,CAAA;QAC1B,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IAC/C,CAAC;IAED,mDAAc,GAAd,UAAe,IAA0B;QACvC,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;IACH,iCAAC;AAAD,CAAC,AArBD,IAqBC;;AAED;;;;GAIG;AACH;IAAA;IA2BA,CAAC;IAxBC,+DAAiB,GAAjB,UACE,OAAe,EACf,OAAe;QAEf,OAAO;YACL,CAAC,EAAE,OAAO;YACV,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,gCAAgC,CAAC;SAC3D,CAAA;IACH,CAAC;IAED,4DAAc,GAAd,UACE,IAA0B,EAC1B,OAAe,EACf,OAAe,EACf,IAAoD;QAEpD,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QAC7C,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IAC/C,CAAC;IAED,4DAAc,GAAd,UAAe,IAA0B;QACvC,IAAI,CAAC,mBAAmB,EAAE,CAAA;QAC1B,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC;IACH,0CAAC;AAAD,CAAC,AA3BD,IA2BC;;AAED,IAAM,aAAa,GAAG,IAAI,0BAA0B,EAAE,CAAA;AACtD,IAAM,sBAAsB,GAAG,IAAI,mCAAmC,EAAE,CAAA;AAExE;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC,0BAA0B,CAAC;QAChE,CAAC,CAAC,sBAAsB;QACxB,CAAC,CAAC,aAAa,CAAA;AACnB,CAAC"}
@@ -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"}