-
<static> applyMarkupEditPolicy(editing)
-
模型批注折线编辑策略:无中点、无质心拖拽点(避免多出一个中心点)
Parameters:
| Name |
Type |
Description |
editing |
Object
|
PolylineEdit 实例 |
-
<static> buildPointEntityAttr(vertexResolved)
-
由顶点样式生成 entity.point 属性(PointAttr.config2Entity,size → pixelSize)
Parameters:
| Name |
Type |
Description |
vertexResolved |
Object
|
顶点解析结果(pointStyle、disableDepthTest) |
Returns:
-
Type
-
Object
-
<static> buildPolylineEntityAttr(lineResolved)
-
由折线样式生成 entity.polyline 属性(PolylineAttr.config2Entity,支持 dash / gapLength / gapColor)
Parameters:
| Name |
Type |
Description |
lineResolved |
Object
|
折线解析结果(polylineStyle、width、disableDepthTest) |
Returns:
-
Type
-
Object
-
<static> normalizeLabelPadding( [backgroundPadding])
-
与 LabelGraphic.backgroundPadding / LabelAttr 一致:[水平, 垂直](像素)→ CSS padding
Parameters:
| Name |
Type |
Argument |
Description |
backgroundPadding |
Array.<Number>
|
String
|
<optional>
|
|
Returns:
-
Type
-
String
-
<static> resolveVertexStyle(vertexStyle)
-
顶点样式(PointAttr.config2Entity 入参 + disableDepthTest)
Parameters:
| Name |
Type |
Description |
vertexStyle |
Object
|
ModelMarkup vertexStyle |
Returns:
含 pointStyle、disableDepthTest
-
Type
-
Object