topojson / topojson-client

Manipulate TopoJSON, such as to merge shapes, and convert it back to GeoJSON.
ISC License
213 stars 63 forks source link

Add absolute and relative. #2

Closed mbostock closed 7 years ago

mbostock commented 7 years ago

topojson.absolute([transform])

If the specified transform is non-null, returns a function that removes the delta-encoding from the specified arc and applies the specified transform. The specified arc coordinates are modified in-place, and the arc is returned. If the specified transform is null, returns the identity function.

topojson.relative(transform)

If the specified transform is non-null, returns a function that applies the delta-encoding to the specified arc and removes the specified transform. The specified arc coordinates are modified in-place, and the arc is returned. If the specified transform is null, returns the identity function.