UNPKG

@glowjs/core

Version:

GlowJS数字孪生引擎核心库。

54 lines (53 loc) 1.16 kB
import { App } from '../../core/App'; import { Point3D } from '../../misc/Point3D'; import { Entity } from '../Entity'; /** * 路径 */ export declare class Path extends Entity { private static _index; /** * 路径点集合 */ readonly points: Point3D[]; /** * 是否需要创建 */ needBuild: boolean; /** * 实例化一个路径对象 * @param app 应用 */ constructor(app: App); /** * 序列化成JSON对象 */ toJson(): any; /** * 从JSON对象反序列化(仅生成层级树) * @param json JSON对象 */ fromJson(json: any): void; /** * 创建(仅当前层级可见对象) * @param force 是否强制 */ build(force?: boolean): Promise<void>; /** * 拆毁(删掉网格,仅保留层级树 */ unbuild(): void; /** * 附加拖动功能 */ attachDrag(): void; /** * 移除拖动功能 */ detachDrag(): void; /** * 设置透明度 * @param value 透明度 */ setAlpha(value: number): void; }