Skip to main content

Interface: TopoTransform

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

The quantization transform of a TopoJSON topology. Input coordinates are integers; scale and translate map them back to real-world units.

Properties​

scale​

scale: [number, number]

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

Per-axis multiplier [kx, ky] applied to the integer coordinates.


translate​

translate: [number, number]

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

Per-axis offset [dx, dy] added after scaling.