Skip to main content

Interface: Topology

Defined in: src/mobjects/geo/topojson.ts:118

A TopoJSON topology: the top-level container with its shared arcs, optional quantization transform, and named objects.

Properties​

arcs​

arcs: number[][][]

Defined in: src/mobjects/geo/topojson.ts:123

The shared arcs. Each arc is a list of positions (delta-encoded if quantized).


objects​

objects: Record<string, TopoGeometryObject>

Defined in: src/mobjects/geo/topojson.ts:125

The named objects. Each value is a geometry object (often a GeometryCollection).


transform?​

optional transform: TopoTransform

Defined in: src/mobjects/geo/topojson.ts:121

Optional quantization transform. When absent, arcs hold absolute coordinates.


type​

type: "Topology"

Defined in: src/mobjects/geo/topojson.ts:119