FeatureDrawingModel
关系
Implements
FeatureDrawingModel Implements IFeatureDrawingModel
实现接口: IFeatureDrawingModel
用于管理要素绘制的核心逻辑,包括几何图层、绘制样式、图形数据存储等功能
构造函数
FeatureDrawingModel
构造函数
new FeatureDrawingModel(props)
参数
- props:
IFeatureDrawingModelProps模型属性
返回:FeatureDrawingModel FeatureDrawingModel对象
属性
animateData
动画数据
animateData: TWEEN
类型: TWEEN
graphicArr
绘制的几何要素数组(经过格式化整理)
graphicArr: IGraphicInfo
类型: IGraphicInfo
graphicList
绘制的要素几何列表
graphicList: IListItem
类型: IListItem
graphicOriginalArr
绘制的几何要素数组
graphicOriginalArr: Graphic
类型: Graphic
hasZ
绘制的图形是否有Z值
hasZ: boolean
类型: boolean
props
模型属性
props: IFeatureDrawingModelProps
selectGraphic
当前选中的几何要素(经过格式化整理)
selectGraphic: IGraphicInfo
类型: IGraphicInfo
selectGraphicOriginal
当前选中的几何要素
selectGraphicOriginal: Graphic
类型: Graphic
sketchLayer
几何图层
sketchLayer: GraphicsLayer
类型: GraphicsLayer
sketchViewModel
几何逻辑模型
sketchViewModel: DrawViewModel
类型: DrawViewModel
sketchViewModelCreate
视图模型绘制图形时的事件监听
sketchViewModelCreate: any
类型: any
sketchViewModelUpdate
视图模型图形修改时的事件监听
sketchViewModelUpdate: any
类型: any
spatialReference
绘制图形坐标的坐标系
spatialReference: 3857 | 4326
类型: 3857 | 4326
访问器
pointStyle
点样式的getter
get pointStyle(): Point2DStyle
返回: Point2DStyle 点样式的getter
点样式的setter
polygonStyle
面样式的getter
get polygonStyle(): Polygon2DStyle
返回: Polygon2DStyle 面样式的getter
面样式的setter
polylineStyle
线样式的getter
get polylineStyle(): LineStyle
返回: LineStyle 线样式的getter
线样式的setter
方法
animate
执行图形动画
clearAllGraphic
清除全部图形
clearAllGraphic(): void
返回:void
clearGraphicById
清除指定图形
clearGraphicById(id): void
参数
- id:
string|number图形属性 id
返回:void
clearSelectGraphic
清除选中图形
clearSelectGraphic(): void
返回:void
closeMoveGraphic
关闭移动模型
closeMoveGraphic(): void
返回:void
getGraphicById
根据图形id获取对应图形
init
几何图层初始化准备
init(): void
返回:void
openMoveGraphic
开启移动图形
openMoveGraphic(): void
返回:void
selectGraphicById
选中指定图形
selectGraphicById(id): void
参数
- id:
string|number图形属性 id
返回:void
setGraphic
设置初始的几何图形
setGraphicPosition
重置几何位置
setGraphicPosition(id, position): void
参数
- id:
string几何图形ID - position:
number新的几何位置坐标,重新设置指定点图形的位置坐标
返回:void
start
开始绘制要素几何
start(type): void
参数
- type:
stringpoint | polyline | polygon | rectangle | circle | clear | clearAll point | polyline | polygon | rectangle | circle | clear | clearAll
返回:void
stopAnimate
停止动画
stopAnimate(): void
返回:void

BIMFlux AI
