@mlightcad/cad-simple-viewer 1.4.13 → 1.5.1
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/dist/index.js +26532 -44513
- package/dist/index.umd.cjs +163 -52
- package/dist/libredwg-parser-worker.js +4378 -7481
- package/dist/mtext-renderer-worker.js +4107 -3865
- package/dist/viewer-runtime.iife.js +3879 -0
- package/lib/app/AcApAnnotation.js +4 -4
- package/lib/app/AcApAnnotation.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +59 -6
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +188 -28
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/command/AcApLogCmd.d.ts +1 -1
- package/lib/command/AcApLogCmd.d.ts.map +1 -1
- package/lib/command/AcApLogCmd.js +1 -1
- package/lib/command/AcApLogCmd.js.map +1 -1
- package/lib/command/AcApOpenCmd.d.ts +1 -1
- package/lib/command/AcApOpenCmd.d.ts.map +1 -1
- package/lib/command/AcApOpenCmd.js +1 -2
- package/lib/command/AcApOpenCmd.js.map +1 -1
- package/lib/command/AcApPanCmd.d.ts +1 -1
- package/lib/command/AcApPanCmd.d.ts.map +1 -1
- package/lib/command/AcApPanCmd.js +1 -2
- package/lib/command/AcApPanCmd.js.map +1 -1
- package/lib/command/AcApQNewCmd.d.ts +1 -1
- package/lib/command/AcApQNewCmd.d.ts.map +1 -1
- package/lib/command/AcApQNewCmd.js +1 -1
- package/lib/command/AcApQNewCmd.js.map +1 -1
- package/lib/command/AcApRegenCmd.d.ts +1 -1
- package/lib/command/AcApRegenCmd.d.ts.map +1 -1
- package/lib/command/AcApRegenCmd.js +1 -1
- package/lib/command/AcApRegenCmd.js.map +1 -1
- package/lib/command/AcApSelectCmd.d.ts +1 -1
- package/lib/command/AcApSelectCmd.d.ts.map +1 -1
- package/lib/command/AcApSelectCmd.js +1 -2
- package/lib/command/AcApSelectCmd.js.map +1 -1
- package/lib/command/AcApZoomCmd.js +3 -3
- package/lib/command/AcApZoomCmd.js.map +1 -1
- package/lib/command/{AcApConvertToDxfCmd.d.ts → convert/AcApConvertToDxfCmd.d.ts} +2 -2
- package/lib/command/convert/AcApConvertToDxfCmd.d.ts.map +1 -0
- package/lib/command/{AcApConvertToDxfCmd.js → convert/AcApConvertToDxfCmd.js} +1 -1
- package/lib/command/convert/AcApConvertToDxfCmd.js.map +1 -0
- package/lib/command/{AcApConvertToPngCmd.d.ts → convert/AcApConvertToPngCmd.d.ts} +23 -5
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -0
- package/lib/command/{AcApConvertToPngCmd.js → convert/AcApConvertToPngCmd.js} +88 -15
- package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -0
- package/lib/command/{AcApConvertToSvgCmd.d.ts → convert/AcApConvertToSvgCmd.d.ts} +2 -2
- package/lib/command/convert/AcApConvertToSvgCmd.d.ts.map +1 -0
- package/lib/command/{AcApConvertToSvgCmd.js → convert/AcApConvertToSvgCmd.js} +1 -1
- package/lib/command/convert/AcApConvertToSvgCmd.js.map +1 -0
- package/lib/command/convert/AcApDxfConvertor.d.ts.map +1 -0
- package/lib/command/{AcApDxfConvertor.js → convert/AcApDxfConvertor.js} +1 -1
- package/lib/command/convert/AcApDxfConvertor.js.map +1 -0
- package/lib/command/convert/AcApExportHtmlCmd.d.ts +22 -0
- package/lib/command/convert/AcApExportHtmlCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApExportHtmlCmd.js +93 -0
- package/lib/command/convert/AcApExportHtmlCmd.js.map +1 -0
- package/lib/command/convert/AcApHtmlConvertor.d.ts +61 -0
- package/lib/command/convert/AcApHtmlConvertor.d.ts.map +1 -0
- package/lib/command/convert/AcApHtmlConvertor.js +223 -0
- package/lib/command/convert/AcApHtmlConvertor.js.map +1 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.d.ts +65 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.d.ts.map +1 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.js +301 -0
- package/lib/command/convert/AcApHtmlSnapshotBuilder.js.map +1 -0
- package/lib/command/{AcApPngConvertor.d.ts → convert/AcApPngConvertor.d.ts} +20 -35
- package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -0
- package/lib/command/{AcApPngConvertor.js → convert/AcApPngConvertor.js} +99 -71
- package/lib/command/convert/AcApPngConvertor.js.map +1 -0
- package/lib/command/convert/AcApSvgConvertor.d.ts.map +1 -0
- package/lib/command/{AcApSvgConvertor.js → convert/AcApSvgConvertor.js} +1 -1
- package/lib/command/convert/AcApSvgConvertor.js.map +1 -0
- package/lib/command/convert/index.d.ts +9 -0
- package/lib/command/convert/index.d.ts.map +1 -0
- package/lib/command/convert/index.js +9 -0
- package/lib/command/convert/index.js.map +1 -0
- package/lib/command/draw/AcApArcCmd.d.ts +297 -0
- package/lib/command/draw/AcApArcCmd.d.ts.map +1 -0
- package/lib/command/{AcApArcCmd.js → draw/AcApArcCmd.js} +839 -32
- package/lib/command/draw/AcApArcCmd.js.map +1 -0
- package/lib/command/{AcApCircleCmd.d.ts → draw/AcApCircleCmd.d.ts} +2 -2
- package/lib/command/draw/AcApCircleCmd.d.ts.map +1 -0
- package/lib/command/{AcApCircleCmd.js → draw/AcApCircleCmd.js} +8 -9
- package/lib/command/draw/AcApCircleCmd.js.map +1 -0
- package/lib/command/{AcApDimLinearCmd.d.ts → draw/AcApDimLinearCmd.d.ts} +2 -2
- package/lib/command/draw/AcApDimLinearCmd.d.ts.map +1 -0
- package/lib/command/{AcApDimLinearCmd.js → draw/AcApDimLinearCmd.js} +3 -3
- package/lib/command/draw/AcApDimLinearCmd.js.map +1 -0
- package/lib/command/{AcApEllipseCmd.d.ts → draw/AcApEllipseCmd.d.ts} +2 -2
- package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -0
- package/lib/command/{AcApEllipseCmd.js → draw/AcApEllipseCmd.js} +7 -9
- package/lib/command/draw/AcApEllipseCmd.js.map +1 -0
- package/lib/command/{AcApHatchCmd.d.ts → draw/AcApHatchCmd.d.ts} +54 -17
- package/lib/command/draw/AcApHatchCmd.d.ts.map +1 -0
- package/lib/command/{AcApHatchCmd.js → draw/AcApHatchCmd.js} +122 -30
- package/lib/command/draw/AcApHatchCmd.js.map +1 -0
- package/lib/command/{AcApLineCmd.d.ts → draw/AcApLineCmd.d.ts} +2 -2
- package/lib/command/draw/AcApLineCmd.d.ts.map +1 -0
- package/lib/command/{AcApLineCmd.js → draw/AcApLineCmd.js} +3 -3
- package/lib/command/draw/AcApLineCmd.js.map +1 -0
- package/lib/command/draw/AcApMLineCmd.d.ts +31 -0
- package/lib/command/draw/AcApMLineCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApMLineCmd.js +528 -0
- package/lib/command/draw/AcApMLineCmd.js.map +1 -0
- package/lib/command/{AcApMTextCmd.d.ts → draw/AcApMTextCmd.d.ts} +2 -2
- package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -0
- package/lib/command/{AcApMTextCmd.js → draw/AcApMTextCmd.js} +6 -4
- package/lib/command/draw/AcApMTextCmd.js.map +1 -0
- package/lib/command/draw/AcApPointCmd.d.ts +16 -0
- package/lib/command/draw/AcApPointCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApPointCmd.js +98 -0
- package/lib/command/draw/AcApPointCmd.js.map +1 -0
- package/lib/command/{AcApPolygonCmd.d.ts → draw/AcApPolygonCmd.d.ts} +2 -2
- package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -0
- package/lib/command/{AcApPolygonCmd.js → draw/AcApPolygonCmd.js} +7 -8
- package/lib/command/draw/AcApPolygonCmd.js.map +1 -0
- package/lib/command/{AcApPolylineCmd.d.ts → draw/AcApPolylineCmd.d.ts} +51 -2
- package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -0
- package/lib/command/{AcApPolylineCmd.js → draw/AcApPolylineCmd.js} +203 -21
- package/lib/command/draw/AcApPolylineCmd.js.map +1 -0
- package/lib/command/draw/AcApRayCmd.d.ts +10 -0
- package/lib/command/draw/AcApRayCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApRayCmd.js +144 -0
- package/lib/command/draw/AcApRayCmd.js.map +1 -0
- package/lib/command/{AcApRectCmd.d.ts → draw/AcApRectCmd.d.ts} +2 -2
- package/lib/command/draw/AcApRectCmd.d.ts.map +1 -0
- package/lib/command/{AcApRectCmd.js → draw/AcApRectCmd.js} +12 -13
- package/lib/command/draw/AcApRectCmd.js.map +1 -0
- package/lib/command/{AcApSplineCmd.d.ts → draw/AcApSplineCmd.d.ts} +2 -2
- package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -0
- package/lib/command/{AcApSplineCmd.js → draw/AcApSplineCmd.js} +6 -9
- package/lib/command/draw/AcApSplineCmd.js.map +1 -0
- package/lib/command/draw/AcApXLineCmd.d.ts +25 -0
- package/lib/command/draw/AcApXLineCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApXLineCmd.js +209 -0
- package/lib/command/draw/AcApXLineCmd.js.map +1 -0
- package/lib/command/draw/index.d.ts +16 -0
- package/lib/command/draw/index.d.ts.map +1 -0
- package/lib/command/draw/index.js +16 -0
- package/lib/command/draw/index.js.map +1 -0
- package/lib/command/index.d.ts +6 -32
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +6 -32
- package/lib/command/index.js.map +1 -1
- package/lib/command/layer/AcApLayerCloseCmd.d.ts +23 -0
- package/lib/command/layer/AcApLayerCloseCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerCloseCmd.js +86 -0
- package/lib/command/layer/AcApLayerCloseCmd.js.map +1 -0
- package/lib/command/{AcApLayerCmd.d.ts → layer/AcApLayerCmd.d.ts} +3 -5
- package/lib/command/layer/AcApLayerCmd.d.ts.map +1 -0
- package/lib/command/{AcApLayerCmd.js → layer/AcApLayerCmd.js} +5 -8
- package/lib/command/layer/AcApLayerCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerCurCmd.d.ts +43 -0
- package/lib/command/layer/AcApLayerCurCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerCurCmd.js +183 -0
- package/lib/command/layer/AcApLayerCurCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerDelCmd.d.ts +112 -0
- package/lib/command/layer/AcApLayerDelCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerDelCmd.js +446 -0
- package/lib/command/layer/AcApLayerDelCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerFreezeCmd.d.ts +103 -0
- package/lib/command/layer/AcApLayerFreezeCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerFreezeCmd.js +398 -0
- package/lib/command/layer/AcApLayerFreezeCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerIsoCmd.d.ts +99 -0
- package/lib/command/layer/AcApLayerIsoCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerIsoCmd.js +485 -0
- package/lib/command/layer/AcApLayerIsoCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerIsoState.d.ts +68 -0
- package/lib/command/layer/AcApLayerIsoState.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerIsoState.js +53 -0
- package/lib/command/layer/AcApLayerIsoState.js.map +1 -0
- package/lib/command/layer/AcApLayerLockCmd.d.ts +50 -0
- package/lib/command/layer/AcApLayerLockCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerLockCmd.js +175 -0
- package/lib/command/layer/AcApLayerLockCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerOffCmd.d.ts +95 -0
- package/lib/command/layer/AcApLayerOffCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerOffCmd.js +384 -0
- package/lib/command/layer/AcApLayerOffCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerOnCmd.d.ts +30 -0
- package/lib/command/layer/AcApLayerOnCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerOnCmd.js +138 -0
- package/lib/command/layer/AcApLayerOnCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerPCmd.d.ts +83 -0
- package/lib/command/layer/AcApLayerPCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerPCmd.js +241 -0
- package/lib/command/layer/AcApLayerPCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerThawCmd.d.ts +37 -0
- package/lib/command/layer/AcApLayerThawCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerThawCmd.js +150 -0
- package/lib/command/layer/AcApLayerThawCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerUnisoCmd.d.ts +52 -0
- package/lib/command/layer/AcApLayerUnisoCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerUnisoCmd.js +199 -0
- package/lib/command/layer/AcApLayerUnisoCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerUnlockCmd.d.ts +50 -0
- package/lib/command/layer/AcApLayerUnlockCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerUnlockCmd.js +175 -0
- package/lib/command/layer/AcApLayerUnlockCmd.js.map +1 -0
- package/lib/command/layer/index.d.ts +14 -0
- package/lib/command/layer/index.d.ts.map +1 -0
- package/lib/command/layer/index.js +14 -0
- package/lib/command/layer/index.js.map +1 -0
- package/lib/command/measure/AcApClearMeasurementsCmd.d.ts +24 -0
- package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -0
- package/lib/command/{AcApClearMeasurementsCmd.js → measure/AcApClearMeasurementsCmd.js} +16 -5
- package/lib/command/measure/AcApClearMeasurementsCmd.js.map +1 -0
- package/lib/command/{AcApMeasureAngleCmd.d.ts → measure/AcApMeasureAngleCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureAngleCmd.js → measure/AcApMeasureAngleCmd.js} +18 -9
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -0
- package/lib/command/{AcApMeasureArcCmd.d.ts → measure/AcApMeasureArcCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureArcCmd.js → measure/AcApMeasureArcCmd.js} +14 -7
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -0
- package/lib/command/{AcApMeasureAreaCmd.d.ts → measure/AcApMeasureAreaCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureAreaCmd.js → measure/AcApMeasureAreaCmd.js} +14 -7
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.d.ts → measure/AcApMeasureDistanceCmd.d.ts} +5 -4
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.js → measure/AcApMeasureDistanceCmd.js} +17 -9
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -0
- package/lib/command/measure/index.d.ts +6 -0
- package/lib/command/measure/index.d.ts.map +1 -0
- package/lib/command/measure/index.js +6 -0
- package/lib/command/measure/index.js.map +1 -0
- package/lib/command/modify/AcApCopyCmd.d.ts +94 -0
- package/lib/command/modify/AcApCopyCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApCopyCmd.js +549 -0
- package/lib/command/modify/AcApCopyCmd.js.map +1 -0
- package/lib/command/{AcApEraseCmd.d.ts → modify/AcApEraseCmd.d.ts} +2 -2
- package/lib/command/modify/AcApEraseCmd.d.ts.map +1 -0
- package/lib/command/{AcApEraseCmd.js → modify/AcApEraseCmd.js} +3 -5
- package/lib/command/modify/AcApEraseCmd.js.map +1 -0
- package/lib/command/{AcApMoveCmd.d.ts → modify/AcApMoveCmd.d.ts} +2 -2
- package/lib/command/modify/AcApMoveCmd.d.ts.map +1 -0
- package/lib/command/{AcApMoveCmd.js → modify/AcApMoveCmd.js} +3 -4
- package/lib/command/modify/AcApMoveCmd.js.map +1 -0
- package/lib/command/modify/AcApOffsetCmd.d.ts +30 -0
- package/lib/command/modify/AcApOffsetCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApOffsetCmd.js +424 -0
- package/lib/command/modify/AcApOffsetCmd.js.map +1 -0
- package/lib/command/modify/AcApRotateCmd.d.ts +81 -0
- package/lib/command/modify/AcApRotateCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApRotateCmd.js +486 -0
- package/lib/command/modify/AcApRotateCmd.js.map +1 -0
- package/lib/command/modify/index.d.ts +6 -0
- package/lib/command/modify/index.d.ts.map +1 -0
- package/lib/command/modify/index.js +6 -0
- package/lib/command/modify/index.js.map +1 -0
- package/lib/command/{AcApBaseRevCmd.d.ts → review/AcApBaseRevCmd.d.ts} +2 -2
- package/lib/command/review/AcApBaseRevCmd.d.ts.map +1 -0
- package/lib/command/{AcApBaseRevCmd.js → review/AcApBaseRevCmd.js} +2 -2
- package/lib/command/review/AcApBaseRevCmd.js.map +1 -0
- package/lib/command/{AcApRevCircleCmd.d.ts → review/AcApRevCircleCmd.d.ts} +1 -1
- package/lib/command/review/AcApRevCircleCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevCircleCmd.js → review/AcApRevCircleCmd.js} +8 -5
- package/lib/command/review/AcApRevCircleCmd.js.map +1 -0
- package/lib/command/{AcApRevCloudCmd.d.ts → review/AcApRevCloudCmd.d.ts} +2 -2
- package/lib/command/review/AcApRevCloudCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevCloudCmd.js → review/AcApRevCloudCmd.js} +3 -3
- package/lib/command/review/AcApRevCloudCmd.js.map +1 -0
- package/lib/command/{AcApRevRectCmd.d.ts → review/AcApRevRectCmd.d.ts} +1 -1
- package/lib/command/review/AcApRevRectCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevRectCmd.js → review/AcApRevRectCmd.js} +3 -3
- package/lib/command/review/AcApRevRectCmd.js.map +1 -0
- package/lib/command/{AcApRevVisibilityCmd.d.ts → review/AcApRevVisibilityCmd.d.ts} +1 -1
- package/lib/command/review/AcApRevVisibilityCmd.d.ts.map +1 -0
- package/lib/command/{AcApRevVisibilityCmd.js → review/AcApRevVisibilityCmd.js} +2 -2
- package/lib/command/review/AcApRevVisibilityCmd.js.map +1 -0
- package/lib/command/{AcApSketchCmd.d.ts → review/AcApSketchCmd.d.ts} +2 -2
- package/lib/command/review/AcApSketchCmd.d.ts.map +1 -0
- package/lib/command/{AcApSketchCmd.js → review/AcApSketchCmd.js} +3 -3
- package/lib/command/review/AcApSketchCmd.js.map +1 -0
- package/lib/command/review/index.d.ts +7 -0
- package/lib/command/review/index.d.ts.map +1 -0
- package/lib/command/review/index.js +7 -0
- package/lib/command/review/index.js.map +1 -0
- package/lib/editor/global/eventBus.d.ts +4 -6
- package/lib/editor/global/eventBus.d.ts.map +1 -1
- package/lib/editor/global/eventBus.js.map +1 -1
- package/lib/editor/input/AcEdSelectionFilter.js +7 -6
- package/lib/editor/input/AcEdSelectionFilter.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +17 -0
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +23 -0
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts +6 -0
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.js +16 -0
- package/lib/editor/input/prompt/AcEdPromptBoxOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js +1 -1
- package/lib/editor/input/prompt/AcEdPromptDistanceOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +6 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +16 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.d.ts +25 -23
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.js +101 -43
- package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +9 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +25 -5
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +46 -6
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +153 -43
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdMTextEditor.d.ts +67 -2
- package/lib/editor/input/ui/AcEdMTextEditor.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdMTextEditor.js +210 -19
- package/lib/editor/input/ui/AcEdMTextEditor.js.map +1 -1
- package/lib/editor/input/ui/AcEdMessageType.d.ts +10 -0
- package/lib/editor/input/ui/AcEdMessageType.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMessageType.js +2 -0
- package/lib/editor/input/ui/AcEdMessageType.js.map +1 -0
- package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdRubberBand.js +16 -8
- package/lib/editor/input/ui/AcEdRubberBand.js.map +1 -1
- package/lib/editor/input/ui/index.d.ts +1 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +1 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +3 -8
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +3 -5
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdHoverController.d.ts +2 -3
- package/lib/editor/view/AcEdHoverController.d.ts.map +1 -1
- package/lib/editor/view/AcEdHoverController.js +7 -0
- package/lib/editor/view/AcEdHoverController.js.map +1 -1
- package/lib/editor/view/AcEdSelectionAction.d.ts +108 -0
- package/lib/editor/view/AcEdSelectionAction.d.ts.map +1 -0
- package/lib/editor/view/AcEdSelectionAction.js +74 -0
- package/lib/editor/view/AcEdSelectionAction.js.map +1 -0
- package/lib/editor/view/index.d.ts +1 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +1 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/en/command.d.ts +187 -13
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +195 -21
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +579 -212
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +669 -302
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +187 -13
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +196 -22
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +579 -212
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +668 -301
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +136 -2
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +154 -16
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
- package/lib/util/AcApFontUtil.d.ts +69 -0
- package/lib/util/AcApFontUtil.d.ts.map +1 -0
- package/lib/util/AcApFontUtil.js +161 -0
- package/lib/util/AcApFontUtil.js.map +1 -0
- package/lib/util/index.d.ts +2 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +2 -0
- package/lib/util/index.js.map +1 -1
- package/lib/util/yieldToMain.d.ts +5 -0
- package/lib/util/yieldToMain.d.ts.map +1 -0
- package/lib/util/yieldToMain.js +11 -0
- package/lib/util/yieldToMain.js.map +1 -0
- package/lib/view/AcTrLayout.d.ts +17 -0
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +34 -2
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +12 -0
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +18 -0
- package/lib/view/AcTrLayoutView.js.map +1 -1
- package/lib/view/AcTrPickResultUtil.d.ts +4 -0
- package/lib/view/AcTrPickResultUtil.d.ts.map +1 -0
- package/lib/view/AcTrPickResultUtil.js +54 -0
- package/lib/view/AcTrPickResultUtil.js.map +1 -0
- package/lib/view/AcTrScene.d.ts +38 -6
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +57 -30
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +191 -0
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +795 -137
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +14 -8
- package/lib/command/AcApArcCmd.d.ts +0 -140
- package/lib/command/AcApArcCmd.d.ts.map +0 -1
- package/lib/command/AcApArcCmd.js.map +0 -1
- package/lib/command/AcApBaseRevCmd.d.ts.map +0 -1
- package/lib/command/AcApBaseRevCmd.js.map +0 -1
- package/lib/command/AcApCircleCmd.d.ts.map +0 -1
- package/lib/command/AcApCircleCmd.js.map +0 -1
- package/lib/command/AcApClearMeasurementsCmd.d.ts +0 -13
- package/lib/command/AcApClearMeasurementsCmd.d.ts.map +0 -1
- package/lib/command/AcApClearMeasurementsCmd.js.map +0 -1
- package/lib/command/AcApConvertToDxfCmd.d.ts.map +0 -1
- package/lib/command/AcApConvertToDxfCmd.js.map +0 -1
- package/lib/command/AcApConvertToPngCmd.d.ts.map +0 -1
- package/lib/command/AcApConvertToPngCmd.js.map +0 -1
- package/lib/command/AcApConvertToSvgCmd.d.ts.map +0 -1
- package/lib/command/AcApConvertToSvgCmd.js.map +0 -1
- package/lib/command/AcApDimLinearCmd.d.ts.map +0 -1
- package/lib/command/AcApDimLinearCmd.js.map +0 -1
- package/lib/command/AcApDxfConvertor.d.ts.map +0 -1
- package/lib/command/AcApDxfConvertor.js.map +0 -1
- package/lib/command/AcApEllipseCmd.d.ts.map +0 -1
- package/lib/command/AcApEllipseCmd.js.map +0 -1
- package/lib/command/AcApEraseCmd.d.ts.map +0 -1
- package/lib/command/AcApEraseCmd.js.map +0 -1
- package/lib/command/AcApHatchCmd.d.ts.map +0 -1
- package/lib/command/AcApHatchCmd.js.map +0 -1
- package/lib/command/AcApLayerCmd.d.ts.map +0 -1
- package/lib/command/AcApLayerCmd.js.map +0 -1
- package/lib/command/AcApLineCmd.d.ts.map +0 -1
- package/lib/command/AcApLineCmd.js.map +0 -1
- package/lib/command/AcApMTextCmd.d.ts.map +0 -1
- package/lib/command/AcApMTextCmd.js.map +0 -1
- package/lib/command/AcApMeasureAngleCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureAngleCmd.js.map +0 -1
- package/lib/command/AcApMeasureArcCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureArcCmd.js.map +0 -1
- package/lib/command/AcApMeasureAreaCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureAreaCmd.js.map +0 -1
- package/lib/command/AcApMeasureDistanceCmd.d.ts.map +0 -1
- package/lib/command/AcApMeasureDistanceCmd.js.map +0 -1
- package/lib/command/AcApMoveCmd.d.ts.map +0 -1
- package/lib/command/AcApMoveCmd.js.map +0 -1
- package/lib/command/AcApPngConvertor.d.ts.map +0 -1
- package/lib/command/AcApPngConvertor.js.map +0 -1
- package/lib/command/AcApPolygonCmd.d.ts.map +0 -1
- package/lib/command/AcApPolygonCmd.js.map +0 -1
- package/lib/command/AcApPolylineCmd.d.ts.map +0 -1
- package/lib/command/AcApPolylineCmd.js.map +0 -1
- package/lib/command/AcApRectCmd.d.ts.map +0 -1
- package/lib/command/AcApRectCmd.js.map +0 -1
- package/lib/command/AcApRevCircleCmd.d.ts.map +0 -1
- package/lib/command/AcApRevCircleCmd.js.map +0 -1
- package/lib/command/AcApRevCloudCmd.d.ts.map +0 -1
- package/lib/command/AcApRevCloudCmd.js.map +0 -1
- package/lib/command/AcApRevRectCmd.d.ts.map +0 -1
- package/lib/command/AcApRevRectCmd.js.map +0 -1
- package/lib/command/AcApRevVisibilityCmd.d.ts.map +0 -1
- package/lib/command/AcApRevVisibilityCmd.js.map +0 -1
- package/lib/command/AcApSketchCmd.d.ts.map +0 -1
- package/lib/command/AcApSketchCmd.js.map +0 -1
- package/lib/command/AcApSplineCmd.d.ts.map +0 -1
- package/lib/command/AcApSplineCmd.js.map +0 -1
- package/lib/command/AcApSvgConvertor.d.ts.map +0 -1
- package/lib/command/AcApSvgConvertor.js.map +0 -1
- /package/lib/command/{AcApDxfConvertor.d.ts → convert/AcApDxfConvertor.d.ts} +0 -0
- /package/lib/command/{AcApSvgConvertor.d.ts → convert/AcApSvgConvertor.d.ts} +0 -0
package/lib/view/AcTrScene.js
CHANGED
|
@@ -251,11 +251,24 @@ var AcTrScene = /** @class */ (function () {
|
|
|
251
251
|
configurable: true
|
|
252
252
|
});
|
|
253
253
|
/**
|
|
254
|
-
* Add one empty layout with the specified block table record id as the its key
|
|
254
|
+
* Add one empty layout with the specified block table record id as the its key.
|
|
255
|
+
*
|
|
256
|
+
* This method is idempotent: when a layout already exists for the given
|
|
257
|
+
* `ownerId`, the existing instance is returned untouched and no new THREE
|
|
258
|
+
* group is attached to the scene. Re-creating eagerly would leak the
|
|
259
|
+
* previous `AcTrLayout.internalObject` as an orphan child of `_scene`
|
|
260
|
+
* (still rendered every frame and still indexed by ray/spatial queries),
|
|
261
|
+
* which manifested as "ghost" entities from previously-visited layouts
|
|
262
|
+
* accumulating on layout switches.
|
|
263
|
+
*
|
|
255
264
|
* @param ownerId Input the block table record id associated with this layout
|
|
256
|
-
* @returns Return the newly created
|
|
265
|
+
* @returns Return the layout associated with `ownerId` — newly created when
|
|
266
|
+
* absent, or the pre-existing instance when already registered.
|
|
257
267
|
*/
|
|
258
268
|
AcTrScene.prototype.addEmptyLayout = function (ownerId) {
|
|
269
|
+
var existing = this._layouts.get(ownerId);
|
|
270
|
+
if (existing)
|
|
271
|
+
return existing;
|
|
259
272
|
var layout = new AcTrLayout();
|
|
260
273
|
this._layouts.set(ownerId, layout);
|
|
261
274
|
this._scene.add(layout.internalObject);
|
|
@@ -285,48 +298,62 @@ var AcTrScene = /** @class */ (function () {
|
|
|
285
298
|
return this;
|
|
286
299
|
};
|
|
287
300
|
/**
|
|
288
|
-
* Hover the specified entities
|
|
301
|
+
* Hover the specified entities. Propagates the request to **every**
|
|
302
|
+
* layout in the scene, not just the active one — entities picked
|
|
303
|
+
* through a paper-space viewport (drill-through) live in the model
|
|
304
|
+
* layout while the active layout at pick time is paper, so the
|
|
305
|
+
* hover/select state must reach both. Layouts that don't own the
|
|
306
|
+
* given entity ids no-op gracefully (`getLayersByObjectId` returns
|
|
307
|
+
* an empty array there).
|
|
289
308
|
*/
|
|
290
309
|
AcTrScene.prototype.hover = function (ids) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
return false;
|
|
310
|
+
if (this._layouts.size === 0)
|
|
311
|
+
return false;
|
|
312
|
+
this._layouts.forEach(function (layout) { return layout.hover(ids); });
|
|
313
|
+
return true;
|
|
297
314
|
};
|
|
298
315
|
/**
|
|
299
|
-
* Unhover the specified entities
|
|
316
|
+
* Unhover the specified entities across all layouts. See {@link hover}
|
|
317
|
+
* for rationale on propagation.
|
|
300
318
|
*/
|
|
301
319
|
AcTrScene.prototype.unhover = function (ids) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
return false;
|
|
320
|
+
if (this._layouts.size === 0)
|
|
321
|
+
return false;
|
|
322
|
+
this._layouts.forEach(function (layout) { return layout.unhover(ids); });
|
|
323
|
+
return true;
|
|
308
324
|
};
|
|
309
325
|
/**
|
|
310
|
-
* Select the specified entities
|
|
326
|
+
* Select the specified entities across all layouts.
|
|
327
|
+
*
|
|
328
|
+
* This is what makes drill-through selection visually consistent: a
|
|
329
|
+
* click inside a paper-space viewport resolves to a model entity, but
|
|
330
|
+
* the active layout at that moment is paper. Without propagating to
|
|
331
|
+
* the model layout, the selection would be silently lost — the entity
|
|
332
|
+
* goes into `selectionSet` but no highlight ever renders. The bug
|
|
333
|
+
* manifested as "I click on a line in the viewport and nothing
|
|
334
|
+
* visibly selects" (debug logs confirmed `firstPicked` was the
|
|
335
|
+
* correct entity, but the highlight never appeared).
|
|
336
|
+
*
|
|
337
|
+
* Cross-layout propagation also restores symmetry of
|
|
338
|
+
* `select`/`unselect`: a model entity highlighted via paper drill
|
|
339
|
+
* must un-highlight when the user replaces the selection from any
|
|
340
|
+
* layout, not just the one where it was originally picked.
|
|
311
341
|
*/
|
|
312
342
|
AcTrScene.prototype.select = function (ids) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
return false;
|
|
343
|
+
if (this._layouts.size === 0)
|
|
344
|
+
return false;
|
|
345
|
+
this._layouts.forEach(function (layout) { return layout.select(ids); });
|
|
346
|
+
return true;
|
|
319
347
|
};
|
|
320
348
|
/**
|
|
321
|
-
* Unselect the specified entities
|
|
349
|
+
* Unselect the specified entities across all layouts. See
|
|
350
|
+
* {@link select} for rationale.
|
|
322
351
|
*/
|
|
323
352
|
AcTrScene.prototype.unselect = function (ids) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
return false;
|
|
353
|
+
if (this._layouts.size === 0)
|
|
354
|
+
return false;
|
|
355
|
+
this._layouts.forEach(function (layout) { return layout.unselect(ids); });
|
|
356
|
+
return true;
|
|
330
357
|
};
|
|
331
358
|
/**
|
|
332
359
|
* Search entities intersected or contained in the specified bounding box.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcTrScene.js","sourceRoot":"","sources":["../../src/view/AcTrScene.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAsC,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,EAEL,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAA;AAyB1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH;IAgBE;;;;OAIG;IACH;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,KAAK,EAAE,CAAA;QAC/B,IAAI,CAAC,iBAAiB,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9D,IAAI,CAAC,qBAAqB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACtE,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAE,CAAA;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAA;QACzB,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAA;QAC5B,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAA;IAC5B,CAAC;IAKD,sBAAI,2CAAoB;QAHxB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,qBAAqB,CAAA;QACnC,CAAC;;;OAAA;IAKD,sBAAI,6BAAM;QAHV;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;;;OAA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AAC,CAAA;QACtE,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;OAIG;IACH,gCAAY,GAAZ,UAAa,QAAsB;;;YACjC,KAA0B,IAAA,KAAA,SAAA,IAAI,CAAC,QAAQ,CAAA,gBAAA,4BAAE,CAAC;gBAA/B,IAAA,KAAA,mBAAW,EAAV,EAAC,QAAA,EAAE,MAAM,QAAA;gBACnB,IAAI,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC;oBAAE,OAAO,IAAI,CAAA;YAChD,CAAC;;;;;;;;;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;;OAIG;IACH,gCAAY,GAAZ,UAAa,MAAkB;;;YAC7B,KAA0B,IAAA,KAAA,SAAA,IAAI,CAAC,QAAQ,CAAA,gBAAA,4BAAE,CAAC;gBAA/B,IAAA,KAAA,mBAAW,EAAV,EAAC,QAAA,EAAE,MAAM,QAAA;gBACnB,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;oBAAE,OAAO,IAAI,CAAA;YAC9C,CAAC;;;;;;;;;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IACH,gBAAC;AAAD,CAAC,AA/WD,IA+WC"}
|
package/lib/view/AcTrView2d.d.ts
CHANGED
|
@@ -74,6 +74,37 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
74
74
|
private _numOfEntitiesToProcess;
|
|
75
75
|
/** CSS2D renderer for HTML transient overlays */
|
|
76
76
|
private _css2dRenderer;
|
|
77
|
+
/**
|
|
78
|
+
* Block table record ids of layouts whose entities are currently being
|
|
79
|
+
* batch-converted into the scene. Used by
|
|
80
|
+
* {@link AcTrView2d.loadLayoutEntitiesIfNeeded} to guard against
|
|
81
|
+
* re-entrant calls before the `setTimeout` callback flips
|
|
82
|
+
* `AcTrLayout.isLoaded` to `true`, which would otherwise duplicate
|
|
83
|
+
* entities when the same layout tab is clicked twice in quick succession.
|
|
84
|
+
*/
|
|
85
|
+
private _loadingLayouts;
|
|
86
|
+
/**
|
|
87
|
+
* Block table record ids of layouts that have already received an
|
|
88
|
+
* initial zoom-to-fit. Used by the `layoutSwitched` handler to apply
|
|
89
|
+
* the auto-zoom **only on the first user visit** to each layout, and
|
|
90
|
+
* to preserve the camera state on subsequent visits (matches AutoCAD's
|
|
91
|
+
* per-tab view persistence).
|
|
92
|
+
*
|
|
93
|
+
* Cannot be inferred from `_layoutViewManager.has(btrId)` because
|
|
94
|
+
* `addLayout` pre-creates an `AcTrLayoutView` for every layout in the
|
|
95
|
+
* DWG at document load time — by the time the user clicks a layout
|
|
96
|
+
* tab the view already exists, so "first existence of view" is
|
|
97
|
+
* always false. This set tracks the orthogonal question "has the user
|
|
98
|
+
* actually focused on this layout before?".
|
|
99
|
+
*
|
|
100
|
+
* Marked from two entry points:
|
|
101
|
+
* - `onAfterOpenDocument` (via `markLayoutAsInitialized`): the
|
|
102
|
+
* document's startup layout is initialized externally, so we don't
|
|
103
|
+
* auto-zoom again when the user clicks back to it.
|
|
104
|
+
* - `layoutSwitched` handler: after the first user-driven switch
|
|
105
|
+
* completes its initial zoom-to-fit.
|
|
106
|
+
*/
|
|
107
|
+
private _initializedLayouts;
|
|
77
108
|
/**
|
|
78
109
|
* Creates a new 2D CAD viewer instance.
|
|
79
110
|
*
|
|
@@ -83,6 +114,7 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
83
114
|
* @param options.background - Optional background color as hex number (default: 0x000000)
|
|
84
115
|
*/
|
|
85
116
|
constructor(options?: AcTrView2dOptions);
|
|
117
|
+
private getPointerSelectionAction;
|
|
86
118
|
/**
|
|
87
119
|
* Initializes the viewer after renderer and camera are created.
|
|
88
120
|
*
|
|
@@ -165,6 +197,10 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
165
197
|
* The statistics of the current scene
|
|
166
198
|
*/
|
|
167
199
|
get stats(): import("./AcTrScene").AcTrSceneStats;
|
|
200
|
+
/**
|
|
201
|
+
* CAD scene graph used for rendering and HTML export.
|
|
202
|
+
*/
|
|
203
|
+
get cadScene(): AcTrScene;
|
|
168
204
|
/**
|
|
169
205
|
* The internal THREE scene used by this view.
|
|
170
206
|
*/
|
|
@@ -214,10 +250,53 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
214
250
|
* @inheritdoc
|
|
215
251
|
*/
|
|
216
252
|
flyTo(point: AcGePoint2dLike, scale: number): void;
|
|
253
|
+
private openPickedMTextEditor;
|
|
254
|
+
private editMTextEntity;
|
|
255
|
+
private resolveMTextEditorWidth;
|
|
256
|
+
private resolveMTextEditorTextHeight;
|
|
257
|
+
private pixelsToWorldY;
|
|
258
|
+
private getMTextToolbarFontFamilies;
|
|
217
259
|
/**
|
|
218
260
|
* @inheritdoc
|
|
261
|
+
*
|
|
262
|
+
* In **paper space** layouts the selection pipeline supports
|
|
263
|
+
* "drill-through": clicks inside a viewport rectangle resolve against
|
|
264
|
+
* the model-space entities that are visually rendered through that
|
|
265
|
+
* viewport, rather than picking the viewport's border. Clicks **near**
|
|
266
|
+
* the border still pick the `AcDbViewport` entity itself so the user
|
|
267
|
+
* can grip, move, lock or delete the viewport.
|
|
268
|
+
*
|
|
269
|
+
* This mirrors AutoCAD **web** behaviour (single-click selection of
|
|
270
|
+
* model content through the viewport). The desktop ARX behaviour
|
|
271
|
+
* (explicit MSPACE/PSPACE modes, CVPORT system variable, double-click
|
|
272
|
+
* to enter mspace) is a separate, larger feature — tracked in
|
|
273
|
+
* `.claude/plans/next_14_viewports_full.md` PR-γ Option A. We
|
|
274
|
+
* intentionally do **not** implement it here.
|
|
275
|
+
*
|
|
276
|
+
* The border vs interior decision uses a tolerance derived from
|
|
277
|
+
* `selectionBoxSize` (the same pixel-sized hit radius used elsewhere
|
|
278
|
+
* in pick) converted to paper-space WCS via `pointToBox`. This keeps
|
|
279
|
+
* the gesture consistent with how other entity edges behave — you
|
|
280
|
+
* don't have to land pixel-perfect on the viewport line to grab it.
|
|
219
281
|
*/
|
|
220
282
|
pick(point?: AcGePoint2dLike, hitRadius?: number, pickOneOnly?: boolean): AcEdSpatialQueryResultItemEx[];
|
|
283
|
+
/**
|
|
284
|
+
* Resolves hits against the model-space layout for each viewport the
|
|
285
|
+
* click drills through. Appends the matches into `results` (caller
|
|
286
|
+
* sorts/dedups). Kept private and separate from `pick` so the main
|
|
287
|
+
* pick path stays a single straight read.
|
|
288
|
+
*
|
|
289
|
+
* Each viewport gets its own raycaster shot (using the viewport view's
|
|
290
|
+
* own camera, which is zoomed to `viewport.viewBox` in model WCS), so
|
|
291
|
+
* a click that lands in overlapping viewports correctly resolves
|
|
292
|
+
* against each viewport's particular model framing.
|
|
293
|
+
*
|
|
294
|
+
* `pickThroughViewports` does NOT consult the active (paper) layout's
|
|
295
|
+
* spatial index — that work is already done by the caller. It only
|
|
296
|
+
* adds model-space results that would otherwise be invisible to the
|
|
297
|
+
* paper-space pick.
|
|
298
|
+
*/
|
|
299
|
+
private pickThroughViewports;
|
|
221
300
|
/**
|
|
222
301
|
* @inheritdoc
|
|
223
302
|
*/
|
|
@@ -264,6 +343,57 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
264
343
|
* @inheritdoc
|
|
265
344
|
*/
|
|
266
345
|
addLayout(layout: AcDbLayout): void;
|
|
346
|
+
/**
|
|
347
|
+
* Marks a layout as already framed by an external caller (typically
|
|
348
|
+
* `AcApDocManager.onAfterOpenDocument`, which zooms the startup
|
|
349
|
+
* layout right after parsing). Subsequent `layoutSwitched` events
|
|
350
|
+
* for this btrId will skip their initial zoom-to-fit so the user's
|
|
351
|
+
* camera state on the startup layout is preserved when they click
|
|
352
|
+
* back to that tab.
|
|
353
|
+
*
|
|
354
|
+
* This is the public counterpart of the `_initializedLayouts` set —
|
|
355
|
+
* exposed so the application layer can stay in sync with the view's
|
|
356
|
+
* notion of "which layouts have been framed already" without
|
|
357
|
+
* needing access to private state.
|
|
358
|
+
*/
|
|
359
|
+
markLayoutAsInitialized(layoutBtrId: AcDbObjectId): void;
|
|
360
|
+
/**
|
|
361
|
+
* Applies the initial zoom-to-fit for a layout the user just switched
|
|
362
|
+
* into for the first time. Picks the best available "what should the
|
|
363
|
+
* camera frame?" signal in this order:
|
|
364
|
+
*
|
|
365
|
+
* 1. **`AcDbLayout.limits`** (LIMMIN/LIMMAX) — only when it actually
|
|
366
|
+
* contains the layout's viewports. Many real DWGs ship with garbage
|
|
367
|
+
* limits (e.g. `(0,0)-(12,9)` from a legacy template setup) that
|
|
368
|
+
* don't reflect the actual paper sheet. We reject those by
|
|
369
|
+
* checking containment against `viewportsBoundingBox`.
|
|
370
|
+
*
|
|
371
|
+
* 2. **`AcTrLayoutView.viewportsBoundingBox`** — bounding box of all
|
|
372
|
+
* real user viewports in the layout. In production sheets viewports
|
|
373
|
+
* typically span 70-90% of the paper, so this is a great proxy for
|
|
374
|
+
* the printable area and (crucially) ignores outliers like title
|
|
375
|
+
* blocks authored in a different unit/scale.
|
|
376
|
+
*
|
|
377
|
+
* 3. **`AcDbLayout.extents`** — the layout's own EXTMIN/EXTMAX, if
|
|
378
|
+
* populated. Many parsers leave this empty (we've seen `(0,0)-(0,0)`),
|
|
379
|
+
* so it sits below the viewport-based heuristic.
|
|
380
|
+
*
|
|
381
|
+
* 4. **`zoomToFitDrawing`** (entity extents from spatial index) —
|
|
382
|
+
* last-resort fallback for layouts with no viewports and no
|
|
383
|
+
* sensible limits/extents (e.g. a freshly created empty paper).
|
|
384
|
+
* Vulnerable to scale-mismatch outliers, but better than no zoom.
|
|
385
|
+
*
|
|
386
|
+
* **Critically, this runs through `AcEdConditionWaiter`**: at the
|
|
387
|
+
* moment `layoutSwitched` fires, the layout's entities (including its
|
|
388
|
+
* `AcDbViewport`s) have not yet been batch-converted into the scene
|
|
389
|
+
* — `loadLayoutEntitiesIfNeeded` chunked-converts via `setTimeout`.
|
|
390
|
+
* Without the waiter, `viewportsBoundingBox` returns undefined and
|
|
391
|
+
* the strategy degrades into (1) zooming to garbage `limits`, or
|
|
392
|
+
* (4) zooming to an empty scene box. The waiter polls
|
|
393
|
+
* `_numOfEntitiesToProcess` and only fires the heuristic once the
|
|
394
|
+
* conversion is done.
|
|
395
|
+
*/
|
|
396
|
+
private applyInitialZoom;
|
|
267
397
|
/**
|
|
268
398
|
* @inheritdoc
|
|
269
399
|
*/
|
|
@@ -298,6 +428,22 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
298
428
|
/**
|
|
299
429
|
* Load entities from the specified layout if they haven't been loaded yet.
|
|
300
430
|
* This ensures that when switching to a layout, all its entities are available for rendering.
|
|
431
|
+
*
|
|
432
|
+
* Two non-obvious invariants are enforced here:
|
|
433
|
+
*
|
|
434
|
+
* 1. The layout is looked up by `layoutBtrId` (the argument), not by
|
|
435
|
+
* `this._scene.activeLayout`. The active layout reference happens to
|
|
436
|
+
* match in the current `layoutSwitched` handler call site, but relying
|
|
437
|
+
* on it would silently miss layouts that are pre-loaded ahead of
|
|
438
|
+
* becoming active (e.g. background prefetch).
|
|
439
|
+
* 2. The `_loadingLayouts` guard prevents re-entrance while the
|
|
440
|
+
* `setTimeout` chunked-convert callback is still in flight. Without it,
|
|
441
|
+
* clicking the same layout tab twice in quick succession (or
|
|
442
|
+
* `layoutSwitched` firing twice during the async window) would iterate
|
|
443
|
+
* the block table record again and duplicate every entity in the
|
|
444
|
+
* layout — visible as ghosted overdraw and double the spatial-index
|
|
445
|
+
* weight.
|
|
446
|
+
*
|
|
301
447
|
* @param layoutBtrId Input the block table record id of the layout
|
|
302
448
|
*/
|
|
303
449
|
private loadLayoutEntitiesIfNeeded;
|
|
@@ -308,6 +454,27 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
308
454
|
*/
|
|
309
455
|
private toggleStatsVisibility;
|
|
310
456
|
private drawEntity;
|
|
457
|
+
/**
|
|
458
|
+
* Walks the given block table record once and creates one
|
|
459
|
+
* `AcTrViewportView` for every real `AcDbViewport` entity it finds
|
|
460
|
+
* (skipping the default paper-space viewport that is filtered
|
|
461
|
+
* everywhere else by `AcTrViewportView.isDefaultPaperSpaceViewport`).
|
|
462
|
+
*
|
|
463
|
+
* This is the recovery pass for paper-space layouts whose viewport
|
|
464
|
+
* entities reached `batchConvert` before the `AcTrLayoutView` was
|
|
465
|
+
* created — those entities were drawn and added to the scene, but
|
|
466
|
+
* the viewport-view creation step silently no-oped (lookup returned
|
|
467
|
+
* undefined). Without this recovery, `viewportsBoundingBox` stays
|
|
468
|
+
* `undefined` on first user visit, the initial-zoom strategy
|
|
469
|
+
* degrades to the bogus `limits` branch, and the layout renders as
|
|
470
|
+
* a "grain in the corner" with empty viewport scissors. See the
|
|
471
|
+
* call site in `loadLayoutEntitiesIfNeeded` for the full context.
|
|
472
|
+
*
|
|
473
|
+
* Cheap operation: only AcDbViewport entities are inspected; for a
|
|
474
|
+
* typical sheet that's a handful of entities even on 5000-entity
|
|
475
|
+
* paper layouts.
|
|
476
|
+
*/
|
|
477
|
+
private ensureViewportViews;
|
|
311
478
|
/**
|
|
312
479
|
* Converts the specified database entities to three entities
|
|
313
480
|
* @param entities - The database entities
|
|
@@ -315,6 +482,30 @@ export declare class AcTrView2d extends AcEdBaseView {
|
|
|
315
482
|
*/
|
|
316
483
|
private batchConvert;
|
|
317
484
|
private handleGroup;
|
|
485
|
+
/**
|
|
486
|
+
* Remaps layer metadata/material bindings from a source layer to the effective render layer.
|
|
487
|
+
*
|
|
488
|
+
* During block decomposition, one INSERT may be split into multiple layer buckets. For
|
|
489
|
+
* children authored on layer "0", AutoCAD requires inheriting the INSERT's own layer.
|
|
490
|
+
* This method applies that inheritance by mutating each child's `userData.layerName` and
|
|
491
|
+
* re-binding materials via renderer cache, so subsequent layer-level style changes still
|
|
492
|
+
* hit the correct material instances.
|
|
493
|
+
*
|
|
494
|
+
* @param objects - Root objects in the current layer bucket to traverse and remap.
|
|
495
|
+
* @param sourceLayerName - Layer name found in block definition before inheritance.
|
|
496
|
+
* @param effectiveLayerName - Final layer name used by rendering and style updates.
|
|
497
|
+
*/
|
|
498
|
+
private remapInheritedLayerObjects;
|
|
499
|
+
/**
|
|
500
|
+
* Some DXF conversion paths lose `isByLayerColor` on layer-0 block contents while still
|
|
501
|
+
* retaining other ByLayer markers (lineType/lineWeight/transparency). For AutoCAD-compatible
|
|
502
|
+
* INSERT inheritance, treat such colors as inheritable when remapping from layer "0".
|
|
503
|
+
*/
|
|
504
|
+
private promoteLayerZeroByLayerColor;
|
|
505
|
+
/**
|
|
506
|
+
* Builds the resolved layer traits used when layer-0 block content inherits an INSERT layer.
|
|
507
|
+
*/
|
|
508
|
+
private getEffectiveLayerTraits;
|
|
318
509
|
private decreaseNumOfEntitiesToProcess;
|
|
319
510
|
}
|
|
320
511
|
//# sourceMappingURL=AcTrView2d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcTrView2d.d.ts","sourceRoot":"","sources":["../../src/view/AcTrView2d.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AcTrView2d.d.ts","sourceRoot":"","sources":["../../src/view/AcTrView2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EAEV,YAAY,EAMZ,SAAS,EACT,SAAS,EACT,WAAW,EACX,eAAe,EAGhB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAGL,wBAAwB,EACxB,YAAY,EAKb,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EACL,YAAY,EACZ,yBAAyB,EAMzB,4BAA4B,EAC5B,YAAY,EAIb,MAAM,WAAW,CAAA;AAElB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB;;OAEG;IACH,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;IACjD;;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