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

    变量 PointShapeType常量

    PointShapeType: Readonly<
        { CIRCLE: 2; DEFAULT: 0; DIAMOND: 4; SQUARE: 3; STAR: 5; WATERDROP: 6 },
    > = ...

    SimplePoint 形状枚举

    通过 simplePoint.shapeType = PointShapeType.STAR 或构造参数 {shapeType: PointShapeType.STAR} 使用。 枚举值与 fragment shader 内部 uniform 数值对应,shader 据此选择渲染分支。

    import {SimplePoint, PointShapeType} from '@baidu/mapv-three';
    const point = new SimplePoint({
    shapeType: PointShapeType.STAR,
    size: 16,
    color: '#d340c3',
    });