Global

Members


<constant> CURSOR_SIZE

绘制模式自定义光标:32×32,热点在几何中心

<constant> DEF_MATCH_REGEX

USDA (ASCII) parser for USD. Produces specsByPath used by USDToGltfConverter. Ported from Three.js USDAParser; no Three.js dependencies.

<constant> DEFAULT_LABEL_BACKGROUND_PADDING

与 LabelGraphic.backgroundPadding 默认 [7, 5] 一致:[水平, 垂直](像素)

<constant> DRAW_CURSOR_SVG

折线拾点光标:中心留空 + 双色描边,在深浅模型表面都易辨认 - 外描边白色、内线品牌蓝,与批注线默认色接近 - 中心小圆环提示落点,不遮挡十字中心像素

<constant> getTweensT

热路径:位置插值 t ∈ [0,1],无分配、单次除法,RealTimePath 每帧每车调用

<constant> MarkupType :Object.<string, string>

Type:
  • Object.<string, string>

<constant> ROPE_SVG

细绳/封网绳

<constant> ROTATION_PACK_FLAG_NONE

旋转打包预留位(bit30-31):00 三轴均为 0;11 至少一轴角度严格 > 0

<constant> STRESS_CABLE_SVG

承载索

<constant> VARIANT_PATH_REGEX

Three.js USDComposer VARIANT_PATH_REGEX — sibling variant attribute fallbacks.

Methods


applyDrawCursor( [element])

Parameters:
Name Type Argument Description
element HTMLElement <optional>

applySkelDataToMeshPayload(meshPayload, skelData, numVertices)

Compute per-vertex JOINTS_0 (Uint16) and WEIGHTS_0 (Float32) for a mesh payload. Mutates meshPayload with skinJoints4, skinWeights4, skinData.
Parameters:
Name Type Description
meshPayload Object Mesh payload with skinRawIndices, skinRawWeights, skinElementSize, skinExpandIndices, skinLocalJointList
skelData Object Skeleton data with jointPaths, jointNodeIndices
numVertices number Number of vertices

applyTriangulationPattern(fvData, pattern)

Map face-varying data (one scalar/entry per face-vertex in faceVertexIndices order) to triangulated corners.
Parameters:
Name Type Description
fvData Array.<number> | ArrayLike.<number> — length = sum(faceVertexCounts)
pattern Array.<number> — from triangulateFaceVertexMesh

augmentVariantSetMetadata(specsByPath, SpecTypePrim)

Infer variant set / variant child metadata from prim paths (VARIANT_PATH_REGEX segments).
Parameters:
Name Type Description
specsByPath Object
SpecTypePrim number

buildAnimations()

Build xform and SkelAnimation animations. Appends to ctx.bufferParts, bufferViews, accessors. Sets ctx.animChannels, ctx.animSamplers, ctx.gltfAnimations, ctx.animByteOffset. Expects ctx: specsByPath, pathToNodeIndex, skeletonDataByPath, rootSpec, bufferParts, bufferViews, accessors, animByteOffset.

buildMaterials()

Build glTF images, textures, samplers, materials. Mutates ctx with: gltfImages, gltfTextures, gltfSamplers, gltfMaterials, materialPathToIndex, usesTextureTransform Expects ctx: specsByPath, assets, basePath, getAttributes, childrenByPath, uniqueMaterialPaths

buildMeshBuffers()

Build buffer parts, bufferViews, accessors, meshes, gltfSkins, skinIndexBySkeletonPath. Sets ctx.animByteOffset after the last mesh buffer for animations. Expects ctx: meshResults (each with materialIndex set), nodeList, skeletonDataByPath.

buildNodeHierarchy()

Build node hierarchy and collect meshes. Mutates ctx with: nodeList, meshResults, rootNodeIndices, skeletonDataByPath Expects ctx to have: specsByPath, childrenByPath, getAttributes, rootSpec

buildUsdGeomPrimitiveMesh()

UsdGeom Gprim → triangle mesh (Three.js USDComposer._buildGeomPrimitive). Capsule approximated as cylinder.
Returns:
Type
Object | null

buildUsdHoleMap()

Arnold-style polygon holes: [holeFaceIdx, parentFaceIdx, ...]. Three.js USDComposer._buildHoleMap

cesiumToDefinesClassificationType()

Returns:
Global.Defines.ClassificationType 字符串(TERRAIN / TILES3D / BOTH)
Type
string | undefined

collectRawCompositionStrings(fields)

USD 组合:可有多个 prepend references,且可与 payload 并存;顺序上先展开 references 再 payload(弱/强因资产而异,此处全部合并进 dst)。
Parameters:
Name Type Description
fields Object | undefined
Returns:
原始 @...@ 片段字符串列表(每项再交给 parseAllRefTokensInString)
Type
Array.<string>

collectReferencedUsdLayerPaths(specsByPath)

Collect layer paths from prepend references / payload (@file.usd@), like Three.js _getReferences.
Parameters:
Name Type Description
specsByPath Object
Returns:
Type
Array.<string>

collectTexturePaths(specsByPath)

Collect all texture file paths referenced by UsdUVTexture inputs:file in specsByPath. Used for bare .usdc/.usda so we can fetch them from the same origin as the USD file.
Parameters:
Name Type Description
specsByPath Object Parsed USD specs
Returns:
Unique relative paths (e.g. ["0/Elefant_Diff.packed.png"])
Type
Array.<string>

computeCameraDependentLutSignature(s)

Signature for LUTs that depend on view / camera relative atmosphere state.
Parameters:
Name Type Description
s object frameState.skyAtmosphereState
Returns:
Type
string

computeFaceTriangleStarts()

For each face index i, starts[i] is the first triangle index (0-based) for that face. numTriangles is total triangle count.

computeFaceTriangleStartsWithHoles()

Face → first triangle index, with hole faces skipped and parent+hull tri count (Three.js USDComposer).

computeStaticAtmosphereLutSignature(s)

Signature for LUTs that only depend on atmosphere coefficients (not camera).
Parameters:
Name Type Description
s object frameState.skyAtmosphereState
Returns:
Type
string

convertToGltf(params)

Parameters:
Name Type Description
params Object
Properties
Name Type Argument Default Description
specsByPath Object
assets Object <optional>
basePath string <optional>
diagnostic boolean <optional>
emitGltfSkinSkeleton boolean <optional>
false
externalVariantSelections Record.<string, string> <optional>
Returns:
Type
Object

copyPrimSubtree()

Copy prim subtree (prims + attribute specs) from innerSpecs into dstSpecs.

copyShadingVariantOverrideBranches()

拓扑在 /Root/Geom,displayColor 等常只在 /Root/{shadingVariant=V}/Geom/...(USDC 变体覆盖)。 仅合并 Geom 时 dst 缺少这些路径,getAttributes 无法命中 variant 覆盖。拷贝各 shading 分支下已有 spec(跳过已存在键)。

createImage()

SVG 等转成指定尺寸的 canvas,供 Billboard/TextureAtlas 使用。 返回带 src 的 thenable 包装对象(不直接给 Promise 挂 src),满足: 1. 引擎 resolveImage 会 await 得到 canvas; 2. Billboard 用 image.src 作为 TextureAtlas 的 id,必须用 id(含尺寸)避免与“直接传 URL”的槽位冲突。 性能:相同 (url, width, height, scale) 会命中 cache,直接返回已缓存的 thenable,不重复请求、不重复建 canvas、不重复占 atlas 槽位。

effectiveMergeChildren()

primChildren 可能仍指向无网格的旧 Geom 壳(USDC),真实 Mesh 只在 `{variantSet=value}` 下(如 Bottle.geom)。 此时改用推断出的变体子节点;若 primChildren 子树已有 Mesh(冰箱等),保持原样。

expandMeshUvFromUsdPrimvar()

Expand a UV primvar to per-corner (triangulated) data matching positions.

extractUsdCustomAttributes(attributeSpecs)

Extract OpenUSD custom attributes from attribute specs. A USD property is custom only when its authored `custom` metadata is true.
Parameters:
Name Type Description
attributeSpecs Map.<string, Object> | Record.<string, Object> | undefined
Returns:
Type
Object | undefined

faceTrianglesPerFace()

Triangle count for one USD face; must match triangulateIndices fan order.

<async> fetchExternalTextures(resource, specsByPath)

Fetch external texture assets relative to the USD resource URL. Resolves paths like "0/Elefant_Diff.packed.png" against the directory of the USD file.
Parameters:
Name Type Description
resource Resource Resource that was used to load the USD (provides base URL)
specsByPath Object Parsed USD specs (used to collect paths)
Returns:
assets map keyed by path string
Type
Promise.<Object.<string, Uint8Array>>

<async> fetchReferencedUsdLayers(resource, specsByPath [, alreadyLoaded])

Recursively fetch referenced USD layers (same origin or absolute URL) into assets for mergeUsdReferences. Relative paths (e.g. payload @./Kitchen_payload.usd@) resolve against the **layer file that contained the reference** — same as Three.js USDComposer._resolveFilePath with per-layer basePath. Previously all paths used the root Resource, so nested ./foo.usd resolved next to the root .usd (wrong).
Parameters:
Name Type Argument Description
resource Object Cesium Resource for the root USD layer
specsByPath Object
alreadyLoaded Object <optional>
optional map path -> truthy (e.g. existing ZIP entries) to skip fetch
Returns:
Type
Promise.<Object.<string, {specsByPath: Object}>>

fieldsToMatrix()

Build 4x4 matrix from USD xformOpOrder (column-major for glTF). Order matches UsdGeomXformable GetOrderedXformOps "least-to-most-local": first op in list is applied first (stack order). We compose as m = m * temp so that combined (column-major) = M_0 * M_1 * ... for glTF M*p semantics.

findUSD(zip)

Per AOUSD 16.4.1.2: first ZIP entry is the root layer.
Parameters:
Name Type Description
zip Object.<string, Uint8Array> from unzipUSDZ
Returns:
Type
Object

findUV2Primvar()

Second UV set (lightmaps / AO), same rules as Three.js _findUV2Primvar.

findUV3Primvar()

Third UV set (primvars:st2), same rules as Three.js PrimvarReader varname st2.

findUVPrimvar()

Find UV primvar from mesh attributes. Returns { uvs, uvIndices, interpolation } or null. USD V is flipped: V_gltf = 1 - V_usd.

flattenMatrixArray()

Flatten an array-of-arrays or a flat array of USD matrix values. Returns a plain number[] of length count*16, or null.

getDrawCursorCss()

Returns:
可直接赋给 element.style.cursor
Type
String

inferDirectPrimChildNames()

USDC 解析器常不填 primChildren,但子 prim 路径已存在(如 /Chair/{modelingVariant=ChairB}/Geom)。 USDA walkTree 会填 primChildren;合并必须两边行为一致,否则 Chair 等变体几何无法挂到引用 prim 下。

installSetVisiblePrototypeExtensions()

Patches Cesium primitives with setVisible; exported so bundlers retain this module.

isFiniteCartesian3(c)

Parameters:
Name Type Description
c Cesium.Cartesian3

isMatrix4Identity()

True if the 16-element column-major matrix is effectively identity (within IDENTITY_EPS).

isModelBoundingSphereFlyable()

glTF/Model 在部分资产上会得到 center/radius 含 NaN 或极端半径的 boundingSphere, flyToBoundingSphere 会触发 eastNorthUpToFixedFrame →「origin has a NaN component」并搞坏渲染。

<async> loadUSD(resource)

Load USD from a URL or Resource and return { specsByPath, assets, basePath }.
Parameters:
Name Type Description
resource Resource | string URL or Resource
Returns:
Type
Promise.<{specsByPath: Object, assets: Object, basePath: string}>

matrix4FromUsdFlat()

Build a Cesium Matrix4 from 16 USD flat floats (row-major: m[0..3]=row0, m[4..7]=row1 ...). USD GfMatrix4d stores rows contiguously; glTF/Cesium needs column-major.

mergeLayerRootIntoDst(dstSpecs, assets, basePath, inner, innerRoot, dstPrimPath, chainGuard, depth)

将子层 inner 中 innerRoot 的网格/子树合并到 dstPrimPath。若该 prim 无 primChildren(壳层仅含 payload/reference), 则沿链继续解析,直至 Kitchen_set 类资产中 Kitchen → Kitchen_payload → Kitchen.geom 的几何被挂到场景 prim 上。
Parameters:
Name Type Description
dstSpecs Object
assets Object
basePath string
inner Object
innerRoot string
dstPrimPath string
chainGuard Set.<string>
depth number

mergeUsdReferences(specsByPath, assets [, basePath])

多轮合并:copyPrimSubtree 写入的新 prim 若仍带子层引用,需在后续轮次继续展开。
Parameters:
Name Type Argument Description
specsByPath Object
assets Object
basePath string <optional>

mergeUsdReferencesOnePass(specsByPath, assets [, basePath])

单轮:对每个带 reference/payload 的 prim 做合并(含壳层链式解析)。
Parameters:
Name Type Argument Description
specsByPath Object
assets Object
basePath string <optional>

multiplyNodeMatrices()

Multiply node matrices from root down to targetIndex.
Returns:
16-element column-major matrix
Type
Array.<number>

newellBasisForPolygon()

Newell normal + tangent basis for projecting polygon to 2D (Three.js USDComposer).

normalizeMarkupType( [type])

Parameters:
Name Type Argument Description
type String <optional>
Returns:
Type
String

parseAllRefTokensInString(raw)

同一 metadata 字符串里可出现多个
Parameters:
Name Type Description
raw string
Returns:
Type
Array.<{file: string, primInRef: (string|null)}>

parseAssets(zip, usdaParser, usdcParser)

Parse all USD and image assets from a zip (from unzipUSDZ).
Parameters:
Name Type Description
zip Object.<string, Uint8Array>
usdaParser USDAParser
usdcParser USDCParser
Returns:
- filename -> { specsByPath } or image bytes
Type
Object.<string, (Object|Uint8Array)>

propagateReferencingVariantSelections()

USD composition: variant selections on a referencing prim (e.g. ChairB_1) apply to the composed reference root (e.g. …/ChairB_1/Chair). Three.js passes local variant selections into nested compose; after flatten-merge the inner prim still has asset defaults (ChairA). Copy overlapping selections down so getVariantPathsForParent picks ChairB meshes. Refrigerator works without this when the instance adds no override and the asset default matches the geom layer.

resetCursor( [element])

Parameters:
Name Type Argument Description
element HTMLElement <optional>

resolveCursorElement(map)

Parameters:
Name Type Description
map Glodon.CIMCube
Returns:
Type
HTMLElement

resolveSkeletonPath()

Resolve skeleton path to full stage path. Relative/single-name refs (e.g. \"\" -> \"/Skeleton\") become meshParentPath + \"/\" + name.

triangulateFaceVertexMesh()

Triangulate USD mesh: point indices + face-vertex slot pattern (Three.js USDComposer._triangulateIndicesWithPattern). Optional polygonHoles: Arnold primvars:arnold:polygon_holes.
Returns:
Type
Object

triangulateFaceWithHolesPattern()

Triangulate one face with holes via earcut (2D projection); append to triangulated + pattern.
Returns:
false if earcut failed
Type
boolean

trySplitMeshByGeomSubsets()

GeomSubset face indices → per-triangle material paths, then sort/group like Three.js USDComposer.
Returns:
Type
Array.<{positions: Array.<number>, normals: Array.<number>, uvs: (Array.<number>|null), uvs1: (Array.<number>|null), uvs2: (Array.<number>|null), indices: Array.<number>, materialBindingPath: (string|null)}> | null

unzipUSDZ(blobOrBuffer)

Unzip USDZ and return a map of filename -> Uint8Array. Uses fflate so the order of keys matches Three.js (central directory order).
Parameters:
Name Type Description
blobOrBuffer Blob | ArrayBuffer | Uint8Array USDZ data
Returns:
Type
Promise.<Object.<string, Uint8Array>>

usdColorTemperatureRgb()

Three.js USDComposer._colorTemperature (Tanner Helland), returns linear RGB 0–1.

Type Definitions


AmbientOcclusion

Type:
  • Object
Properties:
Name Type Argument Default Description
enable boolean <optional>
false 是否开启环境光遮蔽
intensity number <optional>
1 环境光遮蔽强度
range number <optional>
1.0 环境光遮蔽范围
blurStepSize number <optional>
1.0 模糊处理步长
bias number <optional>
0.9 角度剔除偏置,越大越不易产生暗边
directionCount number <optional>
AO 采样方向数(1–8),越小越快;不设则使用引擎默认
stepCount number <optional>
每方向最大步数上限,越小越快;不设则使用引擎默认
debugShowAmbientOcclusion boolean <optional>
false 是否仅显示 AO 纹理
debugShowNormal boolean <optional>
false 是否仅显示法线纹理

AngleOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
anglePrecision Number <optional>
2 角度精度,保留小数位数
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

AzimuthOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
anglePrecision Number <optional>
2 角度精度,保留小数位数
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

BackgroundColorOptions

Type:
  • Object
Properties:
Name Type Argument Description
stop Number <optional>
间隔
color String <optional>
背景色

BillboardStyleOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
type string <optional>
'icon' 仅支持icon类型
symbol string <optional>
图片
size Array <optional>
[5, 5] 图片大小
scale Number <optional>
1.0 比例
fillColor string <optional>
'WHITE' 颜色
rotation Number <optional>
0 旋转角度,单位度数
sizeInMeters Boolean <optional>
false 是否按照真实大小显示(m)
pixelOffset Array | Glodon.CIMCube.Graphic.TwoDimensionPoint <optional>
[0, 0] 像素偏移量(单位像素)

ClusterCategoryOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
value Number 聚合参考值
imageUrl String <optional>
聚合图标
imageSize Array.<Number> <optional>
聚合图标大小
text String <optional>
聚合图标文字
labelOffset Array.<Number> <optional>
聚合图标文字偏移
showBackground Boolean <optional>
false 是否显示聚合图标文字背景
backgroundColor Array.<BackgroundColorOptions> <optional>
聚合图标文字背景颜色参数
outlineColor String <optional>
showBackground为true时,聚合图标文字外边框颜色
outlineWidth Number <optional>
1 showBackground为true时,聚合图标文字外边框宽度

CoordinateOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
lonLatPrecision Number <optional>
6 经纬度精度,保留小数位数
heightPrecision Number <optional>
3 高度精度,保留小数位数
isShowAnchorIcon Boolean <optional>
false 是否显示锚点图标
markerSize Number | Array <optional>
12 标记点大小,如果显示图标则为[width, height]数组
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
iconUrl String <optional>
锚点图标URL路径
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件

GeoJsonLayerCluster

聚合对象
Type:
  • Object
Properties:
Name Type Argument Default Description
cluster.clusterCategory Array.<ClusterCategoryOptions> <optional>
聚合分类对象
cluster.pixelRange Number <optional>
10 扩展屏幕空间边界框的像素范围
cluster.minimumClusterSize Number <optional>
2 可以聚集的最小屏幕空间对象数
cluster.imageSize Array <optional>
全局图片大小
cluster.labelSize Number <optional>
全局文字大小
cluster.labelColor String <optional>
全局文字颜色
cluster.labelOffset Array <optional>
标注偏移量,(0,0)在中下方,水平向右为正,垂直向下为正
cluster.boundary Object <optional>
聚合范围
cluster.expandTolerance number <optional>
0.5 聚合三维距离,点位距离小于这个值将不自动展开
cluster.expandRadius Object <optional>
{lessThanSix:25,moreThanSix:50} 扩展半径

GroundAreaOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
areaPrecision Number <optional>
3 面积精度,保留小数位数
areaUnit Number | Array <optional>
Glodon.CIMCube.Global.Defines.AreaUnit.S_M 面积单位,S_M(平方米)
areaUnitSeparator String <optional>
"|" 面积单位分隔符
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
polygonColor String | Array | Object <optional>
"rgba(255, 157, 11, 0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

GroundDistanceOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
lengthPrecision Number <optional>
3 长度精度,保留小数位数
lengthUnit Number <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米)
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

IClipPlaneUI

剖切UI接口 该接口定义了剖切平面UI组件需要实现的方法和属性,用于控制剖切平面的可视化显示和交互。 可以通过实现此接口来自定义剖切平面的UI表现,默认实现为 DefaultClipPlaneUI
Type:
  • Object
Properties:
Name Type Description
destroy function 销毁UI组件,释放所有资源(如Primitive、事件监听器等)
update function 更新UI显示状态
Properties
Name Type Description
sizeInMeters Array.<Number> 剖切平面的尺寸(米),数组包含两个元素:[宽度, 高度]
convertToWorldFunc function 将拖拽空间坐标转换为世界坐标的函数 - 参数 `inPos` {Cesium.Cartesian3} 输入:拖拽空间中的位置 - 参数 `outPos` {Cesium.Cartesian3} 输出:世界空间中的位置 - 返回 {Boolean} 转换是否成功
convertToScreenSpaceXY function 将世界坐标转换为屏幕空间坐标的函数 - 参数 `posInWorldVec4` {Cesium.Cartesian4} 输入:世界空间中的位置(w=1) - 参数 `outPosVec2` {Object} 输出:屏幕空间坐标(Vec2,范围0-1) - 返回 {Boolean} 转换是否成功
worldMatrix Cesium.Matrix4 从拖拽空间到世界空间的变换矩阵
registEventListener function 注册鼠标事件监听器
Properties
Name Type Description
mouseDown function 鼠标按下事件回调函数 - 参数 `position` {Cesium.Cartesian2} 鼠标在屏幕空间的位置 - 参数 `type` {Number} 交互类型(INTERACT_TYPE枚举值) - 返回 {Boolean} 是否开始拖拽操作,true表示同意开始拖拽
mouseMove function 鼠标移动事件回调函数 - 参数 `endPosition` {Cesium.Cartesian2} 鼠标在屏幕空间的结束位置
mouseUp function 鼠标抬起事件回调函数
setPlaneColor function 设置剖切平面颜色
Properties
Name Type Argument Description
color String | Cesium.Color 颜色值,可以是CSS颜色字符串或Cesium.Color对象
alpha Number <optional>
透明度,范围0-1,默认使用当前值
setBorderColor function 设置剖切平面边框颜色
Properties
Name Type Argument Description
color String | Cesium.Color 颜色值,可以是CSS颜色字符串或Cesium.Color对象
alpha Number <optional>
透明度,范围0-1,默认使用当前值
setBorderWidth function 设置剖切平面边框宽度
Properties
Name Type Description
width Number 边框宽度(像素),必须大于0
setAxisColor function 设置拖拽轴颜色
Properties
Name Type Argument Description
color String | Cesium.Color 颜色值,可以是CSS颜色字符串或Cesium.Color对象
alpha Number <optional>
透明度,范围0-1,默认使用当前值
hide function 隐藏UI,移除所有可见的Primitive
show function 显示UI,添加所有可见的Primitive
visibility Boolean 获取或设置UI可见性
getState function 获取UI的完整状态
Properties
Name Type Description
returns Object UI状态对象,包含以下属性: - `borderColor` {String} 边框颜色 - `borderWidth` {Number} 边框宽度 - `borderAlpha` {Number} 边框透明度 - `planeColor` {String} 平面颜色 - `planeAlpha` {Number} 平面透明度 - `axisColor` {String} 轴颜色 - `axisAlpha` {Number} 轴透明度 - `showed` {Boolean} 是否显示 - `worldMatrix` {Array} 世界变换矩阵(16个元素的数组)
setState function 设置UI状态
Properties
Name Type Description
state Object UI状态对象,格式与getState返回值相同
Example
// 自定义UI实现示例
class CustomClipPlaneUI {
    constructor(options) {
        // 初始化代码
    }

    destroy() {
        // 清理资源
    }

    update(sizeInMeters, convertToWorldFunc, convertToScreenSpaceXY, worldMatrix) {
        // 更新UI显示
    }

    registEventListener(mouseDown, mouseMove, mouseUp) {
        // 注册事件监听
    }

    setPlaneColor(color, alpha) {
        // 设置平面颜色
    }

    setBorderColor(color, alpha) {
        // 设置边框颜色
    }

    setBorderWidth(width) {
        // 设置边框宽度
    }

    setAxisColor(color, alpha) {
        // 设置轴颜色
    }

    hide() {
        // 隐藏UI
    }

    show() {
        // 显示UI
    }

    get visibility() {
        return this._visible;
    }

    set visibility(v) {
        this._visible = v;
    }

    getState() {
        return {
            // 返回状态对象
        };
    }

    setState(state) {
        // 恢复状态
    }
}

// 使用自定义UI
const sceneClip = new SceneClip(map, {
    clipPlaneUI: new CustomClipPlaneUI({ viewer: map.viewer })
});

LabelStyleOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
type string <optional>
'label' 仅支持文本类型
text string <optional>
'' 文本
font string <optional>
'30px sans-serif' 字体
style Glodon.CIMCube.Graphic.LabelStyle <optional>
Glodon.CIMCube.Graphic.LabelStyle.FILL 注记样式
scale Number <optional>
1.0 比例
fillColor string <optional>
'white' 字体颜色
outlineColor string <optional>
'black' 边界颜色
outlineWidth Number <optional>
1.0 边界勾绘粗度(单位像素)
showBackground Boolean <optional>
false 是否显示背景
backgroundColor string <optional>
'rgba(42,42,42,0.8)' 背景颜色
backgroundPadding Array <optional>
[7,5] 缩进尺寸(单位像素)
pixelOffset Array | Glodon.CIMCube.Graphic.TwoDimensionPoint <optional>
[0,0] 注记偏移值(单位像素)
horizontalOrigin Glodon.CIMCube.Graphic.HorizontalOrigin <optional>
Glodon.CIMCube.Graphic.HorizontalOrigin.CENTER 文本坐标点与文本框水平相对位置
verticalOrigin Glodon.CIMCube.Graphic.VerticalOrigin <optional>
Glodon.CIMCube.Graphic.VerticalOrigin.CENTER 文本坐标点与文本框垂直相对位置

MarkupItemData

Type:
  • Object
Properties:
Name Type Argument Description
id String
type String
graphic Glodon.CIMCube.Graphic.PolylineGraphic
vertexGraphics Array.<Glodon.CIMCube.Graphic.PointGraphic> <optional>
segments Array.<MarkupSegment> <optional>

ModelDistanceOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
lengthPrecision Number <optional>
3 长度精度,保留小数位数
lengthUnit Number <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米)
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

ModelMarkupLabelStyleOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
show Boolean <optional>
true 是否显示段中点标签
text String <optional>
默认标签文字
font String <optional>
字体 CSS
fillColor String <optional>
文字颜色
outlineColor String <optional>
"#000000" 字体描边颜色
outlineWidth Number <optional>
1 字体描边宽度(像素)
backgroundColor String <optional>
背景色
backgroundPadding Array.<Number> <optional>
[7,5] 背景内边距 [水平, 垂直](像素)

ModelMarkupLineStyleOptions

折线样式
Type:
  • Object
Properties:
Name Type Argument Default Description
type String <optional>
"solid" 线型:`solid` | `dash`(或 `dashes`)
color String <optional>
"#F99D0B" 线颜色(CSS 色值)
width Number <optional>
2 线宽(像素)
gapColor String <optional>
虚线间隔色(type 为 dash 时有效)
dashLength Number <optional>
虚线长度
gapLength Number <optional>
虚线间隔长度
disableDepthTest Boolean <optional>
false 是否禁用深度测试

ModelMarkupOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
type String <optional>
"polyline" 批注几何类型,见 MarkupType
lineStyle ModelMarkupLineStyleOptions <optional>
折线样式
vertexStyle ModelMarkupVertexStyleOptions <optional>
顶点样式
labelStyle ModelMarkupLabelStyleOptions <optional>
段标签样式

ModelMarkupVertexStyleOptions

顶点样式
Type:
  • Object
Properties:
Name Type Argument Default Description
size Number <optional>
8 点大小(像素)
fillColor String <optional>
"#F99D0B" 填充色
outlineColor String <optional>
"#FFFFFF" 描边色
outlineWidth Number <optional>
2 描边宽度(像素)
disableDepthTest Boolean <optional>
false 是否禁用深度测试

PointStyleOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
type string <optional>
'vector' 仅支持矢量点类型
size Number | Array <optional>
5 点绘制粗度(单位像素)
fillColor string <optional>
'#FFFF00' 填充颜色
outlineColor string <optional>
'#000000' 边界颜色
outlineWidth Number <optional>
0 边界勾绘粗度(单位像素)

PolygonStyleOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
fillColor string <optional>
"#FFFF00" 填充颜色
outline Object <optional>
边界选项
Properties
Name Type Argument Description
type string <optional>
边界线样式,支持Solid:实线;Dashes:虚线;Glow:发光线
color string <optional>
边界颜色
width number <optional>
边界宽度
image Object <optional>
填充图片材质
Properties
Name Type Argument Description
url string <optional>
材质url
color string <optional>
材质颜色
repeat Array <optional>
材质重复次数
transparent boolean <optional>
材质透明度
rotation number <optional>
材质旋转角度

PolylineStyleOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
type string <optional>
'Solid' 线样式(Solid:实线;Dashes:虚线;Glow:发光线)
color String <optional>
'#FFFFFF' 颜色
width Number <optional>
1.0 宽度
gapColor string <optional>
'rgba(0,0,0,0)' 间隔颜色
gapLength Number <optional>
8.0 间隔长度
dashLength Number <optional>
8.0 虚线长度
dashWidthPattern Number <optional>
1.0 虚线宽度模式
glowPower Number <optional>
0.25 发光线强度
taperPower Number <optional>
1.0 发光线衰减
occludedLine Object <optional>
遮挡线(被地形遮挡部分)
Properties
Name Type Argument Default Description
type String <optional>
'Solid' 遮挡线-线类型
color String <optional>
"#FFFF00" 遮挡线-颜色
gapColor String <optional>
"#000000" 线类型为Defines.LineType.DASHES,间隔颜色

PostProcessWaterOptions

水体渲染选项
Type:
  • Object
Properties:
Name Type Argument Default Description
color string <optional>
"rgb(0,127,204)" 水颜色
alpha number <optional>
0.8 水透明度
mixFactor number <optional>
0.5 水混合因子
frequency number <optional>
900 频率
animationSpeed number <optional>
0.03 动画速度
amplitude number <optional>
5.0 振幅

ProjectDistanceOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
lengthPrecision Number <optional>
3 长度精度,保留小数位数
lengthUnit Number <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米)
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

ProjectedAreaOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
areaPrecision Number <optional>
3 面积精度,保留小数位数
areaUnit Number | Array <optional>
Glodon.CIMCube.Global.Defines.AreaUnit.S_M 面积单位,S_M(平方米)
areaUnitSeparator String <optional>
"|" 面积单位分隔符
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
polygonColor String | Array | Object <optional>
"rgba(255, 157, 11, 0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

RealisticRenderingOptions

真实感渲染选项
Type:
  • Object
Properties:
Name Type Argument Description
origin Object <optional>
原点
Properties
Name Type Argument Description
lon number <optional>
经度
lat number <optional>
纬度
height number <optional>
高度
skyLight Object <optional>
天光
skyAtmosphere Object <optional>
天空大气
exponentialHeightFog Object <optional>
指数高度雾
volumetricClouds Object <optional>
体积云
bloom Object <optional>
泛光
lightShaft Object <optional>
光晕光束
eyeAdaptation Object <optional>
自动曝光

SlopeOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
anglePrecision Number <optional>
2 角度精度,保留小数位数
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

SpaceAreaOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
areaPrecision Number <optional>
3 面积精度,保留小数位数
areaUnit Number | Array <optional>
Glodon.CIMCube.Global.Defines.AreaUnit.S_M 面积单位,S_M(平方米)
areaUnitSeparator String <optional>
"|" 面积单位分隔符
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
polygonColor String | Array | Object <optional>
"rgba(255, 157, 11, 0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象
heightOffset Number <optional>
2 拾取高度偏移量,单位米
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

SpaceDistanceOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
lengthPrecision Number <optional>
3 长度精度,保留小数位数
lengthUnit Number <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米)
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

TMSOptions

Type:
  • Object
Properties:
Name Type Argument Description
url String <optional>
影像图层URL
subdomains Array <optional>
影像图层子域名,例:["0", "1", "2", "3"]
customTags Object <optional>
允许替换URL模板中的自定义关键字。该对象必须以字符串为键,以函数为值。
tilingScheme String <optional>
瓦片方案,默认geographic,可选webmercator

TriangulationOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
lengthPrecision Number <optional>
3 长度精度,保留小数位数
lengthUnit Number <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米)
triangulationType String <optional>
Glodon.CIMCube.Global.Defines.TriangulationType.DEFAULT 三角测量类型
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

VolumeOptions

Type:
  • Object
Properties:
Name Type Argument Default Description
volumePrecision Number <optional>
3 测量体积精度,保留小数位数
markerSize Number <optional>
12 标记点大小,单位像素
fillColor String | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象
outlineColor String | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象
outlineWidth Number <optional>
2 标记点边框宽度,单位像素
lineColor String | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象
lineWidth Number <optional>
2 连线宽度,单位像素
polygonColor String | Array | Object <optional>
"rgba(1,0.615686274509804,0.043137254901960784,0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象
datum Object <optional>
{mode: Glodon.CIMCube.Global.Defines.DatumMode.CustomPlane, altitude: 0} 测量的基准面
fontColor String | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象
labelColor String | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象
fontSize Number <optional>
14 标注字体大小,单位像素
showResult String <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示)
enableMouseMove Boolean <optional>
true 是否启用鼠标移动事件
enableMouseLeftClick Boolean <optional>
true 是否启用鼠标左键点击事件
enableMouseRightClick Boolean <optional>
true 是否启用鼠标右键点击事件

WMSOptions

Type:
  • Object
Properties:
Name Type Argument Description
url String <optional>
影像图层URL
layers String <optional>
图层名称,多个图层用逗号分隔
parameters Object <optional>
参数
version string <optional>
版本
service string <optional>
服务类型
request string <optional>
请求类型
styles string <optional>
样式名称
tiled string <optional>
是否瓦片化
transparent string <optional>
是否透明
format string <optional>
瓦片格式
crs string <optional>
坐标参考系统, WMS specification >= 1.3.0.
srs string <optional>
坐标参考系统, WMS specification 1.1.0 or 1.1.1
tilingScheme String <optional>
瓦片方案,默认geographic,可选webmercator
subdomains Array <optional>
影像图层子域名,例:["0", "1", "2", "3"]

WMTSOptions

Type:
  • Object
Properties:
Name Type Argument Description
url String <optional>
影像图层URL
layer String <optional>
图层名称
style String <optional>
样式名称
format String <optional>
瓦片格式,默认image/jpeg
tileMatrixSetID String <optional>
瓦片矩阵集ID
tileMatrixLabels Array <optional>
瓦片矩阵标签
tilingScheme String <optional>
瓦片方案,默认geographic,可选webmercator
subdomains Array <optional>
影像图层子域名,例:["0", "1", "2", "3"]

XYZOptions

Type:
  • Object
Properties:
Name Type Argument Description
url String <optional>
影像图层URL
subdomains Array <optional>
影像图层子域名,例:["0", "1", "2", "3"]
customTags Object <optional>
允许替换URL模板中的自定义关键字。该对象必须以字符串为键,以函数为值。
tilingScheme String <optional>
瓦片方案,默认geographic,可选webmercator

Events


dataSourceAdded

数据源添加
Type: Object

dataSourceRemoved

数据源移除
Type: Object