AddObject3DHelperConfig: {
    boundingBoxHelper?: HelperConfig;
    moveHelper?: HelperConfig<{
        xArrowEnable?: boolean;
        yArrowEnable?: boolean;
        zArrowEnable?: boolean;
    }>;
    offset?: HelperOffset;
    positionFrom?: PositionFrom;
    rotateHelper?: HelperConfig<{
        angleTipsEnable?: boolean;
        xyCircleEnable?: boolean;
        xzCircleEnable?: boolean;
        yzCircleEnable?: boolean;
    }>;
    scaleHelper?: HelperConfig<{
        positions?: ScalePosition[] | (() => ScalePosition[]);
        scaleCallback?: ScaleCallback;
    }>;
    xAxis?: THREE.Vector3 | (() => THREE.Vector3);
    yAxis?: THREE.Vector3 | (() => THREE.Vector3);
    zAxis?: THREE.Vector3 | (() => THREE.Vector3);
}

Type declaration

  • OptionalboundingBoxHelper?: HelperConfig

    物体包围盒

  • OptionalmoveHelper?: HelperConfig<{
        xArrowEnable?: boolean;
        yArrowEnable?: boolean;
        zArrowEnable?: boolean;
    }>

    位移的配置

  • Optionaloffset?: HelperOffset

    辅助坐标轴的位置偏移量

  • OptionalpositionFrom?: PositionFrom

    辅助坐标轴的位置,基于 object local 坐标系。

    'boundingBox': 物体 boundingBox 的中心
    'boundingSphere': 物体 boundingSphere 的中心
    `THREE.Vector3`: 指定 Vector3
    `(object3D) => THREE.Vector3`: 指定 Vector3
    
    'objectPosition'
    
  • OptionalrotateHelper?: HelperConfig<{
        angleTipsEnable?: boolean;
        xyCircleEnable?: boolean;
        xzCircleEnable?: boolean;
        yzCircleEnable?: boolean;
    }>

    旋转的配置

  • OptionalscaleHelper?: HelperConfig<{
        positions?: ScalePosition[] | (() => ScalePosition[]);
        scaleCallback?: ScaleCallback;
    }>

    缩放的配置

  • OptionalxAxis?: THREE.Vector3 | (() => THREE.Vector3)

    辅助坐标轴的x轴方向(红色)

  • OptionalyAxis?: THREE.Vector3 | (() => THREE.Vector3)

    辅助坐标轴的y轴方向(绿色)

  • OptionalzAxis?: THREE.Vector3 | (() => THREE.Vector3)

    辅助坐标轴的z轴方向(蓝色)