@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,82 @@
1
+ /**
2
+ * Widget mounted while a command is prompting, or while a selection-driven
3
+ * session UI is active. Desktop layouts show accessories at the top center of
4
+ * the canvas; phone/pad layouts show them at the top of the bottom session panel.
5
+ *
6
+ * Kept as a types-only module so the command layer does not import chrome DOM.
7
+ */
8
+ import type { AcEdBaseView } from '../view/AcEdBaseView';
9
+ import type { AcEdCommand } from './AcEdCommand';
10
+ /** Desktop top-center slot vs mobile session panel. */
11
+ export type AcEdSessionAccessorySlot = 'desktop' | 'mobile';
12
+ /** Arguments passed to {@link AcEdSessionAccessory.mount}. */
13
+ export interface AcEdSessionAccessoryOptions {
14
+ /** Mount row for the accessory controls. */
15
+ host: HTMLElement;
16
+ /** Which chrome slot owns {@link host}. */
17
+ type: AcEdSessionAccessorySlot;
18
+ /** View that owns the chrome / session accessory host. */
19
+ view: AcEdBaseView;
20
+ }
21
+ /**
22
+ * Mount target resolved by the view for the current layout / mobile prompt state.
23
+ */
24
+ export interface AcEdSessionAccessoryHostInfo {
25
+ /** DOM row that receives accessory controls. */
26
+ host: HTMLElement;
27
+ /** Which chrome slot owns {@link host}. */
28
+ type: AcEdSessionAccessorySlot;
29
+ }
30
+ /**
31
+ * Registry id for the draw-style session provider on a view.
32
+ *
33
+ * @see {@link AcEdDrawStyleSessionHost}
34
+ * @see {@link AcEdSessionProviderRegistry}
35
+ */
36
+ export declare const ACED_DRAW_STYLE_SESSION_PROVIDER_ID = "draw-style";
37
+ /**
38
+ * Draw-style controls provider registered under
39
+ * {@link ACED_DRAW_STYLE_SESSION_PROVIDER_ID}.
40
+ *
41
+ * Long-lived owner of color / font-size controls; mints mountable session
42
+ * accessories via {@link createSessionAccessory}.
43
+ */
44
+ export interface AcEdDrawStyleSessionHost {
45
+ /**
46
+ * Updates the active measure/markup session before controls mount.
47
+ *
48
+ * @param kind - `'measure'`, `'markup'`, or `undefined` when inactive.
49
+ */
50
+ setActiveKind(kind: 'measure' | 'markup' | undefined): void;
51
+ /** Builds the session accessory that reparents draw-style controls. */
52
+ createSessionAccessory(): AcEdSessionAccessory;
53
+ }
54
+ /**
55
+ * Session UI widget with a stable id and mount/unmount lifecycle.
56
+ */
57
+ export interface AcEdSessionAccessory {
58
+ /** Stable id so a re-show can replace rather than stack. */
59
+ id: string;
60
+ /**
61
+ * Called when the accessory slot is shown.
62
+ *
63
+ * @param options - Host element, slot type, and owning view.
64
+ */
65
+ mount(options: AcEdSessionAccessoryOptions): void;
66
+ /** Called on hide or when a different accessory replaces this one. */
67
+ unmount(): void;
68
+ }
69
+ /**
70
+ * Payload for session-accessory mount / unmount editor events.
71
+ */
72
+ export interface AcEdSessionAccessoryEventArgs {
73
+ /** Command that owns the accessory, or `null` for selection-driven mounts. */
74
+ command: AcEdCommand | null;
75
+ /** Accessory being mounted or unmounted. */
76
+ accessory: AcEdSessionAccessory;
77
+ /** Mount options; present on mount events and usually on unmount. */
78
+ options?: AcEdSessionAccessoryOptions;
79
+ /** Whether this lifecycle is driven by a command or by selection. */
80
+ source: 'command' | 'selection';
81
+ }
82
+ //# sourceMappingURL=AcEdSessionAccessory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSessionAccessory.d.ts","sourceRoot":"","sources":["../../../src/editor/command/AcEdSessionAccessory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,uDAAuD;AACvD,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE3D,8DAA8D;AAC9D,MAAM,WAAW,2BAA2B;IAC1C,4CAA4C;IAC5C,IAAI,EAAE,WAAW,CAAA;IACjB,2CAA2C;IAC3C,IAAI,EAAE,wBAAwB,CAAA;IAC9B,0DAA0D;IAC1D,IAAI,EAAE,YAAY,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,gDAAgD;IAChD,IAAI,EAAE,WAAW,CAAA;IACjB,2CAA2C;IAC3C,IAAI,EAAE,wBAAwB,CAAA;CAC/B;AAED;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,eAAe,CAAA;AAE/D;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAA;IAC3D,uEAAuE;IACvE,sBAAsB,IAAI,oBAAoB,CAAA;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,EAAE,EAAE,MAAM,CAAA;IACV;;;;OAIG;IACH,KAAK,CAAC,OAAO,EAAE,2BAA2B,GAAG,IAAI,CAAA;IACjD,sEAAsE;IACtE,OAAO,IAAI,IAAI,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,8EAA8E;IAC9E,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;IAC3B,4CAA4C;IAC5C,SAAS,EAAE,oBAAoB,CAAA;IAC/B,qEAAqE;IACrE,OAAO,CAAC,EAAE,2BAA2B,CAAA;IACrC,qEAAqE;IACrE,MAAM,EAAE,SAAS,GAAG,WAAW,CAAA;CAChC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Widget mounted while a command is prompting, or while a selection-driven
3
+ * session UI is active. Desktop layouts show accessories at the top center of
4
+ * the canvas; phone/pad layouts show them at the top of the bottom session panel.
5
+ *
6
+ * Kept as a types-only module so the command layer does not import chrome DOM.
7
+ */
8
+ /**
9
+ * Registry id for the draw-style session provider on a view.
10
+ *
11
+ * @see {@link AcEdDrawStyleSessionHost}
12
+ * @see {@link AcEdSessionProviderRegistry}
13
+ */
14
+ export var ACED_DRAW_STYLE_SESSION_PROVIDER_ID = 'draw-style';
15
+ //# sourceMappingURL=AcEdSessionAccessory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSessionAccessory.js","sourceRoot":"","sources":["../../../src/editor/command/AcEdSessionAccessory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA4BH;;;;;GAKG;AACH,MAAM,CAAC,IAAM,mCAAmC,GAAG,YAAY,CAAA"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Per-view registry of long-lived session UI providers.
3
+ *
4
+ * A provider is not a mounted {@link AcEdSessionAccessory}; it is the object
5
+ * that owns controls and can mint accessories (for example draw-style color /
6
+ * font-size UI). Multiple features register under stable string ids.
7
+ */
8
+ /**
9
+ * Map of session provider id → provider instance for one view.
10
+ */
11
+ export declare class AcEdSessionProviderRegistry {
12
+ /** Installed providers keyed by stable id. */
13
+ private readonly providers;
14
+ /**
15
+ * Registers or replaces a provider.
16
+ *
17
+ * @param id - Stable provider id (e.g. {@link ACED_DRAW_STYLE_SESSION_PROVIDER_ID}).
18
+ * @param provider - Provider instance.
19
+ */
20
+ set(id: string, provider: unknown): void;
21
+ /**
22
+ * Returns the provider for {@link id}, if registered.
23
+ *
24
+ * @param id - Stable provider id.
25
+ * @returns The provider cast to {@link T}, or `undefined`.
26
+ */
27
+ get<T>(id: string): T | undefined;
28
+ /**
29
+ * Whether a provider is registered under {@link id}.
30
+ *
31
+ * @param id - Stable provider id.
32
+ */
33
+ has(id: string): boolean;
34
+ /**
35
+ * Removes the provider registered under {@link id}.
36
+ *
37
+ * @param id - Stable provider id.
38
+ * @returns `true` when an entry was removed.
39
+ */
40
+ delete(id: string): boolean;
41
+ }
42
+ //# sourceMappingURL=AcEdSessionProviderRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSessionProviderRegistry.d.ts","sourceRoot":"","sources":["../../../src/editor/command/AcEdSessionProviderRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,qBAAa,2BAA2B;IACtC,8CAA8C;IAC9C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD;;;;;OAKG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI;IAIxC;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAIjC;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAG5B"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Per-view registry of long-lived session UI providers.
3
+ *
4
+ * A provider is not a mounted {@link AcEdSessionAccessory}; it is the object
5
+ * that owns controls and can mint accessories (for example draw-style color /
6
+ * font-size UI). Multiple features register under stable string ids.
7
+ */
8
+ /**
9
+ * Map of session provider id → provider instance for one view.
10
+ */
11
+ var AcEdSessionProviderRegistry = /** @class */ (function () {
12
+ function AcEdSessionProviderRegistry() {
13
+ /** Installed providers keyed by stable id. */
14
+ this.providers = new Map();
15
+ }
16
+ /**
17
+ * Registers or replaces a provider.
18
+ *
19
+ * @param id - Stable provider id (e.g. {@link ACED_DRAW_STYLE_SESSION_PROVIDER_ID}).
20
+ * @param provider - Provider instance.
21
+ */
22
+ AcEdSessionProviderRegistry.prototype.set = function (id, provider) {
23
+ this.providers.set(id, provider);
24
+ };
25
+ /**
26
+ * Returns the provider for {@link id}, if registered.
27
+ *
28
+ * @param id - Stable provider id.
29
+ * @returns The provider cast to {@link T}, or `undefined`.
30
+ */
31
+ AcEdSessionProviderRegistry.prototype.get = function (id) {
32
+ return this.providers.get(id);
33
+ };
34
+ /**
35
+ * Whether a provider is registered under {@link id}.
36
+ *
37
+ * @param id - Stable provider id.
38
+ */
39
+ AcEdSessionProviderRegistry.prototype.has = function (id) {
40
+ return this.providers.has(id);
41
+ };
42
+ /**
43
+ * Removes the provider registered under {@link id}.
44
+ *
45
+ * @param id - Stable provider id.
46
+ * @returns `true` when an entry was removed.
47
+ */
48
+ AcEdSessionProviderRegistry.prototype.delete = function (id) {
49
+ return this.providers.delete(id);
50
+ };
51
+ return AcEdSessionProviderRegistry;
52
+ }());
53
+ export { AcEdSessionProviderRegistry };
54
+ //# sourceMappingURL=AcEdSessionProviderRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcEdSessionProviderRegistry.js","sourceRoot":"","sources":["../../../src/editor/command/AcEdSessionProviderRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH;IAAA;QACE,8CAA8C;QAC7B,cAAS,GAAG,IAAI,GAAG,EAAmB,CAAA;IAwCzD,CAAC;IAtCC;;;;;OAKG;IACH,yCAAG,GAAH,UAAI,EAAU,EAAE,QAAiB;QAC/B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;IAClC,CAAC;IAED;;;;;OAKG;IACH,yCAAG,GAAH,UAAO,EAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAkB,CAAA;IAChD,CAAC;IAED;;;;OAIG;IACH,yCAAG,GAAH,UAAI,EAAU;QACZ,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAC/B,CAAC;IAED;;;;;OAKG;IACH,4CAAM,GAAN,UAAO,EAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAClC,CAAC;IACH,kCAAC;AAAD,CAAC,AA1CD,IA0CC"}
@@ -1,3 +1,7 @@
1
1
  export * from './AcEdCommand';
2
2
  export * from './AcEdCommandStack';
3
+ export type { AcEdDrawStyleSessionHost, AcEdSessionAccessory, AcEdSessionAccessoryEventArgs, AcEdSessionAccessoryHostInfo, AcEdSessionAccessoryOptions, AcEdSessionAccessorySlot } from './AcEdSessionAccessory';
4
+ export { ACED_DRAW_STYLE_SESSION_PROVIDER_ID } from './AcEdSessionAccessory';
5
+ export { AcEdSessionProviderRegistry } from './AcEdSessionProviderRegistry';
6
+ export { AcEdSessionAccessoryMountSkippedError } from './AcEdCommand';
3
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,YAAY,EACV,wBAAwB,EACxB,oBAAoB,EACpB,6BAA6B,EAC7B,4BAA4B,EAC5B,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,qCAAqC,EAAE,MAAM,eAAe,CAAA"}
@@ -1,3 +1,6 @@
1
1
  export * from './AcEdCommand';
2
2
  export * from './AcEdCommandStack';
3
+ export { ACED_DRAW_STYLE_SESSION_PROVIDER_ID } from './AcEdSessionAccessory';
4
+ export { AcEdSessionProviderRegistry } from './AcEdSessionProviderRegistry';
5
+ export { AcEdSessionAccessoryMountSkippedError } from './AcEdCommand';
3
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/editor/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AASlC,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,qCAAqC,EAAE,MAAM,eAAe,CAAA"}
@@ -160,6 +160,16 @@ export declare function readLayoutBackgroundColor(database: AcDbDatabase, isMode
160
160
  * @see {@link AcApSwitchBgCmd}
161
161
  */
162
162
  export declare function toggleBlackWhiteBackgroundColor(color: AcCmColor): AcCmColor;
163
+ /**
164
+ * Builds an {@link AcCmColor} for a packed 24-bit RGB layout background.
165
+ *
166
+ * Used when open options or hosts set `MODELBKCOLOR` / `PAPERBKCOLOR` from a
167
+ * numeric clear colour (e.g. `0xffffff`).
168
+ *
169
+ * @param rgb - Packed `0xRRGGBB` colour; only the low 24 bits are used.
170
+ * @returns `AcCmColor` with `ByColor` method and the given RGB.
171
+ */
172
+ export declare function layoutBackgroundColorFromRgb(rgb: number): AcCmColor;
163
173
  /**
164
174
  * Chooses a CSS cursor colour that contrasts with the canvas background.
165
175
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdUiColor.d.ts","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiColor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,8BAA8B,EAC9B,gCAAgC,EAChC,qBAAqB,EACtB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,SAAS,EAET,YAAY,EAOb,MAAM,uBAAuB,CAAA;AAE9B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,6BAA6B,CAAC,YAAY,EAAE,OAAO,GAAG,MAAM,CAE3E;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CASzD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAIpE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,OAAO,GAAG,MAAM,CAIpE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,SAAS,GAAG,SAAS,EAC5B,YAAY,EAAE,OAAO,GACpB,MAAM,CAQR;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,YAAY,EACtB,YAAY,EAAE,OAAO,GACpB,MAAM,CAOR;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAS3E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,MAAM,GACtB,OAAO,GAAG,OAAO,CAEnB"}
1
+ {"version":3,"file":"AcEdUiColor.d.ts","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiColor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roundColor(color) {
200
200
  }
201
201
  return next;
202
202
  }
203
+ /**
204
+ * Builds an {@link AcCmColor} for a packed 24-bit RGB layout background.
205
+ *
206
+ * Used when open options or hosts set `MODELBKCOLOR` / `PAPERBKCOLOR` from a
207
+ * numeric clear colour (e.g. `0xffffff`).
208
+ *
209
+ * @param rgb - Packed `0xRRGGBB` colour; only the low 24 bits are used.
210
+ * @returns `AcCmColor` with `ByColor` method and the given RGB.
211
+ */
212
+ export function layoutBackgroundColorFromRgb(rgb) {
213
+ var color = new AcCmColor(AcCmColorMethod.ByColor);
214
+ color.setRGBValue(rgb & 0xffffff);
215
+ return color;
216
+ }
203
217
  /**
204
218
  * Chooses a CSS cursor colour that contrasts with the canvas background.
205
219
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdUiColor.js","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiColor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,8BAA8B,EAC9B,gCAAgC,EAChC,qBAAqB,EACtB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,SAAS,EACT,eAAe,EAEf,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,2BAA2B,EAC3B,8BAA8B,EAC9B,qBAAqB,EACtB,MAAM,uBAAuB,CAAA;AAE9B;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,6BAA6B,CAAC,YAAqB;IACjE,OAAO,8BAA8B,CAAC,YAAY,CAAC,CAAA;AACrD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,KAAK,CAAC,CAAA;IACpB,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/B,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,GAAG,iBAAiB,CAAC,QAAQ,EAAE,CAAC,MAAM,CAC/C,MAAM,EACN,QAAQ,CACI,CAAA;IACd,OAAO,yBAAyB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;AACvD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAgB;;IAC9D,IAAM,GAAG,GAAG,MAAA,KAAK,CAAC,GAAG,mCAAI,2BAA2B,CAAA;IACpD,IAAM,IAAI,GAAG,IAAI,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;IACnD,IAAI,qBAAqB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IACtB,CAAC;SAAM,CAAC;QACN,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;IAC5B,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CAAC,GAAW;IACtD,IAAM,KAAK,GAAG,IAAI,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;IACpD,KAAK,CAAC,WAAW,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAA;IACjC,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,wBAAwB,CACtC,eAAuB;IAEvB,OAAO,qBAAqB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAA;AACnE,CAAC"}
@@ -1,7 +1,57 @@
1
+ /**
2
+ * Viewport-based UI layout detection for responsive viewer chrome.
3
+ *
4
+ * Breakpoints: phone ≤ {@link ML_UI_MOBILE_MAX_WIDTH}px, pad up to
5
+ * {@link ML_UI_COMPACT_MAX_WIDTH}px, desktop above compact max.
6
+ */
1
7
  /** Max viewport width (px) treated as mobile/narrow UI layout (phones). */
2
8
  export declare const ML_UI_MOBILE_MAX_WIDTH = 600;
3
9
  /** Media query matching {@link ML_UI_MOBILE_MAX_WIDTH}. */
4
10
  export declare const ML_UI_MOBILE_MEDIA_QUERY = "(max-width: 600px)";
11
+ /**
12
+ * Width (px) of the bottom command/session panel on pad layouts.
13
+ * Phone uses full viewport width (`left: 0; right: 0`).
14
+ *
15
+ * Keep in sync with `.ml-mobile-cmd-panel` in {@link AcUiMobileSessionPanel}.
16
+ */
17
+ export declare const ML_UI_SESSION_PANEL_WIDTH = 440;
18
+ /**
19
+ * Horizontal inset (px) so the pad session panel does not touch the
20
+ * viewport edges (`max-width: calc(100vw - inset)`).
21
+ */
22
+ export declare const ML_UI_SESSION_PANEL_INSET = 24;
23
+ /** CSS `max-width` for the pad session panel and layout-width dialogs. */
24
+ export declare const ML_UI_SESSION_PANEL_MAX_WIDTH = "calc(100vw - 24px)";
25
+ /**
26
+ * Z-index for screen-space stroke canvases (measure / markup lines, arcs,
27
+ * fills). Kept below capsule labels; see {@link ML_UI_Z_CANVAS_HTML_OVERLAY}.
28
+ *
29
+ * Must match `.ml-html-canvas` in `@mlightcad/three-renderer`.
30
+ */
31
+ export declare const ML_UI_Z_CANVAS_HTML_STROKE = 1;
32
+ /**
33
+ * Z-index for world-anchored HTML labels (CSS2D measure / markup capsules).
34
+ *
35
+ * Above stroke canvases ({@link ML_UI_Z_CANVAS_HTML_STROKE}); below command
36
+ * line, mobile chrome, draw-style toolbar, and modal dialogs.
37
+ */
38
+ export declare const ML_UI_Z_CANVAS_HTML_OVERLAY = 2;
39
+ /**
40
+ * Z-index for the desktop draw-style toolbar overlay.
41
+ *
42
+ * Above mobile command chrome (`40`); below modal dialogs (`10050`).
43
+ */
44
+ export declare const ML_UI_Z_DRAW_STYLE_TOOLBAR = 45;
45
+ /**
46
+ * Z-index for the floating shortcut toolbar (undo/redo/erase + selection extensions).
47
+ *
48
+ * Above draw-style session chrome; below modal dialogs.
49
+ */
50
+ export declare const ML_UI_Z_SHORTCUT_TOOLBAR = 46;
51
+ /**
52
+ * Z-index for the mobile entity-pick cancel button (below message / status bar).
53
+ */
54
+ export declare const ML_UI_Z_ENTITY_PICK_CANCEL = 47;
5
55
  /** Whether the current viewport matches the narrow mobile UI layout. */
6
56
  export declare function acedIsMobileUiLayout(): boolean;
7
57
  /** Max viewport width (px) for compact app-shell layout (e.g. collapsible sidebars). */
@@ -10,4 +60,56 @@ export declare const ML_UI_COMPACT_MAX_WIDTH = 960;
10
60
  export declare const ML_UI_COMPACT_MEDIA_QUERY = "(max-width: 960px)";
11
61
  /** Whether the current viewport matches the compact app-shell layout. */
12
62
  export declare function acedIsCompactUiLayout(): boolean;
63
+ /**
64
+ * Media query matching a coarse *primary* pointer (typical phones and pads).
65
+ *
66
+ * Uses `pointer`, not `any-pointer`, so a mouse-first laptop with a touch
67
+ * screen (`pointer: fine` + `any-pointer: coarse`) stays desktop.
68
+ */
69
+ export declare const ML_UI_COARSE_POINTER_MEDIA_QUERY = "(pointer: coarse)";
70
+ /**
71
+ * Whether the browser looks like a phone or pad, independent of viewport width.
72
+ *
73
+ * Covers landscape / wide tablets that exceed {@link ML_UI_COMPACT_MAX_WIDTH},
74
+ * including iPadOS which reports as Macintosh with a touch screen.
75
+ * Coarse-pointer detection uses the primary pointer only; see
76
+ * {@link ML_UI_COARSE_POINTER_MEDIA_QUERY}.
77
+ */
78
+ export declare function acedIsHandheldDevice(): boolean;
79
+ /**
80
+ * Coarse UI layout kind derived from viewport width.
81
+ *
82
+ * - `phone`: {@link ML_UI_MOBILE_MAX_WIDTH} and below
83
+ * - `pad`: between mobile and {@link ML_UI_COMPACT_MAX_WIDTH}
84
+ * - `desktop`: above compact max width
85
+ */
86
+ export type AcEdUiLayoutKind = 'phone' | 'pad' | 'desktop';
87
+ /**
88
+ * Returns the current UI layout kind from viewport width media queries.
89
+ *
90
+ * @returns `'phone'`, `'pad'`, or `'desktop'`.
91
+ */
92
+ export declare function acedGetUiLayout(): AcEdUiLayoutKind;
93
+ /**
94
+ * Whether the UI should behave as phone or pad: compact viewport, or a
95
+ * handheld / touch device at any width (including landscape).
96
+ */
97
+ export declare function acedIsMobileOrPadUi(): boolean;
98
+ /**
99
+ * Whether the desktop floating command line should be hidden.
100
+ *
101
+ * Phone layouts always hide it (commands start from the toolbar). Pad and
102
+ * other handheld UIs hide it only while an input session is active so the
103
+ * mobile command chrome can replace Enter/Esc and keyword chips.
104
+ *
105
+ * @param sessionActive - True while {@link AcEdInputManager} is acquiring input.
106
+ */
107
+ export declare function acedShouldHideDesktopCommandLine(sessionActive: boolean): boolean;
108
+ /**
109
+ * Subscribes to viewport layout-kind changes (mobile + compact media queries).
110
+ *
111
+ * @param listener - Invoked whenever {@link acedGetUiLayout} would return a new kind.
112
+ * @returns Unsubscribe function; no-op when `matchMedia` is unavailable.
113
+ */
114
+ export declare function acedSubscribeUiLayout(listener: (kind: AcEdUiLayoutKind) => void): () => void;
13
115
  //# sourceMappingURL=AcEdUiLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdUiLayout.d.ts","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiLayout.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAEzC,2DAA2D;AAC3D,eAAO,MAAM,wBAAwB,uBAA6C,CAAA;AAElF,wEAAwE;AACxE,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wFAAwF;AACxF,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAE1C,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,uBAA8C,CAAA;AAEpF,yEAAyE;AACzE,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C"}
1
+ {"version":3,"file":"AcEdUiLayout.d.ts","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiLayout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2EAA2E;AAC3E,eAAO,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AI,GACzC,MAAM,IAAI,CAuBZ"}
@@ -1,7 +1,57 @@
1
+ /**
2
+ * Viewport-based UI layout detection for responsive viewer chrome.
3
+ *
4
+ * Breakpoints: phone ≤ {@link ML_UI_MOBILE_MAX_WIDTH}px, pad up to
5
+ * {@link ML_UI_COMPACT_MAX_WIDTH}px, desktop above compact max.
6
+ */
1
7
  /** Max viewport width (px) treated as mobile/narrow UI layout (phones). */
2
8
  export var ML_UI_MOBILE_MAX_WIDTH = 600;
3
9
  /** Media query matching {@link ML_UI_MOBILE_MAX_WIDTH}. */
4
10
  export var ML_UI_MOBILE_MEDIA_QUERY = "(max-width: ".concat(ML_UI_MOBILE_MAX_WIDTH, "px)");
11
+ /**
12
+ * Width (px) of the bottom command/session panel on pad layouts.
13
+ * Phone uses full viewport width (`left: 0; right: 0`).
14
+ *
15
+ * Keep in sync with `.ml-mobile-cmd-panel` in {@link AcUiMobileSessionPanel}.
16
+ */
17
+ export var ML_UI_SESSION_PANEL_WIDTH = 440;
18
+ /**
19
+ * Horizontal inset (px) so the pad session panel does not touch the
20
+ * viewport edges (`max-width: calc(100vw - inset)`).
21
+ */
22
+ export var ML_UI_SESSION_PANEL_INSET = 24;
23
+ /** CSS `max-width` for the pad session panel and layout-width dialogs. */
24
+ export var ML_UI_SESSION_PANEL_MAX_WIDTH = "calc(100vw - ".concat(ML_UI_SESSION_PANEL_INSET, "px)");
25
+ /**
26
+ * Z-index for screen-space stroke canvases (measure / markup lines, arcs,
27
+ * fills). Kept below capsule labels; see {@link ML_UI_Z_CANVAS_HTML_OVERLAY}.
28
+ *
29
+ * Must match `.ml-html-canvas` in `@mlightcad/three-renderer`.
30
+ */
31
+ export var ML_UI_Z_CANVAS_HTML_STROKE = 1;
32
+ /**
33
+ * Z-index for world-anchored HTML labels (CSS2D measure / markup capsules).
34
+ *
35
+ * Above stroke canvases ({@link ML_UI_Z_CANVAS_HTML_STROKE}); below command
36
+ * line, mobile chrome, draw-style toolbar, and modal dialogs.
37
+ */
38
+ export var ML_UI_Z_CANVAS_HTML_OVERLAY = 2;
39
+ /**
40
+ * Z-index for the desktop draw-style toolbar overlay.
41
+ *
42
+ * Above mobile command chrome (`40`); below modal dialogs (`10050`).
43
+ */
44
+ export var ML_UI_Z_DRAW_STYLE_TOOLBAR = 45;
45
+ /**
46
+ * Z-index for the floating shortcut toolbar (undo/redo/erase + selection extensions).
47
+ *
48
+ * Above draw-style session chrome; below modal dialogs.
49
+ */
50
+ export var ML_UI_Z_SHORTCUT_TOOLBAR = 46;
51
+ /**
52
+ * Z-index for the mobile entity-pick cancel button (below message / status bar).
53
+ */
54
+ export var ML_UI_Z_ENTITY_PICK_CANCEL = 47;
5
55
  /** Whether the current viewport matches the narrow mobile UI layout. */
6
56
  export function acedIsMobileUiLayout() {
7
57
  var _a, _b;
@@ -16,4 +66,91 @@ export function acedIsCompactUiLayout() {
16
66
  var _a, _b;
17
67
  return (_b = (_a = window.matchMedia) === null || _a === void 0 ? void 0 : _a.call(window, ML_UI_COMPACT_MEDIA_QUERY).matches) !== null && _b !== void 0 ? _b : false;
18
68
  }
69
+ /**
70
+ * Media query matching a coarse *primary* pointer (typical phones and pads).
71
+ *
72
+ * Uses `pointer`, not `any-pointer`, so a mouse-first laptop with a touch
73
+ * screen (`pointer: fine` + `any-pointer: coarse`) stays desktop.
74
+ */
75
+ export var ML_UI_COARSE_POINTER_MEDIA_QUERY = '(pointer: coarse)';
76
+ var MOBILE_OR_PAD_UA = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;
77
+ /**
78
+ * Whether the browser looks like a phone or pad, independent of viewport width.
79
+ *
80
+ * Covers landscape / wide tablets that exceed {@link ML_UI_COMPACT_MAX_WIDTH},
81
+ * including iPadOS which reports as Macintosh with a touch screen.
82
+ * Coarse-pointer detection uses the primary pointer only; see
83
+ * {@link ML_UI_COARSE_POINTER_MEDIA_QUERY}.
84
+ */
85
+ export function acedIsHandheldDevice() {
86
+ var _a, _b, _c;
87
+ if (typeof navigator === 'undefined')
88
+ return false;
89
+ var nav = navigator;
90
+ if (MOBILE_OR_PAD_UA.test(nav.userAgent || ''))
91
+ return true;
92
+ if (nav.platform === 'MacIntel' && ((_a = nav.maxTouchPoints) !== null && _a !== void 0 ? _a : 0) > 1)
93
+ return true;
94
+ return (_c = (_b = window.matchMedia) === null || _b === void 0 ? void 0 : _b.call(window, ML_UI_COARSE_POINTER_MEDIA_QUERY).matches) !== null && _c !== void 0 ? _c : false;
95
+ }
96
+ /**
97
+ * Returns the current UI layout kind from viewport width media queries.
98
+ *
99
+ * @returns `'phone'`, `'pad'`, or `'desktop'`.
100
+ */
101
+ export function acedGetUiLayout() {
102
+ if (acedIsMobileUiLayout())
103
+ return 'phone';
104
+ if (acedIsCompactUiLayout())
105
+ return 'pad';
106
+ return 'desktop';
107
+ }
108
+ /**
109
+ * Whether the UI should behave as phone or pad: compact viewport, or a
110
+ * handheld / touch device at any width (including landscape).
111
+ */
112
+ export function acedIsMobileOrPadUi() {
113
+ return acedGetUiLayout() !== 'desktop' || acedIsHandheldDevice();
114
+ }
115
+ /**
116
+ * Whether the desktop floating command line should be hidden.
117
+ *
118
+ * Phone layouts always hide it (commands start from the toolbar). Pad and
119
+ * other handheld UIs hide it only while an input session is active so the
120
+ * mobile command chrome can replace Enter/Esc and keyword chips.
121
+ *
122
+ * @param sessionActive - True while {@link AcEdInputManager} is acquiring input.
123
+ */
124
+ export function acedShouldHideDesktopCommandLine(sessionActive) {
125
+ if (acedIsMobileUiLayout())
126
+ return true;
127
+ return sessionActive && acedIsMobileOrPadUi();
128
+ }
129
+ /**
130
+ * Subscribes to viewport layout-kind changes (mobile + compact media queries).
131
+ *
132
+ * @param listener - Invoked whenever {@link acedGetUiLayout} would return a new kind.
133
+ * @returns Unsubscribe function; no-op when `matchMedia` is unavailable.
134
+ */
135
+ export function acedSubscribeUiLayout(listener) {
136
+ if (typeof window.matchMedia !== 'function') {
137
+ return function () { return undefined; };
138
+ }
139
+ var mobileQuery = window.matchMedia(ML_UI_MOBILE_MEDIA_QUERY);
140
+ var compactQuery = window.matchMedia(ML_UI_COMPACT_MEDIA_QUERY);
141
+ var current = acedGetUiLayout();
142
+ var notify = function () {
143
+ var next = acedGetUiLayout();
144
+ if (next === current)
145
+ return;
146
+ current = next;
147
+ listener(next);
148
+ };
149
+ mobileQuery.addEventListener('change', notify);
150
+ compactQuery.addEventListener('change', notify);
151
+ return function () {
152
+ mobileQuery.removeEventListener('change', notify);
153
+ compactQuery.removeEventListener('change', notify);
154
+ };
155
+ }
19
156
  //# sourceMappingURL=AcEdUiLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdUiLayout.js","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiLayout.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,MAAM,CAAC,IAAM,sBAAsB,GAAG,GAAG,CAAA;AAEzC,2DAA2D;AAC3D,MAAM,CAAC,IAAM,wBAAwB,GAAG,sBAAe,sBAAsB,QAAK,CAAA;AAElF,wEAAwE;AACxE,MAAM,UAAU,oBAAoB;;IAClC,OAAO,MAAA,MAAA,MAAM,CAAC,UAAU,uDAAG,wBAAwB,EAAE,OAAO,mCAAI,KAAK,CAAA;AACvE,CAAC;AAED,wFAAwF;AACxF,MAAM,CAAC,IAAM,uBAAuB,GAAG,GAAG,CAAA;AAE1C,8DAA8D;AAC9D,MAAM,CAAC,IAAM,yBAAyB,GAAG,sBAAe,uBAAuB,QAAK,CAAA;AAEpF,yEAAyE;AACzE,MAAM,UAAU,qBAAqB;;IACnC,OAAO,MAAA,MAAA,MAAM,CAAC,UAAU,uDAAG,yBAAyB,EAAE,OAAO,mCAAI,KAAK,CAAA;AACxE,CAAC"}
1
+ {"version":3,"file":"AcEdUiLayout.js","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiLayout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2EAA2E;AAC3E,MAAM,CAAC,IAAM,sBAAsB,GAAG,GAAG,CAAA;AACzC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;IAE/B,IAAM,MAAM,GAAG;QACb,IAAM,IAAI,GAAG,eAAe,EAAE,CAAA;QAC9B,IAAI,IAAI,KAAK,OAAO;YAAE,OAAM;QAC5B,OAAO,GAAG,IAAI,CAAA;QACd,QAAQ,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC,CAAA;IAED,WAAW,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IAC9C,YAAY,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IAE/C,OAAO;QACL,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QACjD,YAAY,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IACpD,CAAC,CAAA;AACH,CAAC"}
@@ -1,15 +1,27 @@
1
1
  export type AcEdUiTheme = 'light' | 'dark';
2
+ type AcEdUiThemeListener = (theme: AcEdUiTheme) => void;
3
+ /**
4
+ * Subscribes to UI theme changes triggered by {@link acedApplyUiTheme}
5
+ * on the document root (or an explicit root target).
6
+ *
7
+ * @param listener - Called with the newly applied theme.
8
+ * @returns Unsubscribe function.
9
+ */
10
+ export declare function acedSubscribeUiTheme(listener: AcEdUiThemeListener): () => void;
2
11
  export declare function acedApplyUiTheme(theme: AcEdUiTheme, target?: HTMLElement): void;
3
12
  /**
4
13
  * Resolves the active UI theme from a host element or the document.
5
14
  *
6
15
  * Lookup order:
7
16
  * 1. Nearest ancestor with `data-ml-ui-theme`
8
- * 2. `document.documentElement` attribute
9
- * 3. `html.dark` class (Element Plus / cad-viewer)
10
- * 4. Defaults to `'light'`
17
+ * 2. Nearest ancestor with `ml-theme-dark` / `ml-theme-light` (cad-viewer)
18
+ * 3. `document.documentElement` `data-ml-ui-theme`
19
+ * 4. `document.documentElement` `data-mlcad-theme` (offline HTML viewer)
20
+ * 5. `html.dark` / `html.ml-theme-dark` class (Element Plus / cad-viewer)
21
+ * 6. Defaults to `'dark'` (matches cad-viewer default)
11
22
  *
12
23
  * @param from - Optional element to start ancestor walk from
13
24
  */
14
25
  export declare function resolveUiTheme(from?: HTMLElement | null): AcEdUiTheme;
26
+ export {};
15
27
  //# sourceMappingURL=AcEdUiTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcEdUiTheme.d.ts","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiTheme.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAuC1C,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,WAAW,EAClB,MAAM,GAAE,WAAsC,QAO/C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,CAarE"}
1
+ {"version":3,"file":"AcEdUiTheme.d.ts","sourceRoot":"","sources":["../../../src/editor/global/AcEdUiTheme.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAuC1C,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;AAKvD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,mBAAmB,GAC5B,MAAM,IAAI,CAKZ;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,WAAW,EAClB,MAAM,GAAE,WAAsC,QA0B/C;AAqBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,CAoBrE"}