@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.
- package/README.md +23 -8
- package/dist/cad-simple-viewer.js +35023 -70495
- package/dist/cad-simple-viewer.umd.cjs +143 -420
- package/lib/app/AcApDocManager.d.ts +50 -39
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +146 -72
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApSettingManager.d.ts +24 -10
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +49 -10
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/AcApWebworkerReadiness.d.ts +7 -2
- package/lib/app/AcApWebworkerReadiness.d.ts.map +1 -1
- package/lib/app/AcApWebworkerReadiness.js +13 -8
- package/lib/app/AcApWebworkerReadiness.js.map +1 -1
- package/lib/app/AcApWorkerAssets.d.ts +14 -1
- package/lib/app/AcApWorkerAssets.d.ts.map +1 -1
- package/lib/app/AcApWorkerAssets.js +14 -1
- package/lib/app/AcApWorkerAssets.js.map +1 -1
- package/lib/app/index.d.ts +0 -1
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +0 -1
- package/lib/app/index.js.map +1 -1
- package/lib/command/AcApRedoCmd.d.ts +1 -1
- package/lib/command/AcApRedoCmd.d.ts.map +1 -1
- package/lib/command/AcApRedoCmd.js +9 -4
- package/lib/command/AcApRedoCmd.js.map +1 -1
- package/lib/command/AcApUndoCmd.d.ts +1 -1
- package/lib/command/AcApUndoCmd.d.ts.map +1 -1
- package/lib/command/AcApUndoCmd.js +9 -4
- package/lib/command/AcApUndoCmd.js.map +1 -1
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
- package/lib/command/convert/AcApConvertToPngCmd.js +5 -1
- package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
- package/lib/command/convert/AcApPngConvertor.d.ts +4 -1
- package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -1
- package/lib/command/convert/AcApPngConvertor.js +131 -78
- package/lib/command/convert/AcApPngConvertor.js.map +1 -1
- package/lib/command/draw/AcApRevCloudCmd.d.ts +48 -0
- package/lib/command/draw/AcApRevCloudCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApRevCloudCmd.js +747 -0
- package/lib/command/draw/AcApRevCloudCmd.js.map +1 -0
- package/lib/command/draw/AcApRevCloudGeom.d.ts +57 -0
- package/lib/command/draw/AcApRevCloudGeom.d.ts.map +1 -0
- package/lib/command/draw/AcApRevCloudGeom.js +373 -0
- package/lib/command/draw/AcApRevCloudGeom.js.map +1 -0
- package/lib/command/draw/AcApSketchCmd.d.ts +59 -0
- package/lib/command/draw/AcApSketchCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApSketchCmd.js +537 -0
- package/lib/command/draw/AcApSketchCmd.js.map +1 -0
- package/lib/command/draw/index.d.ts +3 -0
- package/lib/command/draw/index.d.ts.map +1 -1
- package/lib/command/draw/index.js +3 -0
- package/lib/command/draw/index.js.map +1 -1
- package/lib/command/index.d.ts +2 -1
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +2 -1
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApClearMarkupsCmd.d.ts +10 -0
- package/lib/command/markup/AcApClearMarkupsCmd.d.ts.map +1 -0
- package/lib/command/{review/AcApRevCircleCmd.js → markup/AcApClearMarkupsCmd.js} +19 -49
- package/lib/command/markup/AcApClearMarkupsCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts +10 -0
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupArrowCmd.js +164 -0
- package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +17 -0
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupCalloutCmd.js +259 -0
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupCalloutDrag.d.ts +78 -0
- package/lib/command/markup/AcApMarkupCalloutDrag.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupCalloutDrag.js +78 -0
- package/lib/command/markup/AcApMarkupCalloutDrag.js.map +1 -0
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts +10 -0
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupCircleCmd.js +174 -0
- package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts +11 -0
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupCloudCmd.js +178 -0
- package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +43 -0
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupCmdUtil.js +133 -0
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -0
- package/lib/command/markup/AcApMarkupGeometry.d.ts +57 -0
- package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupGeometry.js +231 -0
- package/lib/command/markup/AcApMarkupGeometry.js.map +1 -0
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +10 -0
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupHighlightCmd.js +166 -0
- package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupHistory.d.ts +139 -0
- package/lib/command/markup/AcApMarkupHistory.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupHistory.js +336 -0
- package/lib/command/markup/AcApMarkupHistory.js.map +1 -0
- package/lib/command/markup/AcApMarkupImportExportCmd.d.ts +17 -0
- package/lib/command/markup/AcApMarkupImportExportCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupImportExportCmd.js +182 -0
- package/lib/command/markup/AcApMarkupImportExportCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupLineCmd.d.ts +10 -0
- package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupLineCmd.js +185 -0
- package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupPresenter.d.ts +62 -0
- package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupPresenter.js +288 -0
- package/lib/command/markup/AcApMarkupPresenter.js.map +1 -0
- package/lib/command/markup/AcApMarkupRectCmd.d.ts +10 -0
- package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupRectCmd.js +174 -0
- package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupRepublish.d.ts +29 -0
- package/lib/command/markup/AcApMarkupRepublish.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupRepublish.js +28 -0
- package/lib/command/markup/AcApMarkupRepublish.js.map +1 -0
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +88 -0
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupShapeBuilder.js +246 -0
- package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -0
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts +46 -0
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupShapeCallout.js +356 -0
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -0
- package/lib/command/markup/AcApMarkupSidecar.d.ts +14 -0
- package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupSidecar.js +196 -0
- package/lib/command/markup/AcApMarkupSidecar.js.map +1 -0
- package/lib/command/markup/AcApMarkupStampCmd.d.ts +10 -0
- package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupStampCmd.js +158 -0
- package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupStore.d.ts +94 -0
- package/lib/command/markup/AcApMarkupStore.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupStore.js +327 -0
- package/lib/command/markup/AcApMarkupStore.js.map +1 -0
- package/lib/command/markup/AcApMarkupTextCmd.d.ts +10 -0
- package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupTextCmd.js +141 -0
- package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupTextEdit.d.ts +88 -0
- package/lib/command/markup/AcApMarkupTextEdit.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupTextEdit.js +249 -0
- package/lib/command/markup/AcApMarkupTextEdit.js.map +1 -0
- package/lib/command/markup/AcApMarkupTypes.d.ts +118 -0
- package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupTypes.js +8 -0
- package/lib/command/markup/AcApMarkupTypes.js.map +1 -0
- package/lib/command/markup/AcApMarkupUtil.d.ts +41 -0
- package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupUtil.js +135 -0
- package/lib/command/markup/AcApMarkupUtil.js.map +1 -0
- package/lib/command/markup/AcApMarkupVisibilityCmd.d.ts +17 -0
- package/lib/command/markup/AcApMarkupVisibilityCmd.d.ts.map +1 -0
- package/lib/command/{review/AcApRevVisibilityCmd.js → markup/AcApMarkupVisibilityCmd.js} +30 -27
- package/lib/command/markup/AcApMarkupVisibilityCmd.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts +48 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +291 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts +131 -0
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupEntity.js +191 -0
- package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupEntityFactory.d.ts +20 -0
- package/lib/command/markup/entity/AcApMarkupEntityFactory.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupEntityFactory.js +43 -0
- package/lib/command/markup/entity/AcApMarkupEntityFactory.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +94 -0
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js +204 -0
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts +27 -0
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +124 -0
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts +40 -0
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +294 -0
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts +32 -0
- package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js +241 -0
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts +23 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.js +125 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts +23 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.js +129 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -0
- package/lib/command/markup/entity/index.d.ts +13 -0
- package/lib/command/markup/entity/index.d.ts.map +1 -0
- package/lib/command/markup/entity/index.js +13 -0
- package/lib/command/markup/entity/index.js.map +1 -0
- package/lib/command/markup/index.d.ts +27 -0
- package/lib/command/markup/index.d.ts.map +1 -0
- package/lib/command/markup/index.js +27 -0
- package/lib/command/markup/index.js.map +1 -0
- package/lib/command/measure/AcApClearMeasurementsCmd.d.ts +5 -12
- package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApClearMeasurementsCmd.js +42 -20
- package/lib/command/measure/AcApClearMeasurementsCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts +13 -3
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAngleCmd.js +76 -210
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts +21 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.js +103 -97
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts +11 -1
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.js +126 -144
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +24 -15
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureDistanceCmd.js +52 -52
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasurePointCmd.d.ts +24 -0
- package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurePointCmd.js +114 -0
- package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasurementGeometry.d.ts +22 -0
- package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementGeometry.js +127 -0
- package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -0
- package/lib/command/measure/AcApMeasurementHistory.d.ts +78 -0
- package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementHistory.js +387 -0
- package/lib/command/measure/AcApMeasurementHistory.js.map +1 -0
- package/lib/command/measure/AcApMeasurementImportExportCmd.d.ts +17 -0
- package/lib/command/measure/AcApMeasurementImportExportCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementImportExportCmd.js +207 -0
- package/lib/command/measure/AcApMeasurementImportExportCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasurementPlace.d.ts +9 -0
- package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementPlace.js +33 -0
- package/lib/command/measure/AcApMeasurementPlace.js.map +1 -0
- package/lib/command/measure/AcApMeasurementSidecar.d.ts +19 -0
- package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementSidecar.js +173 -0
- package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -0
- package/lib/command/measure/AcApMeasurementStore.d.ts +90 -0
- package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementStore.js +364 -0
- package/lib/command/measure/AcApMeasurementStore.js.map +1 -0
- package/lib/command/measure/AcApMeasurementTypes.d.ts +56 -0
- package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementTypes.js +2 -0
- package/lib/command/measure/AcApMeasurementTypes.js.map +1 -0
- package/lib/command/measure/AcApMeasurementVisibilityCmd.d.ts +10 -0
- package/lib/command/measure/AcApMeasurementVisibilityCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementVisibilityCmd.js +78 -0
- package/lib/command/measure/AcApMeasurementVisibilityCmd.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +68 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js +188 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +85 -0
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureArcEntity.js +159 -0
- package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +60 -0
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js +184 -0
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +60 -0
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +166 -0
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +129 -0
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js +257 -0
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts +148 -0
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntity.js +141 -0
- package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +15 -0
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js +35 -0
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +56 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.js +125 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -0
- package/lib/command/measure/entity/index.d.ts +12 -0
- package/lib/command/measure/entity/index.d.ts.map +1 -0
- package/lib/command/measure/entity/index.js +12 -0
- package/lib/command/measure/entity/index.js.map +1 -0
- package/lib/command/measure/index.d.ts +10 -0
- package/lib/command/measure/index.d.ts.map +1 -1
- package/lib/command/measure/index.js +10 -0
- package/lib/command/measure/index.js.map +1 -1
- package/lib/command/modify/AcApCopyCmd.d.ts +1 -1
- package/lib/command/modify/AcApCopyCmd.js +2 -2
- package/lib/command/modify/AcApCopyCmd.js.map +1 -1
- package/lib/command/modify/AcApMoveCmd.js +1 -1
- package/lib/command/modify/AcApMoveCmd.js.map +1 -1
- package/lib/command/modify/AcApOffsetCmd.d.ts +1 -1
- package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -1
- package/lib/command/modify/AcApOffsetCmd.js +5 -10
- package/lib/command/modify/AcApOffsetCmd.js.map +1 -1
- package/lib/command/modify/AcApRotateCmd.d.ts +1 -1
- package/lib/command/modify/AcApRotateCmd.js +2 -2
- package/lib/command/modify/AcApRotateCmd.js.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts +121 -0
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -0
- package/lib/command/overlay/AcApHtmlLivePreview.js +193 -0
- package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -0
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +63 -0
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -0
- package/lib/command/overlay/AcApOverlayDrawUtil.js +115 -0
- package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -0
- package/lib/command/overlay/AcApOverlayEntity.d.ts +93 -0
- package/lib/command/overlay/AcApOverlayEntity.d.ts.map +1 -0
- package/lib/command/overlay/AcApOverlayEntity.js +65 -0
- package/lib/command/overlay/AcApOverlayEntity.js.map +1 -0
- package/lib/command/overlay/AcApOverlayGripHost.d.ts +105 -0
- package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -0
- package/lib/command/overlay/AcApOverlayGripHost.js +207 -0
- package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -0
- package/lib/command/overlay/AcApOverlaySerializable.d.ts +20 -0
- package/lib/command/overlay/AcApOverlaySerializable.d.ts.map +1 -0
- package/lib/command/overlay/AcApOverlaySerializable.js +2 -0
- package/lib/command/overlay/AcApOverlaySerializable.js.map +1 -0
- package/lib/command/overlay/index.d.ts +13 -0
- package/lib/command/overlay/index.d.ts.map +1 -0
- package/lib/command/overlay/index.js +13 -0
- package/lib/command/overlay/index.js.map +1 -0
- package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommand.js +1 -0
- package/lib/editor/command/AcEdCommand.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +3 -3
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +3 -3
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiTheme.js +1 -1
- package/lib/editor/global/AcEdUiTheme.js.map +1 -1
- package/lib/editor/global/eventBus.d.ts +5 -0
- package/lib/editor/global/eventBus.d.ts.map +1 -1
- package/lib/editor/global/eventBus.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +6 -0
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +10 -0
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts +7 -0
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.js +17 -0
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +9 -0
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +17 -0
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdMTextEditor.js +3 -3
- package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +60 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +63 -3
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +1227 -1
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +1226 -6
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +5 -0
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +5 -0
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +57 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +60 -3
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +180 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +181 -1
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +5 -0
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +5 -0
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +57 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +60 -3
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +180 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +181 -1
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +7 -0
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +7 -0
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +57 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +60 -3
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +180 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +181 -1
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +5 -0
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +5 -0
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
- package/lib/plugin/AcApPluginManager.js +2 -1
- package/lib/plugin/AcApPluginManager.js.map +1 -1
- package/lib/service/AcApEntitySelection.d.ts +0 -3
- package/lib/service/AcApEntitySelection.d.ts.map +1 -1
- package/lib/service/AcApEntitySelection.js +42 -36
- package/lib/service/AcApEntitySelection.js.map +1 -1
- package/lib/ui/AcApDrawStyle.d.ts +63 -0
- package/lib/ui/AcApDrawStyle.d.ts.map +1 -0
- package/lib/ui/AcApDrawStyle.js +149 -0
- package/lib/ui/AcApDrawStyle.js.map +1 -0
- package/lib/ui/AcApDrawStyleToolbar.d.ts +124 -0
- package/lib/ui/AcApDrawStyleToolbar.d.ts.map +1 -0
- package/lib/ui/AcApDrawStyleToolbar.js +486 -0
- package/lib/ui/AcApDrawStyleToolbar.js.map +1 -0
- package/lib/ui/AcUiDialog.d.ts.map +1 -1
- package/lib/ui/AcUiDialog.js +2 -2
- package/lib/ui/AcUiDialog.js.map +1 -1
- package/lib/ui/index.d.ts +2 -0
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +2 -0
- package/lib/ui/index.js.map +1 -1
- package/lib/util/AcApDatabaseEdit.d.ts.map +1 -1
- package/lib/util/AcApDatabaseEdit.js +1 -0
- package/lib/util/AcApDatabaseEdit.js.map +1 -1
- package/lib/util/AcApMeasurementUnits.d.ts +52 -0
- package/lib/util/AcApMeasurementUnits.d.ts.map +1 -0
- package/lib/util/AcApMeasurementUnits.js +137 -0
- package/lib/util/AcApMeasurementUnits.js.map +1 -0
- package/lib/util/AcApMeasurementUtil.d.ts +42 -0
- package/lib/util/AcApMeasurementUtil.d.ts.map +1 -0
- package/lib/util/AcApMeasurementUtil.js +98 -0
- package/lib/util/AcApMeasurementUtil.js.map +1 -0
- package/lib/util/AcApScreenHitTest.d.ts +35 -0
- package/lib/util/AcApScreenHitTest.d.ts.map +1 -0
- package/lib/util/AcApScreenHitTest.js +98 -0
- package/lib/util/AcApScreenHitTest.js.map +1 -0
- package/lib/util/AcApScriptParser.d.ts +13 -0
- package/lib/util/AcApScriptParser.d.ts.map +1 -0
- package/lib/util/AcApScriptParser.js +55 -0
- package/lib/util/AcApScriptParser.js.map +1 -0
- package/lib/util/index.d.ts +4 -1
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +4 -1
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcEdReviewOverlayPick.d.ts +25 -0
- package/lib/view/AcEdReviewOverlayPick.d.ts.map +1 -0
- package/lib/view/AcEdReviewOverlayPick.js +229 -0
- package/lib/view/AcEdReviewOverlayPick.js.map +1 -0
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
- package/lib/view/AcEdViewKeyHandler.js +53 -0
- package/lib/view/AcEdViewKeyHandler.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +15 -1
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +25 -2
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +46 -5
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +179 -74
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/index.d.ts +1 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +1 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +7 -6
- package/dist/libredwg-parser-worker.js +0 -7525
- package/lib/app/AcApAnnotation.d.ts +0 -47
- package/lib/app/AcApAnnotation.d.ts.map +0 -1
- package/lib/app/AcApAnnotation.js +0 -135
- package/lib/app/AcApAnnotation.js.map +0 -1
- package/lib/command/review/AcApBaseRevCmd.d.ts +0 -36
- package/lib/command/review/AcApBaseRevCmd.d.ts.map +0 -1
- package/lib/command/review/AcApBaseRevCmd.js +0 -68
- package/lib/command/review/AcApBaseRevCmd.js.map +0 -1
- package/lib/command/review/AcApRevCircleCmd.d.ts +0 -18
- package/lib/command/review/AcApRevCircleCmd.d.ts.map +0 -1
- package/lib/command/review/AcApRevCircleCmd.js.map +0 -1
- package/lib/command/review/AcApRevCloudCmd.d.ts +0 -26
- package/lib/command/review/AcApRevCloudCmd.d.ts.map +0 -1
- package/lib/command/review/AcApRevCloudCmd.js +0 -240
- package/lib/command/review/AcApRevCloudCmd.js.map +0 -1
- package/lib/command/review/AcApRevRectCmd.d.ts +0 -18
- package/lib/command/review/AcApRevRectCmd.d.ts.map +0 -1
- package/lib/command/review/AcApRevRectCmd.js +0 -155
- package/lib/command/review/AcApRevRectCmd.js.map +0 -1
- package/lib/command/review/AcApRevVisibilityCmd.d.ts +0 -15
- package/lib/command/review/AcApRevVisibilityCmd.d.ts.map +0 -1
- package/lib/command/review/AcApRevVisibilityCmd.js.map +0 -1
- package/lib/command/review/AcApSketchCmd.d.ts +0 -32
- package/lib/command/review/AcApSketchCmd.d.ts.map +0 -1
- package/lib/command/review/AcApSketchCmd.js +0 -175
- package/lib/command/review/AcApSketchCmd.js.map +0 -1
- package/lib/command/review/index.d.ts +0 -7
- package/lib/command/review/index.d.ts.map +0 -1
- package/lib/command/review/index.js +0 -7
- package/lib/command/review/index.js.map +0 -1
- package/lib/util/AcApMeasurementElementGenerator.d.ts +0 -36
- package/lib/util/AcApMeasurementElementGenerator.d.ts.map +0 -1
- package/lib/util/AcApMeasurementElementGenerator.js +0 -92
- package/lib/util/AcApMeasurementElementGenerator.js.map +0 -1
package/lib/view/AcTrView2d.js
CHANGED
|
@@ -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
|
-
|
|
286
|
-
|
|
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
|
-
|
|
289
|
-
|
|
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
|
-
|
|
416
|
-
|
|
417
|
-
|
|
425
|
+
if (trySelectReviewOverlay(_this, endCanvas.x, endCanvas.y, action)) {
|
|
426
|
+
if (action === 'replace') {
|
|
427
|
+
_this.selectionSet.clear();
|
|
428
|
+
}
|
|
418
429
|
}
|
|
419
|
-
else
|
|
420
|
-
_this.
|
|
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
|
-
//
|
|
466
|
-
//
|
|
467
|
-
//
|
|
468
|
-
//
|
|
469
|
-
//
|
|
470
|
-
//
|
|
471
|
-
//
|
|
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
|
|
590
|
+
* Gets whether the WebGL scene needs to be re-rendered.
|
|
584
591
|
*
|
|
585
|
-
*
|
|
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
|
|
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
|
|
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
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
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
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
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
|
-
|
|
1554
|
-
|
|
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
|
-
|
|
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 && !
|
|
2858
|
+
// the user pans/zooms (animate bails when !_isDirty && !_htmlDirty &&
|
|
2859
|
+
// !stillLoading).
|
|
2755
2860
|
this._isDirty = true;
|
|
2756
2861
|
}
|
|
2757
2862
|
};
|