@vertigis/viewer-spec
Version:
VertiGIS Viewer Specification
1 lines • 3.15 kB
JavaScript
import{CommandRegistry as t}from"../CommandRegistry.js";import{EventRegistry as e}from"../EventRegistry.js";import{OperationRegistry as r}from"../OperationRegistry.js";export var SketchTool;!function(t){t.POINT="point",t.MULTIPOINT="multipoint",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.EXTENT="extent",t.SQUARE="square",t.CIRCLE="circle"}(SketchTool||(SketchTool={}));export class SketchingOperations extends r{_prefix="sketching";get captureGeometry(){return this._get("capture-geometry")}get editActiveSymbol(){return this._get("edit-active-symbol")}get editGeometry(){return this._get("edit-geometry")}get moveGeometry(){return this._get("move-geometry")}get scaleGeometry(){return this._get("scale-geometry")}get rotateGeometry(){return this._get("rotate-geometry")}get stop(){return this._get("stop")}get addNodeToGeometry(){return this._get("add-node-to-geometry")}get getActiveSketch(){return this._get("get-active-sketch")}get getActiveNode(){return this._get("get-active-node")}get getActivePoints(){return this._get("get-active-points")}get getAdjacentPoint(){return this._get("get-adjacent-point")}get isStreaming(){return this._get("is-streaming")}}export class SketchingCommands extends t{_prefix="sketching";get activateSnapping(){return this._get("activate-snapping")}get activateTopology(){return this._get("activate-topology")}get cancel(){return this._get("cancel")}get deactivateSnapping(){return this._get("deactivate-snapping")}get deactivateTopology(){return this._get("deactivate-topology")}get undo(){return this._get("undo")}get redo(){return this._get("redo")}get setGeometryMode(){return this._get("set-geometry-mode")}get setSnappingConfiguration(){return this._get("set-snapping-configuration")}get setTopologyConfiguration(){return this._get("set-topology-configuration")}get addPointAtCenter(){return this._get("add-point-at-center")}get addPointAtCurrentLocation(){return this._get("add-point-at-current-location")}get setPointAtCurrentLocation(){return this._get("set-point-at-current-location")}get delete(){return this._get("delete")}get moveNode(){return this._get("move-node")}get movePoint(){return this._get("move-point")}get switchActiveNode(){return this._get("switch-active-node")}get setActivePoints(){return this._get("set-active-points")}get setInteractionMode(){return this._get("set-interaction-mode")}get enableFreeScaleMode(){return this._get("enable-free-scale-mode")}get disableFreeScaleMode(){return this._get("disable-free-scale-mode")}get enablePrecisionMode(){return this._get("enable-precision-mode")}get disablePrecisionMode(){return this._get("disable-precision-mode")}get setConstraints(){return this._get("set-constraints")}get clearConstraints(){return this._get("clear-constraints")}get insertPoint(){return this._get("insert-point")}get addPoint(){return this._get("add-point")}get startStreaming(){return this._get("start-streaming")}get stopStreaming(){return this._get("stop-streaming")}}export class SketchingEvents extends e{_prefix="sketching";get streamingStarted(){return this._get("streaming-started")}get streamingStopped(){return this._get("streaming-stopped")}}