@thi.ng/geom
Version:
Functional, polymorphic API for 2D geometry types & SVG generation
13 lines • 510 B
TypeScript
import type { Attribs, PCLike, PCLikeConstructor } from "../api.js";
import type { Vec } from "@thi.ng/vectors";
/**
* Creates a new shape instance with given points and attribs. Copies points by
* default.
*
* @param ctor
* @param points
* @param attribs
* @param copyPoints
*/
export declare const __pointArraysAsShapes: <T extends PCLike>(ctor: PCLikeConstructor<T>, points?: Iterable<Vec[]>, attribs?: Attribs, copyPoints?: boolean) => T[] | undefined;
//# sourceMappingURL=points-as-shape.d.ts.map