@mlightcad/cad-simple-viewer 1.5.10 → 1.6.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 (510) hide show
  1. package/README.md +23 -8
  2. package/dist/cad-simple-viewer.js +35023 -70495
  3. package/dist/cad-simple-viewer.umd.cjs +143 -420
  4. package/lib/app/AcApDocManager.d.ts +50 -39
  5. package/lib/app/AcApDocManager.d.ts.map +1 -1
  6. package/lib/app/AcApDocManager.js +146 -72
  7. package/lib/app/AcApDocManager.js.map +1 -1
  8. package/lib/app/AcApSettingManager.d.ts +24 -10
  9. package/lib/app/AcApSettingManager.d.ts.map +1 -1
  10. package/lib/app/AcApSettingManager.js +49 -10
  11. package/lib/app/AcApSettingManager.js.map +1 -1
  12. package/lib/app/AcApWebworkerReadiness.d.ts +7 -2
  13. package/lib/app/AcApWebworkerReadiness.d.ts.map +1 -1
  14. package/lib/app/AcApWebworkerReadiness.js +13 -8
  15. package/lib/app/AcApWebworkerReadiness.js.map +1 -1
  16. package/lib/app/AcApWorkerAssets.d.ts +14 -1
  17. package/lib/app/AcApWorkerAssets.d.ts.map +1 -1
  18. package/lib/app/AcApWorkerAssets.js +14 -1
  19. package/lib/app/AcApWorkerAssets.js.map +1 -1
  20. package/lib/app/index.d.ts +0 -1
  21. package/lib/app/index.d.ts.map +1 -1
  22. package/lib/app/index.js +0 -1
  23. package/lib/app/index.js.map +1 -1
  24. package/lib/command/AcApRedoCmd.d.ts +1 -1
  25. package/lib/command/AcApRedoCmd.d.ts.map +1 -1
  26. package/lib/command/AcApRedoCmd.js +9 -4
  27. package/lib/command/AcApRedoCmd.js.map +1 -1
  28. package/lib/command/AcApUndoCmd.d.ts +1 -1
  29. package/lib/command/AcApUndoCmd.d.ts.map +1 -1
  30. package/lib/command/AcApUndoCmd.js +9 -4
  31. package/lib/command/AcApUndoCmd.js.map +1 -1
  32. package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
  33. package/lib/command/convert/AcApConvertToPngCmd.js +5 -1
  34. package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
  35. package/lib/command/convert/AcApPngConvertor.d.ts +4 -1
  36. package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -1
  37. package/lib/command/convert/AcApPngConvertor.js +131 -78
  38. package/lib/command/convert/AcApPngConvertor.js.map +1 -1
  39. package/lib/command/draw/AcApRevCloudCmd.d.ts +48 -0
  40. package/lib/command/draw/AcApRevCloudCmd.d.ts.map +1 -0
  41. package/lib/command/draw/AcApRevCloudCmd.js +747 -0
  42. package/lib/command/draw/AcApRevCloudCmd.js.map +1 -0
  43. package/lib/command/draw/AcApRevCloudGeom.d.ts +57 -0
  44. package/lib/command/draw/AcApRevCloudGeom.d.ts.map +1 -0
  45. package/lib/command/draw/AcApRevCloudGeom.js +373 -0
  46. package/lib/command/draw/AcApRevCloudGeom.js.map +1 -0
  47. package/lib/command/draw/AcApSketchCmd.d.ts +59 -0
  48. package/lib/command/draw/AcApSketchCmd.d.ts.map +1 -0
  49. package/lib/command/draw/AcApSketchCmd.js +537 -0
  50. package/lib/command/draw/AcApSketchCmd.js.map +1 -0
  51. package/lib/command/draw/index.d.ts +3 -0
  52. package/lib/command/draw/index.d.ts.map +1 -1
  53. package/lib/command/draw/index.js +3 -0
  54. package/lib/command/draw/index.js.map +1 -1
  55. package/lib/command/index.d.ts +2 -1
  56. package/lib/command/index.d.ts.map +1 -1
  57. package/lib/command/index.js +2 -1
  58. package/lib/command/index.js.map +1 -1
  59. package/lib/command/markup/AcApClearMarkupsCmd.d.ts +10 -0
  60. package/lib/command/markup/AcApClearMarkupsCmd.d.ts.map +1 -0
  61. package/lib/command/{review/AcApRevCircleCmd.js → markup/AcApClearMarkupsCmd.js} +19 -49
  62. package/lib/command/markup/AcApClearMarkupsCmd.js.map +1 -0
  63. package/lib/command/markup/AcApMarkupArrowCmd.d.ts +10 -0
  64. package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -0
  65. package/lib/command/markup/AcApMarkupArrowCmd.js +164 -0
  66. package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -0
  67. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +17 -0
  68. package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -0
  69. package/lib/command/markup/AcApMarkupCalloutCmd.js +259 -0
  70. package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -0
  71. package/lib/command/markup/AcApMarkupCalloutDrag.d.ts +78 -0
  72. package/lib/command/markup/AcApMarkupCalloutDrag.d.ts.map +1 -0
  73. package/lib/command/markup/AcApMarkupCalloutDrag.js +78 -0
  74. package/lib/command/markup/AcApMarkupCalloutDrag.js.map +1 -0
  75. package/lib/command/markup/AcApMarkupCircleCmd.d.ts +10 -0
  76. package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -0
  77. package/lib/command/markup/AcApMarkupCircleCmd.js +174 -0
  78. package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -0
  79. package/lib/command/markup/AcApMarkupCloudCmd.d.ts +11 -0
  80. package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -0
  81. package/lib/command/markup/AcApMarkupCloudCmd.js +178 -0
  82. package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -0
  83. package/lib/command/markup/AcApMarkupCmdUtil.d.ts +43 -0
  84. package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -0
  85. package/lib/command/markup/AcApMarkupCmdUtil.js +133 -0
  86. package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -0
  87. package/lib/command/markup/AcApMarkupGeometry.d.ts +57 -0
  88. package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -0
  89. package/lib/command/markup/AcApMarkupGeometry.js +231 -0
  90. package/lib/command/markup/AcApMarkupGeometry.js.map +1 -0
  91. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +10 -0
  92. package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -0
  93. package/lib/command/markup/AcApMarkupHighlightCmd.js +166 -0
  94. package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -0
  95. package/lib/command/markup/AcApMarkupHistory.d.ts +139 -0
  96. package/lib/command/markup/AcApMarkupHistory.d.ts.map +1 -0
  97. package/lib/command/markup/AcApMarkupHistory.js +336 -0
  98. package/lib/command/markup/AcApMarkupHistory.js.map +1 -0
  99. package/lib/command/markup/AcApMarkupImportExportCmd.d.ts +17 -0
  100. package/lib/command/markup/AcApMarkupImportExportCmd.d.ts.map +1 -0
  101. package/lib/command/markup/AcApMarkupImportExportCmd.js +182 -0
  102. package/lib/command/markup/AcApMarkupImportExportCmd.js.map +1 -0
  103. package/lib/command/markup/AcApMarkupLineCmd.d.ts +10 -0
  104. package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -0
  105. package/lib/command/markup/AcApMarkupLineCmd.js +185 -0
  106. package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -0
  107. package/lib/command/markup/AcApMarkupPresenter.d.ts +62 -0
  108. package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -0
  109. package/lib/command/markup/AcApMarkupPresenter.js +288 -0
  110. package/lib/command/markup/AcApMarkupPresenter.js.map +1 -0
  111. package/lib/command/markup/AcApMarkupRectCmd.d.ts +10 -0
  112. package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -0
  113. package/lib/command/markup/AcApMarkupRectCmd.js +174 -0
  114. package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -0
  115. package/lib/command/markup/AcApMarkupRepublish.d.ts +29 -0
  116. package/lib/command/markup/AcApMarkupRepublish.d.ts.map +1 -0
  117. package/lib/command/markup/AcApMarkupRepublish.js +28 -0
  118. package/lib/command/markup/AcApMarkupRepublish.js.map +1 -0
  119. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +88 -0
  120. package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -0
  121. package/lib/command/markup/AcApMarkupShapeBuilder.js +246 -0
  122. package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -0
  123. package/lib/command/markup/AcApMarkupShapeCallout.d.ts +46 -0
  124. package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -0
  125. package/lib/command/markup/AcApMarkupShapeCallout.js +356 -0
  126. package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -0
  127. package/lib/command/markup/AcApMarkupSidecar.d.ts +14 -0
  128. package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -0
  129. package/lib/command/markup/AcApMarkupSidecar.js +196 -0
  130. package/lib/command/markup/AcApMarkupSidecar.js.map +1 -0
  131. package/lib/command/markup/AcApMarkupStampCmd.d.ts +10 -0
  132. package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -0
  133. package/lib/command/markup/AcApMarkupStampCmd.js +158 -0
  134. package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -0
  135. package/lib/command/markup/AcApMarkupStore.d.ts +94 -0
  136. package/lib/command/markup/AcApMarkupStore.d.ts.map +1 -0
  137. package/lib/command/markup/AcApMarkupStore.js +327 -0
  138. package/lib/command/markup/AcApMarkupStore.js.map +1 -0
  139. package/lib/command/markup/AcApMarkupTextCmd.d.ts +10 -0
  140. package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -0
  141. package/lib/command/markup/AcApMarkupTextCmd.js +141 -0
  142. package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -0
  143. package/lib/command/markup/AcApMarkupTextEdit.d.ts +88 -0
  144. package/lib/command/markup/AcApMarkupTextEdit.d.ts.map +1 -0
  145. package/lib/command/markup/AcApMarkupTextEdit.js +249 -0
  146. package/lib/command/markup/AcApMarkupTextEdit.js.map +1 -0
  147. package/lib/command/markup/AcApMarkupTypes.d.ts +118 -0
  148. package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -0
  149. package/lib/command/markup/AcApMarkupTypes.js +8 -0
  150. package/lib/command/markup/AcApMarkupTypes.js.map +1 -0
  151. package/lib/command/markup/AcApMarkupUtil.d.ts +41 -0
  152. package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -0
  153. package/lib/command/markup/AcApMarkupUtil.js +135 -0
  154. package/lib/command/markup/AcApMarkupUtil.js.map +1 -0
  155. package/lib/command/markup/AcApMarkupVisibilityCmd.d.ts +17 -0
  156. package/lib/command/markup/AcApMarkupVisibilityCmd.d.ts.map +1 -0
  157. package/lib/command/{review/AcApRevVisibilityCmd.js → markup/AcApMarkupVisibilityCmd.js} +30 -27
  158. package/lib/command/markup/AcApMarkupVisibilityCmd.js.map +1 -0
  159. package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts +48 -0
  160. package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -0
  161. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +291 -0
  162. package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -0
  163. package/lib/command/markup/entity/AcApMarkupEntity.d.ts +131 -0
  164. package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -0
  165. package/lib/command/markup/entity/AcApMarkupEntity.js +191 -0
  166. package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -0
  167. package/lib/command/markup/entity/AcApMarkupEntityFactory.d.ts +20 -0
  168. package/lib/command/markup/entity/AcApMarkupEntityFactory.d.ts.map +1 -0
  169. package/lib/command/markup/entity/AcApMarkupEntityFactory.js +43 -0
  170. package/lib/command/markup/entity/AcApMarkupEntityFactory.js.map +1 -0
  171. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +94 -0
  172. package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -0
  173. package/lib/command/markup/entity/AcApMarkupEntityGrips.js +204 -0
  174. package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -0
  175. package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts +27 -0
  176. package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -0
  177. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +124 -0
  178. package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -0
  179. package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts +40 -0
  180. package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -0
  181. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +294 -0
  182. package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -0
  183. package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts +32 -0
  184. package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -0
  185. package/lib/command/markup/entity/AcApMarkupShapeEntity.js +241 -0
  186. package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -0
  187. package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts +23 -0
  188. package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -0
  189. package/lib/command/markup/entity/AcApMarkupStampEntity.js +125 -0
  190. package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -0
  191. package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts +23 -0
  192. package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -0
  193. package/lib/command/markup/entity/AcApMarkupTextEntity.js +129 -0
  194. package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -0
  195. package/lib/command/markup/entity/index.d.ts +13 -0
  196. package/lib/command/markup/entity/index.d.ts.map +1 -0
  197. package/lib/command/markup/entity/index.js +13 -0
  198. package/lib/command/markup/entity/index.js.map +1 -0
  199. package/lib/command/markup/index.d.ts +27 -0
  200. package/lib/command/markup/index.d.ts.map +1 -0
  201. package/lib/command/markup/index.js +27 -0
  202. package/lib/command/markup/index.js.map +1 -0
  203. package/lib/command/measure/AcApClearMeasurementsCmd.d.ts +5 -12
  204. package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -1
  205. package/lib/command/measure/AcApClearMeasurementsCmd.js +42 -20
  206. package/lib/command/measure/AcApClearMeasurementsCmd.js.map +1 -1
  207. package/lib/command/measure/AcApMeasureAngleCmd.d.ts +13 -3
  208. package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
  209. package/lib/command/measure/AcApMeasureAngleCmd.js +76 -210
  210. package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
  211. package/lib/command/measure/AcApMeasureArcCmd.d.ts +21 -1
  212. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
  213. package/lib/command/measure/AcApMeasureArcCmd.js +103 -97
  214. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
  215. package/lib/command/measure/AcApMeasureAreaCmd.d.ts +11 -1
  216. package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
  217. package/lib/command/measure/AcApMeasureAreaCmd.js +126 -144
  218. package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
  219. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +24 -15
  220. package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
  221. package/lib/command/measure/AcApMeasureDistanceCmd.js +52 -52
  222. package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
  223. package/lib/command/measure/AcApMeasurePointCmd.d.ts +24 -0
  224. package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -0
  225. package/lib/command/measure/AcApMeasurePointCmd.js +114 -0
  226. package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -0
  227. package/lib/command/measure/AcApMeasurementGeometry.d.ts +22 -0
  228. package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -0
  229. package/lib/command/measure/AcApMeasurementGeometry.js +127 -0
  230. package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -0
  231. package/lib/command/measure/AcApMeasurementHistory.d.ts +78 -0
  232. package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -0
  233. package/lib/command/measure/AcApMeasurementHistory.js +387 -0
  234. package/lib/command/measure/AcApMeasurementHistory.js.map +1 -0
  235. package/lib/command/measure/AcApMeasurementImportExportCmd.d.ts +17 -0
  236. package/lib/command/measure/AcApMeasurementImportExportCmd.d.ts.map +1 -0
  237. package/lib/command/measure/AcApMeasurementImportExportCmd.js +207 -0
  238. package/lib/command/measure/AcApMeasurementImportExportCmd.js.map +1 -0
  239. package/lib/command/measure/AcApMeasurementPlace.d.ts +9 -0
  240. package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -0
  241. package/lib/command/measure/AcApMeasurementPlace.js +33 -0
  242. package/lib/command/measure/AcApMeasurementPlace.js.map +1 -0
  243. package/lib/command/measure/AcApMeasurementSidecar.d.ts +19 -0
  244. package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -0
  245. package/lib/command/measure/AcApMeasurementSidecar.js +173 -0
  246. package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -0
  247. package/lib/command/measure/AcApMeasurementStore.d.ts +90 -0
  248. package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -0
  249. package/lib/command/measure/AcApMeasurementStore.js +364 -0
  250. package/lib/command/measure/AcApMeasurementStore.js.map +1 -0
  251. package/lib/command/measure/AcApMeasurementTypes.d.ts +56 -0
  252. package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -0
  253. package/lib/command/measure/AcApMeasurementTypes.js +2 -0
  254. package/lib/command/measure/AcApMeasurementTypes.js.map +1 -0
  255. package/lib/command/measure/AcApMeasurementVisibilityCmd.d.ts +10 -0
  256. package/lib/command/measure/AcApMeasurementVisibilityCmd.d.ts.map +1 -0
  257. package/lib/command/measure/AcApMeasurementVisibilityCmd.js +78 -0
  258. package/lib/command/measure/AcApMeasurementVisibilityCmd.js.map +1 -0
  259. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +68 -0
  260. package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -0
  261. package/lib/command/measure/entity/AcApMeasureAngleEntity.js +188 -0
  262. package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -0
  263. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +85 -0
  264. package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -0
  265. package/lib/command/measure/entity/AcApMeasureArcEntity.js +159 -0
  266. package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -0
  267. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +60 -0
  268. package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -0
  269. package/lib/command/measure/entity/AcApMeasureAreaEntity.js +184 -0
  270. package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -0
  271. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +60 -0
  272. package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -0
  273. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +166 -0
  274. package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -0
  275. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +129 -0
  276. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -0
  277. package/lib/command/measure/entity/AcApMeasureDrawUtil.js +257 -0
  278. package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -0
  279. package/lib/command/measure/entity/AcApMeasureEntity.d.ts +148 -0
  280. package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -0
  281. package/lib/command/measure/entity/AcApMeasureEntity.js +141 -0
  282. package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -0
  283. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +15 -0
  284. package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -0
  285. package/lib/command/measure/entity/AcApMeasureEntityFactory.js +35 -0
  286. package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -0
  287. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +56 -0
  288. package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -0
  289. package/lib/command/measure/entity/AcApMeasurePointEntity.js +125 -0
  290. package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -0
  291. package/lib/command/measure/entity/index.d.ts +12 -0
  292. package/lib/command/measure/entity/index.d.ts.map +1 -0
  293. package/lib/command/measure/entity/index.js +12 -0
  294. package/lib/command/measure/entity/index.js.map +1 -0
  295. package/lib/command/measure/index.d.ts +10 -0
  296. package/lib/command/measure/index.d.ts.map +1 -1
  297. package/lib/command/measure/index.js +10 -0
  298. package/lib/command/measure/index.js.map +1 -1
  299. package/lib/command/modify/AcApCopyCmd.d.ts +1 -1
  300. package/lib/command/modify/AcApCopyCmd.js +2 -2
  301. package/lib/command/modify/AcApCopyCmd.js.map +1 -1
  302. package/lib/command/modify/AcApMoveCmd.js +1 -1
  303. package/lib/command/modify/AcApMoveCmd.js.map +1 -1
  304. package/lib/command/modify/AcApOffsetCmd.d.ts +1 -1
  305. package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -1
  306. package/lib/command/modify/AcApOffsetCmd.js +5 -10
  307. package/lib/command/modify/AcApOffsetCmd.js.map +1 -1
  308. package/lib/command/modify/AcApRotateCmd.d.ts +1 -1
  309. package/lib/command/modify/AcApRotateCmd.js +2 -2
  310. package/lib/command/modify/AcApRotateCmd.js.map +1 -1
  311. package/lib/command/overlay/AcApHtmlLivePreview.d.ts +121 -0
  312. package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -0
  313. package/lib/command/overlay/AcApHtmlLivePreview.js +193 -0
  314. package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -0
  315. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +63 -0
  316. package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -0
  317. package/lib/command/overlay/AcApOverlayDrawUtil.js +115 -0
  318. package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -0
  319. package/lib/command/overlay/AcApOverlayEntity.d.ts +93 -0
  320. package/lib/command/overlay/AcApOverlayEntity.d.ts.map +1 -0
  321. package/lib/command/overlay/AcApOverlayEntity.js +65 -0
  322. package/lib/command/overlay/AcApOverlayEntity.js.map +1 -0
  323. package/lib/command/overlay/AcApOverlayGripHost.d.ts +105 -0
  324. package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -0
  325. package/lib/command/overlay/AcApOverlayGripHost.js +207 -0
  326. package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -0
  327. package/lib/command/overlay/AcApOverlaySerializable.d.ts +20 -0
  328. package/lib/command/overlay/AcApOverlaySerializable.d.ts.map +1 -0
  329. package/lib/command/overlay/AcApOverlaySerializable.js +2 -0
  330. package/lib/command/overlay/AcApOverlaySerializable.js.map +1 -0
  331. package/lib/command/overlay/index.d.ts +13 -0
  332. package/lib/command/overlay/index.d.ts.map +1 -0
  333. package/lib/command/overlay/index.js +13 -0
  334. package/lib/command/overlay/index.js.map +1 -0
  335. package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
  336. package/lib/editor/command/AcEdCommand.js +1 -0
  337. package/lib/editor/command/AcEdCommand.js.map +1 -1
  338. package/lib/editor/global/AcEdUiLayout.d.ts +3 -3
  339. package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
  340. package/lib/editor/global/AcEdUiLayout.js +3 -3
  341. package/lib/editor/global/AcEdUiLayout.js.map +1 -1
  342. package/lib/editor/global/AcEdUiTheme.d.ts +1 -1
  343. package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
  344. package/lib/editor/global/AcEdUiTheme.js +1 -1
  345. package/lib/editor/global/AcEdUiTheme.js.map +1 -1
  346. package/lib/editor/global/eventBus.d.ts +5 -0
  347. package/lib/editor/global/eventBus.d.ts.map +1 -1
  348. package/lib/editor/global/eventBus.js.map +1 -1
  349. package/lib/editor/input/AcEditor.d.ts +6 -0
  350. package/lib/editor/input/AcEditor.d.ts.map +1 -1
  351. package/lib/editor/input/AcEditor.js +10 -0
  352. package/lib/editor/input/AcEditor.js.map +1 -1
  353. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts +7 -0
  354. package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts.map +1 -1
  355. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js +17 -0
  356. package/lib/editor/input/prompt/AcEdPromptBoxOptions.js.map +1 -1
  357. package/lib/editor/input/ui/AcEdInputManager.d.ts +9 -0
  358. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  359. package/lib/editor/input/ui/AcEdInputManager.js +17 -0
  360. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  361. package/lib/editor/input/ui/AcEdMTextEditor.js +3 -3
  362. package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -1
  363. package/lib/i18n/cs/command.d.ts +60 -0
  364. package/lib/i18n/cs/command.d.ts.map +1 -1
  365. package/lib/i18n/cs/command.js +63 -3
  366. package/lib/i18n/cs/command.js.map +1 -1
  367. package/lib/i18n/cs/jig.d.ts +1227 -1
  368. package/lib/i18n/cs/jig.d.ts.map +1 -1
  369. package/lib/i18n/cs/jig.js +1226 -6
  370. package/lib/i18n/cs/jig.js.map +1 -1
  371. package/lib/i18n/cs/main.d.ts +5 -0
  372. package/lib/i18n/cs/main.d.ts.map +1 -1
  373. package/lib/i18n/cs/main.js +5 -0
  374. package/lib/i18n/cs/main.js.map +1 -1
  375. package/lib/i18n/en/command.d.ts +57 -0
  376. package/lib/i18n/en/command.d.ts.map +1 -1
  377. package/lib/i18n/en/command.js +60 -3
  378. package/lib/i18n/en/command.js.map +1 -1
  379. package/lib/i18n/en/jig.d.ts +180 -0
  380. package/lib/i18n/en/jig.d.ts.map +1 -1
  381. package/lib/i18n/en/jig.js +181 -1
  382. package/lib/i18n/en/jig.js.map +1 -1
  383. package/lib/i18n/en/main.d.ts +5 -0
  384. package/lib/i18n/en/main.d.ts.map +1 -1
  385. package/lib/i18n/en/main.js +5 -0
  386. package/lib/i18n/en/main.js.map +1 -1
  387. package/lib/i18n/tr/command.d.ts +57 -0
  388. package/lib/i18n/tr/command.d.ts.map +1 -1
  389. package/lib/i18n/tr/command.js +60 -3
  390. package/lib/i18n/tr/command.js.map +1 -1
  391. package/lib/i18n/tr/jig.d.ts +180 -0
  392. package/lib/i18n/tr/jig.d.ts.map +1 -1
  393. package/lib/i18n/tr/jig.js +181 -1
  394. package/lib/i18n/tr/jig.js.map +1 -1
  395. package/lib/i18n/tr/main.d.ts +7 -0
  396. package/lib/i18n/tr/main.d.ts.map +1 -1
  397. package/lib/i18n/tr/main.js +7 -0
  398. package/lib/i18n/tr/main.js.map +1 -1
  399. package/lib/i18n/zh/command.d.ts +57 -0
  400. package/lib/i18n/zh/command.d.ts.map +1 -1
  401. package/lib/i18n/zh/command.js +60 -3
  402. package/lib/i18n/zh/command.js.map +1 -1
  403. package/lib/i18n/zh/jig.d.ts +180 -0
  404. package/lib/i18n/zh/jig.d.ts.map +1 -1
  405. package/lib/i18n/zh/jig.js +181 -1
  406. package/lib/i18n/zh/jig.js.map +1 -1
  407. package/lib/i18n/zh/main.d.ts +5 -0
  408. package/lib/i18n/zh/main.d.ts.map +1 -1
  409. package/lib/i18n/zh/main.js +5 -0
  410. package/lib/i18n/zh/main.js.map +1 -1
  411. package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
  412. package/lib/plugin/AcApPluginManager.js +2 -1
  413. package/lib/plugin/AcApPluginManager.js.map +1 -1
  414. package/lib/service/AcApEntitySelection.d.ts +0 -3
  415. package/lib/service/AcApEntitySelection.d.ts.map +1 -1
  416. package/lib/service/AcApEntitySelection.js +42 -36
  417. package/lib/service/AcApEntitySelection.js.map +1 -1
  418. package/lib/ui/AcApDrawStyle.d.ts +63 -0
  419. package/lib/ui/AcApDrawStyle.d.ts.map +1 -0
  420. package/lib/ui/AcApDrawStyle.js +149 -0
  421. package/lib/ui/AcApDrawStyle.js.map +1 -0
  422. package/lib/ui/AcApDrawStyleToolbar.d.ts +124 -0
  423. package/lib/ui/AcApDrawStyleToolbar.d.ts.map +1 -0
  424. package/lib/ui/AcApDrawStyleToolbar.js +486 -0
  425. package/lib/ui/AcApDrawStyleToolbar.js.map +1 -0
  426. package/lib/ui/AcUiDialog.d.ts.map +1 -1
  427. package/lib/ui/AcUiDialog.js +2 -2
  428. package/lib/ui/AcUiDialog.js.map +1 -1
  429. package/lib/ui/index.d.ts +2 -0
  430. package/lib/ui/index.d.ts.map +1 -1
  431. package/lib/ui/index.js +2 -0
  432. package/lib/ui/index.js.map +1 -1
  433. package/lib/util/AcApDatabaseEdit.d.ts.map +1 -1
  434. package/lib/util/AcApDatabaseEdit.js +1 -0
  435. package/lib/util/AcApDatabaseEdit.js.map +1 -1
  436. package/lib/util/AcApMeasurementUnits.d.ts +52 -0
  437. package/lib/util/AcApMeasurementUnits.d.ts.map +1 -0
  438. package/lib/util/AcApMeasurementUnits.js +137 -0
  439. package/lib/util/AcApMeasurementUnits.js.map +1 -0
  440. package/lib/util/AcApMeasurementUtil.d.ts +42 -0
  441. package/lib/util/AcApMeasurementUtil.d.ts.map +1 -0
  442. package/lib/util/AcApMeasurementUtil.js +98 -0
  443. package/lib/util/AcApMeasurementUtil.js.map +1 -0
  444. package/lib/util/AcApScreenHitTest.d.ts +35 -0
  445. package/lib/util/AcApScreenHitTest.d.ts.map +1 -0
  446. package/lib/util/AcApScreenHitTest.js +98 -0
  447. package/lib/util/AcApScreenHitTest.js.map +1 -0
  448. package/lib/util/AcApScriptParser.d.ts +13 -0
  449. package/lib/util/AcApScriptParser.d.ts.map +1 -0
  450. package/lib/util/AcApScriptParser.js +55 -0
  451. package/lib/util/AcApScriptParser.js.map +1 -0
  452. package/lib/util/index.d.ts +4 -1
  453. package/lib/util/index.d.ts.map +1 -1
  454. package/lib/util/index.js +4 -1
  455. package/lib/util/index.js.map +1 -1
  456. package/lib/view/AcEdReviewOverlayPick.d.ts +25 -0
  457. package/lib/view/AcEdReviewOverlayPick.d.ts.map +1 -0
  458. package/lib/view/AcEdReviewOverlayPick.js +229 -0
  459. package/lib/view/AcEdReviewOverlayPick.js.map +1 -0
  460. package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
  461. package/lib/view/AcEdViewKeyHandler.js +53 -0
  462. package/lib/view/AcEdViewKeyHandler.js.map +1 -1
  463. package/lib/view/AcTrScene.d.ts +15 -1
  464. package/lib/view/AcTrScene.d.ts.map +1 -1
  465. package/lib/view/AcTrScene.js +25 -2
  466. package/lib/view/AcTrScene.js.map +1 -1
  467. package/lib/view/AcTrView2d.d.ts +46 -5
  468. package/lib/view/AcTrView2d.d.ts.map +1 -1
  469. package/lib/view/AcTrView2d.js +179 -74
  470. package/lib/view/AcTrView2d.js.map +1 -1
  471. package/lib/view/index.d.ts +1 -0
  472. package/lib/view/index.d.ts.map +1 -1
  473. package/lib/view/index.js +1 -0
  474. package/lib/view/index.js.map +1 -1
  475. package/package.json +7 -6
  476. package/dist/libredwg-parser-worker.js +0 -7525
  477. package/lib/app/AcApAnnotation.d.ts +0 -47
  478. package/lib/app/AcApAnnotation.d.ts.map +0 -1
  479. package/lib/app/AcApAnnotation.js +0 -135
  480. package/lib/app/AcApAnnotation.js.map +0 -1
  481. package/lib/command/review/AcApBaseRevCmd.d.ts +0 -36
  482. package/lib/command/review/AcApBaseRevCmd.d.ts.map +0 -1
  483. package/lib/command/review/AcApBaseRevCmd.js +0 -68
  484. package/lib/command/review/AcApBaseRevCmd.js.map +0 -1
  485. package/lib/command/review/AcApRevCircleCmd.d.ts +0 -18
  486. package/lib/command/review/AcApRevCircleCmd.d.ts.map +0 -1
  487. package/lib/command/review/AcApRevCircleCmd.js.map +0 -1
  488. package/lib/command/review/AcApRevCloudCmd.d.ts +0 -26
  489. package/lib/command/review/AcApRevCloudCmd.d.ts.map +0 -1
  490. package/lib/command/review/AcApRevCloudCmd.js +0 -240
  491. package/lib/command/review/AcApRevCloudCmd.js.map +0 -1
  492. package/lib/command/review/AcApRevRectCmd.d.ts +0 -18
  493. package/lib/command/review/AcApRevRectCmd.d.ts.map +0 -1
  494. package/lib/command/review/AcApRevRectCmd.js +0 -155
  495. package/lib/command/review/AcApRevRectCmd.js.map +0 -1
  496. package/lib/command/review/AcApRevVisibilityCmd.d.ts +0 -15
  497. package/lib/command/review/AcApRevVisibilityCmd.d.ts.map +0 -1
  498. package/lib/command/review/AcApRevVisibilityCmd.js.map +0 -1
  499. package/lib/command/review/AcApSketchCmd.d.ts +0 -32
  500. package/lib/command/review/AcApSketchCmd.d.ts.map +0 -1
  501. package/lib/command/review/AcApSketchCmd.js +0 -175
  502. package/lib/command/review/AcApSketchCmd.js.map +0 -1
  503. package/lib/command/review/index.d.ts +0 -7
  504. package/lib/command/review/index.d.ts.map +0 -1
  505. package/lib/command/review/index.js +0 -7
  506. package/lib/command/review/index.js.map +0 -1
  507. package/lib/util/AcApMeasurementElementGenerator.d.ts +0 -36
  508. package/lib/util/AcApMeasurementElementGenerator.d.ts.map +0 -1
  509. package/lib/util/AcApMeasurementElementGenerator.js +0 -92
  510. package/lib/util/AcApMeasurementElementGenerator.js.map +0 -1
@@ -104,11 +104,13 @@ import * as THREE from 'three';
104
104
  import Stats from 'three/examples/jsm/libs/stats.module';
105
105
  import { CSS2DRenderer } from 'three/examples/jsm/renderers/CSS2DRenderer.js';
106
106
  import { AcApDocManager, AcApSettingManager } from '../app';
107
+ import { isMarkupHtmlTextEditing } from '../command/markup/AcApMarkupTextEdit';
107
108
  import { AcEdBaseView, AcEdConditionWaiter, AcEdCorsorType, AcEdGripManager, AcEdMTextEditor, AcEdOpenMode, AcEdViewMode, eventBus, resolvePointerSelectionAction } from '../editor';
108
109
  import { ACGI_MODEL_SPACE_BACKGROUND, isModelSpaceDatabase, readLayoutBackgroundColor } from '../editor/global/AcEdUiColor';
109
110
  import { isEffectiveSpatialQueryHit } from '../editor/view/AcEdSpatialQueryResult';
110
111
  import { AcTrGeometryUtil } from '../util';
111
112
  import { acapRunDatabaseEdit } from '../util/AcApDatabaseEdit';
113
+ import { trySelectReviewOverlay, trySelectReviewOverlaysByBox } from './AcEdReviewOverlayPick';
112
114
  import { AcEdViewKeyHandler } from './AcEdViewKeyHandler';
113
115
  import { shouldExtendBboxForDirectEntity, tryBuildDirectEntityMeta } from './AcTrDirectBatch';
114
116
  import { AcTrEntityDisplayController } from './AcTrEntityDisplayController';
@@ -276,17 +278,23 @@ var AcTrView2d = /** @class */ (function (_super) {
276
278
  });
277
279
  var stillLoading = _this._numOfEntitiesToProcess > 0;
278
280
  var deferRenderWhileLoading = stillLoading && !_this._progressiveRendering;
279
- if (!_this._isDirty && !stillLoading)
281
+ if (!_this._isDirty && !_this._htmlDirty && !stillLoading)
280
282
  return;
281
283
  if (deferRenderWhileLoading)
282
284
  return;
283
- if (!_this._isDirty)
285
+ if (!_this._isDirty && !_this._htmlDirty)
284
286
  return;
285
- if (_this._progressiveRendering && stillLoading) {
286
- _this._progressivePaintCount++;
287
+ var needsRedraw = false;
288
+ if (_this._isDirty) {
289
+ if (_this._progressiveRendering && stillLoading) {
290
+ _this._progressivePaintCount++;
291
+ }
292
+ needsRedraw = _this._layoutViewManager.render(_this._scene);
287
293
  }
288
- var needsRedraw = _this._layoutViewManager.render(_this._scene);
289
- if (_this.internalCamera) {
294
+ // Camera / WebGL dirty also reprojects CSS2D overlays. HTML-only dirty
295
+ // skips the WebGL pass so measurement badges and markup DOM can update
296
+ // without clearing and redrawing the drawing.
297
+ if (_this.internalCamera && (_this._isDirty || _this._htmlDirty)) {
290
298
  _this._css2dRenderer.render(_this._scene.internalScene, _this.internalCamera);
291
299
  }
292
300
  (_a = _this._stats) === null || _a === void 0 ? void 0 : _a.update();
@@ -294,6 +302,7 @@ var AcTrView2d = /** @class */ (function (_super) {
294
302
  // from geometry batches to keep total open time down. Counter hitting 0
295
303
  // still forces a final dirty in decreaseNumOfEntitiesToProcess().
296
304
  _this._isDirty = needsRedraw;
305
+ _this._htmlDirty = false;
297
306
  };
298
307
  _this._gripManager = new AcEdGripManager(_this);
299
308
  _this._keyHandler = new AcEdViewKeyHandler(_this);
@@ -350,6 +359,7 @@ var AcTrView2d = /** @class */ (function (_super) {
350
359
  return (_this.mode === AcEdViewMode.SELECTION &&
351
360
  !_this.editor.isActive &&
352
361
  !AcEdMTextEditor.getActiveInputBox() &&
362
+ !isMarkupHtmlTextEditing() &&
353
363
  !_this._gripManager.isDragging);
354
364
  };
355
365
  var clearSelectionPreview = function () {
@@ -412,12 +422,22 @@ var AcTrView2d = /** @class */ (function (_super) {
412
422
  clearSelectionPreview();
413
423
  var action = _this.getPointerSelectionAction(e);
414
424
  if (_this.isSelectionClick(selectionStartCanvas, endCanvas)) {
415
- var picked = _this.pick(endWcs);
416
- if (picked.length > 0) {
417
- _this.applySelection([picked[0].id], action);
425
+ if (trySelectReviewOverlay(_this, endCanvas.x, endCanvas.y, action)) {
426
+ if (action === 'replace') {
427
+ _this.selectionSet.clear();
428
+ }
418
429
  }
419
- else if (action === 'replace') {
420
- _this.selectionSet.clear();
430
+ else {
431
+ var picked = _this.pick(endWcs);
432
+ if (picked.length > 0) {
433
+ if (action === 'replace') {
434
+ _this.htmlTransientManager.deselectAll();
435
+ }
436
+ _this.applySelection([picked[0].id], action);
437
+ }
438
+ else if (action === 'replace') {
439
+ _this.selectionSet.clear();
440
+ }
421
441
  }
422
442
  }
423
443
  else {
@@ -426,6 +446,7 @@ var AcTrView2d = /** @class */ (function (_super) {
426
446
  .expandByPoint(endWcs);
427
447
  var mode = _this.getSelectionMode(selectionStartCanvas, endCanvas);
428
448
  _this.selectByBoxWithMode(box, mode, action);
449
+ trySelectReviewOverlaysByBox(_this, box, mode, action);
429
450
  }
430
451
  selectionStartWcs = null;
431
452
  selectionStartCanvas = null;
@@ -462,28 +483,13 @@ var AcTrView2d = /** @class */ (function (_super) {
462
483
  // diverges from how AutoCAD preserves per-tab view state.
463
484
  var isFirstVisit = !_this._initializedLayouts.has(btrId);
464
485
  _this._initializedLayouts.add(btrId);
465
- // Clear measurement overlays before swapping layouts.
466
- // Measurements are screen/coordinate-anchored — their dimension
467
- // text, hatch indicators, and HTML overlays were laid out in
468
- // the previous layout's WCS (paper coords, ~unit scale) and
469
- // would render at nonsense positions in a different layout
470
- // (model WCS is typically O(10^5) larger, paper layouts use
471
- // their own sheet coords). Selection state is intentionally
472
- // **not** cleared here: it is entity-id-based and the same
473
- // entity stays selected wherever it is rendered (the model
474
- // entity drilled through a paper viewport remains visually
475
- // selected when the user returns to model space, matching
476
- // AutoCAD desktop's behaviour).
477
- //
478
- // Dynamic import avoids a circular dependency: the cleanup
479
- // module already imports `AcTrView2d` for its
480
- // `htmlTransientManager` cast, so a static import here would
481
- // create a cycle. The cost (one extra microtask) is
482
- // negligible for a layout switch.
483
- void import('../command/measure/AcApClearMeasurementsCmd').then(function (_a) {
484
- var clearAllMeasurements = _a.clearAllMeasurements;
485
- return clearAllMeasurements(_this);
486
- });
486
+ // Measurement HTML overlays are layout-scoped via `layoutId`.
487
+ // Switching layouts only updates visibility (see
488
+ // {@link AcTrHtmlTransientManager.setActiveLayoutId} from the
489
+ // `activeLayoutBtrId` setter below) — overlays are not deleted, so
490
+ // returning to a layout restores its measurements. Entity selection
491
+ // is intentionally **not** cleared here: it is entity-id-based and
492
+ // the same entity stays selected wherever it is rendered.
487
493
  _this.activeLayoutBtrId = btrId;
488
494
  _this.createLayoutViewIfNeeded(btrId);
489
495
  _this.loadLayoutEntitiesIfNeeded(btrId);
@@ -515,6 +521,7 @@ var AcTrView2d = /** @class */ (function (_super) {
515
521
  _this.initialize();
516
522
  _this.onWindowResize();
517
523
  _this._isDirty = true;
524
+ _this._htmlDirty = false;
518
525
  _this.startAnimationLoop();
519
526
  _this._numOfEntitiesToProcess = 0;
520
527
  _this._pendingGeometryJobs = 0;
@@ -580,17 +587,25 @@ var AcTrView2d = /** @class */ (function (_super) {
580
587
  });
581
588
  Object.defineProperty(AcTrView2d.prototype, "isDirty", {
582
589
  /**
583
- * Gets whether the view needs to be re-rendered.
590
+ * Gets whether the WebGL scene needs to be re-rendered.
584
591
  *
585
- * @returns True if the view is dirty and needs re-rendering
592
+ * Camera, CAD entities, and WebGL transients set this flag. CSS2D / HTML
593
+ * overlay mutations should use {@link isHtmlDirty} instead so a badge or
594
+ * markup DOM change does not clear and redraw the drawing.
595
+ *
596
+ * @returns True if the WebGL view is dirty and needs re-rendering
586
597
  */
587
598
  get: function () {
588
599
  return this._isDirty;
589
600
  },
590
601
  /**
591
- * Sets whether the view needs to be re-rendered.
602
+ * Sets whether the WebGL scene needs to be re-rendered.
603
+ *
604
+ * When true, the animation loop also runs CSS2DRenderer so HTML
605
+ * overlays reproject after pan / zoom. HTML-only changes should set
606
+ * {@link isHtmlDirty} instead.
592
607
  *
593
- * @param value - True to mark the view as needing re-rendering
608
+ * @param value - True to mark the WebGL view as needing re-rendering
594
609
  */
595
610
  set: function (value) {
596
611
  this._isDirty = value;
@@ -613,6 +628,49 @@ var AcTrView2d = /** @class */ (function (_super) {
613
628
  enumerable: false,
614
629
  configurable: true
615
630
  });
631
+ /**
632
+ * Waits until batch conversion and deferred glyph/font geometry finish.
633
+ *
634
+ * Document open can resolve before text is drawable (`FontManager.lazyFontLoading`
635
+ * + deferred geometry jobs). Call this before raster/HTML export or scripted
636
+ * commands that assume a complete scene.
637
+ *
638
+ * @param timeoutMs - Maximum wait; returns `false` on timeout (default 60s).
639
+ * @returns `true` when idle, `false` if still busy after the timeout.
640
+ */
641
+ AcTrView2d.prototype.waitUntilIdle = function () {
642
+ return __awaiter(this, arguments, void 0, function (timeoutMs) {
643
+ var deadline, idleStreak;
644
+ if (timeoutMs === void 0) { timeoutMs = 60000; }
645
+ return __generator(this, function (_a) {
646
+ switch (_a.label) {
647
+ case 0:
648
+ deadline = Date.now() + Math.max(0, timeoutMs);
649
+ idleStreak = 0;
650
+ _a.label = 1;
651
+ case 1:
652
+ if (!this.isProcessingEntities) {
653
+ idleStreak++;
654
+ if (idleStreak >= 2) {
655
+ return [2 /*return*/, true];
656
+ }
657
+ }
658
+ else {
659
+ idleStreak = 0;
660
+ }
661
+ if (Date.now() > deadline) {
662
+ return [2 /*return*/, !this.isProcessingEntities];
663
+ }
664
+ return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 16); })];
665
+ case 2:
666
+ _a.sent();
667
+ _a.label = 3;
668
+ case 3: return [3 /*break*/, 1];
669
+ case 4: return [2 /*return*/];
670
+ }
671
+ });
672
+ });
673
+ };
616
674
  Object.defineProperty(AcTrView2d.prototype, "progressiveRendering", {
617
675
  /**
618
676
  * Whether entity conversion during document open is deferred for progressive display.
@@ -659,6 +717,29 @@ var AcTrView2d = /** @class */ (function (_super) {
659
717
  AcTrView2d.prototype.endProgressiveOpenFit = function () {
660
718
  this._progressiveOpenFit.end();
661
719
  };
720
+ Object.defineProperty(AcTrView2d.prototype, "isHtmlDirty", {
721
+ /**
722
+ * Gets whether CSS2D / HTML overlays need a CSS2DRenderer pass.
723
+ *
724
+ * @returns True if HTML overlays changed without a WebGL scene change
725
+ */
726
+ get: function () {
727
+ return this._htmlDirty;
728
+ },
729
+ /**
730
+ * Sets whether CSS2D / HTML overlays need a CSS2DRenderer pass.
731
+ *
732
+ * Does not force a WebGL redraw. Camera changes still go through
733
+ * {@link isDirty}, which also refreshes overlay projection.
734
+ *
735
+ * @param value - True to mark HTML overlays as needing a CSS2D pass
736
+ */
737
+ set: function (value) {
738
+ this._htmlDirty = value;
739
+ },
740
+ enumerable: false,
741
+ configurable: true
742
+ });
662
743
  Object.defineProperty(AcTrView2d.prototype, "missedData", {
663
744
  /**
664
745
  * Gets information about missing data during rendering (fonts, images, xrefs).
@@ -957,6 +1038,7 @@ var AcTrView2d = /** @class */ (function (_super) {
957
1038
  set: function (value) {
958
1039
  this._layoutViewManager.activeLayoutBtrId = value;
959
1040
  this._scene.activeLayoutBtrId = value;
1041
+ this.htmlTransientManager.setActiveLayoutId(value);
960
1042
  this._isDirty = true;
961
1043
  },
962
1044
  enumerable: false,
@@ -1003,7 +1085,7 @@ var AcTrView2d = /** @class */ (function (_super) {
1003
1085
  */
1004
1086
  AcTrView2d.prototype.ensureEntitiesConvertedForExport = function (options) {
1005
1087
  return __awaiter(this, void 0, void 0, function () {
1006
- var includeInvisibleLayers, db, pending, _a, _b, _c, layoutBtrId, blockTableRecord;
1088
+ var includeInvisibleLayers, db, pending, _a, _b, _c, layoutBtrId, blockTableRecord, idle;
1007
1089
  var e_4, _d;
1008
1090
  var _this = this;
1009
1091
  return __generator(this, function (_e) {
@@ -1029,13 +1111,18 @@ var AcTrView2d = /** @class */ (function (_super) {
1029
1111
  }
1030
1112
  finally { if (e_4) throw e_4.error; }
1031
1113
  }
1032
- if (pending.length === 0) {
1033
- return [2 /*return*/];
1034
- }
1114
+ if (!(pending.length > 0)) return [3 /*break*/, 2];
1035
1115
  this._numOfEntitiesToProcess += pending.length;
1036
1116
  return [4 /*yield*/, this.batchConvert(pending, { forExport: true })];
1037
1117
  case 1:
1038
1118
  _e.sent();
1119
+ _e.label = 2;
1120
+ case 2: return [4 /*yield*/, this.waitUntilIdle()];
1121
+ case 3:
1122
+ idle = _e.sent();
1123
+ if (!idle) {
1124
+ log.warn('[AcTrView2d] Timed out waiting for deferred geometry before export');
1125
+ }
1039
1126
  return [2 /*return*/];
1040
1127
  }
1041
1128
  });
@@ -1528,31 +1615,40 @@ var AcTrView2d = /** @class */ (function (_super) {
1528
1615
  var _this = this;
1529
1616
  var entities = Array.isArray(entity) ? entity : [entity];
1530
1617
  var epoch = this._convertEpoch;
1531
- var _loop_2 = function (i) {
1532
- var entity_1 = entities[i];
1533
- var threeEntity = this_1.drawEntity(entity_1, true);
1534
- if (threeEntity) {
1535
- threeEntity.objectId = entity_1.objectId;
1536
- void threeEntity
1537
- .asyncDraw()
1538
- .then(function () {
1539
- // Drop stale transients started before clear()/regen invalidated the view.
1540
- if (epoch !== _this._convertEpoch) {
1618
+ // Overlay transients (markup / measurement / jigs) must honor entity
1619
+ // lineweight even when LWDISPLAY is off; otherwise ribbon style is a no-op.
1620
+ var previousForce = this._renderer.forceShowLineWeight;
1621
+ this._renderer.forceShowLineWeight = true;
1622
+ try {
1623
+ var _loop_2 = function (i) {
1624
+ var entity_1 = entities[i];
1625
+ var threeEntity = this_1.drawEntity(entity_1, true);
1626
+ if (threeEntity) {
1627
+ threeEntity.objectId = entity_1.objectId;
1628
+ void threeEntity
1629
+ .asyncDraw()
1630
+ .then(function () {
1631
+ // Drop stale transients started before clear()/regen invalidated the view.
1632
+ if (epoch !== _this._convertEpoch) {
1633
+ threeEntity.dispose();
1634
+ return;
1635
+ }
1636
+ _this._scene.addTransientEntity(threeEntity);
1637
+ _this._isDirty = true;
1638
+ })
1639
+ .catch(function (error) {
1640
+ log.error('[AcTrView2d] Transient entity geometry failed:', error);
1541
1641
  threeEntity.dispose();
1542
- return;
1543
- }
1544
- _this._scene.addTransientEntity(threeEntity);
1545
- _this._isDirty = true;
1546
- })
1547
- .catch(function (error) {
1548
- log.error('[AcTrView2d] Transient entity geometry failed:', error);
1549
- threeEntity.dispose();
1550
- });
1642
+ });
1643
+ }
1644
+ };
1645
+ var this_1 = this;
1646
+ for (var i = 0; i < entities.length; ++i) {
1647
+ _loop_2(i);
1551
1648
  }
1552
- };
1553
- var this_1 = this;
1554
- for (var i = 0; i < entities.length; ++i) {
1555
- _loop_2(i);
1649
+ }
1650
+ finally {
1651
+ this._renderer.forceShowLineWeight = previousForce;
1556
1652
  }
1557
1653
  };
1558
1654
  /**
@@ -1563,6 +1659,15 @@ var AcTrView2d = /** @class */ (function (_super) {
1563
1659
  this._scene.removeTransientEntity(objectId);
1564
1660
  this._isDirty = true;
1565
1661
  };
1662
+ /**
1663
+ * Show or hide a published CAD transient entity (e.g. when its measurement
1664
+ * group is hidden by a layout switch).
1665
+ */
1666
+ AcTrView2d.prototype.setTransientEntityVisible = function (objectId, visible) {
1667
+ if (this._scene.setTransientEntityVisible(objectId, visible)) {
1668
+ this._isDirty = true;
1669
+ }
1670
+ };
1566
1671
  /**
1567
1672
  * @inheritdoc
1568
1673
  */
@@ -1599,12 +1704,14 @@ var AcTrView2d = /** @class */ (function (_super) {
1599
1704
  * @inheritdoc
1600
1705
  */
1601
1706
  AcTrView2d.prototype.updateTransientPreviewTransforms = function (transforms) {
1602
- if (this._scene.updateTransientPreviewTransforms(transforms.map(function (entry) { return ({
1707
+ var updated = this._scene.updateTransientPreviewTransforms(transforms.map(function (entry) { return ({
1603
1708
  objectId: entry.objectId,
1604
1709
  matrix: AcTrMatrixUtil.createMatrix4(entry.matrix)
1605
- }); }))) {
1710
+ }); }));
1711
+ if (updated.webgl)
1606
1712
  this._isDirty = true;
1607
- }
1713
+ if (updated.html)
1714
+ this._htmlDirty = true;
1608
1715
  };
1609
1716
  /**
1610
1717
  * @inheritdoc
@@ -2275,14 +2382,12 @@ var AcTrView2d = /** @class */ (function (_super) {
2275
2382
  });
2276
2383
  };
2277
2384
  AcTrView2d.prototype.needsDeferredFontGeometry = function (threeEntity) {
2278
- return (threeEntity instanceof AcTrGlyphEntity ||
2279
- threeEntity instanceof AcTrGroup);
2385
+ return (threeEntity instanceof AcTrGlyphEntity || threeEntity instanceof AcTrGroup);
2280
2386
  };
2281
2387
  AcTrView2d.prototype.groupHasPendingGlyphGeometry = function (group) {
2282
2388
  var pending = false;
2283
2389
  group.traverse(function (child) {
2284
- if (child instanceof AcTrGlyphEntity &&
2285
- !child.hasDrawableGeometry()) {
2390
+ if (child instanceof AcTrGlyphEntity && !child.hasDrawableGeometry()) {
2286
2391
  pending = true;
2287
2392
  }
2288
2393
  });
@@ -2331,8 +2436,7 @@ var AcTrView2d = /** @class */ (function (_super) {
2331
2436
  epoch = this._convertEpoch;
2332
2437
  _a.label = 1;
2333
2438
  case 1:
2334
- if (!(epoch === this._convertEpoch &&
2335
- this._pendingGeometryJobs > 0)) return [3 /*break*/, 3];
2439
+ if (!(epoch === this._convertEpoch && this._pendingGeometryJobs > 0)) return [3 /*break*/, 3];
2336
2440
  return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 0); })];
2337
2441
  case 2:
2338
2442
  _a.sent();
@@ -2751,7 +2855,8 @@ var AcTrView2d = /** @class */ (function (_super) {
2751
2855
  else if (this._numOfEntitiesToProcess === 0) {
2752
2856
  // Always mark dirty when the queue drains. Progressive open throttles
2753
2857
  // mid-open paints, so the last batch would otherwise never redraw until
2754
- // the user pans/zooms (animate bails when !_isDirty && !stillLoading).
2858
+ // the user pans/zooms (animate bails when !_isDirty && !_htmlDirty &&
2859
+ // !stillLoading).
2755
2860
  this._isDirty = true;
2756
2861
  }
2757
2862
  };