@honua/sdk-js
    Preparing search index...

    Interface EditSketchSnappingHandle

    interface EditSketchSnappingHandle {
        current: SnapCandidate | undefined;
        applySketchGeometry(
            tool: EditSketchTool,
            geometry: Record<string, unknown> | null,
        ): boolean;
        config(): SnappingConfig;
        remove(): void;
        resolve(
            input: { point: SnapScreenPoint; position: SnapPosition },
        ): SnapResolution;
        setConfig(config: Partial<SnappingConfig>): void;
        snapPosition(position: SnapPosition): SnapPosition;
    }
    Index

    Properties

    current: SnapCandidate | undefined

    The currently snapped candidate, if any.

    Methods

    • Apply geometry to the bound sketch model with its active vertex replaced by the current snap position (no-op replacement when the pointer is not snapped). Returns true when the model accepted the geometry.

      Parameters

      Returns boolean