@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
@@ -0,0 +1,139 @@
1
+ import type { AcDbDatabase } from '@mlightcad/data-model';
2
+ import type { AcEdBaseView } from '../../editor';
3
+ /** Undo/redo binding for HTML overlay histories (e.g. measurements). */
4
+ export interface AcApOverlayHistoryBinding {
5
+ /** Whether the overlay history has an undo step. */
6
+ canUndo(): boolean;
7
+ /** Whether the overlay history has a redo step. */
8
+ canRedo(): boolean;
9
+ /**
10
+ * Undo the last overlay mutation.
11
+ * @returns true when a step was applied.
12
+ */
13
+ undo(): boolean;
14
+ /**
15
+ * Redo the last undone overlay mutation.
16
+ * @returns true when a step was applied.
17
+ */
18
+ redo(): boolean;
19
+ /** Drop redo entries (e.g. after a new DB or markup edit). */
20
+ clearRedo(): void;
21
+ /** Drop all overlay history (e.g. document close). */
22
+ clear(): void;
23
+ }
24
+ /**
25
+ * Register the measurement / HTML overlay history with session undo.
26
+ * Pass `undefined` to unbind.
27
+ * @param history - Overlay history adapter, or `undefined` to clear the binding.
28
+ */
29
+ export declare function bindOverlayHistory(history: AcApOverlayHistoryBinding | undefined): void;
30
+ /**
31
+ * Snapshot-based undo/redo for Design Review markups.
32
+ *
33
+ * Markups are not DWG objects, so they cannot use database undo. This stack is
34
+ * coordinated with DB undo via {@link AcApSessionUndo}.
35
+ *
36
+ * Visual republish is the caller's responsibility after {@link undo}/{@link redo}.
37
+ */
38
+ export declare class AcApMarkupHistory {
39
+ /** Undo stack of markup store snapshots (oldest first). */
40
+ private readonly undoStack;
41
+ /** Redo stack of markup store snapshots (oldest first). */
42
+ private readonly redoStack;
43
+ /**
44
+ * Nesting depth of {@link run} / {@link apply}. Greater than zero means a
45
+ * mutation is in progress and nested {@link run} calls are not recorded.
46
+ */
47
+ private depth;
48
+ /** True while applying undo/redo or nested inside {@link run}. */
49
+ get isBusy(): boolean;
50
+ /** Whether there is at least one markup undo step. */
51
+ canUndo(): boolean;
52
+ /** Whether there is at least one markup redo step. */
53
+ canRedo(): boolean;
54
+ /** Drop redo entries (e.g. after a new DB edit). */
55
+ clearRedo(): void;
56
+ /** Drop all markup history (e.g. document close). */
57
+ clear(): void;
58
+ /**
59
+ * Run a markup mutation and record one undo step when the store changes.
60
+ * Nested calls do not create extra entries.
61
+ * @param _view - Active view (unused; kept for API symmetry with overlay history).
62
+ * @param label - Human-readable undo label.
63
+ * @param mutate - Mutation to run against the markup store.
64
+ */
65
+ run(_view: AcEdBaseView, label: string, mutate: () => void): void;
66
+ /**
67
+ * Restore the previous markup store snapshot.
68
+ * @returns true when a snapshot was applied (caller should republish).
69
+ */
70
+ undo(): boolean;
71
+ /**
72
+ * Restore the next markup store snapshot.
73
+ * @returns true when a snapshot was applied (caller should republish).
74
+ */
75
+ redo(): boolean;
76
+ /**
77
+ * Replace the markup store with a snapshot and restore its dirty flag.
78
+ * @param records - Markup records to restore.
79
+ * @param dirty - Dirty flag to restore alongside the records.
80
+ */
81
+ private apply;
82
+ }
83
+ /**
84
+ * Chronological session undo that interleaves DB edits, markup edits,
85
+ * and HTML overlay (measurement) edits.
86
+ */
87
+ export declare class AcApSessionUndo {
88
+ /** Chronological kinds of committed session ops (oldest first). */
89
+ private readonly undoKinds;
90
+ /** Chronological kinds of undone session ops waiting to redo (oldest first). */
91
+ private readonly redoKinds;
92
+ /** Call when a new outermost DB undo mark is committed. */
93
+ recordDb(): void;
94
+ /** Call when a new markup history entry is pushed. */
95
+ recordMarkup(): void;
96
+ /** Call when a new HTML overlay (measurement) history entry is pushed. */
97
+ recordOverlay(): void;
98
+ /**
99
+ * Whether any session op (DB, markup, or overlay) can be undone.
100
+ * @param db - Database whose transaction manager is consulted for DB undo.
101
+ */
102
+ canUndo(db: AcDbDatabase): boolean;
103
+ /**
104
+ * Whether any session op (DB, markup, or overlay) can be redone.
105
+ * @param db - Database whose transaction manager is consulted for DB redo.
106
+ */
107
+ canRedo(db: AcDbDatabase): boolean;
108
+ /**
109
+ * Undo the chronologically last session op.
110
+ * @param db - Database used when the last op was a DB transaction.
111
+ * @returns `'markup'` when markup visuals must be republished, `'overlay'`
112
+ * when HTML overlay undo already updated the view, `'db'` when only DB
113
+ * changed, or `false` when nothing was undone.
114
+ */
115
+ undo(db: AcDbDatabase): 'markup' | 'overlay' | 'db' | false;
116
+ /**
117
+ * Redo the chronologically last undone session op.
118
+ * @param db - Database used when the last undone op was a DB transaction.
119
+ * @returns `'markup'` when markup visuals must be republished, `'overlay'`
120
+ * when HTML overlay redo already updated the view, `'db'` when only DB
121
+ * changed, or `false` when nothing was redone.
122
+ */
123
+ redo(db: AcDbDatabase): 'markup' | 'overlay' | 'db' | false;
124
+ /** Drop session undo/redo kinds and bound overlay history. */
125
+ clear(): void;
126
+ }
127
+ /** Shared markup history for the active session. */
128
+ export declare function getMarkupHistory(): AcApMarkupHistory;
129
+ /** Shared session undo coordinator. */
130
+ export declare function getSessionUndo(): AcApSessionUndo;
131
+ /**
132
+ * Record an undoable markup edit.
133
+ * Prefer this over mutating the store directly from UI / commands.
134
+ * @param view - Active view (unused by history; kept for API symmetry).
135
+ * @param label - Human-readable undo label.
136
+ * @param mutate - Mutation to run against the markup store.
137
+ */
138
+ export declare function runMarkupEdit(view: AcEdBaseView, label: string, mutate: () => void): void;
139
+ //# sourceMappingURL=AcApMarkupHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApMarkupHistory.d.ts","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AA8BhD,wEAAwE;AACxE,MAAM,WAAW,yBAAyB;IACxC,oDAAoD;IACpD,OAAO,IAAI,OAAO,CAAA;IAClB,mDAAmD;IACnD,OAAO,IAAI,OAAO,CAAA;IAClB;;;OAGG;IACH,IAAI,IAAI,OAAO,CAAA;IACf;;;OAGG;IACH,IAAI,IAAI,OAAO,CAAA;IACf,8DAA8D;IAC9D,SAAS,IAAI,IAAI,CAAA;IACjB,sDAAsD;IACtD,KAAK,IAAI,IAAI,CAAA;CACd;AAKD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GAAG,SAAS,GAC7C,IAAI,CAEN;AAED;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+B;IACzD,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+B;IACzD;;;OAGG;IACH,OAAO,CAAC,KAAK,CAAI;IAEjB,kEAAkE;IAClE,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,sDAAsD;IACtD,OAAO,IAAI,OAAO;IAIlB,sDAAsD;IACtD,OAAO,IAAI,OAAO;IAIlB,oDAAoD;IACpD,SAAS,IAAI,IAAI;IAIjB,qDAAqD;IACrD,KAAK,IAAI,IAAI;IAKb;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI;IA6BjE;;;OAGG;IACH,IAAI,IAAI,OAAO;IAQf;;;OAGG;IACH,IAAI,IAAI,OAAO;IAQf;;;;OAIG;IACH,OAAO,CAAC,KAAK;CAQd;AAED;;;GAGG;AACH,qBAAa,eAAe;IAC1B,mEAAmE;IACnE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,gFAAgF;IAChF,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAEhD,2DAA2D;IAC3D,QAAQ,IAAI,IAAI;IAOhB,sDAAsD;IACtD,YAAY,IAAI,IAAI;IAMpB,0EAA0E;IAC1E,aAAa,IAAI,IAAI;IAMrB;;;OAGG;IACH,OAAO,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO;IASlC;;;OAGG;IACH,OAAO,CAAC,EAAE,EAAE,YAAY,GAAG,OAAO;IASlC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,EAAE,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK;IAwC3D;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,EAAE,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK;IAwC3D,8DAA8D;IAC9D,KAAK,IAAI,IAAI;CAKd;AAOD,oDAAoD;AACpD,wBAAgB,gBAAgB,IAAI,iBAAiB,CAGpD;AAED,uCAAuC;AACvC,wBAAgB,cAAc,IAAI,eAAe,CAGhD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,IAAI,GACjB,IAAI,CAEN"}
@@ -0,0 +1,336 @@
1
+ import { eventBus } from '../../editor/global/eventBus';
2
+ import { acapNotifyUndoStackChanged } from '../../util/AcApDatabaseEdit';
3
+ import { getMarkupStore } from './AcApMarkupStore';
4
+ /** Bound HTML overlay history consulted by {@link AcApSessionUndo}. */
5
+ var overlayHistory;
6
+ /**
7
+ * Register the measurement / HTML overlay history with session undo.
8
+ * Pass `undefined` to unbind.
9
+ * @param history - Overlay history adapter, or `undefined` to clear the binding.
10
+ */
11
+ export function bindOverlayHistory(history) {
12
+ overlayHistory = history;
13
+ }
14
+ /**
15
+ * Snapshot-based undo/redo for Design Review markups.
16
+ *
17
+ * Markups are not DWG objects, so they cannot use database undo. This stack is
18
+ * coordinated with DB undo via {@link AcApSessionUndo}.
19
+ *
20
+ * Visual republish is the caller's responsibility after {@link undo}/{@link redo}.
21
+ */
22
+ var AcApMarkupHistory = /** @class */ (function () {
23
+ function AcApMarkupHistory() {
24
+ /** Undo stack of markup store snapshots (oldest first). */
25
+ this.undoStack = [];
26
+ /** Redo stack of markup store snapshots (oldest first). */
27
+ this.redoStack = [];
28
+ /**
29
+ * Nesting depth of {@link run} / {@link apply}. Greater than zero means a
30
+ * mutation is in progress and nested {@link run} calls are not recorded.
31
+ */
32
+ this.depth = 0;
33
+ }
34
+ Object.defineProperty(AcApMarkupHistory.prototype, "isBusy", {
35
+ /** True while applying undo/redo or nested inside {@link run}. */
36
+ get: function () {
37
+ return this.depth > 0;
38
+ },
39
+ enumerable: false,
40
+ configurable: true
41
+ });
42
+ /** Whether there is at least one markup undo step. */
43
+ AcApMarkupHistory.prototype.canUndo = function () {
44
+ return this.undoStack.length > 0;
45
+ };
46
+ /** Whether there is at least one markup redo step. */
47
+ AcApMarkupHistory.prototype.canRedo = function () {
48
+ return this.redoStack.length > 0;
49
+ };
50
+ /** Drop redo entries (e.g. after a new DB edit). */
51
+ AcApMarkupHistory.prototype.clearRedo = function () {
52
+ this.redoStack.length = 0;
53
+ };
54
+ /** Drop all markup history (e.g. document close). */
55
+ AcApMarkupHistory.prototype.clear = function () {
56
+ this.undoStack.length = 0;
57
+ this.redoStack.length = 0;
58
+ };
59
+ /**
60
+ * Run a markup mutation and record one undo step when the store changes.
61
+ * Nested calls do not create extra entries.
62
+ * @param _view - Active view (unused; kept for API symmetry with overlay history).
63
+ * @param label - Human-readable undo label.
64
+ * @param mutate - Mutation to run against the markup store.
65
+ */
66
+ AcApMarkupHistory.prototype.run = function (_view, label, mutate) {
67
+ if (this.depth > 0) {
68
+ mutate();
69
+ return;
70
+ }
71
+ var store = getMarkupStore();
72
+ var before = cloneRecords(store.list());
73
+ var beforeDirty = store.dirty;
74
+ this.depth++;
75
+ try {
76
+ mutate();
77
+ }
78
+ finally {
79
+ this.depth--;
80
+ }
81
+ var after = cloneRecords(store.list());
82
+ var afterDirty = store.dirty;
83
+ if (recordsEqual(before, after) && beforeDirty === afterDirty) {
84
+ return;
85
+ }
86
+ this.undoStack.push({ label: label, before: before, after: after, beforeDirty: beforeDirty, afterDirty: afterDirty });
87
+ this.redoStack.length = 0;
88
+ getSessionUndo().recordMarkup();
89
+ acapNotifyUndoStackChanged();
90
+ };
91
+ /**
92
+ * Restore the previous markup store snapshot.
93
+ * @returns true when a snapshot was applied (caller should republish).
94
+ */
95
+ AcApMarkupHistory.prototype.undo = function () {
96
+ var entry = this.undoStack.pop();
97
+ if (!entry)
98
+ return false;
99
+ this.apply(entry.before, entry.beforeDirty);
100
+ this.redoStack.push(entry);
101
+ return true;
102
+ };
103
+ /**
104
+ * Restore the next markup store snapshot.
105
+ * @returns true when a snapshot was applied (caller should republish).
106
+ */
107
+ AcApMarkupHistory.prototype.redo = function () {
108
+ var entry = this.redoStack.pop();
109
+ if (!entry)
110
+ return false;
111
+ this.apply(entry.after, entry.afterDirty);
112
+ this.undoStack.push(entry);
113
+ return true;
114
+ };
115
+ /**
116
+ * Replace the markup store with a snapshot and restore its dirty flag.
117
+ * @param records - Markup records to restore.
118
+ * @param dirty - Dirty flag to restore alongside the records.
119
+ */
120
+ AcApMarkupHistory.prototype.apply = function (records, dirty) {
121
+ this.depth++;
122
+ try {
123
+ getMarkupStore().restore(records, { dirty: dirty });
124
+ }
125
+ finally {
126
+ this.depth--;
127
+ }
128
+ };
129
+ return AcApMarkupHistory;
130
+ }());
131
+ export { AcApMarkupHistory };
132
+ /**
133
+ * Chronological session undo that interleaves DB edits, markup edits,
134
+ * and HTML overlay (measurement) edits.
135
+ */
136
+ var AcApSessionUndo = /** @class */ (function () {
137
+ function AcApSessionUndo() {
138
+ /** Chronological kinds of committed session ops (oldest first). */
139
+ this.undoKinds = [];
140
+ /** Chronological kinds of undone session ops waiting to redo (oldest first). */
141
+ this.redoKinds = [];
142
+ }
143
+ /** Call when a new outermost DB undo mark is committed. */
144
+ AcApSessionUndo.prototype.recordDb = function () {
145
+ this.undoKinds.push('db');
146
+ this.redoKinds.length = 0;
147
+ getMarkupHistory().clearRedo();
148
+ overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.clearRedo();
149
+ };
150
+ /** Call when a new markup history entry is pushed. */
151
+ AcApSessionUndo.prototype.recordMarkup = function () {
152
+ this.undoKinds.push('markup');
153
+ this.redoKinds.length = 0;
154
+ overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.clearRedo();
155
+ };
156
+ /** Call when a new HTML overlay (measurement) history entry is pushed. */
157
+ AcApSessionUndo.prototype.recordOverlay = function () {
158
+ this.undoKinds.push('overlay');
159
+ this.redoKinds.length = 0;
160
+ getMarkupHistory().clearRedo();
161
+ };
162
+ /**
163
+ * Whether any session op (DB, markup, or overlay) can be undone.
164
+ * @param db - Database whose transaction manager is consulted for DB undo.
165
+ */
166
+ AcApSessionUndo.prototype.canUndo = function (db) {
167
+ var _a, _b, _c;
168
+ return (this.undoKinds.length > 0 ||
169
+ getMarkupHistory().canUndo() ||
170
+ ((_a = overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.canUndo()) !== null && _a !== void 0 ? _a : false) ||
171
+ ((_c = (_b = db.transactionManager) === null || _b === void 0 ? void 0 : _b.canUndo()) !== null && _c !== void 0 ? _c : false));
172
+ };
173
+ /**
174
+ * Whether any session op (DB, markup, or overlay) can be redone.
175
+ * @param db - Database whose transaction manager is consulted for DB redo.
176
+ */
177
+ AcApSessionUndo.prototype.canRedo = function (db) {
178
+ var _a, _b, _c;
179
+ return (this.redoKinds.length > 0 ||
180
+ getMarkupHistory().canRedo() ||
181
+ ((_a = overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.canRedo()) !== null && _a !== void 0 ? _a : false) ||
182
+ ((_c = (_b = db.transactionManager) === null || _b === void 0 ? void 0 : _b.canRedo()) !== null && _c !== void 0 ? _c : false));
183
+ };
184
+ /**
185
+ * Undo the chronologically last session op.
186
+ * @param db - Database used when the last op was a DB transaction.
187
+ * @returns `'markup'` when markup visuals must be republished, `'overlay'`
188
+ * when HTML overlay undo already updated the view, `'db'` when only DB
189
+ * changed, or `false` when nothing was undone.
190
+ */
191
+ AcApSessionUndo.prototype.undo = function (db) {
192
+ var _a;
193
+ while (true) {
194
+ var kind = this.undoKinds.pop();
195
+ if (kind === 'markup') {
196
+ if (getMarkupHistory().undo()) {
197
+ this.redoKinds.push('markup');
198
+ return 'markup';
199
+ }
200
+ continue;
201
+ }
202
+ if (kind === 'overlay') {
203
+ if (overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.undo()) {
204
+ this.redoKinds.push('overlay');
205
+ return 'overlay';
206
+ }
207
+ continue;
208
+ }
209
+ if (kind === 'db') {
210
+ if (db.transactionManager.undo()) {
211
+ this.redoKinds.push('db');
212
+ return 'db';
213
+ }
214
+ continue;
215
+ }
216
+ if (getMarkupHistory().undo()) {
217
+ this.redoKinds.push('markup');
218
+ return 'markup';
219
+ }
220
+ if (overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.undo()) {
221
+ this.redoKinds.push('overlay');
222
+ return 'overlay';
223
+ }
224
+ if ((_a = db.transactionManager) === null || _a === void 0 ? void 0 : _a.undo()) {
225
+ this.redoKinds.push('db');
226
+ return 'db';
227
+ }
228
+ return false;
229
+ }
230
+ };
231
+ /**
232
+ * Redo the chronologically last undone session op.
233
+ * @param db - Database used when the last undone op was a DB transaction.
234
+ * @returns `'markup'` when markup visuals must be republished, `'overlay'`
235
+ * when HTML overlay redo already updated the view, `'db'` when only DB
236
+ * changed, or `false` when nothing was redone.
237
+ */
238
+ AcApSessionUndo.prototype.redo = function (db) {
239
+ var _a;
240
+ while (true) {
241
+ var kind = this.redoKinds.pop();
242
+ if (kind === 'markup') {
243
+ if (getMarkupHistory().redo()) {
244
+ this.undoKinds.push('markup');
245
+ return 'markup';
246
+ }
247
+ continue;
248
+ }
249
+ if (kind === 'overlay') {
250
+ if (overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.redo()) {
251
+ this.undoKinds.push('overlay');
252
+ return 'overlay';
253
+ }
254
+ continue;
255
+ }
256
+ if (kind === 'db') {
257
+ if (db.transactionManager.redo()) {
258
+ this.undoKinds.push('db');
259
+ return 'db';
260
+ }
261
+ continue;
262
+ }
263
+ if (getMarkupHistory().redo()) {
264
+ this.undoKinds.push('markup');
265
+ return 'markup';
266
+ }
267
+ if (overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.redo()) {
268
+ this.undoKinds.push('overlay');
269
+ return 'overlay';
270
+ }
271
+ if ((_a = db.transactionManager) === null || _a === void 0 ? void 0 : _a.redo()) {
272
+ this.undoKinds.push('db');
273
+ return 'db';
274
+ }
275
+ return false;
276
+ }
277
+ };
278
+ /** Drop session undo/redo kinds and bound overlay history. */
279
+ AcApSessionUndo.prototype.clear = function () {
280
+ this.undoKinds.length = 0;
281
+ this.redoKinds.length = 0;
282
+ overlayHistory === null || overlayHistory === void 0 ? void 0 : overlayHistory.clear();
283
+ };
284
+ return AcApSessionUndo;
285
+ }());
286
+ export { AcApSessionUndo };
287
+ /** Session-wide markup history singleton. */
288
+ var sharedHistory;
289
+ /** Session-wide DB / markup / overlay undo coordinator singleton. */
290
+ var sharedSessionUndo;
291
+ /** Shared markup history for the active session. */
292
+ export function getMarkupHistory() {
293
+ if (!sharedHistory)
294
+ sharedHistory = new AcApMarkupHistory();
295
+ return sharedHistory;
296
+ }
297
+ /** Shared session undo coordinator. */
298
+ export function getSessionUndo() {
299
+ if (!sharedSessionUndo)
300
+ sharedSessionUndo = new AcApSessionUndo();
301
+ return sharedSessionUndo;
302
+ }
303
+ /**
304
+ * Record an undoable markup edit.
305
+ * Prefer this over mutating the store directly from UI / commands.
306
+ * @param view - Active view (unused by history; kept for API symmetry).
307
+ * @param label - Human-readable undo label.
308
+ * @param mutate - Mutation to run against the markup store.
309
+ */
310
+ export function runMarkupEdit(view, label, mutate) {
311
+ getMarkupHistory().run(view, label, mutate);
312
+ }
313
+ // Bind at module load so early DB edits are not missed before first markup use.
314
+ eventBus.on('session-db-edit-committed', function () {
315
+ getSessionUndo().recordDb();
316
+ });
317
+ /**
318
+ * Deep-clone markup records so later store mutations cannot alias history.
319
+ * @param records - Records to snapshot.
320
+ * @returns Independent copies of `records`.
321
+ */
322
+ function cloneRecords(records) {
323
+ return structuredClone(records);
324
+ }
325
+ /**
326
+ * Whether two markup-record snapshots are structurally equal.
327
+ * @param a - First snapshot.
328
+ * @param b - Second snapshot.
329
+ * @returns true when both arrays stringify to the same JSON.
330
+ */
331
+ function recordsEqual(a, b) {
332
+ if (a.length !== b.length)
333
+ return false;
334
+ return JSON.stringify(a) === JSON.stringify(b);
335
+ }
336
+ //# sourceMappingURL=AcApMarkupHistory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApMarkupHistory.js","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupHistory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAiDlD,uEAAuE;AACvE,IAAI,cAAqD,CAAA;AAEzD;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAA8C;IAE9C,cAAc,GAAG,OAAO,CAAA;AAC1B,CAAC;AAED;;;;;;;GAOG;AACH;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G,IAAI,iBAAiB,EAAE,CAAA;IAC3D,OAAO,aAAa,CAAA;AACtB,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,cAAc;IAC5B,IAAI,CAAC,iBAAiB;QAAE,iBAAiB,GAAG,IAAI,eAAe,EAAE,CAAA;IACjE,OAAO,iBAAiB,CAAA;AAC1B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAkB,EAClB,KAAa,EACb,MAAkB;IAElB,gBAAgB,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;AAC7C,CAAC;AAED,gFAAgF;AAChF,QAAQ,CAAC,EAAE,CAAC,2BAA2B,EAAE;IACvC,cAAc,EAAE,CAAC,QAAQ,EAAE,CAAA;AAC7B,CAAC,CAAC,CAAA;AAEF;;;;GAIG;AACH,SAAS,YAAY,CAAC,OAA2B;IAC/C,OAAO,eAAe,CAAC,OAAO,CAAC,CAAA;AACjC,CAAC;AAED;;;;;GAKG;AACH,SAAS,YAAY,CAAC,CAAqB,EAAE,CAAqB;IAChE,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAA;IACvC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;AAChD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { AcApContext } from '../../app';
2
+ import { AcEdCommand } from '../../editor';
3
+ /**
4
+ * Export current markups to a `{drawing}.markup.json` download.
5
+ */
6
+ export declare class AcApMarkupExportCmd extends AcEdCommand {
7
+ constructor();
8
+ execute(context: AcApContext): Promise<void>;
9
+ }
10
+ /**
11
+ * Import markups from a sidecar JSON file and republish onto the view.
12
+ */
13
+ export declare class AcApMarkupImportCmd extends AcEdCommand {
14
+ constructor();
15
+ execute(context: AcApContext): Promise<void>;
16
+ }
17
+ //# sourceMappingURL=AcApMarkupImportExportCmd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcApMarkupImportExportCmd.d.ts","sourceRoot":"","sources":["../../../src/command/markup/AcApMarkupImportExportCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EACL,WAAW,EAGZ,MAAM,cAAc,CAAA;AAkDrB;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;;IAO5C,OAAO,CAAC,OAAO,EAAE,WAAW;CASnC;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;;IAO5C,OAAO,CAAC,OAAO,EAAE,WAAW;CAkBnC"}