UNPKG

@thi.ng/geom

Version:

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

30 lines 983 B
import type { FnU, IClear } from "@thi.ng/api"; import type { Attribs, IHiccupShape3 } from "../api.js"; /** * Geometry/shape group container for other {@link IHiccupShape3}s, incl. nested * groups. */ export declare class Group3 implements IClear, IHiccupShape3<Group3> { attribs?: Attribs | undefined; readonly type = "group3"; readonly dim = 3; children: IHiccupShape3[]; constructor(attribs?: Attribs | undefined, children?: Iterable<IHiccupShape3>); [Symbol.iterator](): Generator<IHiccupShape3, void, unknown>; /** * Appends given `shapes` to this {@link Group.children} array. * * @param shapes */ add(...shapes: IHiccupShape3[]): this; /** * Removes all children from the group. */ clear(): void; copy(): Group3; copyTransformed(fn: FnU<IHiccupShape3>): Group3; withAttribs(attribs: Attribs): Group3; equiv(o: any): boolean; toHiccup(): any[]; } //# sourceMappingURL=group3.d.ts.map