@mlightcad/cad-simple-viewer 1.6.3 → 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 (657) hide show
  1. package/dist/cad-simple-viewer.js +23993 -16773
  2. package/dist/cad-simple-viewer.umd.cjs +1639 -308
  3. package/dist/mtext-renderer-worker.js +14590 -14441
  4. package/lib/app/AcApBrand.d.ts +2 -2
  5. package/lib/app/AcApBrand.d.ts.map +1 -1
  6. package/lib/app/AcApBrand.js +2 -2
  7. package/lib/app/AcApBrand.js.map +1 -1
  8. package/lib/app/AcApDocManager.d.ts +72 -10
  9. package/lib/app/AcApDocManager.d.ts.map +1 -1
  10. package/lib/app/AcApDocManager.js +153 -51
  11. package/lib/app/AcApDocManager.js.map +1 -1
  12. package/lib/app/AcApDocsUrl.d.ts +57 -0
  13. package/lib/app/AcApDocsUrl.d.ts.map +1 -0
  14. package/lib/app/AcApDocsUrl.js +76 -0
  15. package/lib/app/AcApDocsUrl.js.map +1 -0
  16. package/lib/app/AcApDocument.d.ts +1 -1
  17. package/lib/app/AcApDocument.d.ts.map +1 -1
  18. package/lib/app/AcApDocument.js.map +1 -1
  19. package/lib/app/AcApFontLoader.d.ts +6 -0
  20. package/lib/app/AcApFontLoader.d.ts.map +1 -1
  21. package/lib/app/AcApFontLoader.js +11 -0
  22. package/lib/app/AcApFontLoader.js.map +1 -1
  23. package/lib/app/{AcDbOpenDatabaseOptions.d.ts → AcApOpenDatabaseOptions.d.ts} +35 -8
  24. package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
  25. package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +1 -1
  26. package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
  27. package/lib/app/AcApOpenFileDialog.d.ts +1 -1
  28. package/lib/app/AcApSettingManager.d.ts +156 -43
  29. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  30. package/lib/app/AcApSettingManager.js +216 -66
  31. package/lib/app/AcApSettingManager.js.map +1 -1
  32. package/lib/app/index.d.ts +3 -2
  33. package/lib/app/index.d.ts.map +1 -1
  34. package/lib/app/index.js +2 -1
  35. package/lib/app/index.js.map +1 -1
  36. package/lib/command/AcApDrawOverlayInput.d.ts +6 -0
  37. package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
  38. package/lib/command/AcApDrawOverlayInput.js +64 -0
  39. package/lib/command/AcApDrawOverlayInput.js.map +1 -0
  40. package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
  41. package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
  42. package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
  43. package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
  44. package/lib/command/AcApDrawStyleSession.d.ts +20 -0
  45. package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
  46. package/lib/command/AcApDrawStyleSession.js +2 -0
  47. package/lib/command/AcApDrawStyleSession.js.map +1 -0
  48. package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
  49. package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
  50. package/lib/command/AcApInstallDrawStyleSessionAccessory.js +174 -0
  51. package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
  52. package/lib/command/AcApReadingModeCmd.d.ts +17 -0
  53. package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
  54. package/lib/command/AcApReadingModeCmd.js +82 -0
  55. package/lib/command/AcApReadingModeCmd.js.map +1 -0
  56. package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
  57. package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
  58. package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
  59. package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
  60. package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
  61. package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
  62. package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
  63. package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
  64. package/lib/command/AcApZoomCmd.d.ts +39 -1
  65. package/lib/command/AcApZoomCmd.d.ts.map +1 -1
  66. package/lib/command/AcApZoomCmd.js +70 -6
  67. package/lib/command/AcApZoomCmd.js.map +1 -1
  68. package/lib/command/draw/AcApHatchCmd.js +1 -1
  69. package/lib/command/draw/AcApHatchCmd.js.map +1 -1
  70. package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
  71. package/lib/command/draw/AcApMTextCmd.js +11 -7
  72. package/lib/command/draw/AcApMTextCmd.js.map +1 -1
  73. package/lib/command/index.d.ts +3 -0
  74. package/lib/command/index.d.ts.map +1 -1
  75. package/lib/command/index.js +3 -0
  76. package/lib/command/index.js.map +1 -1
  77. package/lib/command/markup/AcApMarkupArrowCmd.d.ts +2 -3
  78. package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
  79. package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
  80. package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
  81. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
  82. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
  83. package/lib/command/markup/AcApMarkupCalloutCmd.js +18 -12
  84. package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
  85. package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
  86. package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
  87. package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
  88. package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
  89. package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
  90. package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
  91. package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
  92. package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
  93. package/lib/command/markup/AcApMarkupCmdUtil.d.ts +7 -1
  94. package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
  95. package/lib/command/markup/AcApMarkupCmdUtil.js +10 -0
  96. package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
  97. package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
  98. package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
  99. package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
  100. package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
  101. package/lib/command/markup/AcApMarkupGeometry.d.ts +19 -2
  102. package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
  103. package/lib/command/markup/AcApMarkupGeometry.js +43 -2
  104. package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
  105. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
  106. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
  107. package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
  108. package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
  109. package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
  110. package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
  111. package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
  112. package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
  113. package/lib/command/markup/AcApMarkupPresenter.d.ts +16 -2
  114. package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
  115. package/lib/command/markup/AcApMarkupPresenter.js +66 -14
  116. package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
  117. package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
  118. package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
  119. package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
  120. package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
  121. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
  122. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
  123. package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
  124. package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
  125. package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
  126. package/lib/command/markup/AcApMarkupShapeCallout.js +12 -3
  127. package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
  128. package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
  129. package/lib/command/markup/AcApMarkupSidecar.js +39 -5
  130. package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
  131. package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
  132. package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
  133. package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
  134. package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
  135. package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
  136. package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
  137. package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
  138. package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
  139. package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
  140. package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
  141. package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
  142. package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
  143. package/lib/command/markup/AcApMarkupUtil.js +149 -34
  144. package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
  145. package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
  146. package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
  147. package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
  148. package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
  149. package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
  150. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
  151. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
  152. package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
  153. package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
  154. package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
  155. package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
  156. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
  157. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
  158. package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
  159. package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
  160. package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
  161. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
  162. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
  163. package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
  164. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
  165. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
  166. package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
  167. package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
  168. package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
  169. package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
  170. package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
  171. package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
  172. package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
  173. package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
  174. package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
  175. package/lib/command/markup/index.d.ts +2 -0
  176. package/lib/command/markup/index.d.ts.map +1 -1
  177. package/lib/command/markup/index.js +2 -0
  178. package/lib/command/markup/index.js.map +1 -1
  179. package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
  180. package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
  181. package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
  182. package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
  183. package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
  184. package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
  185. package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
  186. package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
  187. package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
  188. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
  189. package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
  190. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
  191. package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
  192. package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
  193. package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
  194. package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
  195. package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
  196. package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
  197. package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
  198. package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
  199. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
  200. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
  201. package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
  202. package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
  203. package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
  204. package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
  205. package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
  206. package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
  207. package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
  208. package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
  209. package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
  210. package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
  211. package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
  212. package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
  213. package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
  214. package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
  215. package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
  216. package/lib/command/measure/AcApMeasurementHistory.js +3 -1
  217. package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
  218. package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
  219. package/lib/command/measure/AcApMeasurementPlace.js +22 -5
  220. package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
  221. package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
  222. package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
  223. package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
  224. package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
  225. package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
  226. package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
  227. package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
  228. package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
  229. package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
  230. package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
  231. package/lib/command/measure/AcApMeasurementStore.js +277 -33
  232. package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
  233. package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
  234. package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
  235. package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
  236. package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
  237. package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
  238. package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
  239. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
  240. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
  241. package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
  242. package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
  243. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
  244. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
  245. package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
  246. package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
  247. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
  248. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
  249. package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
  250. package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
  251. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
  252. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
  253. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
  254. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
  255. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
  256. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
  257. package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
  258. package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
  259. package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
  260. package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
  261. package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
  262. package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
  263. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
  264. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
  265. package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
  266. package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
  267. package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
  268. package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
  269. package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
  270. package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
  271. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
  272. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
  273. package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
  274. package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
  275. package/lib/command/measure/entity/index.d.ts +1 -0
  276. package/lib/command/measure/entity/index.d.ts.map +1 -1
  277. package/lib/command/measure/entity/index.js +1 -0
  278. package/lib/command/measure/entity/index.js.map +1 -1
  279. package/lib/command/measure/index.d.ts +4 -0
  280. package/lib/command/measure/index.d.ts.map +1 -1
  281. package/lib/command/measure/index.js +4 -0
  282. package/lib/command/measure/index.js.map +1 -1
  283. package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
  284. package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
  285. package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
  286. package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
  287. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
  288. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
  289. package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
  290. package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
  291. package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
  292. package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
  293. package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
  294. package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
  295. package/lib/editor/command/AcEdCommand.d.ts +17 -0
  296. package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
  297. package/lib/editor/command/AcEdCommand.js +81 -1
  298. package/lib/editor/command/AcEdCommand.js.map +1 -1
  299. package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
  300. package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
  301. package/lib/editor/command/AcEdCommandStack.js +39 -3
  302. package/lib/editor/command/AcEdCommandStack.js.map +1 -1
  303. package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
  304. package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
  305. package/lib/editor/command/AcEdSessionAccessory.js +15 -0
  306. package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
  307. package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
  308. package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
  309. package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
  310. package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
  311. package/lib/editor/command/index.d.ts +4 -0
  312. package/lib/editor/command/index.d.ts.map +1 -1
  313. package/lib/editor/command/index.js +3 -0
  314. package/lib/editor/command/index.js.map +1 -1
  315. package/lib/editor/global/AcEdUiColor.d.ts +10 -0
  316. package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
  317. package/lib/editor/global/AcEdUiColor.js +14 -0
  318. package/lib/editor/global/AcEdUiColor.js.map +1 -1
  319. package/lib/editor/global/AcEdUiLayout.d.ts +102 -0
  320. package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
  321. package/lib/editor/global/AcEdUiLayout.js +137 -0
  322. package/lib/editor/global/AcEdUiLayout.js.map +1 -1
  323. package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
  324. package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
  325. package/lib/editor/global/AcEdUiTheme.js +113 -6
  326. package/lib/editor/global/AcEdUiTheme.js.map +1 -1
  327. package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
  328. package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
  329. package/lib/editor/grip/AcEdGripAppearance.js +23 -1
  330. package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
  331. package/lib/editor/grip/AcEdGripEditSession.js +2 -2
  332. package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
  333. package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
  334. package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
  335. package/lib/editor/grip/AcEdGripHandle.js +4 -13
  336. package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
  337. package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
  338. package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
  339. package/lib/editor/grip/AcEdGripManager.js +30 -14
  340. package/lib/editor/grip/AcEdGripManager.js.map +1 -1
  341. package/lib/editor/grip/index.d.ts +1 -0
  342. package/lib/editor/grip/index.d.ts.map +1 -1
  343. package/lib/editor/grip/index.js +1 -0
  344. package/lib/editor/grip/index.js.map +1 -1
  345. package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
  346. package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
  347. package/lib/editor/input/AcEdDynamicInput.js +22 -0
  348. package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
  349. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
  350. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
  351. package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
  352. package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
  353. package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
  354. package/lib/editor/input/AcEdOsnapResolver.js +216 -35
  355. package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
  356. package/lib/editor/input/AcEditor.d.ts +14 -1
  357. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  358. package/lib/editor/input/AcEditor.js +18 -2
  359. package/lib/editor/input/AcEditor.js.map +1 -1
  360. package/lib/editor/input/index.d.ts +1 -0
  361. package/lib/editor/input/index.d.ts.map +1 -1
  362. package/lib/editor/input/index.js +1 -0
  363. package/lib/editor/input/index.js.map +1 -1
  364. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
  365. package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
  366. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
  367. package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
  368. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
  369. package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
  370. package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
  371. package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
  372. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
  373. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
  374. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
  375. package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
  376. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
  377. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
  378. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
  379. package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
  380. package/lib/editor/input/ui/AcEdFloatingInput.d.ts +144 -0
  381. package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
  382. package/lib/editor/input/ui/AcEdFloatingInput.js +412 -13
  383. package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
  384. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +2 -1
  385. package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
  386. package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
  387. package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
  388. package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
  389. package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
  390. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  391. package/lib/editor/input/ui/AcEdInputManager.js +805 -164
  392. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  393. package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
  394. package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
  395. package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
  396. package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
  397. package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
  398. package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
  399. package/lib/editor/input/ui/AcEdMobileBoxGesture.js +201 -0
  400. package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
  401. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +89 -0
  402. package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
  403. package/lib/editor/input/ui/AcEdMobileCommandChrome.js +143 -0
  404. package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
  405. package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
  406. package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
  407. package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
  408. package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
  409. package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
  410. package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
  411. package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
  412. package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
  413. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +113 -0
  414. package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
  415. package/lib/editor/input/ui/AcEdSessionAccessoryController.js +295 -0
  416. package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
  417. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
  418. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
  419. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
  420. package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
  421. package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
  422. package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
  423. package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
  424. package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
  425. package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
  426. package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
  427. package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
  428. package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
  429. package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
  430. package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
  431. package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
  432. package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
  433. package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
  434. package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
  435. package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
  436. package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
  437. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
  438. package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
  439. package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
  440. package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
  441. package/lib/editor/input/ui/index.d.ts +13 -0
  442. package/lib/editor/input/ui/index.d.ts.map +1 -1
  443. package/lib/editor/input/ui/index.js +13 -0
  444. package/lib/editor/input/ui/index.js.map +1 -1
  445. package/lib/editor/view/AcEdBaseView.d.ts +132 -39
  446. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  447. package/lib/editor/view/AcEdBaseView.js +181 -40
  448. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  449. package/lib/editor/view/AcEdViewMode.d.ts +34 -0
  450. package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
  451. package/lib/editor/view/AcEdViewMode.js +35 -0
  452. package/lib/editor/view/AcEdViewMode.js.map +1 -0
  453. package/lib/editor/view/index.d.ts +1 -0
  454. package/lib/editor/view/index.d.ts.map +1 -1
  455. package/lib/editor/view/index.js +1 -0
  456. package/lib/editor/view/index.js.map +1 -1
  457. package/lib/i18n/AcApI18n.js +1 -1
  458. package/lib/i18n/AcApI18n.js.map +1 -1
  459. package/lib/i18n/ar/command.d.ts +9 -0
  460. package/lib/i18n/ar/command.d.ts.map +1 -1
  461. package/lib/i18n/ar/command.js +1 -1
  462. package/lib/i18n/ar/command.js.map +1 -1
  463. package/lib/i18n/ar/jig.d.ts +20 -0
  464. package/lib/i18n/ar/jig.d.ts.map +1 -1
  465. package/lib/i18n/ar/jig.js +14 -2
  466. package/lib/i18n/ar/jig.js.map +1 -1
  467. package/lib/i18n/ar/main.d.ts +70 -1
  468. package/lib/i18n/ar/main.d.ts.map +1 -1
  469. package/lib/i18n/ar/main.js +71 -2
  470. package/lib/i18n/ar/main.js.map +1 -1
  471. package/lib/i18n/cs/command.d.ts +6 -0
  472. package/lib/i18n/cs/command.d.ts.map +1 -1
  473. package/lib/i18n/cs/command.js +6 -0
  474. package/lib/i18n/cs/command.js.map +1 -1
  475. package/lib/i18n/cs/jig.d.ts +20 -0
  476. package/lib/i18n/cs/jig.d.ts.map +1 -1
  477. package/lib/i18n/cs/jig.js +20 -0
  478. package/lib/i18n/cs/jig.js.map +1 -1
  479. package/lib/i18n/cs/main.d.ts +70 -1
  480. package/lib/i18n/cs/main.d.ts.map +1 -1
  481. package/lib/i18n/cs/main.js +71 -2
  482. package/lib/i18n/cs/main.js.map +1 -1
  483. package/lib/i18n/en/command.d.ts +9 -0
  484. package/lib/i18n/en/command.d.ts.map +1 -1
  485. package/lib/i18n/en/command.js +9 -0
  486. package/lib/i18n/en/command.js.map +1 -1
  487. package/lib/i18n/en/jig.d.ts +20 -0
  488. package/lib/i18n/en/jig.d.ts.map +1 -1
  489. package/lib/i18n/en/jig.js +20 -0
  490. package/lib/i18n/en/jig.js.map +1 -1
  491. package/lib/i18n/en/main.d.ts +70 -1
  492. package/lib/i18n/en/main.d.ts.map +1 -1
  493. package/lib/i18n/en/main.js +71 -2
  494. package/lib/i18n/en/main.js.map +1 -1
  495. package/lib/i18n/tr/command.d.ts +6 -0
  496. package/lib/i18n/tr/command.d.ts.map +1 -1
  497. package/lib/i18n/tr/command.js +6 -0
  498. package/lib/i18n/tr/command.js.map +1 -1
  499. package/lib/i18n/tr/jig.d.ts +20 -0
  500. package/lib/i18n/tr/jig.d.ts.map +1 -1
  501. package/lib/i18n/tr/jig.js +20 -0
  502. package/lib/i18n/tr/jig.js.map +1 -1
  503. package/lib/i18n/tr/main.d.ts +70 -1
  504. package/lib/i18n/tr/main.d.ts.map +1 -1
  505. package/lib/i18n/tr/main.js +71 -2
  506. package/lib/i18n/tr/main.js.map +1 -1
  507. package/lib/i18n/zh/command.d.ts +9 -0
  508. package/lib/i18n/zh/command.d.ts.map +1 -1
  509. package/lib/i18n/zh/command.js +9 -0
  510. package/lib/i18n/zh/command.js.map +1 -1
  511. package/lib/i18n/zh/jig.d.ts +20 -0
  512. package/lib/i18n/zh/jig.d.ts.map +1 -1
  513. package/lib/i18n/zh/jig.js +20 -0
  514. package/lib/i18n/zh/jig.js.map +1 -1
  515. package/lib/i18n/zh/main.d.ts +70 -1
  516. package/lib/i18n/zh/main.d.ts.map +1 -1
  517. package/lib/i18n/zh/main.js +72 -3
  518. package/lib/i18n/zh/main.js.map +1 -1
  519. package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
  520. package/lib/spatialIndex/AcTrRBushSpatialIndex.js +11 -4
  521. package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
  522. package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
  523. package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
  524. package/lib/ui/AcUiAciColorDialog.js +91 -0
  525. package/lib/ui/AcUiAciColorDialog.js.map +1 -0
  526. package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
  527. package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
  528. package/lib/ui/AcUiAciPaletteUi.js +521 -0
  529. package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
  530. package/lib/ui/AcUiDialog.d.ts +38 -2
  531. package/lib/ui/AcUiDialog.d.ts.map +1 -1
  532. package/lib/ui/AcUiDialog.js +45 -16
  533. package/lib/ui/AcUiDialog.js.map +1 -1
  534. package/lib/ui/AcUiDrawStyle.d.ts +59 -0
  535. package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
  536. package/lib/ui/AcUiDrawStyle.js +94 -0
  537. package/lib/ui/AcUiDrawStyle.js.map +1 -0
  538. package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
  539. package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
  540. package/lib/ui/AcUiDrawStyleSessionAccessory.js +455 -0
  541. package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
  542. package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
  543. package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
  544. package/lib/ui/AcUiFullscreenPanel.js +224 -0
  545. package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
  546. package/lib/ui/AcUiHelpPanel.d.ts +49 -0
  547. package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
  548. package/lib/ui/AcUiHelpPanel.js +124 -0
  549. package/lib/ui/AcUiHelpPanel.js.map +1 -0
  550. package/lib/ui/AcUiMobileSessionPanel.d.ts +174 -0
  551. package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
  552. package/lib/ui/AcUiMobileSessionPanel.js +557 -0
  553. package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
  554. package/lib/ui/AcUiShortCutToolbar.d.ts +136 -0
  555. package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
  556. package/lib/ui/AcUiShortCutToolbar.js +250 -0
  557. package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
  558. package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
  559. package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
  560. package/lib/ui/AcUiSimpleToolbar.js +431 -0
  561. package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
  562. package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
  563. package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
  564. package/lib/ui/AcUiTextHeightDialog.js +205 -0
  565. package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
  566. package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
  567. package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
  568. package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
  569. package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
  570. package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
  571. package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
  572. package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
  573. package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
  574. package/lib/ui/icons.d.ts +54 -27
  575. package/lib/ui/icons.d.ts.map +1 -1
  576. package/lib/ui/icons.js +79 -25
  577. package/lib/ui/icons.js.map +1 -1
  578. package/lib/ui/index.d.ts +13 -2
  579. package/lib/ui/index.d.ts.map +1 -1
  580. package/lib/ui/index.js +13 -2
  581. package/lib/ui/index.js.map +1 -1
  582. package/lib/ui/touch-point-tutorial.d.ts +64 -0
  583. package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
  584. package/lib/ui/touch-point-tutorial.js +271 -0
  585. package/lib/ui/touch-point-tutorial.js.map +1 -0
  586. package/lib/ui-html-entry.d.ts +31 -0
  587. package/lib/ui-html-entry.d.ts.map +1 -0
  588. package/lib/ui-html-entry.js +23 -0
  589. package/lib/ui-html-entry.js.map +1 -0
  590. package/lib/util/AcApAciPalette.d.ts +7 -0
  591. package/lib/util/AcApAciPalette.d.ts.map +1 -0
  592. package/lib/util/AcApAciPalette.js +51 -0
  593. package/lib/util/AcApAciPalette.js.map +1 -0
  594. package/lib/util/AcApCommandUtil.d.ts +15 -0
  595. package/lib/util/AcApCommandUtil.d.ts.map +1 -0
  596. package/lib/util/AcApCommandUtil.js +38 -0
  597. package/lib/util/AcApCommandUtil.js.map +1 -0
  598. package/lib/util/AcApCssColor.d.ts +10 -0
  599. package/lib/util/AcApCssColor.d.ts.map +1 -1
  600. package/lib/util/AcApCssColor.js +52 -0
  601. package/lib/util/AcApCssColor.js.map +1 -1
  602. package/lib/util/AcApMeasurementUnits.d.ts +13 -1
  603. package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
  604. package/lib/util/AcApMeasurementUnits.js +144 -10
  605. package/lib/util/AcApMeasurementUnits.js.map +1 -1
  606. package/lib/util/AcApMeasurementUtil.d.ts +30 -9
  607. package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
  608. package/lib/util/AcApMeasurementUtil.js +70 -40
  609. package/lib/util/AcApMeasurementUtil.js.map +1 -1
  610. package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
  611. package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
  612. package/lib/util/AcApOpenFileErrorMessage.js +121 -0
  613. package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
  614. package/lib/util/index.d.ts +3 -0
  615. package/lib/util/index.d.ts.map +1 -1
  616. package/lib/util/index.js +3 -0
  617. package/lib/util/index.js.map +1 -1
  618. package/lib/view/AcApReadingMode.d.ts +52 -0
  619. package/lib/view/AcApReadingMode.d.ts.map +1 -0
  620. package/lib/view/AcApReadingMode.js +81 -0
  621. package/lib/view/AcApReadingMode.js.map +1 -0
  622. package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
  623. package/lib/view/AcEdViewKeyHandler.js +6 -1
  624. package/lib/view/AcEdViewKeyHandler.js.map +1 -1
  625. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
  626. package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
  627. package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
  628. package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
  629. package/lib/view/AcTrLayout.d.ts.map +1 -1
  630. package/lib/view/AcTrLayout.js +23 -12
  631. package/lib/view/AcTrLayout.js.map +1 -1
  632. package/lib/view/AcTrLayoutView.d.ts +25 -1
  633. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  634. package/lib/view/AcTrLayoutView.js +62 -1
  635. package/lib/view/AcTrLayoutView.js.map +1 -1
  636. package/lib/view/AcTrView2d.d.ts +35 -1
  637. package/lib/view/AcTrView2d.d.ts.map +1 -1
  638. package/lib/view/AcTrView2d.js +259 -54
  639. package/lib/view/AcTrView2d.js.map +1 -1
  640. package/lib/view/AcTrViewSessionState.d.ts +6 -0
  641. package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
  642. package/lib/view/index.d.ts +1 -0
  643. package/lib/view/index.d.ts.map +1 -1
  644. package/lib/view/index.js +1 -0
  645. package/lib/view/index.js.map +1 -1
  646. package/package.json +8 -8
  647. package/src/ui/icons.ts +131 -37
  648. package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
  649. package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
  650. package/lib/ui/AcApDrawStyle.d.ts +0 -81
  651. package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
  652. package/lib/ui/AcApDrawStyle.js +0 -170
  653. package/lib/ui/AcApDrawStyle.js.map +0 -1
  654. package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
  655. package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
  656. package/lib/ui/AcApDrawStyleToolbar.js +0 -607
  657. package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { AcUiDrawStyleSessionAccessory } from '../ui/AcUiDrawStyleSessionAccessory';
2
+ import { AcUiShortCutToolbar } from '../ui/AcUiShortCutToolbar';
3
+ import type { AcTrView2d } from '../view';
4
+ import type { AcApDrawStyleSessionInstallContext } from './AcApDrawStyleSession';
5
+ /**
6
+ * Registers draw-style controls, shortcut toolbar, and selection-driven
7
+ * shortcut embedding for a view.
8
+ *
9
+ * Idempotent: safe to call from both measure and markup command registration.
10
+ * The provider is stored on {@link AcEdBaseView.sessionProviders} under
11
+ * {@link ACED_DRAW_STYLE_SESSION_PROVIDER_ID}.
12
+ *
13
+ * @param ctx - View and command stack for this document.
14
+ * @returns The view's draw-style session accessory host.
15
+ */
16
+ export declare function acapInstallDrawStyleSessionAccessory(ctx: AcApDrawStyleSessionInstallContext): AcUiDrawStyleSessionAccessory;
17
+ /**
18
+ * Returns the draw-style session provider installed for a view, if any.
19
+ *
20
+ * @param view - View passed to {@link acapInstallDrawStyleSessionAccessory}.
21
+ * @returns The installed host, or `undefined` when not yet installed.
22
+ */
23
+ export declare function acapGetDrawStyleSessionAccessory(view: AcTrView2d): AcUiDrawStyleSessionAccessory | undefined;
24
+ /**
25
+ * Returns the shortcut toolbar installed for a view, if any.
26
+ */
27
+ export declare function acapGetShortCutToolbar(view: AcTrView2d): AcUiShortCutToolbar | undefined;
28
+ //# sourceMappingURL=AcApInstallDrawStyleSessionAccessory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApInstallDrawStyleSessionAccessory.d.ts","sourceRoot":"","sources":["../../src/command/AcApInstallDrawStyleSessionAccessory.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAEL,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAA;AAQhF;;;;;;;;;;GAUG;AACH,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,kCAAkC,GACtC,6BAA6B,CAc/B;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,UAAU,GACf,6BAA6B,GAAG,SAAS,CAI3C;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,UAAU,GACf,mBAAmB,GAAG,SAAS,CAIjC"}
@@ -0,0 +1,174 @@
1
+ import { AcApSettingManager } from '../app/AcApSettingManager';
2
+ import { ACED_DRAW_STYLE_SESSION_PROVIDER_ID } from '../editor/command/AcEdSessionAccessory';
3
+ import { acedIsMobileUiLayout } from '../editor/global/AcEdUiLayout';
4
+ import { acuiResolveDrawStyleKind, acuiShouldShowDrawStyleToolbar } from '../ui/AcUiDrawStyle';
5
+ import { AcUiDrawStyleSessionAccessory } from '../ui/AcUiDrawStyleSessionAccessory';
6
+ import { ACED_SHORTCUT_TOOLBAR_PROVIDER_ID, AcUiShortCutToolbar } from '../ui/AcUiShortCutToolbar';
7
+ import { acapDrawStyleKindForCommand } from '../util/AcApCommandUtil';
8
+ import { acapBindShortCutToolbarDocState } from './AcApShortCutToolbarDocBind';
9
+ import { getMarkupStore } from './markup/AcApMarkupStore';
10
+ import { getSelectedMeasurementId, subscribeMeasurementSelection } from './measure/AcApMeasurementStore';
11
+ /**
12
+ * Registers draw-style controls, shortcut toolbar, and selection-driven
13
+ * shortcut embedding for a view.
14
+ *
15
+ * Idempotent: safe to call from both measure and markup command registration.
16
+ * The provider is stored on {@link AcEdBaseView.sessionProviders} under
17
+ * {@link ACED_DRAW_STYLE_SESSION_PROVIDER_ID}.
18
+ *
19
+ * @param ctx - View and command stack for this document.
20
+ * @returns The view's draw-style session accessory host.
21
+ */
22
+ export function acapInstallDrawStyleSessionAccessory(ctx) {
23
+ var existing = ctx.view.sessionProviders.get(ACED_DRAW_STYLE_SESSION_PROVIDER_ID);
24
+ if (existing)
25
+ return existing;
26
+ ensureShortCutToolbar(ctx.view);
27
+ var host = new AcUiDrawStyleSessionAccessory(ctx.view);
28
+ host.setSelectionUnsubscribe(bindSelectionSessionAccessory(ctx.view, ctx.commandManager, host));
29
+ ctx.view.sessionProviders.set(ACED_DRAW_STYLE_SESSION_PROVIDER_ID, host);
30
+ return host;
31
+ }
32
+ /**
33
+ * Returns the draw-style session provider installed for a view, if any.
34
+ *
35
+ * @param view - View passed to {@link acapInstallDrawStyleSessionAccessory}.
36
+ * @returns The installed host, or `undefined` when not yet installed.
37
+ */
38
+ export function acapGetDrawStyleSessionAccessory(view) {
39
+ return view.sessionProviders.get(ACED_DRAW_STYLE_SESSION_PROVIDER_ID);
40
+ }
41
+ /**
42
+ * Returns the shortcut toolbar installed for a view, if any.
43
+ */
44
+ export function acapGetShortCutToolbar(view) {
45
+ return view.sessionProviders.get(ACED_SHORTCUT_TOOLBAR_PROVIDER_ID);
46
+ }
47
+ /**
48
+ * Ensures a shortcut toolbar exists on the view container.
49
+ */
50
+ function ensureShortCutToolbar(view) {
51
+ var existing = view.sessionProviders.get(ACED_SHORTCUT_TOOLBAR_PROVIDER_ID);
52
+ if (existing)
53
+ return existing;
54
+ var toolbar = new AcUiShortCutToolbar({ container: view.container });
55
+ var unbindDoc = acapBindShortCutToolbarDocState(toolbar);
56
+ var originalDispose = toolbar.dispose.bind(toolbar);
57
+ toolbar.dispose = function () {
58
+ unbindDoc();
59
+ originalDispose();
60
+ };
61
+ view.sessionProviders.set(ACED_SHORTCUT_TOOLBAR_PROVIDER_ID, toolbar);
62
+ return toolbar;
63
+ }
64
+ /**
65
+ * Keeps draw-style controls embedded in the shortcut toolbar.
66
+ *
67
+ * Mounts the shared draw-style controls into {@link AcUiShortCutToolbar.accessoryHost}
68
+ * when a measure/markup overlay is selected, or when a draw command is active on
69
+ * desktop layout. On mobile, an active draw command uses the session-panel slot
70
+ * instead; this binder clears the shortcut accessory in that case.
71
+ * Never uses the desktop top-center selection chrome.
72
+ *
73
+ * @param view - View whose selection accessory is updated.
74
+ * @param commandManager - Stack used to detect an active draw command.
75
+ * @param host - Draw-style controls host that builds the accessory.
76
+ * @returns Cleanup that unsubscribes stores/settings and clears the accessory.
77
+ */
78
+ function bindSelectionSessionAccessory(view, commandManager, host) {
79
+ var shortcut = ensureShortCutToolbar(view);
80
+ var selectionMounted = false;
81
+ var selectionInner = null;
82
+ var unmountSelection = function () {
83
+ if (!selectionMounted)
84
+ return;
85
+ selectionInner === null || selectionInner === void 0 ? void 0 : selectionInner.unmount();
86
+ selectionInner = null;
87
+ selectionMounted = false;
88
+ shortcut.setAccessoryActive(false);
89
+ };
90
+ var mountSelection = function () {
91
+ if (selectionMounted)
92
+ return;
93
+ selectionInner = host.createSessionAccessory();
94
+ selectionInner.mount({
95
+ host: shortcut.accessoryHost,
96
+ type: 'desktop',
97
+ view: view
98
+ });
99
+ selectionMounted = true;
100
+ shortcut.setAccessoryActive(true);
101
+ };
102
+ /** Syncs active kind and selection accessory visibility from current state. */
103
+ var sync = function () {
104
+ var _a;
105
+ var kind = resolveKind(commandManager);
106
+ host.setActiveKind(kind);
107
+ // Never use legacy desktop selection chrome.
108
+ view.selectionSessionAccessory = null;
109
+ // Prefer the shared controls slot over icon-button extensions.
110
+ shortcut.setExtensionItems([]);
111
+ var commandActive = acapDrawStyleKindForCommand((_a = commandManager.activeCommand) === null || _a === void 0 ? void 0 : _a.globalName) !=
112
+ null;
113
+ var measureSelected = getSelectedMeasurementId() != null;
114
+ var markupSelected = getMarkupStore().selectedId != null;
115
+ var selected = measureSelected || markupSelected;
116
+ // Desktop draw commands share the shortcut slot with selection styling.
117
+ // Mobile draw commands use the session panel — clear the shortcut slot so
118
+ // the shared controls row can remount there (and remount on shortcut after).
119
+ var showOnShortcut = shortcut.isVisible &&
120
+ kind != null &&
121
+ acuiShouldShowDrawStyleToolbar(kind) &&
122
+ ((commandActive && !acedIsMobileUiLayout()) ||
123
+ (!commandActive && selected));
124
+ if (showOnShortcut) {
125
+ mountSelection();
126
+ }
127
+ else {
128
+ unmountSelection();
129
+ }
130
+ };
131
+ var offMarkup = getMarkupStore().subscribe(sync);
132
+ var offMeasure = subscribeMeasurementSelection(sync);
133
+ var onSettingsModified = function (args) {
134
+ if (args.key === 'isShowRibbon' || args.key === 'isShowShortCutToolbar') {
135
+ sync();
136
+ }
137
+ };
138
+ var onCommandWillStart = function () { return sync(); };
139
+ var onCommandEnded = function () {
140
+ // `activeCommand` is cleared after `commandEnded` in runActive; defer remount.
141
+ queueMicrotask(function () { return sync(); });
142
+ };
143
+ AcApSettingManager.instance.events.modified.addEventListener(onSettingsModified);
144
+ view.editor.events.commandWillStart.addEventListener(onCommandWillStart);
145
+ view.editor.events.commandEnded.addEventListener(onCommandEnded);
146
+ sync();
147
+ return function () {
148
+ offMarkup();
149
+ offMeasure();
150
+ AcApSettingManager.instance.events.modified.removeEventListener(onSettingsModified);
151
+ view.editor.events.commandWillStart.removeEventListener(onCommandWillStart);
152
+ view.editor.events.commandEnded.removeEventListener(onCommandEnded);
153
+ unmountSelection();
154
+ shortcut.setExtensionItems([]);
155
+ if (view.selectionSessionAccessory) {
156
+ view.selectionSessionAccessory = null;
157
+ }
158
+ };
159
+ }
160
+ /**
161
+ * Resolves the draw-style session kind from the active command and overlay selection.
162
+ *
163
+ * @param commandManager - Stack whose active command may own measure/markup.
164
+ * @returns `'measure'` or `'markup'`, or `undefined` when the accessory should hide.
165
+ */
166
+ function resolveKind(commandManager) {
167
+ var _a;
168
+ return acuiResolveDrawStyleKind({
169
+ commandKind: acapDrawStyleKindForCommand((_a = commandManager.activeCommand) === null || _a === void 0 ? void 0 : _a.globalName),
170
+ markupSelected: getMarkupStore().selectedId != null,
171
+ measurementSelected: getSelectedMeasurementId() != null
172
+ });
173
+ }
174
+ //# sourceMappingURL=AcApInstallDrawStyleSessionAccessory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApInstallDrawStyleSessionAccessory.js","sourceRoot":"","sources":["../../src/command/AcApInstallDrawStyleSessionAccessory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,mCAAmC,EAEpC,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAEL,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EACL,iCAAiC,EACjC,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAA;AAGrE,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,gCAAgC,CAAA;AAEvC;;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black linework on a white canvas.
5
+ *
6
+ * Does not modify entity or layer colors in the drawing database; restore by
7
+ * running the command again.
8
+ */
9
+ export declare class AcApReadingModeCmd extends AcEdCommand {
10
+ /**
11
+ * Enables or disables reading mode on the active view.
12
+ *
13
+ * @param context - Application context containing the view.
14
+ */
15
+ execute(context: AcApContext): Promise<void>;
16
+ }
17
+ //# sourceMappingURL=AcApReadingModeCmd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApReadingModeCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApReadingModeCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGvC;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,WAAW;CAInC"}
@@ -0,0 +1,82 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ var __generator = (this && this.__generator) || function (thisArg, body) {
26
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
27
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28
+ function verb(n) { return function (v) { return step([n, v]); }; }
29
+ function step(op) {
30
+ if (f) throw new TypeError("Generator is already executing.");
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
+ if (y = 0, t) op = [op[0] & 2, t.value];
34
+ switch (op[0]) {
35
+ case 0: case 1: t = op; break;
36
+ case 4: _.label++; return { value: op[1], done: false };
37
+ case 5: _.label++; y = op[1]; op = [0]; continue;
38
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
39
+ default:
40
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
42
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
44
+ if (t[2]) _.ops.pop();
45
+ _.trys.pop(); continue;
46
+ }
47
+ op = body.call(thisArg, _);
48
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
+ }
51
+ };
52
+ import { AcEdCommand } from '../editor';
53
+ /**
54
+ * Toggles transient reading mode: black linework on a white canvas.
55
+ *
56
+ * Does not modify entity or layer colors in the drawing database; restore by
57
+ * running the command again.
58
+ */
59
+ var AcApReadingModeCmd = /** @class */ (function (_super) {
60
+ __extends(AcApReadingModeCmd, _super);
61
+ function AcApReadingModeCmd() {
62
+ return _super !== null && _super.apply(this, arguments) || this;
63
+ }
64
+ /**
65
+ * Enables or disables reading mode on the active view.
66
+ *
67
+ * @param context - Application context containing the view.
68
+ */
69
+ AcApReadingModeCmd.prototype.execute = function (context) {
70
+ return __awaiter(this, void 0, void 0, function () {
71
+ var view;
72
+ return __generator(this, function (_a) {
73
+ view = context.view;
74
+ view.toggleReadingMode();
75
+ return [2 /*return*/];
76
+ });
77
+ });
78
+ };
79
+ return AcApReadingModeCmd;
80
+ }(AcEdCommand));
81
+ export { AcApReadingModeCmd };
82
+ //# sourceMappingURL=AcApReadingModeCmd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApReadingModeCmd.js","sourceRoot":"","sources":["../../src/command/AcApReadingModeCmd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGvC;;;;;GAKG;AACH;IAAwC,sCAAW;IAAnD;;IAUA,CAAC;IATC;;;;OAIG;IACG,oCAAO,GAAb,UAAc,OAAoB;;;;gBAC1B,IAAI,GAAG,OAAO,CAAC,IAAkB,CAAA;gBACvC,IAAI,CAAC,iBAAiB,EAAE,CAAA;;;;KACzB;IACH,yBAAC;AAAD,CAAC,AAVD,CAAwC,WAAW,GAUlD"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Selection-driven color / text-height buttons mounted on the shortcut toolbar.
3
+ *
4
+ * @module AcApShortCutSelectionAccessory
5
+ * @packageDocumentation
6
+ */
7
+ import type { AcUiDrawStyleKind } from '../ui/AcUiDrawStyle';
8
+ import type { AcUiShortCutToolbar } from '../ui/AcUiShortCutToolbar';
9
+ import type { AcTrView2d } from '../view';
10
+ /**
11
+ * Builds and syncs shortcut-toolbar extension items for measure/markup selection.
12
+ */
13
+ export declare function acapBindShortCutSelectionAccessory(view: AcTrView2d, shortcut: AcUiShortCutToolbar, getKind: () => AcUiDrawStyleKind | undefined): () => void;
14
+ //# sourceMappingURL=AcApShortCutSelectionAccessory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApShortCutSelectionAccessory.d.ts","sourceRoot":"","sources":["../../src/command/AcApShortCutSelectionAccessory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAepE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAoCzC;;GAEG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,mBAAmB,EAC7B,OAAO,EAAE,MAAM,iBAAiB,GAAG,SAAS,GAC3C,MAAM,IAAI,CAkLZ"}
@@ -0,0 +1,266 @@
1
+ /**
2
+ * Selection-driven color / text-height buttons mounted on the shortcut toolbar.
3
+ *
4
+ * @module AcApShortCutSelectionAccessory
5
+ * @packageDocumentation
6
+ */
7
+ var __assign = (this && this.__assign) || function () {
8
+ __assign = Object.assign || function(t) {
9
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
10
+ s = arguments[i];
11
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
12
+ t[p] = s[p];
13
+ }
14
+ return t;
15
+ };
16
+ return __assign.apply(this, arguments);
17
+ };
18
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
19
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20
+ return new (P || (P = Promise))(function (resolve, reject) {
21
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
22
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
23
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
24
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
25
+ });
26
+ };
27
+ var __generator = (this && this.__generator) || function (thisArg, body) {
28
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
29
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
30
+ function verb(n) { return function (v) { return step([n, v]); }; }
31
+ function step(op) {
32
+ if (f) throw new TypeError("Generator is already executing.");
33
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
34
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
35
+ if (y = 0, t) op = [op[0] & 2, t.value];
36
+ switch (op[0]) {
37
+ case 0: case 1: t = op; break;
38
+ case 4: _.label++; return { value: op[1], done: false };
39
+ case 5: _.label++; y = op[1]; op = [0]; continue;
40
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
41
+ default:
42
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
43
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
44
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
45
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
46
+ if (t[2]) _.ops.pop();
47
+ _.trys.pop(); continue;
48
+ }
49
+ op = body.call(thisArg, _);
50
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
51
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
52
+ }
53
+ };
54
+ import { AcCmColor } from '@mlightcad/data-model';
55
+ import { resolveUiTheme } from '../editor/global/AcEdUiTheme';
56
+ import { AcApI18n } from '../i18n';
57
+ import { AcUiAciColorDialog } from '../ui/AcUiAciColorDialog';
58
+ import { acuiOpenTextHeightDialog, acuiResolveTextHeightDialogInitials, acuiResolveTextHeightPatch } from '../ui/AcUiTextHeightDialogHelpers';
59
+ import { ICON_TEXT_HEIGHT } from '../ui/icons';
60
+ import { acapGetMeasurementCustomTextHeightWcs, acapGetMeasurementFontSize, acapGetMeasurementTextHeightMode, acapSetMeasurementDrawColor, acapSetMeasurementTextHeight } from '../util/AcApMeasurementUtil';
61
+ import { applyMarkupStyleToSelection } from './markup/AcApMarkupPresenter';
62
+ import { getMarkupStore } from './markup/AcApMarkupStore';
63
+ import { cssToMarkupColor, getMarkupCustomTextHeightWcs, getMarkupFontSize, getMarkupTextHeightMode, markupColorToCss, setMarkupDrawColor, setMarkupTextHeight } from './markup/AcApMarkupUtil';
64
+ import { applyMeasurementStyleToSelection, getActiveMeasurementStyle, getMeasurementSnapshot, getSelectedMeasurementId } from './measure/AcApMeasurementStore';
65
+ function colorFromAci(index) {
66
+ var color = new AcCmColor();
67
+ color.colorIndex = index;
68
+ return color;
69
+ }
70
+ function createColorIcon(css) {
71
+ var wrap = document.createElement('span');
72
+ wrap.className = 'ml-ui-simple-toolbar__icon';
73
+ wrap.style.cssText =
74
+ 'display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center';
75
+ var fill = document.createElement('span');
76
+ fill.style.cssText = "display:block;width:12px;height:12px;border-radius:50%;border:1px solid #666;background:".concat(css);
77
+ wrap.appendChild(fill);
78
+ return wrap;
79
+ }
80
+ /**
81
+ * Builds and syncs shortcut-toolbar extension items for measure/markup selection.
82
+ */
83
+ export function acapBindShortCutSelectionAccessory(view, shortcut, getKind) {
84
+ var _this = this;
85
+ var colorDialogOpen = false;
86
+ var textHeightDialogOpen = false;
87
+ var sync = function () {
88
+ var kind = getKind();
89
+ if (kind == null) {
90
+ shortcut.setExtensionItems([]);
91
+ return;
92
+ }
93
+ var measureSelected = kind === 'measure' ? getSelectedMeasurementId() != null : false;
94
+ var markupSelected = kind === 'markup' ? getMarkupStore().selectedId != null : false;
95
+ if (!measureSelected && !markupSelected) {
96
+ shortcut.setExtensionItems([]);
97
+ return;
98
+ }
99
+ var colorCss = '#7b8794';
100
+ if (kind === 'measure') {
101
+ var style = getActiveMeasurementStyle();
102
+ if (style)
103
+ colorCss = "rgb(".concat(style.color.red, ",").concat(style.color.green, ",").concat(style.color.blue, ")");
104
+ }
105
+ else {
106
+ var id = getMarkupStore().selectedId;
107
+ var record = id ? getMarkupStore().get(id) : undefined;
108
+ if (record)
109
+ colorCss = record.style.color;
110
+ }
111
+ var items = [
112
+ {
113
+ id: 'selection-color',
114
+ icon: function () { return createColorIcon(colorCss); },
115
+ label: AcApI18n.t('main.drawStyle.color'),
116
+ onClick: function () {
117
+ void openColor(kind);
118
+ }
119
+ },
120
+ {
121
+ id: 'selection-text-height',
122
+ icon: ICON_TEXT_HEIGHT,
123
+ label: AcApI18n.t('main.drawStyle.fontSize'),
124
+ onClick: function () {
125
+ void openTextHeight(kind);
126
+ }
127
+ }
128
+ ];
129
+ shortcut.setExtensionItems(items);
130
+ };
131
+ var openColor = function (kind) { return __awaiter(_this, void 0, void 0, function () {
132
+ var initial, style, id, record, color_1, index, color;
133
+ return __generator(this, function (_a) {
134
+ switch (_a.label) {
135
+ case 0:
136
+ if (colorDialogOpen)
137
+ return [2 /*return*/];
138
+ colorDialogOpen = true;
139
+ _a.label = 1;
140
+ case 1:
141
+ _a.trys.push([1, , 3, 4]);
142
+ initial = null;
143
+ if (kind === 'measure') {
144
+ style = getActiveMeasurementStyle();
145
+ if ((style === null || style === void 0 ? void 0 : style.color.isByACI) && style.color.colorIndex != null) {
146
+ initial = style.color.colorIndex;
147
+ }
148
+ }
149
+ else {
150
+ id = getMarkupStore().selectedId;
151
+ record = id ? getMarkupStore().get(id) : undefined;
152
+ if (record) {
153
+ color_1 = cssToMarkupColor(record.style.color);
154
+ if (color_1.isByACI && color_1.colorIndex != null) {
155
+ initial = color_1.colorIndex;
156
+ }
157
+ }
158
+ }
159
+ return [4 /*yield*/, AcUiAciColorDialog.open({
160
+ host: view.container,
161
+ theme: resolveUiTheme(view.container),
162
+ initialIndex: initial,
163
+ labels: {
164
+ title: AcApI18n.t('main.colorPicker.title'),
165
+ close: AcApI18n.t('main.colorPicker.close'),
166
+ ok: AcApI18n.t('main.colorPicker.ok'),
167
+ cancel: AcApI18n.t('main.colorPicker.cancel'),
168
+ index: AcApI18n.t('main.colorPicker.index'),
169
+ rgb: AcApI18n.t('main.colorPicker.rgb'),
170
+ input: AcApI18n.t('main.colorPicker.input'),
171
+ inputPlaceholder: AcApI18n.t('main.colorPicker.inputPlaceholder')
172
+ }
173
+ })];
174
+ case 2:
175
+ index = _a.sent();
176
+ if (index == null)
177
+ return [2 /*return*/];
178
+ color = colorFromAci(index);
179
+ if (kind === 'measure') {
180
+ acapSetMeasurementDrawColor(color);
181
+ applyMeasurementStyleToSelection(view, { color: color });
182
+ }
183
+ else {
184
+ setMarkupDrawColor(color);
185
+ applyMarkupStyleToSelection(view, { color: markupColorToCss(color) });
186
+ }
187
+ sync();
188
+ return [3 /*break*/, 4];
189
+ case 3:
190
+ colorDialogOpen = false;
191
+ return [7 /*endfinally*/];
192
+ case 4: return [2 /*return*/];
193
+ }
194
+ });
195
+ }); };
196
+ var openTextHeight = function (kind) { return __awaiter(_this, void 0, void 0, function () {
197
+ var selectedMeasure, markupSelectedId, selectedMarkup, hasSelection, sessionMode, fontSizePx, measureId, selectedTextHeightWcs, initials, result, patch;
198
+ var _a, _b, _c, _d, _e, _f, _g, _h;
199
+ return __generator(this, function (_j) {
200
+ switch (_j.label) {
201
+ case 0:
202
+ if (textHeightDialogOpen)
203
+ return [2 /*return*/];
204
+ textHeightDialogOpen = true;
205
+ _j.label = 1;
206
+ case 1:
207
+ _j.trys.push([1, , 3, 4]);
208
+ selectedMeasure = kind === 'measure' ? getActiveMeasurementStyle() : undefined;
209
+ markupSelectedId = getMarkupStore().selectedId;
210
+ selectedMarkup = kind === 'markup' && markupSelectedId
211
+ ? getMarkupStore().get(markupSelectedId)
212
+ : undefined;
213
+ hasSelection = selectedMeasure != null || selectedMarkup != null;
214
+ sessionMode = kind === 'measure'
215
+ ? (_a = selectedMeasure === null || selectedMeasure === void 0 ? void 0 : selectedMeasure.textHeightMode) !== null && _a !== void 0 ? _a : acapGetMeasurementTextHeightMode()
216
+ : (_b = selectedMarkup === null || selectedMarkup === void 0 ? void 0 : selectedMarkup.style.textHeightMode) !== null && _b !== void 0 ? _b : getMarkupTextHeightMode();
217
+ fontSizePx = kind === 'measure'
218
+ ? (_c = selectedMeasure === null || selectedMeasure === void 0 ? void 0 : selectedMeasure.fontSize) !== null && _c !== void 0 ? _c : acapGetMeasurementFontSize()
219
+ : (_d = selectedMarkup === null || selectedMarkup === void 0 ? void 0 : selectedMarkup.style.fontSize) !== null && _d !== void 0 ? _d : getMarkupFontSize();
220
+ measureId = getSelectedMeasurementId();
221
+ selectedTextHeightWcs = kind === 'measure'
222
+ ? hasSelection
223
+ ? (_e = selectedMeasure === null || selectedMeasure === void 0 ? void 0 : selectedMeasure.textHeightWcs) !== null && _e !== void 0 ? _e : (measureId
224
+ ? (_f = getMeasurementSnapshot(measureId)) === null || _f === void 0 ? void 0 : _f.style.textHeightWcs
225
+ : undefined)
226
+ : acapGetMeasurementCustomTextHeightWcs()
227
+ : hasSelection
228
+ ? selectedMarkup === null || selectedMarkup === void 0 ? void 0 : selectedMarkup.style.textHeightWcs
229
+ : getMarkupCustomTextHeightWcs();
230
+ initials = acuiResolveTextHeightDialogInitials({
231
+ hasSelection: hasSelection,
232
+ sessionMode: sessionMode !== null && sessionMode !== void 0 ? sessionMode : 'adaptive',
233
+ fontSizePx: fontSizePx,
234
+ selectedTextHeightWcs: selectedTextHeightWcs,
235
+ view: view
236
+ });
237
+ return [4 /*yield*/, acuiOpenTextHeightDialog(__assign({ view: view }, initials))];
238
+ case 2:
239
+ result = _j.sent();
240
+ if (!result)
241
+ return [2 /*return*/];
242
+ patch = acuiResolveTextHeightPatch(view, result, initials.initialFontSizePx);
243
+ if (kind === 'measure') {
244
+ acapSetMeasurementTextHeight(patch.textHeightMode, patch.textHeightMode === 'custom'
245
+ ? ((_g = patch.textHeightWcs) !== null && _g !== void 0 ? _g : patch.fontSize)
246
+ : patch.fontSize);
247
+ applyMeasurementStyleToSelection(view, patch);
248
+ }
249
+ else {
250
+ setMarkupTextHeight(patch.textHeightMode, patch.textHeightMode === 'custom'
251
+ ? ((_h = patch.textHeightWcs) !== null && _h !== void 0 ? _h : patch.fontSize)
252
+ : patch.fontSize);
253
+ applyMarkupStyleToSelection(view, patch);
254
+ }
255
+ sync();
256
+ return [3 /*break*/, 4];
257
+ case 3:
258
+ textHeightDialogOpen = false;
259
+ return [7 /*endfinally*/];
260
+ case 4: return [2 /*return*/];
261
+ }
262
+ });
263
+ }); };
264
+ return sync;
265
+ }
266
+ //# sourceMappingURL=AcApShortCutSelectionAccessory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApShortCutSelectionAccessory.js","sourceRoot":"","sources":["../../src/command/AcApShortCutSelectionAccessory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAI7D,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACnC,0BAA0B,EAC3B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE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AAC,IAAI,EAAE,KAAK,CAAC,CAAA;oBAC1C,CAAC;oBACD,IAAI,EAAE,CAAA;;;oBAEN,oBAAoB,GAAG,KAAK,CAAA;;;;;SAE/B,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Wires {@link AcUiShortCutToolbar} to DocManager undo/selection state.
3
+ *
4
+ * Kept separate from the UI module so the offline HTML viewer-runtime can
5
+ * import {@link AcUiShortCutToolbar} without pulling DocManager / markup /
6
+ * measure into the IIFE.
7
+ *
8
+ * @module AcApShortCutToolbarDocBind
9
+ * @packageDocumentation
10
+ */
11
+ import type { AcUiShortCutToolbar } from '../ui/AcUiShortCutToolbar';
12
+ /**
13
+ * Binds document undo stack, selection, and default command actions to a
14
+ * shortcut toolbar. Safe to call after DocManager construction completes.
15
+ *
16
+ * @param toolbar - Toolbar created for a view container.
17
+ * @returns Cleanup that removes listeners.
18
+ */
19
+ export declare function acapBindShortCutToolbarDocState(toolbar: AcUiShortCutToolbar): () => void;
20
+ //# sourceMappingURL=AcApShortCutToolbarDocBind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApShortCutToolbarDocBind.d.ts","sourceRoot":"","sources":["../../src/command/AcApShortCutToolbarDocBind.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,2BAA2B,CAAA;AASlC;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,mBAAmB,GAC3B,MAAM,IAAI,CAqHZ"}