@wendylabsinc/react-three-mesh-editor - v0.0.1
    Preparing search index...

    Interface VertexHandleProps

    Props for the VertexHandle component.

    interface VertexHandleProps {
        defaultColor?: string;
        hoverColor?: string;
        onMove?: (index: number, position: [number, number, number]) => void;
        onSelect?: (index: number, addToSelection: boolean) => void;
        renderControl?: (props: VertexControlRenderProps) => ReactNode;
        selected?: boolean;
        selectedColor?: string;
        size?: number;
        vertex: VertexData;
    }
    Index

    Properties

    defaultColor?: string

    Default color when not selected

    '#4a90d9'
    
    hoverColor?: string

    Color when hovered

    '#7bb3e0'
    
    onMove?: (index: number, position: [number, number, number]) => void

    Callback when vertex position changes (absolute position)

    onSelect?: (index: number, addToSelection: boolean) => void

    Callback when vertex is clicked for selection

    renderControl?: (props: VertexControlRenderProps) => ReactNode

    Render function for custom transform controls. When provided, wraps the vertex handle with custom controls. For vertices, only translation makes sense (no rotation/scale).

    selected?: boolean

    Whether this vertex is selected

    selectedColor?: string

    Color when selected

    '#ff6b00'
    
    size?: number

    Size of the vertex cube in world units

    0.05
    
    vertex: VertexData

    The vertex data to render