@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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __values = (this && this.__values) || function(o) {
|
|
17
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
18
|
+
if (m) return m.call(o);
|
|
19
|
+
if (o && typeof o.length === "number") return {
|
|
20
|
+
next: function () {
|
|
21
|
+
if (o && i >= o.length) o = void 0;
|
|
22
|
+
return { value: o && o[i++], done: !o };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26
|
+
};
|
|
27
|
+
import { AcTrHtmlCanvasOverlay, AcTrHtmlDot } from '@mlightcad/three-renderer';
|
|
28
|
+
import { acapDrawOverlayHighlight, acapFitOverlayCanvas } from '../../overlay';
|
|
29
|
+
import { AcApMarkupEntity } from './AcApMarkupEntity';
|
|
30
|
+
/**
|
|
31
|
+
* Highlight rectangle markup (canvas fill + invisible center hit target).
|
|
32
|
+
*/
|
|
33
|
+
var AcApMarkupHighlightEntity = /** @class */ (function (_super) {
|
|
34
|
+
__extends(AcApMarkupHighlightEntity, _super);
|
|
35
|
+
/**
|
|
36
|
+
* @param record - Store record whose geometry type must be `highlight`.
|
|
37
|
+
*/
|
|
38
|
+
function AcApMarkupHighlightEntity(record) {
|
|
39
|
+
return _super.call(this, record) || this;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Highlight has no move grip in the current UX.
|
|
43
|
+
*
|
|
44
|
+
* @returns Empty grip list.
|
|
45
|
+
*/
|
|
46
|
+
AcApMarkupHighlightEntity.prototype.subGetGripPoints = function () {
|
|
47
|
+
return [];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Publish a canvas highlight fill/stroke and a center hit-target dot.
|
|
51
|
+
*
|
|
52
|
+
* @param view - Active 2D view for canvas sizing and viewChanged redraw.
|
|
53
|
+
* @returns Group with canvas overlay and dispose for the redraw listener.
|
|
54
|
+
*/
|
|
55
|
+
AcApMarkupHighlightEntity.prototype.subWorldDraw = function (view) {
|
|
56
|
+
var _this = this;
|
|
57
|
+
var geom = this.record.geometry;
|
|
58
|
+
if (geom.type !== 'highlight') {
|
|
59
|
+
return this.emptyResult(this.createGroup());
|
|
60
|
+
}
|
|
61
|
+
var _a = this.style(), color = _a.color, canvasLineWidth = _a.canvasLineWidth, layer = _a.layer, layoutId = _a.layoutId;
|
|
62
|
+
var group = this.createGroup();
|
|
63
|
+
/** Unbinders for viewChanged redraw. */
|
|
64
|
+
var cleanups = [];
|
|
65
|
+
var container = view.container;
|
|
66
|
+
var overlay = new AcTrHtmlCanvasOverlay({
|
|
67
|
+
id: "".concat(this.record.id, "-hl"),
|
|
68
|
+
container: container,
|
|
69
|
+
layer: layer,
|
|
70
|
+
layoutId: layoutId
|
|
71
|
+
});
|
|
72
|
+
group.addCanvas(overlay);
|
|
73
|
+
/**
|
|
74
|
+
* Redraw the highlight rectangle in screen space.
|
|
75
|
+
*/
|
|
76
|
+
var redraw = function () {
|
|
77
|
+
var ctx = acapFitOverlayCanvas(overlay.canvas, container);
|
|
78
|
+
if (!ctx)
|
|
79
|
+
return;
|
|
80
|
+
acapDrawOverlayHighlight(ctx, view.worldToScreen(geom.corner1), view.worldToScreen(geom.corner2), _this.record.style.color, canvasLineWidth);
|
|
81
|
+
};
|
|
82
|
+
redraw();
|
|
83
|
+
view.events.viewChanged.addEventListener(redraw);
|
|
84
|
+
cleanups.push(function () { return view.events.viewChanged.removeEventListener(redraw); });
|
|
85
|
+
group.add(new AcTrHtmlDot({
|
|
86
|
+
id: "".concat(this.record.id, "-dot"),
|
|
87
|
+
color: color,
|
|
88
|
+
worldPosition: {
|
|
89
|
+
x: (geom.corner1.x + geom.corner2.x) / 2,
|
|
90
|
+
y: (geom.corner1.y + geom.corner2.y) / 2
|
|
91
|
+
},
|
|
92
|
+
layer: layer,
|
|
93
|
+
layoutId: layoutId
|
|
94
|
+
}));
|
|
95
|
+
return {
|
|
96
|
+
group: group,
|
|
97
|
+
entityIds: [],
|
|
98
|
+
dispose: function () {
|
|
99
|
+
var e_1, _a;
|
|
100
|
+
try {
|
|
101
|
+
for (var cleanups_1 = __values(cleanups), cleanups_1_1 = cleanups_1.next(); !cleanups_1_1.done; cleanups_1_1 = cleanups_1.next()) {
|
|
102
|
+
var fn = cleanups_1_1.value;
|
|
103
|
+
try {
|
|
104
|
+
fn();
|
|
105
|
+
}
|
|
106
|
+
catch (_b) {
|
|
107
|
+
// ignore
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
112
|
+
finally {
|
|
113
|
+
try {
|
|
114
|
+
if (cleanups_1_1 && !cleanups_1_1.done && (_a = cleanups_1.return)) _a.call(cleanups_1);
|
|
115
|
+
}
|
|
116
|
+
finally { if (e_1) throw e_1.error; }
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
return AcApMarkupHighlightEntity;
|
|
122
|
+
}(AcApMarkupEntity));
|
|
123
|
+
export { AcApMarkupHighlightEntity };
|
|
124
|
+
//# sourceMappingURL=AcApMarkupHighlightEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMarkupHighlightEntity.js","sourceRoot":"","sources":["../../../../src/command/markup/entity/AcApMarkupHighlightEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAG9E,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EAAmC,MAAM,eAAe,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;GAEG;AACH;IAA+C,6CAAgB;IAC7D;;OAEG;IACH,mCAAY,MAAwB;QAClC,OAAA,MAAK,YAAC,MAAM,CAAC,SAAA;IACf,CAAC;IAED;;;;OAIG;IACM,oDAAgB,GAAzB;QACE,OAAO,EAAE,CAAA;IACX,CAAC;IAED;;;;;OAKG;IACO,gDAAY,GAAtB,UAAuB,IAAgB;QAAvC,iBA8DC;QA7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MAAM,CAAC,WAAW,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAnD,CAAmD,CAAC,CAAA;QAExE,KAAK,CAAC,GAAG,CACP,IAAI,WAAW,CAAC;YACd,EAAE,EAAE,UAAG,IAAI,CAAC,MAAM,CAAC,EAAE,SAAM;YAC3B,KAAK,OAAA;YACL,aAAa,EAAE;gBACb,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;aACzC;YACD,KAAK,OAAA;YACL,QAAQ,UAAA;SACT,CAAC,CACH,CAAA;QAED,OAAO;YACL,KAAK,OAAA;YACL,SAAS,EAAE,EAAE;YACb,OAAO,EAAE;;;oBACP,KAAiB,IAAA,aAAA,SAAA,QAAQ,CAAA,kCAAA,wDAAE,CAAC;wBAAvB,IAAM,EAAE,qBAAA;wBACX,IAAI,CAAC;4BACH,EAAE,EAAE,CAAA;wBACN,CAAC;wBAAC,WAAM,CAAC;4BACP,SAAS;wBACX,CAAC;oBACH,CAAC;;;;;;;;;YACH,CAAC;SACF,CAAA;IACH,CAAC;IACH,gCAAC;AAAD,CAAC,AAtFD,CAA+C,gBAAgB,GAsF9D"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AcGePoint3d, type AcGeVector3dLike } from '@mlightcad/data-model';
|
|
2
|
+
import type { AcTrView2d } from '../../../view';
|
|
3
|
+
import { type AcApOverlayWorldDrawResult } from '../../overlay';
|
|
4
|
+
import type { AcApMarkupRecord } from '../AcApMarkupTypes';
|
|
5
|
+
import { AcApMarkupEntity } from './AcApMarkupEntity';
|
|
6
|
+
/**
|
|
7
|
+
* Line or arrow markup with endpoint grips.
|
|
8
|
+
*
|
|
9
|
+
* Draws an HTML canvas stroke (and arrow head when applicable) plus endpoint
|
|
10
|
+
* HTML dots. No CAD transient entities.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AcApMarkupSegmentEntity extends AcApMarkupEntity {
|
|
13
|
+
/**
|
|
14
|
+
* @param record - Store record whose geometry type is `line` or `arrow`.
|
|
15
|
+
*/
|
|
16
|
+
constructor(record: AcApMarkupRecord);
|
|
17
|
+
/**
|
|
18
|
+
* Grip 0 = start endpoint, grip 1 = end endpoint.
|
|
19
|
+
*
|
|
20
|
+
* @returns Start and end points in WCS, or empty when geometry is wrong type.
|
|
21
|
+
*/
|
|
22
|
+
subGetGripPoints(): AcGePoint3d[];
|
|
23
|
+
/**
|
|
24
|
+
* Move start and/or end by the given offset for the selected grip indices.
|
|
25
|
+
*
|
|
26
|
+
* @param indices - Grip indices (`0` start, `1` end).
|
|
27
|
+
* @param offset - World-space translation.
|
|
28
|
+
* @returns This entity for chaining.
|
|
29
|
+
*/
|
|
30
|
+
subMoveGripPointsAt(indices: number[], offset: AcGeVector3dLike): this;
|
|
31
|
+
/**
|
|
32
|
+
* Publish canvas stroke, endpoint dots, optional arrow head, and endpoint grips.
|
|
33
|
+
*
|
|
34
|
+
* @param view - Active 2D view.
|
|
35
|
+
* @returns Built visuals; {@link AcApOverlayWorldDrawResult.bindGrips} binds
|
|
36
|
+
* endpoint drags after the group is published.
|
|
37
|
+
*/
|
|
38
|
+
protected subWorldDraw(view: AcTrView2d): AcApOverlayWorldDrawResult;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=AcApMarkupSegmentEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMarkupSegmentEntity.d.ts","sourceRoot":"","sources":["../../../../src/command/markup/entity/AcApMarkupSegmentEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAA;AAM9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAIL,KAAK,0BAA0B,EAEhC,MAAM,eAAe,CAAA;AAItB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGrD;;;;;GAKG;AACH,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D;;OAEG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;OAIG;IACM,gBAAgB,IAAI,WAAW,EAAE;IAS1C;;;;;;OAMG;IACM,mBAAmB,CAC1B,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,gBAAgB,GACvB,IAAI;IAsBP;;;;;;OAMG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,0BAA0B;CAmKrE"}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __assign = (this && this.__assign) || function () {
|
|
17
|
+
__assign = Object.assign || function(t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
var __values = (this && this.__values) || function(o) {
|
|
28
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
29
|
+
if (m) return m.call(o);
|
|
30
|
+
if (o && typeof o.length === "number") return {
|
|
31
|
+
next: function () {
|
|
32
|
+
if (o && i >= o.length) o = void 0;
|
|
33
|
+
return { value: o && o[i++], done: !o };
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
37
|
+
};
|
|
38
|
+
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
39
|
+
import { AcTrHtmlCanvasOverlay, AcTrHtmlDot } from '@mlightcad/three-renderer';
|
|
40
|
+
import { acapBindOverlayPointerDrag, acapDrawOverlayArrowHead, acapFitOverlayCanvas, acapPlaceOverlayHtml } from '../../overlay';
|
|
41
|
+
import { runMarkupEdit } from '../AcApMarkupHistory';
|
|
42
|
+
import { republishMarkup } from '../AcApMarkupRepublish';
|
|
43
|
+
import { getMarkupStore } from '../AcApMarkupStore';
|
|
44
|
+
import { AcApMarkupEntity } from './AcApMarkupEntity';
|
|
45
|
+
import { selectMarkupGroup } from './AcApMarkupEntityGrips';
|
|
46
|
+
/**
|
|
47
|
+
* Line or arrow markup with endpoint grips.
|
|
48
|
+
*
|
|
49
|
+
* Draws an HTML canvas stroke (and arrow head when applicable) plus endpoint
|
|
50
|
+
* HTML dots. No CAD transient entities.
|
|
51
|
+
*/
|
|
52
|
+
var AcApMarkupSegmentEntity = /** @class */ (function (_super) {
|
|
53
|
+
__extends(AcApMarkupSegmentEntity, _super);
|
|
54
|
+
/**
|
|
55
|
+
* @param record - Store record whose geometry type is `line` or `arrow`.
|
|
56
|
+
*/
|
|
57
|
+
function AcApMarkupSegmentEntity(record) {
|
|
58
|
+
return _super.call(this, record) || this;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Grip 0 = start endpoint, grip 1 = end endpoint.
|
|
62
|
+
*
|
|
63
|
+
* @returns Start and end points in WCS, or empty when geometry is wrong type.
|
|
64
|
+
*/
|
|
65
|
+
AcApMarkupSegmentEntity.prototype.subGetGripPoints = function () {
|
|
66
|
+
var geom = this.record.geometry;
|
|
67
|
+
if (geom.type !== 'line' && geom.type !== 'arrow')
|
|
68
|
+
return [];
|
|
69
|
+
return [
|
|
70
|
+
new AcGePoint3d(geom.start.x, geom.start.y, 0),
|
|
71
|
+
new AcGePoint3d(geom.end.x, geom.end.y, 0)
|
|
72
|
+
];
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Move start and/or end by the given offset for the selected grip indices.
|
|
76
|
+
*
|
|
77
|
+
* @param indices - Grip indices (`0` start, `1` end).
|
|
78
|
+
* @param offset - World-space translation.
|
|
79
|
+
* @returns This entity for chaining.
|
|
80
|
+
*/
|
|
81
|
+
AcApMarkupSegmentEntity.prototype.subMoveGripPointsAt = function (indices, offset) {
|
|
82
|
+
var e_1, _a;
|
|
83
|
+
var geom = this.record.geometry;
|
|
84
|
+
if (geom.type !== 'line' && geom.type !== 'arrow')
|
|
85
|
+
return this;
|
|
86
|
+
var start = __assign({}, geom.start);
|
|
87
|
+
var end = __assign({}, geom.end);
|
|
88
|
+
try {
|
|
89
|
+
for (var indices_1 = __values(indices), indices_1_1 = indices_1.next(); !indices_1_1.done; indices_1_1 = indices_1.next()) {
|
|
90
|
+
var index = indices_1_1.value;
|
|
91
|
+
if (index === 0) {
|
|
92
|
+
start = { x: start.x + offset.x, y: start.y + offset.y };
|
|
93
|
+
}
|
|
94
|
+
else if (index === 1) {
|
|
95
|
+
end = { x: end.x + offset.x, y: end.y + offset.y };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
100
|
+
finally {
|
|
101
|
+
try {
|
|
102
|
+
if (indices_1_1 && !indices_1_1.done && (_a = indices_1.return)) _a.call(indices_1);
|
|
103
|
+
}
|
|
104
|
+
finally { if (e_1) throw e_1.error; }
|
|
105
|
+
}
|
|
106
|
+
this.record = __assign(__assign({}, this.record), { geometry: geom.type === 'arrow'
|
|
107
|
+
? { type: 'arrow', start: start, end: end }
|
|
108
|
+
: { type: 'line', start: start, end: end } });
|
|
109
|
+
return this;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Publish canvas stroke, endpoint dots, optional arrow head, and endpoint grips.
|
|
113
|
+
*
|
|
114
|
+
* @param view - Active 2D view.
|
|
115
|
+
* @returns Built visuals; {@link AcApOverlayWorldDrawResult.bindGrips} binds
|
|
116
|
+
* endpoint drags after the group is published.
|
|
117
|
+
*/
|
|
118
|
+
AcApMarkupSegmentEntity.prototype.subWorldDraw = function (view) {
|
|
119
|
+
var _this = this;
|
|
120
|
+
var geom = this.record.geometry;
|
|
121
|
+
if (geom.type !== 'line' && geom.type !== 'arrow') {
|
|
122
|
+
return this.emptyResult(this.createGroup());
|
|
123
|
+
}
|
|
124
|
+
var _a = this.style(), color = _a.color, canvasLineWidth = _a.canvasLineWidth, layer = _a.layer, layoutId = _a.layoutId;
|
|
125
|
+
var group = this.createGroup();
|
|
126
|
+
/** Unbinders for viewChanged and pointer drags. */
|
|
127
|
+
var cleanups = [];
|
|
128
|
+
/** Grip binders deferred until after manager.add(group). */
|
|
129
|
+
var pendingGrips = [];
|
|
130
|
+
/** Live endpoints mutated during grip drag before store commit. */
|
|
131
|
+
var live = {
|
|
132
|
+
start: __assign({}, geom.start),
|
|
133
|
+
end: __assign({}, geom.end)
|
|
134
|
+
};
|
|
135
|
+
var startDot = new AcTrHtmlDot({
|
|
136
|
+
id: "".concat(this.record.id, "-dot1"),
|
|
137
|
+
color: color,
|
|
138
|
+
worldPosition: live.start,
|
|
139
|
+
layer: layer,
|
|
140
|
+
layoutId: layoutId
|
|
141
|
+
});
|
|
142
|
+
var endDot = new AcTrHtmlDot({
|
|
143
|
+
id: "".concat(this.record.id, "-dot2"),
|
|
144
|
+
color: color,
|
|
145
|
+
worldPosition: live.end,
|
|
146
|
+
layer: layer,
|
|
147
|
+
layoutId: layoutId
|
|
148
|
+
});
|
|
149
|
+
group.add(startDot, endDot);
|
|
150
|
+
var container = view.container;
|
|
151
|
+
var overlay = new AcTrHtmlCanvasOverlay({
|
|
152
|
+
id: "".concat(this.record.id, "-stroke"),
|
|
153
|
+
container: container,
|
|
154
|
+
layer: layer,
|
|
155
|
+
layoutId: layoutId
|
|
156
|
+
});
|
|
157
|
+
group.addCanvas(overlay);
|
|
158
|
+
/** Endpoints captured when an endpoint drag starts (for zero-delta). */
|
|
159
|
+
var dragStart = {
|
|
160
|
+
start: __assign({}, live.start),
|
|
161
|
+
end: __assign({}, live.end)
|
|
162
|
+
};
|
|
163
|
+
/** Whether this segment draws an arrow head at the end. */
|
|
164
|
+
var isArrow = geom.type === 'arrow';
|
|
165
|
+
/**
|
|
166
|
+
* Redraw canvas stroke / arrow head from {@link live} endpoints.
|
|
167
|
+
*/
|
|
168
|
+
var redrawStroke = function () {
|
|
169
|
+
var ctx = acapFitOverlayCanvas(overlay.canvas, container);
|
|
170
|
+
if (!ctx)
|
|
171
|
+
return;
|
|
172
|
+
var a = view.worldToScreen(live.start);
|
|
173
|
+
var b = view.worldToScreen(live.end);
|
|
174
|
+
ctx.strokeStyle = _this.record.style.color;
|
|
175
|
+
ctx.lineWidth = canvasLineWidth;
|
|
176
|
+
ctx.beginPath();
|
|
177
|
+
ctx.moveTo(a.x, a.y);
|
|
178
|
+
ctx.lineTo(b.x, b.y);
|
|
179
|
+
ctx.stroke();
|
|
180
|
+
if (isArrow) {
|
|
181
|
+
acapDrawOverlayArrowHead(ctx, a, b, _this.record.style.color);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
redrawStroke();
|
|
185
|
+
view.events.viewChanged.addEventListener(redrawStroke);
|
|
186
|
+
cleanups.push(function () {
|
|
187
|
+
return view.events.viewChanged.removeEventListener(redrawStroke);
|
|
188
|
+
});
|
|
189
|
+
/**
|
|
190
|
+
* Select the markup when an endpoint drag begins.
|
|
191
|
+
*/
|
|
192
|
+
var beginEndpointDrag = function () {
|
|
193
|
+
selectMarkupGroup(view, _this.record.id);
|
|
194
|
+
dragStart = {
|
|
195
|
+
start: __assign({}, live.start),
|
|
196
|
+
end: __assign({}, live.end)
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Commit live endpoints to the store and republish.
|
|
201
|
+
*/
|
|
202
|
+
var commitEndpoints = function () {
|
|
203
|
+
var startDelta = Math.hypot(live.start.x - dragStart.start.x, live.start.y - dragStart.start.y);
|
|
204
|
+
var endDelta = Math.hypot(live.end.x - dragStart.end.x, live.end.y - dragStart.end.y);
|
|
205
|
+
if (startDelta < 1e-9 && endDelta < 1e-9) {
|
|
206
|
+
redrawStroke();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
runMarkupEdit(view, isArrow ? 'Move Arrow' : 'Move Line', function () {
|
|
210
|
+
var updated = getMarkupStore().updateGeometry(_this.record.id, isArrow
|
|
211
|
+
? {
|
|
212
|
+
type: 'arrow',
|
|
213
|
+
start: __assign({}, live.start),
|
|
214
|
+
end: __assign({}, live.end)
|
|
215
|
+
}
|
|
216
|
+
: {
|
|
217
|
+
type: 'line',
|
|
218
|
+
start: __assign({}, live.start),
|
|
219
|
+
end: __assign({}, live.end)
|
|
220
|
+
});
|
|
221
|
+
if (updated) {
|
|
222
|
+
republishMarkup(view, updated);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
pendingGrips.push(function () {
|
|
227
|
+
cleanups.push(acapBindOverlayPointerDrag({
|
|
228
|
+
view: view,
|
|
229
|
+
el: startDot.element,
|
|
230
|
+
onDragStart: beginEndpointDrag,
|
|
231
|
+
onMove: function (point) {
|
|
232
|
+
live.start = point;
|
|
233
|
+
acapPlaceOverlayHtml(view, startDot, point);
|
|
234
|
+
redrawStroke();
|
|
235
|
+
},
|
|
236
|
+
onCommit: commitEndpoints
|
|
237
|
+
}), acapBindOverlayPointerDrag({
|
|
238
|
+
view: view,
|
|
239
|
+
el: endDot.element,
|
|
240
|
+
onDragStart: beginEndpointDrag,
|
|
241
|
+
onMove: function (point) {
|
|
242
|
+
live.end = point;
|
|
243
|
+
acapPlaceOverlayHtml(view, endDot, point);
|
|
244
|
+
redrawStroke();
|
|
245
|
+
},
|
|
246
|
+
onCommit: commitEndpoints
|
|
247
|
+
}));
|
|
248
|
+
});
|
|
249
|
+
return {
|
|
250
|
+
group: group,
|
|
251
|
+
entityIds: [],
|
|
252
|
+
dispose: function () {
|
|
253
|
+
var e_2, _a;
|
|
254
|
+
try {
|
|
255
|
+
for (var cleanups_1 = __values(cleanups), cleanups_1_1 = cleanups_1.next(); !cleanups_1_1.done; cleanups_1_1 = cleanups_1.next()) {
|
|
256
|
+
var fn = cleanups_1_1.value;
|
|
257
|
+
try {
|
|
258
|
+
fn();
|
|
259
|
+
}
|
|
260
|
+
catch (_b) {
|
|
261
|
+
// ignore
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
266
|
+
finally {
|
|
267
|
+
try {
|
|
268
|
+
if (cleanups_1_1 && !cleanups_1_1.done && (_a = cleanups_1.return)) _a.call(cleanups_1);
|
|
269
|
+
}
|
|
270
|
+
finally { if (e_2) throw e_2.error; }
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
bindGrips: function () {
|
|
274
|
+
var e_3, _a;
|
|
275
|
+
try {
|
|
276
|
+
for (var pendingGrips_1 = __values(pendingGrips), pendingGrips_1_1 = pendingGrips_1.next(); !pendingGrips_1_1.done; pendingGrips_1_1 = pendingGrips_1.next()) {
|
|
277
|
+
var bind = pendingGrips_1_1.value;
|
|
278
|
+
bind();
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
282
|
+
finally {
|
|
283
|
+
try {
|
|
284
|
+
if (pendingGrips_1_1 && !pendingGrips_1_1.done && (_a = pendingGrips_1.return)) _a.call(pendingGrips_1);
|
|
285
|
+
}
|
|
286
|
+
finally { if (e_3) throw e_3.error; }
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
return AcApMarkupSegmentEntity;
|
|
292
|
+
}(AcApMarkupEntity));
|
|
293
|
+
export { AcApMarkupSegmentEntity };
|
|
294
|
+
//# sourceMappingURL=AcApMarkupSegmentEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMarkupSegmentEntity.js","sourceRoot":"","sources":["../../../../src/command/markup/entity/AcApMarkupSegmentEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,qBAAqB,EACrB,WAAW,EACZ,MAAM,2BAA2B,CAAA;AAGlC,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EAEpB,oBAAoB,EACrB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D;;;;;GAKG;AACH;IAA6C,2CAAgB;IAC3D;;OAEG;IACH,iCAAY,MAAwB;QAClC,OAAA,MAAK,YAAC,MAAM,CAAC,SAAA;IACf,CAAC;IAED;;;;O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,0BAA0B,CAAC;gBACzB,IAAI,MAAA;gBACJ,EAAE,EAAE,MAAM,CAAC,OAAO;gBAClB,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,UAAA,KAAK;oBACX,IAAI,CAAC,GAAG,GAAG,KAAK,CAAA;oBAChB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;oBACzC,YAAY,EAAE,CAAA;gBAChB,CAAC;gBACD,QAAQ,EAAE,eAAe;aAC1B,CAAC,CACH,CAAA;QACH,CAAC,CAAC,CAAA;QAEF,OAAO;YACL,KAAK,OAAA;YACL,SAAS,EAAE,EAAE;YACb,OAAO,EAAE;;;oBACP,KAAiB,IAAA,aAAA,SAAA,QAAQ,CAAA,kCAAA,wDAAE,CAAC;wBAAvB,IAAM,EAAE,qBAAA;wBACX,IAAI,CAAC;4BACH,EAAE,EAAE,CAAA;wBACN,CAAC;wBAAC,WAAM,CAAC;4BACP,SAAS;wBACX,CAAC;oBACH,CAAC;;;;;;;;;YACH,CAAC;YACD,SAAS,EAAE;;;oBACT,KAAmB,IAAA,iBAAA,SAAA,YAAY,CAAA,0CAAA;wBAA1B,IAAM,IAAI,yBAAA;wBAAkB,IAAI,EAAE,CAAA;qBAAA;;;;;;;;;YACzC,CAAC;SACF,CAAA;IACH,CAAC;IACH,8BAAC;AAAD,CAAC,AAhOD,CAA6C,gBAAgB,GAgO5D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
2
|
+
import type { AcTrView2d } from '../../../view';
|
|
3
|
+
import { type AcApOverlayWorldDrawResult } from '../../overlay';
|
|
4
|
+
import type { AcApMarkupRecord } from '../AcApMarkupTypes';
|
|
5
|
+
import { AcApMarkupEntity } from './AcApMarkupEntity';
|
|
6
|
+
/**
|
|
7
|
+
* Cloud / rect / circle markup with optional attached callout.
|
|
8
|
+
*
|
|
9
|
+
* Builds an HTML canvas shape, a center move grip, and optionally a
|
|
10
|
+
* shape-attached leader + bubble via {@link publishAttachedCallout}.
|
|
11
|
+
* No CAD transient entities.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AcApMarkupShapeEntity extends AcApMarkupEntity {
|
|
14
|
+
/**
|
|
15
|
+
* @param record - Store record whose geometry is `cloud`, `rect`, or `circle`.
|
|
16
|
+
*/
|
|
17
|
+
constructor(record: AcApMarkupRecord);
|
|
18
|
+
/**
|
|
19
|
+
* Center grip for whole-shape move (delegates to the base implementation).
|
|
20
|
+
*
|
|
21
|
+
* @returns Geometry center as a single grip point.
|
|
22
|
+
*/
|
|
23
|
+
subGetGripPoints(): AcGePoint3d[];
|
|
24
|
+
/**
|
|
25
|
+
* Publish canvas shape, center dot, optional attached callout, and center move.
|
|
26
|
+
*
|
|
27
|
+
* @param view - Active 2D view.
|
|
28
|
+
* @returns Built visuals with deferred center-move grip binding.
|
|
29
|
+
*/
|
|
30
|
+
protected subWorldDraw(view: AcTrView2d): AcApOverlayWorldDrawResult;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=AcApMarkupShapeEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApMarkupShapeEntity.d.ts","sourceRoot":"","sources":["../../../../src/command/markup/entity/AcApMarkupShapeEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAEL,KAAK,0BAA0B,EAAC,MAAM,eAAe,CAAA;AAQvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAMrD;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD;;OAEG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;OAIG;IACM,gBAAgB,IAAI,WAAW,EAAE;IAI1C;;;;;OAKG;IACH,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,0BAA0B;CAkKrE"}
|