@mlightcad/cad-simple-viewer 1.4.12 → 1.5.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/dist/index.js +35505 -24550
- package/dist/index.umd.cjs +180 -49
- package/dist/libredwg-parser-worker.js +4874 -4548
- package/dist/mtext-renderer-worker.js +3587 -3534
- package/lib/app/AcApDocManager.d.ts +73 -8
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +216 -46
- 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.d.ts +91 -20
- package/lib/command/AcApZoomCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomCmd.js +288 -23
- 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/convert/AcApConvertToPngCmd.d.ts +53 -0
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToPngCmd.js +200 -0
- 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/AcApPngConvertor.d.ts +80 -0
- package/lib/command/convert/AcApPngConvertor.d.ts.map +1 -0
- package/lib/command/convert/AcApPngConvertor.js +233 -0
- 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 +6 -0
- package/lib/command/convert/index.d.ts.map +1 -0
- package/lib/command/convert/index.js +6 -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} +794 -13
- package/lib/command/draw/AcApArcCmd.js.map +1 -0
- package/lib/command/draw/AcApCircleCmd.d.ts +81 -0
- package/lib/command/draw/AcApCircleCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApCircleCmd.js +594 -0
- 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/draw/AcApEllipseCmd.d.ts +87 -0
- package/lib/command/draw/AcApEllipseCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApEllipseCmd.js +583 -0
- package/lib/command/draw/AcApEllipseCmd.js.map +1 -0
- package/lib/command/draw/AcApHatchCmd.d.ts +247 -0
- package/lib/command/draw/AcApHatchCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApHatchCmd.js +900 -0
- package/lib/command/draw/AcApHatchCmd.js.map +1 -0
- package/lib/command/draw/AcApLineCmd.d.ts +57 -0
- package/lib/command/draw/AcApLineCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApLineCmd.js +263 -0
- 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 +531 -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} +3 -3
- 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/{AcApZoomToBoxCmd.js → draw/AcApPointCmd.js} +32 -37
- package/lib/command/draw/AcApPointCmd.js.map +1 -0
- package/lib/command/draw/AcApPolygonCmd.d.ts +69 -0
- package/lib/command/draw/AcApPolygonCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApPolygonCmd.js +422 -0
- package/lib/command/draw/AcApPolygonCmd.js.map +1 -0
- package/lib/command/{AcApPolylineCmd.d.ts → draw/AcApPolylineCmd.d.ts} +2 -2
- package/lib/command/draw/AcApPolylineCmd.d.ts.map +1 -0
- package/lib/command/{AcApPolylineCmd.js → draw/AcApPolylineCmd.js} +3 -3
- 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/{AcApLineCmd.js → draw/AcApRayCmd.js} +63 -44
- package/lib/command/draw/AcApRayCmd.js.map +1 -0
- package/lib/command/draw/AcApRectCmd.d.ts +168 -0
- package/lib/command/draw/AcApRectCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApRectCmd.js +822 -0
- package/lib/command/draw/AcApRectCmd.js.map +1 -0
- package/lib/command/draw/AcApSplineCmd.d.ts +85 -0
- package/lib/command/draw/AcApSplineCmd.d.ts.map +1 -0
- package/lib/command/draw/AcApSplineCmd.js +620 -0
- 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 +210 -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 -26
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +6 -26
- 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/{AcApRevRectCmd.js → layer/AcApLayerCloseCmd.js} +27 -24
- package/lib/command/layer/AcApLayerCloseCmd.js.map +1 -0
- package/lib/command/layer/AcApLayerCmd.d.ts +215 -0
- package/lib/command/layer/AcApLayerCmd.d.ts.map +1 -0
- package/lib/command/layer/AcApLayerCmd.js +765 -0
- 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/{AcApClearMeasurementsCmd.d.ts → measure/AcApClearMeasurementsCmd.d.ts} +2 -2
- package/lib/command/measure/AcApClearMeasurementsCmd.d.ts.map +1 -0
- package/lib/command/{AcApClearMeasurementsCmd.js → measure/AcApClearMeasurementsCmd.js} +1 -1
- 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} +3 -3
- 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} +3 -3
- 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} +6 -3
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.d.ts → measure/AcApMeasureDistanceCmd.d.ts} +2 -2
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -0
- package/lib/command/{AcApMeasureDistanceCmd.js → measure/AcApMeasureDistanceCmd.js} +3 -3
- 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/modify/AcApMoveCmd.d.ts +16 -0
- package/lib/command/modify/AcApMoveCmd.d.ts.map +1 -0
- package/lib/command/modify/AcApMoveCmd.js +277 -0
- package/lib/command/modify/AcApMoveCmd.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 +487 -0
- package/lib/command/modify/AcApRotateCmd.js.map +1 -0
- package/lib/command/modify/index.d.ts +5 -0
- package/lib/command/modify/index.d.ts.map +1 -0
- package/lib/command/modify/index.js +5 -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/review/AcApRevCircleCmd.d.ts +18 -0
- package/lib/command/review/AcApRevCircleCmd.d.ts.map +1 -0
- package/lib/command/{AcApCircleCmd.js → review/AcApRevCircleCmd.js} +26 -42
- 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/review/AcApRevRectCmd.d.ts +18 -0
- package/lib/command/review/AcApRevRectCmd.d.ts.map +1 -0
- package/lib/command/{AcApRectCmd.js → review/AcApRevRectCmd.js} +43 -28
- 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/command/AcEdCommandStack.d.ts +54 -1
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +207 -25
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- 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.d.ts +79 -0
- package/lib/editor/input/AcEdSelectionFilter.d.ts.map +1 -0
- package/lib/editor/input/AcEdSelectionFilter.js +231 -0
- package/lib/editor/input/AcEdSelectionFilter.js.map +1 -0
- package/lib/editor/input/AcEditor.d.ts +37 -2
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +89 -0
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/index.d.ts +1 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +1 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts +47 -0
- package/lib/editor/input/prompt/AcEdKeywordCollection.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdKeywordCollection.js +19 -0
- package/lib/editor/input/prompt/AcEdKeywordCollection.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts +7 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.js +17 -0
- package/lib/editor/input/prompt/AcEdPromptAngleOptions.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/AcEdPromptEntityOptions.d.ts +17 -0
- package/lib/editor/input/prompt/AcEdPromptEntityOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptEntityOptions.js +30 -3
- package/lib/editor/input/prompt/AcEdPromptEntityOptions.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptOptions.d.ts +6 -1
- package/lib/editor/input/prompt/AcEdPromptOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptOptions.js +7 -0
- package/lib/editor/input/prompt/AcEdPromptOptions.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/session/AcEdKeywordSession.d.ts +65 -0
- package/lib/editor/input/session/AcEdKeywordSession.d.ts.map +1 -1
- package/lib/editor/input/session/AcEdKeywordSession.js +71 -0
- package/lib/editor/input/session/AcEdKeywordSession.js.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.d.ts +29 -4
- package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdCommandLine.js +118 -24
- package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +12 -4
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts +23 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js +32 -9
- package/lib/editor/input/ui/AcEdFloatingInputBoxes.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +28 -0
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +377 -16
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +994 -529
- package/lib/editor/input/ui/AcEdInputManager.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 +15 -1
- package/lib/editor/input/ui/AcEdRubberBand.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdRubberBand.js +42 -10
- 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 +148 -10
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +153 -15
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +838 -36
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +827 -25
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +148 -10
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +155 -17
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +851 -49
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +829 -27
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/plugin/AcApPluginManager.d.ts.map +1 -1
- package/lib/plugin/AcApPluginManager.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/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +5 -3
- package/lib/view/AcTrLayer.js.map +1 -1
- 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/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/AcTrView2d.d.ts +25 -1
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +242 -104
- package/lib/view/AcTrView2d.js.map +1 -1
- package/package.json +11 -9
- 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 +0 -22
- package/lib/command/AcApCircleCmd.d.ts.map +0 -1
- package/lib/command/AcApCircleCmd.js.map +0 -1
- 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/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/AcApEraseCmd.d.ts.map +0 -1
- package/lib/command/AcApEraseCmd.js.map +0 -1
- package/lib/command/AcApLineCmd.d.ts +0 -22
- 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/AcApPolylineCmd.d.ts.map +0 -1
- package/lib/command/AcApPolylineCmd.js.map +0 -1
- package/lib/command/AcApRectCmd.d.ts +0 -23
- package/lib/command/AcApRectCmd.d.ts.map +0 -1
- package/lib/command/AcApRectCmd.js.map +0 -1
- package/lib/command/AcApRevCircleCmd.d.ts +0 -10
- package/lib/command/AcApRevCircleCmd.d.ts.map +0 -1
- package/lib/command/AcApRevCircleCmd.js +0 -83
- 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 +0 -10
- 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 +0 -20
- package/lib/command/AcApSplineCmd.d.ts.map +0 -1
- package/lib/command/AcApSplineCmd.js +0 -213
- 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/AcApZoomToBoxCmd.d.ts +0 -29
- package/lib/command/AcApZoomToBoxCmd.d.ts.map +0 -1
- package/lib/command/AcApZoomToBoxCmd.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
|
@@ -61,6 +61,23 @@ var AcEdPromptAngleOptions = /** @class */ (function (_super) {
|
|
|
61
61
|
enumerable: false,
|
|
62
62
|
configurable: true
|
|
63
63
|
});
|
|
64
|
+
Object.defineProperty(AcEdPromptAngleOptions.prototype, "baseAngle", {
|
|
65
|
+
/**
|
|
66
|
+
* Gets or sets the base angle (in degrees) used as the 0-degree direction.
|
|
67
|
+
* If undefined, +X direction is used as the default angle origin.
|
|
68
|
+
*/
|
|
69
|
+
get: function () {
|
|
70
|
+
var _a;
|
|
71
|
+
return (_a = this._baseAngle) !== null && _a !== void 0 ? _a : 0;
|
|
72
|
+
},
|
|
73
|
+
set: function (angle) {
|
|
74
|
+
if (!this.isReadOnly) {
|
|
75
|
+
this._baseAngle = angle;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
64
81
|
Object.defineProperty(AcEdPromptAngleOptions.prototype, "useBasePoint", {
|
|
65
82
|
/**
|
|
66
83
|
* Gets or sets whether to use the base point for the prompt.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptAngleOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptAngleOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;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CAAC,gBAAgB,GAAG,IAAI,CAAA;YAC9B,CAAC;QACH,CAAC;;;OALA;IAWD,sBAAI,6CAAS;QAJb;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,IAAa;YACzB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;YACxB,CAAC;QACH,CAAC;;;OALA;IAYD,sBAAI,iDAAa;QALjB;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAA;QAC5B,CAAC;aACD,UAAkB,IAAa;YAC7B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;YAC5B,CAAC;QACH,CAAC;;;OALA;IAMH,6BAAC;AAAD,CAAC,AAhJD,CAA4C,iBAAiB,GAgJ5D"}
|
|
@@ -7,6 +7,7 @@ export declare class AcEdPromptBoxOptions extends AcEdPromptOptions<AcGeBox2d> {
|
|
|
7
7
|
private _secondCornerMessage;
|
|
8
8
|
private _useBasePoint;
|
|
9
9
|
private _useDashedLine;
|
|
10
|
+
private _disableOSnap;
|
|
10
11
|
constructor(firstCornerMessage: string, secondCornerMessage: string);
|
|
11
12
|
get firstCornerMessage(): string;
|
|
12
13
|
set firstCornerMessage(value: string);
|
|
@@ -16,5 +17,10 @@ export declare class AcEdPromptBoxOptions extends AcEdPromptOptions<AcGeBox2d> {
|
|
|
16
17
|
set useBasePoint(flag: boolean);
|
|
17
18
|
get useDashedLine(): boolean;
|
|
18
19
|
set useDashedLine(flag: boolean);
|
|
20
|
+
/**
|
|
21
|
+
* Gets or sets whether object snap should be disabled for both box corners.
|
|
22
|
+
*/
|
|
23
|
+
get disableOSnap(): boolean;
|
|
24
|
+
set disableOSnap(flag: boolean);
|
|
19
25
|
}
|
|
20
26
|
//# sourceMappingURL=AcEdPromptBoxOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptBoxOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptBoxOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,iBAAiB,CAAC,SAAS,CAAC;IACpE,OAAO,CAAC,oBAAoB,CAAQ;IACpC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;
|
|
1
|
+
{"version":3,"file":"AcEdPromptBoxOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptBoxOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,iBAAiB,CAAC,SAAS,CAAC;IACpE,OAAO,CAAC,oBAAoB,CAAQ;IACpC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,aAAa,CAAiB;gBAE1B,kBAAkB,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM;IAKnE,IAAI,kBAAkB,IAAI,MAAM,CAE/B;IAED,IAAI,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAInC;IAED,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,IAAI,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAIpC;IAED,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;CACF"}
|
|
@@ -23,6 +23,7 @@ var AcEdPromptBoxOptions = /** @class */ (function (_super) {
|
|
|
23
23
|
var _this = _super.call(this, firstCornerMessage) || this;
|
|
24
24
|
_this._useBasePoint = false;
|
|
25
25
|
_this._useDashedLine = false;
|
|
26
|
+
_this._disableOSnap = false;
|
|
26
27
|
_this._secondCornerMessage = secondCornerMessage;
|
|
27
28
|
return _this;
|
|
28
29
|
}
|
|
@@ -74,6 +75,21 @@ var AcEdPromptBoxOptions = /** @class */ (function (_super) {
|
|
|
74
75
|
enumerable: false,
|
|
75
76
|
configurable: true
|
|
76
77
|
});
|
|
78
|
+
Object.defineProperty(AcEdPromptBoxOptions.prototype, "disableOSnap", {
|
|
79
|
+
/**
|
|
80
|
+
* Gets or sets whether object snap should be disabled for both box corners.
|
|
81
|
+
*/
|
|
82
|
+
get: function () {
|
|
83
|
+
return this._disableOSnap;
|
|
84
|
+
},
|
|
85
|
+
set: function (flag) {
|
|
86
|
+
if (!this.isReadOnly) {
|
|
87
|
+
this._disableOSnap = flag;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
enumerable: false,
|
|
91
|
+
configurable: true
|
|
92
|
+
});
|
|
77
93
|
return AcEdPromptBoxOptions;
|
|
78
94
|
}(AcEdPromptOptions));
|
|
79
95
|
export { AcEdPromptBoxOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptBoxOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptBoxOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;GAEG;AACH;IAA0C,wCAA4B;
|
|
1
|
+
{"version":3,"file":"AcEdPromptBoxOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptB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;;OANA;IAWD,sBAAI,8CAAY;QAHhB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,aAAa,CAAA;QAC3B,CAAC;aAED,UAAiB,IAAa;YAC5B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAA;YAC3B,CAAC;QACH,CAAC;;;OANA;IAOH,2BAAC;AAAD,CAAC,AA/DD,CAA0C,iBAAiB,GA+D1D"}
|
|
@@ -15,6 +15,23 @@ export declare class AcEdPromptEntityOptions extends AcEdPromptOptions<string> {
|
|
|
15
15
|
* Empty set means "allow all".
|
|
16
16
|
*/
|
|
17
17
|
private _allowedClasses;
|
|
18
|
+
/**
|
|
19
|
+
* Normalizes entity class names so both "Line" and "AcDbLine" are accepted.
|
|
20
|
+
*
|
|
21
|
+
* `PromptEntityOptions.AddAllowedClass()` in host CAD APIs is typically used
|
|
22
|
+
* with runtime class identifiers, while this web implementation works with
|
|
23
|
+
* string names resolved from the underlying entity instances. In practice,
|
|
24
|
+
* callers may provide either the short CAD-style type name (`Line`) or the
|
|
25
|
+
* concrete TypeScript constructor name (`AcDbLine`).
|
|
26
|
+
*
|
|
27
|
+
* This helper canonicalizes both representations to the same short form so
|
|
28
|
+
* the allow-list can be matched consistently regardless of which naming style
|
|
29
|
+
* was used by the caller or discovered at pick time.
|
|
30
|
+
*
|
|
31
|
+
* @param className - Raw entity class name supplied by callers or runtime inspection
|
|
32
|
+
* @returns Normalized class name without the `AcDb` prefix
|
|
33
|
+
*/
|
|
34
|
+
private normalizeClassName;
|
|
18
35
|
constructor(message: string, globalKeywords?: string);
|
|
19
36
|
/**
|
|
20
37
|
* Gets or sets whether the user may press ENTER without selecting an entity.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptEntityOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAi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B,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAU3C;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAO3B;;;OAGG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;CAM3C"}
|
|
@@ -35,6 +35,26 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
35
35
|
_this._allowedClasses = new Set();
|
|
36
36
|
return _this;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Normalizes entity class names so both "Line" and "AcDbLine" are accepted.
|
|
40
|
+
*
|
|
41
|
+
* `PromptEntityOptions.AddAllowedClass()` in host CAD APIs is typically used
|
|
42
|
+
* with runtime class identifiers, while this web implementation works with
|
|
43
|
+
* string names resolved from the underlying entity instances. In practice,
|
|
44
|
+
* callers may provide either the short CAD-style type name (`Line`) or the
|
|
45
|
+
* concrete TypeScript constructor name (`AcDbLine`).
|
|
46
|
+
*
|
|
47
|
+
* This helper canonicalizes both representations to the same short form so
|
|
48
|
+
* the allow-list can be matched consistently regardless of which naming style
|
|
49
|
+
* was used by the caller or discovered at pick time.
|
|
50
|
+
*
|
|
51
|
+
* @param className - Raw entity class name supplied by callers or runtime inspection
|
|
52
|
+
* @returns Normalized class name without the `AcDb` prefix
|
|
53
|
+
*/
|
|
54
|
+
AcEdPromptEntityOptions.prototype.normalizeClassName = function (className) {
|
|
55
|
+
var normalized = className.trim();
|
|
56
|
+
return normalized.startsWith('AcDb') ? normalized.slice(4) : normalized;
|
|
57
|
+
};
|
|
38
58
|
Object.defineProperty(AcEdPromptEntityOptions.prototype, "allowNone", {
|
|
39
59
|
/**
|
|
40
60
|
* Gets or sets whether the user may press ENTER without selecting an entity.
|
|
@@ -96,7 +116,10 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
96
116
|
*/
|
|
97
117
|
AcEdPromptEntityOptions.prototype.addAllowedClass = function (className) {
|
|
98
118
|
if (!this.isReadOnly) {
|
|
99
|
-
this.
|
|
119
|
+
var normalized = this.normalizeClassName(className);
|
|
120
|
+
if (normalized) {
|
|
121
|
+
this._allowedClasses.add(normalized);
|
|
122
|
+
}
|
|
100
123
|
}
|
|
101
124
|
return this;
|
|
102
125
|
};
|
|
@@ -106,7 +129,10 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
106
129
|
*/
|
|
107
130
|
AcEdPromptEntityOptions.prototype.removeAllowedClass = function (className) {
|
|
108
131
|
if (!this.isReadOnly) {
|
|
109
|
-
this.
|
|
132
|
+
var normalized = this.normalizeClassName(className);
|
|
133
|
+
if (normalized) {
|
|
134
|
+
this._allowedClasses.delete(normalized);
|
|
135
|
+
}
|
|
110
136
|
}
|
|
111
137
|
return this;
|
|
112
138
|
};
|
|
@@ -124,7 +150,8 @@ var AcEdPromptEntityOptions = /** @class */ (function (_super) {
|
|
|
124
150
|
* Used internally by selection logic.
|
|
125
151
|
*/
|
|
126
152
|
AcEdPromptEntityOptions.prototype.isClassAllowed = function (className) {
|
|
127
|
-
|
|
153
|
+
var normalized = this.normalizeClassName(className);
|
|
154
|
+
return (this._allowedClasses.size === 0 || this._allowedClasses.has(normalized));
|
|
128
155
|
};
|
|
129
156
|
return AcEdPromptEntityOptions;
|
|
130
157
|
}(AcEdPromptOptions));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptEntityOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;GAGG;AACH;IAA6C,2CAAyB;
|
|
1
|
+
{"version":3,"file":"AcEdPromptEntityOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptEntityOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;GAGG;AACH;IAA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|
1
1
|
import { AcGePoint3d } from '@mlightcad/data-model';
|
|
2
2
|
import { AcEdPreviewJig } from '../AcEdPreviewJig';
|
|
3
|
-
import { AcEdKeywordCollection } from './AcEdKeywordCollection';
|
|
3
|
+
import { AcEdKeywordCollection, AcEdKeywordPromptFormat } from './AcEdKeywordCollection';
|
|
4
4
|
/**
|
|
5
5
|
* Represents the base class for prompt options in the Editor, similar to `Autodesk.AutoCAD.EditorInput.PromptOptions`.
|
|
6
6
|
* Provides configuration for the prompt message, keyword collection, and how keywords are appended/displayed.
|
|
@@ -45,6 +45,11 @@ export declare class AcEdPromptOptions<T = number | string | AcGePoint3d> {
|
|
|
45
45
|
* Mirrors `PromptOptions.Keywords` in AutoCAD .NET API.
|
|
46
46
|
*/
|
|
47
47
|
get keywords(): AcEdKeywordCollection;
|
|
48
|
+
/**
|
|
49
|
+
* Returns AutoCAD-style keyword prompt format data:
|
|
50
|
+
* [Keywords] <Default>:
|
|
51
|
+
*/
|
|
52
|
+
getKeywordPromptFormat(): AcEdKeywordPromptFormat;
|
|
48
53
|
/**
|
|
49
54
|
* Sets both the prompt message and the display keywords from a single combined string.
|
|
50
55
|
* This corresponds to `PromptOptions.SetMessageAndKeywords(string messageAndKeywords, string globalKeywords)` in the .NET API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"AcEdPromptOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,yBAAyB,CAAA;AAEhC;;;GAGG;AACH,qBAAa,iBAAiB,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAmB;IAChC,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,wBAAwB,CAAgB;IAChD,OAAO,CAAC,WAAW,CAAiB;IACpC,OAAO,CAAC,SAAS,CAAqD;IAEtE;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAYpD;;OAEG;IACH,IAAI,GAAG,IAIM,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAFzC;IAED,IAAI,GAAG,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAIzC;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,CAAC,GAAG,EAAE,MAAM,EAItB;IAED;;;OAGG;IACH,IAAI,uBAAuB,IAAI,OAAO,CAErC;IAED,IAAI,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAIzC;IAED;;;;OAIG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,qBAAqB,CAEpC;IAED;;;OAGG;IACH,sBAAsB,IAAI,uBAAuB;IAIjD;;;;;;;;;;;;OAYG;IACI,qBAAqB,CAC1B,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,MAAM,GACrB,IAAI;CAqCR"}
|
|
@@ -122,6 +122,13 @@ var AcEdPromptOptions = /** @class */ (function () {
|
|
|
122
122
|
enumerable: false,
|
|
123
123
|
configurable: true
|
|
124
124
|
});
|
|
125
|
+
/**
|
|
126
|
+
* Returns AutoCAD-style keyword prompt format data:
|
|
127
|
+
* [Keywords] <Default>:
|
|
128
|
+
*/
|
|
129
|
+
AcEdPromptOptions.prototype.getKeywordPromptFormat = function () {
|
|
130
|
+
return this._keywords.getPromptFormat();
|
|
131
|
+
};
|
|
125
132
|
/**
|
|
126
133
|
* Sets both the prompt message and the display keywords from a single combined string.
|
|
127
134
|
* This corresponds to `PromptOptions.SetMessageAndKeywords(string messageAndKeywords, string globalKeywords)` in the .NET API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"AcEdPromptOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,OAAO,EACL,qBAAqB,EAEtB,MAAM,yBAAyB,CAAA;AAEhC;;;GAGG;AACH;IAOE;;;;OAIG;IACH,2BAAY,OAAe,EAAE,cAAuB;QAV5C,aAAQ,GAAW,EAAE,CAAA;QACrB,6BAAwB,GAAY,IAAI,CAAA;QACxC,gBAAW,GAAY,KAAK,CAAA;QAC5B,cAAS,GAA0B,IAAI,qBAAqB,EAAE,CAAA;QAQpE,sFAAsF;QACtF,6BAA6B;QAC7B,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,4BAA4B;YAC5B,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;QACrD,CAAC;aAAM,CAAC;YACN,+BAA+B;YAC/B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACzB,CAAC;IACH,CAAC;IAKD,sBAAI,kCAAG;QAHP;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;aAED,UAAQ,GAAkC;YACxC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;gBACtB,IAAI,CAAC,IAAI,GAAG,GAAG,CAA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KAAK,SAAS,EAAE,CAAC;gBACzB,mCAAmC;gBACnC,IAAM,KAAK,GAAG,MAAM;qBACjB,KAAK,CAAC,GAAG,CAAC;qBACV,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,IAAI,EAAE,EAAR,CAAQ,CAAC;qBAClB,MAAM,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,MAAM,GAAG,CAAC,EAAZ,CAAY,CAAC,CAAA;gBAC5B,2CAA2C;gBAC3C,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAA;wCACX,MAAI;oBACb,wDAAwD;oBACxD,wCAAwC;oBACxC,4CAA4C;oBAC5C,IAAM,WAAW,GAAG,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;oBAC/C,+DAA+D;oBAC/D,IAAI,aAAa,GAAG,WAAW,CAAC,IAAI,CAClC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,WAAW,EAAE,KAAK,MAAI,CAAC,WAAW,EAAE,EAAtC,CAAsC,CAC5C,CAAA;oBACD,IAAI,CAAC,aAAa,EAAE,CAAC;wBACnB,aAAa,GAAG,MAAI,CAAA;oBACtB,CAAC;oBACD,OAAK,SAAS,CAAC,GAAG,CAAC,MAAI,EAAE,aAAa,CAAC,CAAA;;;;oBAZzC,KAAmB,IAAA,UAAA,SAAA,KAAK,CAAA,4BAAA;wBAAnB,IAAM,MAAI,kBAAA;gCAAJ,MAAI;qBAad;;;;;;;;;YACH,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IACH,wBAAC;AAAD,CAAC,AA/ID,IA+IC"}
|
|
@@ -11,6 +11,7 @@ export declare class AcEdPromptPointOptions extends AcEdPromptOptions<AcGePoint3
|
|
|
11
11
|
private _useBasePoint;
|
|
12
12
|
private _useDashedLine;
|
|
13
13
|
private _allowNone;
|
|
14
|
+
private _disableOSnap;
|
|
14
15
|
/**
|
|
15
16
|
* Constructs a new `AcEdPromptPointOptions` with a given prompt message.
|
|
16
17
|
* @param message - The message to show to the user in the prompt.
|
|
@@ -42,5 +43,10 @@ export declare class AcEdPromptPointOptions extends AcEdPromptOptions<AcGePoint3
|
|
|
42
43
|
*/
|
|
43
44
|
get allowNone(): boolean;
|
|
44
45
|
set allowNone(flag: boolean);
|
|
46
|
+
/**
|
|
47
|
+
* Gets or sets whether object snap should be disabled for this point prompt.
|
|
48
|
+
*/
|
|
49
|
+
get disableOSnap(): boolean;
|
|
50
|
+
set disableOSnap(flag: boolean);
|
|
45
51
|
}
|
|
46
52
|
//# sourceMappingURL=AcEdPromptPointOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptPointOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,WAAW,CAAC;IACxE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,UAAU,CAAiB;
|
|
1
|
+
{"version":3,"file":"AcEdPromptPointOptions.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,WAAW,CAAC;IACxE,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,aAAa,CAAiB;IAEtC;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAIpD;;;;OAIG;IACH,IAAI,SAAS,IAAI,WAAW,GAAG,SAAS,CAEvC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAU3C;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IACD,IAAI,aAAa,CAAC,IAAI,EAAE,OAAO,EAI9B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IACD,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,EAI1B;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,OAAO,CAE1B;IACD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,EAI7B;CACF"}
|
|
@@ -32,6 +32,7 @@ var AcEdPromptPointOptions = /** @class */ (function (_super) {
|
|
|
32
32
|
_this._useBasePoint = false;
|
|
33
33
|
_this._useDashedLine = false;
|
|
34
34
|
_this._allowNone = false;
|
|
35
|
+
_this._disableOSnap = false;
|
|
35
36
|
return _this;
|
|
36
37
|
}
|
|
37
38
|
Object.defineProperty(AcEdPromptPointOptions.prototype, "basePoint", {
|
|
@@ -107,6 +108,21 @@ var AcEdPromptPointOptions = /** @class */ (function (_super) {
|
|
|
107
108
|
enumerable: false,
|
|
108
109
|
configurable: true
|
|
109
110
|
});
|
|
111
|
+
Object.defineProperty(AcEdPromptPointOptions.prototype, "disableOSnap", {
|
|
112
|
+
/**
|
|
113
|
+
* Gets or sets whether object snap should be disabled for this point prompt.
|
|
114
|
+
*/
|
|
115
|
+
get: function () {
|
|
116
|
+
return this._disableOSnap;
|
|
117
|
+
},
|
|
118
|
+
set: function (flag) {
|
|
119
|
+
if (!this.isReadOnly) {
|
|
120
|
+
this._disableOSnap = flag;
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
enumerable: false,
|
|
124
|
+
configurable: true
|
|
125
|
+
});
|
|
110
126
|
return AcEdPromptPointOptions;
|
|
111
127
|
}(AcEdPromptOptions));
|
|
112
128
|
export { AcEdPromptPointOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdPromptPointOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAA4C,0CAA8B;
|
|
1
|
+
{"version":3,"file":"AcEdPromptPointOptions.js","sourceRoot":"","sources":["../../../../src/editor/input/prompt/AcEdPromptPointOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;GAKG;AACH;IAA4C,0CAA8B;IAOxE;;;OAGG;IACH,gCAAY,OAAe,EAAE,cAAuB;QAClD,YAAA,MAAK,YAAC,OAAO,EAAE,cAAc,CAAC,SAAA;QAVxB,mBAAa,GAAY,KAAK,CAAA;QAC9B,oBAAc,GAAY,KAAK,CAAA;QAC/B,gBAAU,GAAY,KAAK,CAAA;QAC3B,mBAAa,GAAY,KAAK,CAAA;;IAQtC,CAAC;IAOD,sBAAI,6CAAS;QALb;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;aACD,UAAc,KAA8B;YAC1C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;gBACrB,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;oBAClB,IAAI,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iBAAiB,GAsF5D"}
|
|
@@ -1,15 +1,80 @@
|
|
|
1
1
|
import { AcEdPromptKeywordOptions } from '../prompt/AcEdPromptKeywordOptions';
|
|
2
2
|
import { AcEdCommandLine } from '../ui/AcEdCommandLine';
|
|
3
3
|
import { AcEdInputSession } from './AcEdInputSession';
|
|
4
|
+
/**
|
|
5
|
+
* Interactive keyword-input session bound to the command line.
|
|
6
|
+
*
|
|
7
|
+
* This session is responsible for:
|
|
8
|
+
* - Rendering the keyword prompt UI
|
|
9
|
+
* - Applying Enter/Escape behavior for keyword picking
|
|
10
|
+
* - Handling default-keyword and `AllowNone` semantics on empty Enter
|
|
11
|
+
* - Restoring command-line input state when the session ends
|
|
12
|
+
*
|
|
13
|
+
* The resolved session value is always a string:
|
|
14
|
+
* - keyword global name when a keyword is selected
|
|
15
|
+
* - empty string when the prompt ends as "none"/cancel path
|
|
16
|
+
*/
|
|
4
17
|
export declare class AcEdKeywordSession extends AcEdInputSession<string> {
|
|
5
18
|
private cli;
|
|
6
19
|
private options;
|
|
7
20
|
private allowTyping;
|
|
21
|
+
/**
|
|
22
|
+
* Keyword parser/validator shared by Enter handling.
|
|
23
|
+
*
|
|
24
|
+
* It maps user input (display/local/global/alias) to canonical
|
|
25
|
+
* global keyword names and rejects invalid text.
|
|
26
|
+
*/
|
|
8
27
|
private handler;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a keyword session instance.
|
|
30
|
+
*
|
|
31
|
+
* @param cli - Command-line UI adapter used to render prompt and control input state
|
|
32
|
+
* @param options - Keyword prompt options (message, keyword set, default, `allowNone`)
|
|
33
|
+
* @param allowTyping - When false, typed input is disabled and only clickable keywords are accepted
|
|
34
|
+
*/
|
|
9
35
|
constructor(cli: AcEdCommandLine, options: AcEdPromptKeywordOptions, allowTyping?: boolean);
|
|
36
|
+
/**
|
|
37
|
+
* Initializes session UI state.
|
|
38
|
+
*
|
|
39
|
+
* Behavior:
|
|
40
|
+
* - Clears any stale command-line input text
|
|
41
|
+
* - Sets input read-only depending on `allowTyping`
|
|
42
|
+
* - Renders clickable keyword prompt
|
|
43
|
+
* - Focuses command-line input for immediate interaction
|
|
44
|
+
*/
|
|
10
45
|
protected onStart(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Handles Enter key input for this keyword session.
|
|
48
|
+
*
|
|
49
|
+
* Resolution order:
|
|
50
|
+
* 1. If typing is disabled, Enter is treated as consumed.
|
|
51
|
+
* 2. Empty input:
|
|
52
|
+
* - use default keyword when present and enabled
|
|
53
|
+
* - otherwise resolve empty string when `allowNone` is true
|
|
54
|
+
* - otherwise reject as invalid (session remains active)
|
|
55
|
+
* 3. Non-empty input:
|
|
56
|
+
* - parse as keyword via {@link AcEdKeywordHandler}
|
|
57
|
+
* - resolve parsed global keyword when valid
|
|
58
|
+
* - reject when invalid
|
|
59
|
+
*
|
|
60
|
+
* @param value - Raw text currently typed in command-line input
|
|
61
|
+
* @returns `true` when Enter is consumed; `false` when input is invalid
|
|
62
|
+
*/
|
|
11
63
|
handleEnter(value: string): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Handles Escape key for this session.
|
|
66
|
+
*
|
|
67
|
+
* Escape resolves the session with an empty string, which the caller
|
|
68
|
+
* interprets as cancel/none depending on prompt context.
|
|
69
|
+
*/
|
|
12
70
|
handleEscape(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Restores command-line state after session completion.
|
|
73
|
+
*
|
|
74
|
+
* This always:
|
|
75
|
+
* - Re-enables input editing
|
|
76
|
+
* - Clears prompt/input visuals from command line
|
|
77
|
+
*/
|
|
13
78
|
protected cleanup(): void;
|
|
14
79
|
}
|
|
15
80
|
//# sourceMappingURL=AcEdKeywordSession.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdKeywordSession.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdKeywordSession.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,qBAAa,kBAAmB,SAAQ,gBAAgB,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"AcEdKeywordSession.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdKeywordSession.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;;;;;;;;;;;GAYG;AACH,qBAAa,kBAAmB,SAAQ,gBAAgB,CAAC,MAAM,CAAC;IAiB5D,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,WAAW;IAlBrB;;;;;OAKG;IACH,OAAO,CAAC,OAAO,CAAoB;IAEnC;;;;;;OAMG;gBAEO,GAAG,EAAE,eAAe,EACpB,OAAO,EAAE,wBAAwB,EACjC,WAAW,GAAE,OAAc;IAMrC;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAO,IAAI,IAAI;IAOzB;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAsBnC;;;;;OAKG;IACH,YAAY,IAAI,IAAI;IAIpB;;;;;;OAMG;IACH,SAAS,CAAC,OAAO,IAAI,IAAI;CAI1B"}
|
|
@@ -15,8 +15,28 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
})();
|
|
16
16
|
import { AcEdKeywordHandler } from '../handler/AcEdKeywordHandler';
|
|
17
17
|
import { AcEdInputSession } from './AcEdInputSession';
|
|
18
|
+
/**
|
|
19
|
+
* Interactive keyword-input session bound to the command line.
|
|
20
|
+
*
|
|
21
|
+
* This session is responsible for:
|
|
22
|
+
* - Rendering the keyword prompt UI
|
|
23
|
+
* - Applying Enter/Escape behavior for keyword picking
|
|
24
|
+
* - Handling default-keyword and `AllowNone` semantics on empty Enter
|
|
25
|
+
* - Restoring command-line input state when the session ends
|
|
26
|
+
*
|
|
27
|
+
* The resolved session value is always a string:
|
|
28
|
+
* - keyword global name when a keyword is selected
|
|
29
|
+
* - empty string when the prompt ends as "none"/cancel path
|
|
30
|
+
*/
|
|
18
31
|
var AcEdKeywordSession = /** @class */ (function (_super) {
|
|
19
32
|
__extends(AcEdKeywordSession, _super);
|
|
33
|
+
/**
|
|
34
|
+
* Creates a keyword session instance.
|
|
35
|
+
*
|
|
36
|
+
* @param cli - Command-line UI adapter used to render prompt and control input state
|
|
37
|
+
* @param options - Keyword prompt options (message, keyword set, default, `allowNone`)
|
|
38
|
+
* @param allowTyping - When false, typed input is disabled and only clickable keywords are accepted
|
|
39
|
+
*/
|
|
20
40
|
function AcEdKeywordSession(cli, options, allowTyping) {
|
|
21
41
|
if (allowTyping === void 0) { allowTyping = true; }
|
|
22
42
|
var _this = _super.call(this) || this;
|
|
@@ -26,6 +46,15 @@ var AcEdKeywordSession = /** @class */ (function (_super) {
|
|
|
26
46
|
_this.handler = new AcEdKeywordHandler(options);
|
|
27
47
|
return _this;
|
|
28
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Initializes session UI state.
|
|
51
|
+
*
|
|
52
|
+
* Behavior:
|
|
53
|
+
* - Clears any stale command-line input text
|
|
54
|
+
* - Sets input read-only depending on `allowTyping`
|
|
55
|
+
* - Renders clickable keyword prompt
|
|
56
|
+
* - Focuses command-line input for immediate interaction
|
|
57
|
+
*/
|
|
29
58
|
AcEdKeywordSession.prototype.onStart = function () {
|
|
30
59
|
var _this = this;
|
|
31
60
|
this.cli.clearInput();
|
|
@@ -33,9 +62,38 @@ var AcEdKeywordSession = /** @class */ (function (_super) {
|
|
|
33
62
|
this.cli.renderKeywordPrompt(this.options, function (kw) { return _this.finish(kw); });
|
|
34
63
|
this.cli.focusInput();
|
|
35
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* Handles Enter key input for this keyword session.
|
|
67
|
+
*
|
|
68
|
+
* Resolution order:
|
|
69
|
+
* 1. If typing is disabled, Enter is treated as consumed.
|
|
70
|
+
* 2. Empty input:
|
|
71
|
+
* - use default keyword when present and enabled
|
|
72
|
+
* - otherwise resolve empty string when `allowNone` is true
|
|
73
|
+
* - otherwise reject as invalid (session remains active)
|
|
74
|
+
* 3. Non-empty input:
|
|
75
|
+
* - parse as keyword via {@link AcEdKeywordHandler}
|
|
76
|
+
* - resolve parsed global keyword when valid
|
|
77
|
+
* - reject when invalid
|
|
78
|
+
*
|
|
79
|
+
* @param value - Raw text currently typed in command-line input
|
|
80
|
+
* @returns `true` when Enter is consumed; `false` when input is invalid
|
|
81
|
+
*/
|
|
36
82
|
AcEdKeywordSession.prototype.handleEnter = function (value) {
|
|
37
83
|
if (!this.allowTyping)
|
|
38
84
|
return true;
|
|
85
|
+
if (!value.trim()) {
|
|
86
|
+
var defaultKeyword = this.options.keywords.default;
|
|
87
|
+
if (defaultKeyword === null || defaultKeyword === void 0 ? void 0 : defaultKeyword.enabled) {
|
|
88
|
+
this.finish(defaultKeyword.globalName);
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
if (this.options.allowNone) {
|
|
92
|
+
this.finish('');
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
39
97
|
var parsed = this.handler.parse(value);
|
|
40
98
|
if (parsed !== null) {
|
|
41
99
|
this.finish(parsed);
|
|
@@ -43,9 +101,22 @@ var AcEdKeywordSession = /** @class */ (function (_super) {
|
|
|
43
101
|
}
|
|
44
102
|
return false;
|
|
45
103
|
};
|
|
104
|
+
/**
|
|
105
|
+
* Handles Escape key for this session.
|
|
106
|
+
*
|
|
107
|
+
* Escape resolves the session with an empty string, which the caller
|
|
108
|
+
* interprets as cancel/none depending on prompt context.
|
|
109
|
+
*/
|
|
46
110
|
AcEdKeywordSession.prototype.handleEscape = function () {
|
|
47
111
|
this.finish('');
|
|
48
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Restores command-line state after session completion.
|
|
115
|
+
*
|
|
116
|
+
* This always:
|
|
117
|
+
* - Re-enables input editing
|
|
118
|
+
* - Clears prompt/input visuals from command line
|
|
119
|
+
*/
|
|
49
120
|
AcEdKeywordSession.prototype.cleanup = function () {
|
|
50
121
|
this.cli.setInputReadOnly(false);
|
|
51
122
|
this.cli.clear();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdKeywordSession.js","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdKeywordSession.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;IAAwC,sCAAwB;
|
|
1
|
+
{"version":3,"file":"AcEdKeywordSession.js","sourceRoot":"","sources":["../../../../src/editor/input/session/AcEdKeywordSession.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;;;;;;;;;;;GAYG;AACH;IAAwC,sCAAwB;IAS9D;;;;;;OAMG;IACH,4BACU,GAAoB,EACpB,OAAiC,EACjC,WAA2B;QAA3B,4BAAA,EAAA,kBAA2B;QAEnC,YAAA,MAAK,WAAE,SAAA;QAJC,SAAG,GAAH,GAAG,CAAiB;QACpB,aAAO,GAAP,OAAO,CAA0B;QACjC,iBAAW,GAAX,WAAW,CAAgB;QAGnC,KAAI,CAAC,OAAO,GAAG,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAA;;IAChD,CAAC;IAED;;;;;;;;OAQG;IACO,oCAAO,GAAjB;QAAA,iBAKC;QAJC,IAAI,CAAC,GAAG,CAAC,UAAU,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;OAMG;IACO,oCAAO,GAAjB;QACE,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAA;QAChC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;IAClB,CAAC;IACH,yBAAC;AAAD,CAAC,AArGD,CAAwC,gBAAgB,GAqGvD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AcEdPromptKeywordOptions } from '../prompt';
|
|
2
|
+
import { AcEdMessageType } from './AcEdMessageType';
|
|
2
3
|
/**
|
|
3
4
|
* AutoCAD-style floating command line with Promise-based execution.
|
|
4
5
|
*
|
|
@@ -24,6 +25,7 @@ export declare class AcEdCommandLine {
|
|
|
24
25
|
private widthRatio;
|
|
25
26
|
private cliContainer;
|
|
26
27
|
private wrapper;
|
|
28
|
+
private recentPanel;
|
|
27
29
|
private bar;
|
|
28
30
|
private leftGroup;
|
|
29
31
|
private closeBtn;
|
|
@@ -38,6 +40,9 @@ export declare class AcEdCommandLine {
|
|
|
38
40
|
private activeSession?;
|
|
39
41
|
private resizeObserver?;
|
|
40
42
|
private isPromptActive;
|
|
43
|
+
private readonly recentMessages;
|
|
44
|
+
private recentHideTimer?;
|
|
45
|
+
private isCommandLifecycleBound;
|
|
41
46
|
constructor(container?: HTMLElement);
|
|
42
47
|
/** Visibility of the command line */
|
|
43
48
|
get visible(): boolean;
|
|
@@ -48,6 +53,14 @@ export declare class AcEdCommandLine {
|
|
|
48
53
|
clearInput(): void;
|
|
49
54
|
focusInput(): void;
|
|
50
55
|
setInputReadOnly(readOnly: boolean): void;
|
|
56
|
+
/**
|
|
57
|
+
* Displays a message in the command line history panel.
|
|
58
|
+
*
|
|
59
|
+
* @param message - Text to append to the command line message panel
|
|
60
|
+
* @param type - Message severity controlling the rendered style
|
|
61
|
+
* @param msgKey - Optional localization key stored with the rendered entry
|
|
62
|
+
*/
|
|
63
|
+
showMessage(message: string, type?: AcEdMessageType, msgKey?: string): void;
|
|
51
64
|
cancelActiveSession(): void;
|
|
52
65
|
getKeywords(options: AcEdPromptKeywordOptions, allowTyping?: boolean): Promise<string>;
|
|
53
66
|
/**
|
|
@@ -90,6 +103,8 @@ export declare class AcEdCommandLine {
|
|
|
90
103
|
private setInputText;
|
|
91
104
|
/** Render prompt message and keyword options in command line */
|
|
92
105
|
renderKeywordPrompt(options: AcEdPromptKeywordOptions, onClick: (kw: string) => void): void;
|
|
106
|
+
/** Bind command lifecycle for auto-hide behavior of recent messages. */
|
|
107
|
+
private bindCommandLifecycleEvents;
|
|
93
108
|
/** Resolve command name */
|
|
94
109
|
private resolveCommand;
|
|
95
110
|
/** Show or hide popups */
|
|
@@ -104,14 +119,24 @@ export declare class AcEdCommandLine {
|
|
|
104
119
|
private positionMsgPanel;
|
|
105
120
|
/** Remove "no history" placeholder if present */
|
|
106
121
|
private clearNoHistoryPlaceholder;
|
|
107
|
-
/**
|
|
108
|
-
private
|
|
109
|
-
/** Print error message with optional localization key */
|
|
110
|
-
private printError;
|
|
122
|
+
/** Appends a typed message to the message panel. */
|
|
123
|
+
private appendMessage;
|
|
111
124
|
/** Print executed command line to history */
|
|
112
125
|
private printHistoryLine;
|
|
113
126
|
/** Handle window resize */
|
|
114
127
|
private resizeHandler;
|
|
128
|
+
/** Store and render up to two latest command-line messages above the bar. */
|
|
129
|
+
private recordRecentMessage;
|
|
130
|
+
/** Refresh the fixed recent-message preview area. */
|
|
131
|
+
private renderRecentMessages;
|
|
132
|
+
/** Start a 2-second timer to hide recent messages after command ends. */
|
|
133
|
+
private scheduleRecentAutoHide;
|
|
134
|
+
/** Cancel current auto-hide timer when a new command starts. */
|
|
135
|
+
private cancelRecentAutoHide;
|
|
136
|
+
/** Show recent message area. */
|
|
137
|
+
private showRecentPanel;
|
|
138
|
+
/** Hide recent message area. */
|
|
139
|
+
private hideRecentPanel;
|
|
115
140
|
private useViewportPositioning;
|
|
116
141
|
}
|
|
117
142
|
//# sourceMappingURL=AcEdCommandLine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcEdCommandLine.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdCommandLine.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"AcEdCommandLine.d.ts","sourceRoot":"","sources":["../../../../src/editor/input/ui/AcEdCommandLine.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;;;;;GAaG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,WAAW,CAAiB;IACpC,OAAO,CAAC,GAAG,CAAiB;IAC5B,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,SAAS,CAAmB;IACpC,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,iBAAiB,CAAQ;IACjC,OAAO,CAAC,aAAa,CAAC,CAAoB;IAC1C,OAAO,CAAC,cAAc,CAAC,CAAgB;IACvC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CA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