@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
18 lines • 795 B
TypeScript
import type { Fn } from "@thi.ng/api";
import type { Attribs, IHiccupShape2 } from "../api.js";
import { Polygon } from "./polygon.js";
export declare class ComplexPolygon implements IHiccupShape2<ComplexPolygon> {
boundary: Polygon;
attribs?: Attribs | undefined;
readonly type = "complexpoly";
readonly dim = 2;
children: Polygon[];
constructor(boundary?: Polygon, children?: Iterable<Polygon>, attribs?: Attribs | undefined);
[Symbol.iterator](): Generator<Polygon, void, unknown>;
addChild(poly: Polygon): void;
copy(): ComplexPolygon;
copyTransformed(fn: Fn<Polygon, Polygon>): ComplexPolygon;
withAttribs(attribs: Attribs): ComplexPolygon;
toHiccup(): (string | any[] | Attribs | undefined)[];
}
//# sourceMappingURL=complex-polygon.d.ts.map