Skip to content

Interface: Measurement ​

Defined in: packages/viewer-core/src/public/types.ts:1172

运行时测量记录(list() 返回;rows / label 为重算所得,不落盘)。

Extends ​

Properties ​

id ​

id: string

Defined in: packages/viewer-core/src/public/types.ts:1158

Inherited from ​

ViewMeasurement.id


kind ​

kind: MeasureKind

Defined in: packages/viewer-core/src/public/types.ts:1159

Inherited from ​

ViewMeasurement.kind


label ​

readonly label: string

Defined in: packages/viewer-core/src/public/types.ts:1174

卡头写明判定后的量名(「轴线中心距」而非笼统的「距离」)。


labelPos? ​

optional labelPos?: object

Defined in: packages/viewer-core/src/public/types.ts:1168

x ​

x: number

y ​

y: number

Inherited from ​

ViewMeasurement.labelPos


rows ​

readonly rows: readonly MeasureRow[]

Defined in: packages/viewer-core/src/public/types.ts:1175


stale ​

readonly stale: boolean

Defined in: packages/viewer-core/src/public/types.ts:1177

true = 重放时重算与历史值不一致,或几何未加载。不静默改写用户看过的数。


suspect ​

readonly suspect: boolean

Defined in: packages/viewer-core/src/public/types.ts:1179

true = 任一 target 的解析参数带导出期可疑位。出值,但卡片带警告角标(spec §7)。


targets ​

targets: object[]

Defined in: packages/viewer-core/src/public/types.ts:1160

entity ​

entity: MeasureEntity

entityId? ​

optional entityId?: number

localPoint ​

localPoint: Vec3

nodeId ​

nodeId: number

Inherited from ​

ViewMeasurement.targets


value ​

value: number | null

Defined in: packages/viewer-core/src/public/types.ts:1167

coordinate 为 null,坐标取 targets[0].localPoint。

Inherited from ​

ViewMeasurement.value