conversion

conversion

Portable structure helpers (PShape bridges omitted on purpose).

Imports

import {
  copy, flatten, roundVertexCoords, toArray, fromArray,
  toContours, fromContours, conversion,
} from 'pattapatta'

Functions

FunctionDescription
copy(path)Clone
flatten(group)Cloned path list
roundVertexCoords(path, decimals)Round verts
toArray / fromArrayFlat [x0,y0,…] exterior
toContours / fromContoursRing ↔ path list

Style / WKT / Java2D bridges from PGS are not ported; use SVG + these helpers.