Interface EditSketchSnappingHandle

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

Properties

current: undefined | SnapCandidate

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