JSAPI Three API Reference
    正在准备搜索索引...

    类 EffectPoint

    特效点,根据类型自动创建对应的特效对象。

    支持扇形雷达、气泡等特效类型,通过type字段自动创建对应的特效对象,包括FanBubbleWaveBreathRadarRadarLayeredRadarSpread类型。

    注意:动画效果需要在处理画引擎时设置rendering.enableAnimationLoop=true

    // 创建扇形雷达特效
    const effectPoint = engine.add(new mapvthree.EffectPoint({
    type: 'Fan',
    color: 0xff0000,
    size: 50
    }));

    // 创建气泡特效
    const bubblePoint = engine.add(new mapvthree.EffectPoint({
    type: 'Bubble',
    color: 0x00ff00,
    size: 30
    }));

    层级

    • GeoInstancedPointMesh
      • EffectPoint
    索引

    构造函数

    • 构造函数

      参数

      • parameters: {
            color?: string;
            duration?: number;
            keepSize?: boolean;
            segmentAngle?: number;
            sideColor?: string;
            size?: number;
            type?: string;
            vertexColors?: boolean;
            vertexSizes?: boolean;
        }

        传入参数对象

        • 可选color?: string

          气泡颜色

        • 可选duration?: number

          气泡动画间隔时长

        • 可选keepSize?: boolean

          是否保持大小

        • 可选segmentAngle?: number

          雷达的扇形弧度值,仅在type为Radar时有效

        • 可选sideColor?: string

          最外圈底色,仅在type为RadarLayered时有效

        • 可选size?: number

          气泡尺寸

        • 可选type?: string

          气泡类型

        • 可选vertexColors?: boolean

          是否通过数据携带颜色配置

        • 可选vertexSizes?: boolean

          是否通过数据携带尺寸配置

      返回 EffectPoint

    属性

    color: any

    气泡颜色

    duration: any

    气泡动画间隔时长

    isEventEntitySupported: boolean = true

    是否支持返回的事件参数中携带entity实体数据

    isGeoObject: true

    类型为GeoObject的标识

    size: any

    气泡尺寸

    type: any

    气泡类型

    方法

    • 添加属性重命名

      参数

      • key: string

        原始属性名,该组件的属性名

      • value: string

        重命名后的属性名,数据源的属性名

      返回 void

    • 清空属性重命名

      返回 void

    • 销毁object上的geometry和material实例,释放资源, 调用engine.remove(object)会自动销毁资源,不需要手动调用

      返回 void

    • 移除属性重命名

      参数

      • key: string

        原始属性名

      返回 void

    访问器

    • get dataSource(): DataSource

      object连接的数据源[[DataSource]]类

      返回 DataSource

    • set dataSource(dataSource: DataSource): void

      设置object的数据源

      参数

      • dataSource: DataSource

        数据源

      返回 void

    • get needsUpdate(): boolean

      是否需要更新

      返回 boolean

    • set needsUpdate(value: boolean): void

      设置object是否在下一帧更新

      参数

      • value: boolean

        设置为true,则下一帧渲染前更新该object

      返回 void