EarthSDK
    正在准备搜索索引...

    类型别名 ESJStrokeStyle

    线样式的定义。 该类型用于描述线条的各种属性,包括是否绘制在地面、线宽、线宽类型、颜色、材质以及材质参数。

    type ESJStrokeStyle = {
        color: ESJColor;
        ground: boolean;
        material: string;
        materialParams: JsonValue;
        width: number;
        widthType: ESJRenderType;
    }
    索引

    属性

    color: ESJColor

    线条的颜色。 使用 ESJColor 类型来表示线条的颜色。

    ground: boolean

    指示线条是否绘制在地面上。 如果设置为 true,则线条会绘制在地面上;否则,绘制在其他位置。

    material: string

    线条使用的材质。 表示线条所使用的材质名称。

    materialParams: JsonValue

    材质的参数。 使用 JsonValue 类型来存储材质的相关参数。

    width: number

    线条的宽度。 具体的宽度值,根据 widthType 的不同,其含义也有所不同。

    widthType: ESJRenderType

    线宽的类型。 可以是 "world" 或 "screen",分别表示真实世界类型和屏幕像素类型。