@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
package/src/ui/icons.ts CHANGED
@@ -47,25 +47,56 @@ export const ICON_LAYOUT =
47
47
  export const ICON_MEASURE =
48
48
  '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M1.5 7h17v6h-17ZM4.25 7h1v2.5h-1ZM7.5 7h.75v1.5H7.5ZM10.25 7h1v2.5h-1ZM13.5 7h.75v1.5H13.5ZM16.25 7h1v2.5h-1Z"/></svg>'
49
49
 
50
- /** Measure distance icon. */
51
- export const ICON_MEASURE_DISTANCE =
52
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M3.75 9.25h12.5v1.5H3.75v-1.5ZM2.25 6.5h1.5v7h-1.5v-7ZM16.25 6.5h1.5v7h-1.5v-7Z"/></svg>'
50
+ /**
51
+ * Shared ruler strip under each measure-tool glyph.
52
+ * Tick marks are evenodd cutouts so they stay visible on light and dark toolbars.
53
+ */
54
+ const MEASURE_ICON_RULER =
55
+ '<path fill="currentColor" fill-rule="evenodd" d="M2.25 15h15.5v3.4H2.25Zm1.5 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Z"/>'
56
+
57
+ /**
58
+ * Accent for measure/markup grips and highlighted glyph parts.
59
+ *
60
+ * `--el-color-primary` is set by Element Plus in cad-viewer. cad-simple-viewer
61
+ * maps it through `--ml-ui-accent`. Exported HTML aliases both to `--mlcad-accent`.
62
+ */
63
+ const TOOL_ICON_ACCENT =
64
+ 'var(--el-color-primary, var(--ml-ui-accent, #409eff))'
65
+
66
+ /** Composes a measure-tool icon: unique glyph on top, shared ruler on the bottom. */
67
+ function measureToolIcon(glyph: string): string {
68
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${glyph}${MEASURE_ICON_RULER}</svg>`
69
+ }
70
+
71
+ /** Measure distance icon (dimension arrows over a ruler). */
72
+ export const ICON_MEASURE_DISTANCE = measureToolIcon(
73
+ `<rect fill="${TOOL_ICON_ACCENT}" x="2.9" y="2.5" width="1.25" height="8.8" rx=".2"/><rect fill="${TOOL_ICON_ACCENT}" x="15.85" y="2.5" width="1.25" height="8.8" rx=".2"/><path fill="${TOOL_ICON_ACCENT}" d="M4.4 6.9 7.2 5.05v3.7Z"/><path fill="${TOOL_ICON_ACCENT}" d="M15.6 6.9 12.8 5.05v3.7Z"/><rect fill="${TOOL_ICON_ACCENT}" x="6.7" y="6.25" width="6.6" height="1.3"/>`
74
+ )
53
75
 
54
- /** Measure angle icon. */
55
- export const ICON_MEASURE_ANGLE =
56
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><polygon fill="currentColor" points="5.74 7.13 7 9.5 4.15 7.72 3.2 7.12 3 7 7 4.5 6.17 6.05 5.67 7 5.74 7.13"/><polygon fill="currentColor" points="16 12.5 13.5 16.5 12.66 15.15 11.92 13.97 11 12.5 12 13.03 12.98 13.55 13.5 13.83 16 12.5"/><rect fill="currentColor" x="2" y="2.5" width="1" height="15"/><rect fill="currentColor" x="3" y="16.5" width="15" height="1"/><path fill="currentColor" d="M14,13c0,.18,0,.37,0,.55v0a6.82,6.82,0,0,1-.32,1.57l-.74-1.18L13,13.5c0-.14,0-.31,0-.47v0a6,6,0,0,0-6-6,6.74,6.74,0,0,0-1.26.13l-.29.07a5.61,5.61,0,0,0-1.3.52l-1-.6a7.07,7.07,0,0,1,2-.88,6.78,6.78,0,0,1,1-.19A7.7,7.7,0,0,1,7,6a7,7,0,0,1,7,7Z"/></svg>'
76
+ /** Continuous distance icon (distance glyph with an "n" badge for n segments). */
77
+ export const ICON_MEASURE_CONTINUOUS = measureToolIcon(
78
+ `<rect fill="${TOOL_ICON_ACCENT}" x="2.9" y="2.5" width="1.25" height="8.8" rx=".2"/><rect fill="${TOOL_ICON_ACCENT}" x="15.85" y="2.5" width="1.25" height="8.8" rx=".2"/><path fill="${TOOL_ICON_ACCENT}" d="M4.4 6.9 7.2 5.05v3.7Z"/><path fill="${TOOL_ICON_ACCENT}" d="M15.6 6.9 12.8 5.05v3.7Z"/><rect fill="${TOOL_ICON_ACCENT}" x="6.7" y="6.25" width="6.6" height="1.3"/><circle fill="currentColor" cx="10" cy="3.45" r="2.2"/><text x="10" y="4.42" text-anchor="middle" font-size="3.15" font-weight="700" font-family="Arial,Helvetica,sans-serif" fill="${TOOL_ICON_ACCENT}">n</text>`
79
+ )
57
80
 
58
- /** Measure area icon. */
59
- export const ICON_MEASURE_AREA =
60
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M4 4h12v12H4V4Zm1.5 1.5v9h9v-9h-9Z"/><circle fill="currentColor" cx="4" cy="4" r="1.5"/><circle fill="currentColor" cx="16" cy="4" r="1.5"/><circle fill="currentColor" cx="4" cy="16" r="1.5"/><circle fill="currentColor" cx="16" cy="16" r="1.5"/></svg>'
81
+ /** Measure angle icon (two rays and a dimension arc over a ruler). */
82
+ export const ICON_MEASURE_ANGLE = measureToolIcon(
83
+ `<g fill="none" stroke="${TOOL_ICON_ACCENT}" stroke-linejoin="miter"><path stroke-width="1.55" stroke-linecap="butt" d="M16.9 12.25H4.9L11.6 3.03"/><path stroke-width="1.7" stroke-linecap="butt" d="M11.05 12.25A6.15 6.15 0 0 0 8.51 7.27"/></g><path fill="${TOOL_ICON_ACCENT}" d="M11.05 12.25 9.85 10.55h2.4Z"/><path fill="${TOOL_ICON_ACCENT}" d="M8.51 7.27 10.46 7.39 9.23 9.09Z"/>`
84
+ )
61
85
 
62
- /** Measure arc length icon. */
63
- export const ICON_MEASURE_ARC =
64
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M2 16A10 10 0 0 0 18 16h-1.5A8.5 8.5 0 0 1 3.5 16H2Z"/><circle fill="currentColor" cx="2" cy="16" r="1.5"/><circle fill="currentColor" cx="10" cy="12.2" r="1.5"/><circle fill="currentColor" cx="18" cy="16" r="1.5"/></svg>'
86
+ /** Measure area icon (filled quarter-circle sector over a ruler). */
87
+ export const ICON_MEASURE_AREA = measureToolIcon(
88
+ `<path fill="${TOOL_ICON_ACCENT}" d="M5 12V4.2A7.8 7.8 0 0 1 12.8 12Z"/>`
89
+ )
90
+
91
+ /** Measure arc length icon (quarter-arc with grips and a right-angle vertex over a ruler). */
92
+ export const ICON_MEASURE_ARC = measureToolIcon(
93
+ `<g fill="none" stroke-linejoin="miter"><path stroke="currentColor" stroke-width="1.5" stroke-linecap="butt" d="M4.9 11.6A8.3 8.3 0 0 1 13.2 3.3"/><path stroke="currentColor" stroke-width="1.35" stroke-linecap="square" d="M10.4 11.6H13.2V8.8"/><path stroke="currentColor" stroke-width="1.35" stroke-linecap="butt" d="M13.2 11.6v1.7"/><rect stroke="${TOOL_ICON_ACCENT}" stroke-width="1.15" x="3.65" y="10.35" width="2.5" height="2.5"/><rect stroke="${TOOL_ICON_ACCENT}" stroke-width="1.15" x="11.95" y="2.05" width="2.5" height="2.5"/></g>`
94
+ )
65
95
 
66
- /** Measure point / coordinates icon. */
67
- export const ICON_MEASURE_POINT =
68
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M9.25 2h1.5v5.25H16v1.5h-5.25V16h-1.5v-7.25H4v-1.5h5.25V2Z"/><circle fill="currentColor" cx="10" cy="10" r="1.75"/></svg>'
96
+ /** Measure point / coordinates icon (axes, dashed projections, and a point over a ruler). */
97
+ export const ICON_MEASURE_POINT = measureToolIcon(
98
+ `<g fill="none" stroke="${TOOL_ICON_ACCENT}" stroke-linecap="round" stroke-linejoin="round"><path stroke-width="1.4" d="M4 4.8v7.4h7.6"/><path stroke-width="1.2" stroke-dasharray="1.7 1.2" d="M4 6.9h7M11 12.2V6.9"/></g><path fill="${TOOL_ICON_ACCENT}" d="M4 2.5 2.45 4.8h3.1ZM13.8 12.2 11.5 10.7v3Z"/><circle fill="${TOOL_ICON_ACCENT}" cx="11" cy="6.9" r="1.3"/>`
99
+ )
69
100
 
70
101
  /**
71
102
  * Clear / sweep icon (Noun Project "clear" 5576267 by Alzam).
@@ -81,31 +112,54 @@ export const ICON_CLEAR_MEASUREMENTS = ICON_CLEAR
81
112
  export const ICON_SWITCH_BG =
82
113
  '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" fill="currentColor"/><rect x="14" y="14" width="7" height="7" fill="none" stroke="currentColor" stroke-width="1"/><path d="M12 4a8 8 0 0 1 7.25 7.25" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M20.75 10 L17.25 10 L19 12.5 Z" fill="currentColor"/><path d="M12 20a8 8 0 0 1-8-8" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M6 14 L2.5 14 L4 11 Z" fill="currentColor"/></svg>'
83
114
 
115
+ /** Reading mode icon (black linework on white page; explicit #000/#fff for toolbar contrast). */
116
+ export const ICON_READING_MODE =
117
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="2.5" y="2.5" width="15" height="15" rx="1.5" fill="#fff" stroke="currentColor" stroke-width="1.2"/><g fill="none" stroke="#000" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"><path d="M5.5 6.5h4.5M5.5 10h7M5.5 13.5h9"/><path d="M13.25 6.5v4.25h-3.25"/></g></svg>'
118
+
84
119
  /** Review tools parent icon (pencil on a rounded square). */
85
120
  export const ICON_ANNOTATION =
86
121
  '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" style="fill:none"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12.4 3.25H5.5A2.25 2.25 0 0 0 3.25 5.5v9A2.25 2.25 0 0 0 5.5 16.75h9A2.25 2.25 0 0 0 16.75 14.5V8.6"/><g transform="rotate(45 13.2 6.7)"><rect x="11.7" y="1.55" width="3" height="7.45" rx="1.45"/><path d="M11.7 3.2h3"/><path d="M11.7 9 13.2 12.15 14.7 9"/><rect x="12.8" y="7.05" width="0.8" height="1.2" rx="0.4"/></g></g></svg>'
87
122
 
88
- /** Markup / revision cloud icon (copied from cad-viewer `revCloud.svg`). */
89
- export const ICON_REV_CLOUD =
90
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 40 40"><path d="M35.29108325386048,15C37.125226253860475,12.309847399999999,36.958467253860476,9.335468299999999,34.79083925386047,7.0296237C32.62321825386047,4.53162557,29.455148253860475,4.33947164,27.120786253860473,6.4531626C24.953160253860474,4.53162512,21.951835253860473,4.53162512,19.950952253860475,6.4531626C17.783325253860475,4.53162512,14.782001253860473,4.53162512,12.781115753860474,6.4531626C10.446751353860474,4.3394711,7.111944153860474,4.53162512,4.944319853860474,7.0296228C2.9434360238604738,9.335468299999999,2.7767065138604736,12.3098459,4.610849853860474,15C2.9434466638604735,17.497998000000003,2.9434466638604735,22.694155,4.610849853860474,25C2.7767063338604734,27.690151,2.9434360238604738,30.664532,5.111060153860474,32.970377C7.278683453860474,35.468374,10.446751353860474,35.660526000000004,12.781114853860474,33.546839C14.013456253860474,34.639273,15.515264253860474,35.110636,16.949504253860475,34.960924L17.384031253860474,33.278093Q15.695761253860473,33.903341,13.886703253860473,32.299662C13.250737453860474,31.735897,12.292436853860474,31.740944,11.662447253860474,32.311378000000005Q10.430524553860474,33.426844,9.001459353860474,33.325500000000005Q7.535682953860474,33.22155,6.369870153860473,31.878052C6.355376453860474,31.861349,6.3405518538604735,31.844936,6.325405153860474,31.828825Q3.8021785638604735,29.144703,5.9879074538604735,25.938877C6.383556653860474,25.358576,6.372957753860474,24.592518,5.961405753860474,24.023384Q5.026963953860474,22.731148,5.026963953860474,20.072058Q5.026963953860474,17.378647,5.997069853860474,15.925296C6.374311253860474,15.360136,6.3706860538604735,14.6225471,5.987907653860473,14.0611229Q3.8149851238604735,10.8740788,6.203129753860473,8.1219487Q7.366510153860474,6.7812542,8.914587753860474,6.6747454Q10.427746053860474,6.570639,11.662447253860474,7.6886220000000005C12.311335753860474,8.2761691,13.304180353860474,8.261601,13.935551253860474,7.655268899999999Q16.267856253860472,5.41545445,18.845364253860474,7.700341C19.495353253860472,8.2765367,20.478888253860475,8.2569213,21.105388253860475,7.6552677Q23.437688253860475,5.41545364,26.015201253860475,7.7003412C26.651166253860474,8.2641058,27.609466253860475,8.2590561,28.239455253860474,7.6886208Q29.471375253860472,6.5731552,30.900443253860473,6.6745013Q32.36622125386047,6.7784510000000004,33.532031253860474,8.1219487C33.546527253860475,8.1386516,33.56135125386047,8.1550651,33.576497253860474,8.1711793Q36.099740253860475,10.8553152,33.91402525386047,14.0611248C33.75512825386048,14.2941837,33.65797725386047,14.5637598,33.631677253860474,14.8446045Q33.79909825386048,14.8235569,33.975852253860474,14.8257475Q34.933356253860474,14.8375826,35.59989625386047,15.52399L35.66519325386047,15.591235C35.550366253860474,15.381103,35.425664253860475,15.183288,35.29108325386048,15ZM35.966336253860476,26.182783L34.676930253860476,27.463251Q35.393826253860475,29.732494,33.53202725386048,31.878052C33.517697253860476,31.894566,33.50369225386048,31.911364,33.490022253860474,31.928431Q32.454415253860475,33.221331,30.964744253860474,33.325373Q30.004237253860474,33.392458000000005,29.149894253860474,32.951971L27.929481253860473,34.163925C30.176993253860473,35.589745,33.01140925386048,35.191897999999995,34.790837253860474,32.970377C36.64204925386047,30.837021,37.033868253860476,28.496355,35.966336253860476,26.182783Z" fill="currentColor"></path><path d="M18.34860205776758,36.08124306176758L19.51047686176758,31.58106006176758C19.601237461767578,31.22952606176758,20.042625161767578,31.109528061767577,20.301013961767577,31.36614306176758L23.55426316176758,34.59704206176758C23.808096861767577,34.84913206176758,23.69668006176758,35.27922206176758,23.35186196176758,35.378357061767574L18.936737541767577,36.647640061767575C18.586058351767576,36.74845306176758,18.257926098767577,36.43245106176758,18.34860205776758,36.08124306176758ZM21.15253496176758,30.02545706176758L24.88609836176758,33.73337206176758C25.07032536176758,33.91633406176758,25.36901856176758,33.91633406176758,25.553247461767576,33.73337206176758L36.52849006176758,22.833516161767577C36.710360061767574,22.65290166176758,36.71303206176758,22.36089566176758,36.534500061767574,22.17702746176758L32.941582061767576,18.47663122176758C32.75926806176758,18.288860715767576,32.45763906176758,18.28513235576758,32.27067206176758,18.46833832176758L21.15478106176758,29.36067706176758C20.96843986176758,29.543269061767578,20.96743176176758,29.84162706176758,21.15253496176758,30.02545706176758Z" fill="currentColor"></path></svg>'
123
+ /**
124
+ * Shared callout-corner base under each markup-tool glyph
125
+ * (L-stroke with a speech-bubble notch).
126
+ */
127
+ const MARKUP_ICON_BASE =
128
+ '<path fill="none" stroke="currentColor" stroke-width="1.35" stroke-linecap="butt" stroke-linejoin="miter" d="M2.6 6.8v8.5h5.2l2.2 2.4 2.2-2.4h5.2"/>'
129
+
130
+ /** Compact pencil used beside rectangle and ellipse markup glyphs. */
131
+ const MARKUP_ICON_PENCIL =
132
+ '<g fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" transform="rotate(46 14.8 9)"><rect x="13.65" y="4.7" width="2.3" height="5.6" rx="1.05"/><path d="M13.65 10.3 14.8 12.9 15.95 10.3"/></g>'
91
133
 
92
- /** Markup rectangle icon (copied from cad-viewer `revRect.svg`). */
93
- export const ICON_REV_RECT =
94
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path d="M1.666717529296875,15.833333L1.666717529296875,4.1666666C1.666717529296875,3.24619204,2.412909569296875,2.5,3.333384129296875,2.5L16.666717529296875,2.5C17.587192529296875,2.5,18.333383529296874,3.24619204,18.333383529296874,4.1666666L18.333383529296874,9.127090500000001L17.500050529296875,8.268899000000001L17.500050529296875,4.1666666Q17.500050529296875,3.33333331,16.666717529296875,3.33333331L3.333384129296875,3.33333331Q2.500050839296875,3.33333331,2.500050839296875,4.1666666L2.500050839296875,15.833333Q2.500050839296875,16.666666,3.333384129296875,16.666666L8.404951129296876,16.666666L8.189774029296874,17.5L3.333384129296875,17.5C2.412909569296875,17.5,1.666717529296875,16.753808,1.666717529296875,15.833333ZM13.575839529296875,17.5L16.666717529296875,17.5C17.587192529296875,17.5,18.333383529296874,16.753808,18.333383529296874,15.833333L18.333383529296874,12.775434L17.500050529296875,13.602991L17.500050529296875,15.833333Q17.500050529296875,16.666666,16.666717529296875,16.666666L14.414989529296875,16.666666L13.575839529296875,17.5Z" fill="currentColor"></path><path d="M9.174291491940625,18.04064271171875L9.755228874140625,15.79055121171875C9.800609174140625,15.61478421171875,10.021303054140626,15.55478481171875,10.150497434140625,15.683092611718749L11.777121994140625,17.29854201171875C11.904038894140625,17.42458721171875,11.848330494140626,17.639632211718748,11.675921394140625,17.68919941171875L9.468359234140625,18.32384111171875C9.293019634140625,18.37424751171875,9.128953513140624,18.216246611718752,9.174291491940625,18.04064271171875ZM10.576257894140625,15.012749711718751L12.443039694140625,16.86670681171875C12.535153194140625,16.95818801171875,12.684499694140625,16.95818801171875,12.776614194140624,16.86670681171875L18.264235494140625,11.41677901171875C18.355170294140628,11.32647181171875,18.356506394140624,11.18046881171875,18.267240494140623,11.08853471171875L16.470781294140625,9.23833659271875C16.379624394140624,9.14445133871875,16.228809794140624,9.14258715871875,16.135326394140627,9.23419014371875L10.577380994140626,14.68035941171875C10.484210394140625,14.77165551171875,10.483706394140626,14.92083451171875,10.576257894140625,15.012749711718751Z" fill="currentColor"></path></svg>'
134
+ /** Composes a markup-tool icon: unique glyph on top of the shared callout base. */
135
+ function markupToolIcon(glyph: string): string {
136
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${MARKUP_ICON_BASE}${glyph}</svg>`
137
+ }
138
+
139
+ /** Markup / revision cloud icon (filled cloud over a callout base). */
140
+ export const ICON_REV_CLOUD = markupToolIcon(
141
+ '<path fill="currentColor" d="M6.4 12.2c-1.85 0-3.3-1.25-3.3-2.85 0-1.35.95-2.5 2.3-2.8.45-1.7 1.95-2.85 3.7-2.85 1.25 0 2.35.55 3.05 1.45.55-.7 1.45-1.15 2.5-1.15 1.85 0 3.25 1.3 3.25 2.95 0 .3-.05.55-.1.8 1.2.4 2.05 1.4 2.05 2.65 0 1.55-1.5 2.8-3.4 2.8H6.4Z"/>'
142
+ )
143
+
144
+ /** Markup rectangle icon (outlined rect, corner grips, and pencil over a callout base). */
145
+ export const ICON_REV_RECT = markupToolIcon(
146
+ `<rect fill="none" stroke="currentColor" stroke-width="1.35" x="5" y="2.8" width="8.2" height="7.2"/><rect fill="${TOOL_ICON_ACCENT}" x="4.2" y="2" width="2" height="2"/><rect fill="${TOOL_ICON_ACCENT}" x="12.2" y="9" width="2" height="2"/>${MARKUP_ICON_PENCIL}`
147
+ )
95
148
 
96
- /** Markup circle icon (copied from cad-viewer `revCircle.svg`). */
97
- export const ICON_REV_CIRCLE =
98
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path d="M17.366041494140624,8.13321261171875C16.667592494140624,4.38473101171875,13.396319494140625,1.66668701171875,9.583322994140625,1.66668701171875C5.211068394140625,1.66668701171875,1.666656494140625,5.21109891171875,1.666656494140625,9.58335351171875C1.6666564941406257,13.42974001171875,4.431342794140625,16.71955701171875,8.220290194140624,17.381800011718752L8.429374694140625,16.57206001171875C5.009032494140625,16.00730701171875,2.499989804140625,13.05000701171875,2.499989804140625,9.58335351171875C2.499989804140625,5.67133621171875,5.671305694140625,2.50002032171875,9.583322994140625,2.50002032171875C12.822601494140624,2.50002032171875,15.649155494140626,4.69743511171875,16.447924494140626,7.83668611171875Q16.522337494140626,7.82859321171875,16.600395494140624,7.82956071171875Q17.046328494140624,7.83507251171875,17.366041494140624,8.13321261171875Z" fill="currentColor"></path><path d="M9.174291491940625,18.04064271171875L9.755228874140625,15.79055121171875C9.800609174140625,15.61478421171875,10.021303054140626,15.55478481171875,10.150497434140625,15.683092611718749L11.777121994140625,17.29854201171875C11.904038894140625,17.42458721171875,11.848330494140626,17.639632211718748,11.675921394140625,17.68919941171875L9.468359234140625,18.32384111171875C9.293019634140625,18.37424751171875,9.128953513140624,18.216246611718752,9.174291491940625,18.04064271171875ZM10.576257894140625,15.012749711718751L12.443039694140625,16.86670681171875C12.535153194140625,16.95818801171875,12.684499694140625,16.95818801171875,12.776614194140624,16.86670681171875L18.264235494140625,11.41677901171875C18.355170294140628,11.32647181171875,18.356506394140624,11.18046881171875,18.267240494140623,11.08853471171875L16.470781294140625,9.23833659271875C16.379624394140624,9.14445133871875,16.228809794140624,9.14258715871875,16.135326394140627,9.23419014371875L10.577380994140626,14.68035941171875C10.484210394140625,14.77165551171875,10.483706394140626,14.92083451171875,10.576257894140625,15.012749711718751Z" fill="currentColor"></path></svg>'
149
+ /** Markup circle icon (outlined ellipse, quadrant grips, and pencil over a callout base). */
150
+ export const ICON_REV_CIRCLE = markupToolIcon(
151
+ `<ellipse fill="none" stroke="currentColor" stroke-width="1.35" cx="9" cy="6.6" rx="4" ry="3.6"/><rect fill="${TOOL_ICON_ACCENT}" x="8" y="2.1" width="2" height="2"/><rect fill="${TOOL_ICON_ACCENT}" x="4" y="5.6" width="2" height="2"/>${MARKUP_ICON_PENCIL}`
152
+ )
99
153
 
100
- /** Markup callout icon (Element Plus ChatLineSquare, same as cad-viewer). */
101
- export const ICON_MARKUP_CALLOUT = elementPlusIcon(
102
- 'M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z',
103
- 'M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32'
154
+ /** Markup callout / leader icon (text box and leader over a callout base). */
155
+ export const ICON_MARKUP_CALLOUT = markupToolIcon(
156
+ '<path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" d="M4.4 12.6 10.2 7"/><rect fill="currentColor" x="10.2" y="1.2" width="7.8" height="5.8" rx=".35"/>'
104
157
  )
105
158
 
106
- /** Markup text icon (capital A, same as cad-viewer `revText.svg`). */
107
- export const ICON_MARKUP_TEXT =
108
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M10 2.2 17.2 17.6h-2.8l-1.45-4.2H7.05L5.6 17.6H2.8L10 2.2Zm0 4.3L8.2 11.2h3.6L10 6.5Z"/></svg>'
159
+ /** Markup text icon (capital A over a callout base). */
160
+ export const ICON_MARKUP_TEXT = markupToolIcon(
161
+ '<path fill="currentColor" fill-rule="evenodd" d="M10 2.2 15.3 13.1h-2.2l-1.05-2.95H7.95L6.9 13.1H4.7L10 2.2Zm0 3.4-1.15 3.2h2.3L10 5.6Z"/>'
162
+ )
109
163
 
110
164
  /** Markup line icon (diagonal segment with endpoints). */
111
165
  export const ICON_MARKUP_LINE =
@@ -115,9 +169,9 @@ export const ICON_MARKUP_LINE =
115
169
  export const ICON_MARKUP_HIGHLIGHT =
116
170
  '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3" y="5.5" width="14" height="9" rx="1.5" fill="currentColor" fill-opacity="0.28" stroke="currentColor" stroke-width="1.5"/></svg>'
117
171
 
118
- /** Markup arrow icon (Element Plus Right, same as cad-viewer). */
119
- export const ICON_MARKUP_ARROW = elementPlusIcon(
120
- 'M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z'
172
+ /** Markup arrow icon (filled NE arrow over a callout base). */
173
+ export const ICON_MARKUP_ARROW = markupToolIcon(
174
+ '<g transform="rotate(-40 10 7.6)" fill="currentColor"><path d="M3.5 6.75h9V5.15L16.7 7.6 12.5 10.05V8.45h-9Z"/></g>'
121
175
  )
122
176
 
123
177
  /** Markup stamp icon (Element Plus Stamp, same as cad-viewer). */
@@ -125,9 +179,12 @@ export const ICON_MARKUP_STAMP = elementPlusIcon(
125
179
  'M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z'
126
180
  )
127
181
 
128
- /** Markup / review panel icon (copied from cad-viewer `markupPanel.svg`). */
182
+ /** Markup / review panel icon (list page with a search loupe). */
129
183
  export const ICON_MARKUP_PANEL =
130
- '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3.5" y="3" width="13" height="14" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5" /><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M3.5 6.5h13" /><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M6.5 9.5h7M6.5 12h7M6.5 14.5h4.5" /></svg>'
184
+ `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3.5" y="3" width="13" height="14" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M3.5 6.5h13"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M6.5 9.5h7M6.5 12h7M6.5 14.5h3.2"/><g fill="none" stroke="${TOOL_ICON_ACCENT}" stroke-width="1.7" stroke-linecap="round"><circle cx="14.5" cy="14.7" r="4.2"/><path d="M17.5 17.7 19.5 19.7"/></g></svg>`
185
+
186
+ /** Measurement list panel icon (same list glyph as the review panel). */
187
+ export const ICON_MEASUREMENT_PANEL = ICON_MARKUP_PANEL
131
188
 
132
189
  /**
133
190
  * Import icon (document + down arrow).
@@ -224,10 +281,21 @@ export const ICON_CHEVRON_RIGHT =
224
281
  export const ICON_CHEVRON_LEFT =
225
282
  '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M6.5 10 11 14.5V5.5L6.5 10Z"/></svg>'
226
283
 
227
- /** Restore the view captured when an HTML export first opened. */
284
+ /** Restore the view captured when a layout was first framed (ZOOM Original). */
228
285
  export const ICON_ZOOM_ORIGINAL =
229
286
  '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 2.6 18 9.8h-2.1V17h-4.4v-4.4H8.5V17H4.1V9.8H2L10 2.6Zm0 1.8L5.3 9.8V15.8h2V11.4h5.4v4.4h2V9.8L10 4.4Z"/></svg>'
230
287
 
288
+ /** Settings / gear parent icon for compact toolbars. */
289
+ export const ICON_SETTINGS =
290
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M8.08 2.1h3.84l.32 1.52a6.4 6.4 0 0 1 1.36.78l1.48-.64 1.92 1.92-.64 1.48c.3.42.54.88.78 1.36l1.52.32v3.84l-1.52.32a6.4 6.4 0 0 1-.78 1.36l.64 1.48-1.92 1.92-1.48-.64a6.4 6.4 0 0 1-1.36.78l-.32 1.52H8.08l-.32-1.52a6.4 6.4 0 0 1-1.36-.78l-1.48.64-1.92-1.92.64-1.48a6.4 6.4 0 0 1-.78-1.36L1.34 11.92V8.08l1.52-.32c.24-.48.48-.94.78-1.36l-.64-1.48 1.92-1.92 1.48.64c.42-.3.88-.54 1.36-.78L8.08 2.1ZM10 7.2A2.8 2.8 0 1 0 10 12.8 2.8 2.8 0 0 0 10 7.2Z"/></svg>'
291
+
292
+ /**
293
+ * Simulated-mouse touch pick toggle: crosshair above a touch contact so the
294
+ * fingertip does not obscure the sample point.
295
+ */
296
+ export const ICON_SIMULATED_MOUSE =
297
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2.5v6M7 5.5h6"/><circle cx="10" cy="14.5" r="3.2" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="10" cy="14.5" r="1.1" fill="currentColor"/></svg>'
298
+
231
299
  /** Show-all-layers action icon. */
232
300
  export const ICON_LAYER_ON =
233
301
  '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 3.53 16.09 6.97 10.09 10.29 4.18 7 10.09 3.56M10.09 2.4 2.17 7 3.31 7.65 10.09 11.45 17 7.62 18.17 7 10.08 2.37 10.09 2.4Z"/><path fill="currentColor" d="M10.25 14.83 18.17 10.22 17 9.57 10.22 13.57 3.32 9.59 2.17 10.22 10.25 14.83Z"/><path fill="currentColor" d="M10.25 17.63 18.17 13 17 12.37 10.22 16.37 3.32 12.38 2.17 13 10.25 17.63Z"/></svg>'
@@ -273,6 +341,32 @@ export const ICON_MARKUP_SHOW = ICON_ANNOTATION_SHOW
273
341
  /** Alias for {@link ICON_ANNOTATION_HIDE}. */
274
342
  export const ICON_MARKUP_HIDE = ICON_ANNOTATION_HIDE
275
343
 
344
+ /** Overflow / more menu icon (horizontal ellipsis). */
345
+ export const ICON_MORE =
346
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><circle cx="4" cy="10" r="1.6" fill="currentColor"/><circle cx="10" cy="10" r="1.6" fill="currentColor"/><circle cx="16" cy="10" r="1.6" fill="currentColor"/></svg>'
347
+
348
+ /** Undo (curved arrow counter-clockwise). */
349
+ export const ICON_UNDO =
350
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/></svg>'
351
+
352
+ /** Redo (curved arrow clockwise). */
353
+ export const ICON_REDO =
354
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 14 5-5-5-5"/><path d="M20 9H9.5a5.5 5.5 0 0 0 0 11H13"/></svg>'
355
+
356
+ /** Erase / delete (trash can). */
357
+ export const ICON_ERASE =
358
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M8 6V4h8v2"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M10 11v6"/><path d="M14 11v6"/></svg>'
359
+
360
+ /**
361
+ * Text height settings: capital A with a teal vertical double-headed arrow.
362
+ */
363
+ export const ICON_TEXT_HEIGHT =
364
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none"><text x="2" y="18" font-family="Georgia, Times New Roman, serif" font-size="16" font-weight="600" fill="currentColor">A</text><g stroke="#2dd4bf" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" fill="none"><path d="M18 4v16"/><path d="M15.5 6.5 18 4l2.5 2.5"/><path d="M15.5 17.5 18 20l2.5-2.5"/></g></svg>'
365
+
366
+ /** Close / cancel (X). */
367
+ export const ICON_CLOSE =
368
+ '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>'
369
+
276
370
  /**
277
371
  * Creates a DOM icon element from an SVG string, element, or factory.
278
372
  *
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbOpenDatabaseOptions.d.ts","sourceRoot":"","sources":["../../src/app/AcDbOpenDatabaseOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,+EAA+E;IAC/E,OAAO,YAAY;IACnB,oFAAoF;IACpF,KAAK,UAAU;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACnD,uBAAuB,EACvB,UAAU,CACX;IACC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAA;CAChC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbOpenDatabaseOptions.js","sourceRoot":"","sources":["../../src/app/AcDbOpenDatabaseOptions.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,+EAA+E;IAC/E,uCAAmB,CAAA;IACnB,oFAAoF;IACpF,mCAAe,CAAA;AACjB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B"}
@@ -1,81 +0,0 @@
1
- /**
2
- * Kind of drawing session served by the style overlay.
3
- *
4
- * - `'measure'` — measurement tools (distance, area, angle, arc, point)
5
- * - `'markup'` — markup drawing tools (text, line, arrow, cloud, and so on)
6
- */
7
- export type AcApDrawStyleKind = 'measure' | 'markup';
8
- /**
9
- * Maps a command global name to the draw-style overlay kind.
10
- *
11
- * @param commandName - Command global name; comparison is case-insensitive.
12
- * @returns `'measure'` or `'markup'`, or `undefined` if the command is unrelated.
13
- */
14
- export declare function acapDrawStyleKindForCommand(commandName: string | undefined): AcApDrawStyleKind | undefined;
15
- /**
16
- * Session kind for the overlay: an active draw command wins, otherwise a
17
- * selected markup or measurement keeps the toolbar available for restyling.
18
- *
19
- * Mixed markup + measurement selection matches the ribbon: neither kind owns
20
- * the session, so the overlay hides until the selection is exclusive.
21
- *
22
- * @param input - Active command kind and overlay selection flags.
23
- * @returns `'measure'` or `'markup'`, or `undefined` when the overlay should hide.
24
- */
25
- export declare function acapResolveDrawStyleKind(input: {
26
- /** Kind of the running draw command, if any. */
27
- commandKind?: AcApDrawStyleKind;
28
- /** True when a markup overlay is selected. */
29
- markupSelected?: boolean;
30
- /** True when a measurement overlay is selected. */
31
- measurementSelected?: boolean;
32
- }): AcApDrawStyleKind | undefined;
33
- /**
34
- * Tell the overlay whether this host has a command ribbon.
35
- *
36
- * Simple-ui has no ribbon and must not persist `isShowRibbon = false`,
37
- * which would leak into cad-viewer on the same origin. Pass `undefined`
38
- * to go back to the persisted setting.
39
- *
40
- * @param hasRibbon - Host ribbon presence, or `undefined` to clear.
41
- */
42
- export declare function acapSetDrawStyleHostHasRibbon(hasRibbon: boolean | undefined): void;
43
- /**
44
- * Ribbon visibility used when {@link acapShouldShowDrawStyleToolbar} omits
45
- * an explicit `showRibbon` argument.
46
- *
47
- * @returns `true` when the host ribbon is treated as visible.
48
- */
49
- export declare function acapIsDrawStyleHostRibbonVisible(): boolean;
50
- /**
51
- * Whether the overlay should be shown for the given session.
52
- *
53
- * The overlay is only needed when the host ribbon is turned off;
54
- * cad-viewer already exposes color / lineweight / font-size on the ribbon.
55
- *
56
- * @param kind - Active drawing or selection session, or `undefined` when none.
57
- * @param showRibbon - Whether the host ribbon is visible.
58
- * @returns `true` when the overlay should be displayed.
59
- */
60
- export declare function acapShouldShowDrawStyleToolbar(kind: AcApDrawStyleKind | undefined, showRibbon?: boolean): boolean;
61
- /**
62
- * Whether the draw-style overlay is currently shown.
63
- *
64
- * @returns `true` if the toolbar DOM is visible.
65
- */
66
- export declare function acapIsDrawStyleToolbarVisible(): boolean;
67
- /**
68
- * Subscribe to overlay show/hide changes (for example, to hide the filename).
69
- *
70
- * @param listener - Called with the new visibility flag.
71
- * @returns Function that removes this listener.
72
- */
73
- export declare function acapSubscribeDrawStyleToolbarVisibility(listener: (visible: boolean) => void): () => void;
74
- /**
75
- * Updates overlay visibility and notifies subscribers.
76
- *
77
- * @param visible - Whether the overlay is shown.
78
- * @internal
79
- */
80
- export declare function acapSetDrawStyleToolbarVisible(visible: boolean): void;
81
- //# sourceMappingURL=AcApDrawStyle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcApDrawStyle.d.ts","sourceRoot":"","sources":["../../src/ui/AcApDrawStyle.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,CAAA;AA+CpD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,iBAAiB,GAAG,SAAS,CAM/B;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,gDAAgD;IAChD,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,8CAA8C;IAC9C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,GAAG,iBAAiB,GAAG,SAAS,CAMhC;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,OAAO,GAAG,SAAS,GAC7B,IAAI,CAEN;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,IAAI,OAAO,CAE1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,iBAAiB,GAAG,SAAS,EACnC,UAAU,GAAE,OAA4C,GACvD,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,OAAO,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,uCAAuC,CACrD,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GACnC,MAAM,IAAI,CAKZ;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAIrE"}
@@ -1,170 +0,0 @@
1
- var __values = (this && this.__values) || function(o) {
2
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3
- if (m) return m.call(o);
4
- if (o && typeof o.length === "number") return {
5
- next: function () {
6
- if (o && i >= o.length) o = void 0;
7
- return { value: o && o[i++], done: !o };
8
- }
9
- };
10
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
11
- };
12
- import { AcApSettingManager } from '../app/AcApSettingManager';
13
- /**
14
- * Global command names that enter a measurement drawing session.
15
- */
16
- var MEASURE_DRAW_COMMANDS = new Set([
17
- 'measuredistance',
18
- 'measurearea',
19
- 'measureangle',
20
- 'measurearc',
21
- 'measurepoint'
22
- ]);
23
- /**
24
- * Global command names that enter a markup drawing session.
25
- */
26
- var MARKUP_DRAW_COMMANDS = new Set([
27
- 'markuptext',
28
- 'markupline',
29
- 'markuparrow',
30
- 'markupcloud',
31
- 'markuprect',
32
- 'markupcircle',
33
- 'markuphighlight',
34
- 'markupcallout',
35
- 'markupstamp'
36
- ]);
37
- /**
38
- * Host-level ribbon presence that does not touch persisted settings.
39
- *
40
- * `undefined` — use {@link AcApSettingManager.isShowRibbon}.
41
- * `false` — shells without a ribbon (simple-ui) always show the overlay.
42
- * `true` — force the overlay off even if the setting would show it.
43
- */
44
- var hostHasRibbon;
45
- /**
46
- * Whether the draw-style overlay is currently visible.
47
- */
48
- var toolbarVisible = false;
49
- /**
50
- * Subscribers notified when {@link acapSetDrawStyleToolbarVisible} changes.
51
- */
52
- var visibilityListeners = new Set();
53
- /**
54
- * Maps a command global name to the draw-style overlay kind.
55
- *
56
- * @param commandName - Command global name; comparison is case-insensitive.
57
- * @returns `'measure'` or `'markup'`, or `undefined` if the command is unrelated.
58
- */
59
- export function acapDrawStyleKindForCommand(commandName) {
60
- var name = commandName === null || commandName === void 0 ? void 0 : commandName.trim().toLowerCase();
61
- if (!name)
62
- return undefined;
63
- if (MEASURE_DRAW_COMMANDS.has(name))
64
- return 'measure';
65
- if (MARKUP_DRAW_COMMANDS.has(name))
66
- return 'markup';
67
- return undefined;
68
- }
69
- /**
70
- * Session kind for the overlay: an active draw command wins, otherwise a
71
- * selected markup or measurement keeps the toolbar available for restyling.
72
- *
73
- * Mixed markup + measurement selection matches the ribbon: neither kind owns
74
- * the session, so the overlay hides until the selection is exclusive.
75
- *
76
- * @param input - Active command kind and overlay selection flags.
77
- * @returns `'measure'` or `'markup'`, or `undefined` when the overlay should hide.
78
- */
79
- export function acapResolveDrawStyleKind(input) {
80
- if (input.commandKind)
81
- return input.commandKind;
82
- if (input.markupSelected && input.measurementSelected)
83
- return undefined;
84
- if (input.markupSelected)
85
- return 'markup';
86
- if (input.measurementSelected)
87
- return 'measure';
88
- return undefined;
89
- }
90
- /**
91
- * Tell the overlay whether this host has a command ribbon.
92
- *
93
- * Simple-ui has no ribbon and must not persist `isShowRibbon = false`,
94
- * which would leak into cad-viewer on the same origin. Pass `undefined`
95
- * to go back to the persisted setting.
96
- *
97
- * @param hasRibbon - Host ribbon presence, or `undefined` to clear.
98
- */
99
- export function acapSetDrawStyleHostHasRibbon(hasRibbon) {
100
- hostHasRibbon = hasRibbon;
101
- }
102
- /**
103
- * Ribbon visibility used when {@link acapShouldShowDrawStyleToolbar} omits
104
- * an explicit `showRibbon` argument.
105
- *
106
- * @returns `true` when the host ribbon is treated as visible.
107
- */
108
- export function acapIsDrawStyleHostRibbonVisible() {
109
- return hostHasRibbon !== null && hostHasRibbon !== void 0 ? hostHasRibbon : AcApSettingManager.instance.isShowRibbon;
110
- }
111
- /**
112
- * Whether the overlay should be shown for the given session.
113
- *
114
- * The overlay is only needed when the host ribbon is turned off;
115
- * cad-viewer already exposes color / lineweight / font-size on the ribbon.
116
- *
117
- * @param kind - Active drawing or selection session, or `undefined` when none.
118
- * @param showRibbon - Whether the host ribbon is visible.
119
- * @returns `true` when the overlay should be displayed.
120
- */
121
- export function acapShouldShowDrawStyleToolbar(kind, showRibbon) {
122
- if (showRibbon === void 0) { showRibbon = acapIsDrawStyleHostRibbonVisible(); }
123
- return kind != null && !showRibbon;
124
- }
125
- /**
126
- * Whether the draw-style overlay is currently shown.
127
- *
128
- * @returns `true` if the toolbar DOM is visible.
129
- */
130
- export function acapIsDrawStyleToolbarVisible() {
131
- return toolbarVisible;
132
- }
133
- /**
134
- * Subscribe to overlay show/hide changes (for example, to hide the filename).
135
- *
136
- * @param listener - Called with the new visibility flag.
137
- * @returns Function that removes this listener.
138
- */
139
- export function acapSubscribeDrawStyleToolbarVisibility(listener) {
140
- visibilityListeners.add(listener);
141
- return function () {
142
- visibilityListeners.delete(listener);
143
- };
144
- }
145
- /**
146
- * Updates overlay visibility and notifies subscribers.
147
- *
148
- * @param visible - Whether the overlay is shown.
149
- * @internal
150
- */
151
- export function acapSetDrawStyleToolbarVisible(visible) {
152
- var e_1, _a;
153
- if (toolbarVisible === visible)
154
- return;
155
- toolbarVisible = visible;
156
- try {
157
- for (var visibilityListeners_1 = __values(visibilityListeners), visibilityListeners_1_1 = visibilityListeners_1.next(); !visibilityListeners_1_1.done; visibilityListeners_1_1 = visibilityListeners_1.next()) {
158
- var listener = visibilityListeners_1_1.value;
159
- listener(visible);
160
- }
161
- }
162
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
163
- finally {
164
- try {
165
- if (visibilityListeners_1_1 && !visibilityListeners_1_1.done && (_a = visibilityListeners_1.return)) _a.call(visibilityListeners_1);
166
- }
167
- finally { if (e_1) throw e_1.error; }
168
- }
169
- }
170
- //# sourceMappingURL=AcApDrawStyle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcApDrawStyle.js","sourceRoot":"","sources":["../../src/ui/AcApDrawStyle.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAU9D;;GAEG;AACH,IAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACpC,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,YAAY;IACZ,cAAc;CACf,CAAC,CAAA;AAEF;;GAEG;AACH,IAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC;IACnC,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,aAAa;IACb,YAAY;IACZ,cAAc;IACd,iBAAiB;IACjB,eAAe;IACf,aAAa;CACd,CAAC,CAAA;AAEF;;;;;;GAMG;AACH,IAAI,aAAkC,CAAA;AAEtC;;GAEG;AACH,IAAI,cAAc,GAAG,KAAK,CAAA;AAE1B;;GAEG;AACH,IAAM,mBAAmB,GAAG,IAAI,GAAG,EAA8B,CAAA;AAEjE;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,WAA+B;IAE/B,IAAM,IAAI,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,GAAG,WAAW,EAAE,CAAA;IAC9C,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAC3B,IAAI,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IACrD,IAAI,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,QAAQ,CAAA;IACnD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAOxC;IACC,IAAI,KAAK,CAAC,WAAW;QAAE,OAAO,KAAK,CAAC,WAAW,CAAA;IAC/C,IAAI,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,mBAAmB;QAAE,OAAO,SAAS,CAAA;IACvE,IAAI,KAAK,CAAC,cAAc;QAAE,OAAO,QAAQ,CAAA;IACzC,IAAI,KAAK,CAAC,mBAAmB;QAAE,OAAO,SAAS,CAAA;IAC/C,OAAO,SAAS,CAAA;AAClB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAC3C,SAA8B;IAE9B,aAAa,GAAG,SAAS,CAAA;AAC3B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gCAAgC;IAC9C,OAAO,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,kBAAkB,CAAC,QAAQ,CAAC,YAAY,CAAA;AAClE,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,8BAA8B,CAC5C,IAAmC,EACnC,UAAwD;IAAxD,2BAAA,EAAA,aAAsB,gCAAgC,EAAE;IAExD,OAAO,IAAI,IAAI,IAAI,IAAI,CAAC,UAAU,CAAA;AACpC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,6BAA6B;IAC3C,OAAO,cAAc,CAAA;AACvB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uCAAuC,CACrD,QAAoC;IAEpC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACjC,OAAO;QACL,mBAAmB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC,CAAA;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAAC,OAAgB;;IAC7D,IAAI,cAAc,KAAK,OAAO;QAAE,OAAM;IACtC,cAAc,GAAG,OAAO,CAAA;;QACxB,KAAuB,IAAA,wBAAA,SAAA,mBAAmB,CAAA,wDAAA;YAArC,IAAM,QAAQ,gCAAA;YAAyB,QAAQ,CAAC,OAAO,CAAC,CAAA;SAAA;;;;;;;;;AAC/D,CAAC"}