UNPKG

@thi.ng/geom

Version:

Functional, polymorphic API for 2D geometry types & SVG generation

21 lines (20 loc) 256 B
class Extra { constructor(body) { this.body = body; } body; type = "extra"; dim = 2; copy() { return new Extra(this.body); } withAttribs() { return this.copy(); } toHiccup() { return this.body; } } export { Extra };