ThingOrigin.js
    Preparing search index...

    Class TLine

    线条模型

    Index

    Methods

    • 清空所有路径可视化

      Returns void

    • 获取所有路径ID

      Returns string[]

      所有路径ID

    • 获取线段中心点(世界坐标)

      Parameters

      • line: Line

      Returns Vector3

    • 获取直线段的方向向量(世界坐标)

      Parameters

      • line: Line

      Returns Vector3

    • 获取指定路径的箭头数量

      Parameters

      • pathId: string

        路径ID

      Returns number

      箭头数量

    • 创建胖线

      Parameters

      Returns Object3D<Object3DEventMap>

    • 创建带流向的线

      Parameters

      Returns Promise<Object3D<Object3DEventMap>>

    • 创建路径可视化

      Parameters

      • points: any[]

        路径点

      • options: {
            arrowSize?: { height: number; width: number };
            arrowSpeed?: number;
            arrowUrl?: string;
            mode?: "continuous" | "tiled";
            onFirstArrowComplete?: () => void;
            pathId?: string;
            showArrows?: boolean;
            showMarkers?: boolean;
            spacing?: number;
        } = {}

        选项

        • OptionalarrowSize?: { height: number; width: number }

          箭头大小

        • OptionalarrowSpeed?: number

          箭头速度

        • OptionalarrowUrl?: string

          箭头图片 URL,默认 RESOURCE_SERVER_BASE + '/image/download/arrow_yellow.png'

        • Optionalmode?: "continuous" | "tiled"

          模式

        • OptionalonFirstArrowComplete?: () => void

          第一波次箭头完成回调

        • OptionalpathId?: string

          路径ID

        • OptionalshowArrows?: boolean

          是否显示箭头

        • OptionalshowMarkers?: boolean

          是否显示路径标记

        • Optionalspacing?: number

          箭头间距

      Returns Promise<Group<Object3DEventMap>>

      箭头组

    • 生成管道

      Parameters

      Returns Promise<Object3D<Object3DEventMap>>

    • 移除路径可视化

      Parameters

      • arrowGroupOrPathId: string | Group<Object3DEventMap>

        箭头组或路径ID

      Returns void