GraphicsLayer
构造函数
GraphicsLayer
创建一个新的图形图层实例。
new GraphicsLayer(properties?)
参数
- properties?:
GraphicsLayerProperties图形图层属性配置对象
返回:GraphicsLayer GraphicsLayer对象
属性
blendMode
混合模式用于将图层混合在一起,在图层中创建有趣的效果,甚至产生看似新图层的效果。
blendMode: "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor"
类型: "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor"
effect
效果提供各种滤镜功能,可以在图层上执行以实现不同的视觉效果,
effect: Effect
类型: Effect
maxScale
图层在视图中可见的最大比例尺(最大缩放级别)。
maxScale: number
类型: number
minScale
图层在视图中可见的最小比例尺(最小缩放级别)。
minScale: number
类型: number
screenSizePerspectiveEnabled
在3D场景视图中对屏幕尺寸的点符号应用透视缩放。
screenSizePerspectiveEnabled: boolean
类型: boolean
type
type: "graphics"
类型: "graphics"
访问器
elevationInfo
指定图形在垂直轴(z轴)上的放置方式。
get elevationInfo(): GraphicsLayerElevationInfo
返回: GraphicsLayerElevationInfo 指定图形在垂直轴(z轴)上的放置方式。
set elevationInfo(value: GraphicsLayerElevationInfoProperties): void
参数
返回: void
graphics
图层中图形对象的集合。
get graphics(): Collection
返回: Collection 图层中图形对象的集合。
set graphics(value: CollectionProperties<GraphicProperties>): void
参数
返回: void
方法
add
向图层的图形集合中添加一个图形。
addMany
向图层添加图形数组。
remove
从图层中移除一个图形。
removeAll
清除图层中的所有图形。
removeAll(): void
返回:void
removeMany
从图层中移除图形数组。

BIMFlux AI
