ThreePipe
    Preparing search index...

    Class PickingPlugin

    Base Class for Sync Viewer Plugins

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _dirty: boolean = false
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    autoApplyMaterialOnDrop: boolean = true
    autoFocus: boolean
    autoFocusHover: boolean = false
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    dependencies: typeof CameraViewPlugin[] = ...
    duplicateMode: DuplicateMode = 'simple'

    Duplicate offset mode:

    • simple: position/rotation/scale applied independently (Figma-style, straight lines)
    • compound: full matrix delta (circular arrays, spirals)
    enabled: boolean = true
    isViewerPluginSync: true = ...
    materialTypes: (
        | {
            cls: typeof UnlitMaterial;
            def: UnlitMaterial<IMaterialEventMap>;
            line?: undefined;
            name: string;
        }
        | {
            cls: typeof UnlitLineMaterial;
            def: UnlitLineMaterial<IMaterialEventMap>;
            line: boolean;
            name: string;
        }
        | {
            cls: typeof LineMaterial2;
            def: LineMaterial2<IMaterialEventMap>;
            line: boolean;
            name: string;
        }
        | {
            cls: typeof PhysicalMaterial;
            def?: undefined;
            line?: undefined;
            name: string;
        }
    )[] = ...
    multiSelectEnabled: boolean = true
    selectionMode: "object" | "material" | "texture" | "geometry" = 'object'
    uiConfig: UiObjectConfig = ...
    widgetEnabled: boolean = true

    Note: this is for runtime use only, not serialized

    OldPluginType: "PickingPlugin" = 'PickingPlugin'
    PluginType: "Picking" = 'Picking'

    Accessors

    Methods

    • Reset position, rotation, or scale of selected objects to identity. All resets are in local space and undoable.

      Parameters

      • component: "rotation" | "scale" | "position"

      Returns void

    • Toggle visibility of selected objects based on primary selected object's state. If primary is visible → hide all selected. If primary is hidden → show all selected.

      Returns void