Skip to content

Documentation / @geoverse/editor-core / geometryKind

Function: geometryKind()

ts
function geometryKind(g): 
  | GeometryKind
  | "GeometryCollection";

Defined in: packages/editor-core/src/typeGuards.ts:6

几何类型(GeometryCollection 归一为其字面量,调用方按需处理)。

Parameters

g

Geometry

Returns

| GeometryKind | "GeometryCollection"