UNPKG

@thi.ng/geom

Version:

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

23 lines 823 B
import type { Vec } from "@thi.ng/vectors"; import type { Attribs, IShape, PCLike, PCLikeConstructor, PathSegment } from "../api.js"; /** * Creates a shallow copy of given `attribs`. Any `exclude` keys will be removed * from result. * * @internal */ export declare const __copyAttribs: (attribs?: Attribs, ...exclude: string[]) => Attribs | undefined; /** * Syntax sugar for {@link __copyShapeAttribs}, also removing `__samples` key from * result. * * @param x * * @internal */ export declare const __copyAttribsNoSamples: (x: IShape) => Attribs | undefined; /** @internal */ export declare const __copyShape: <T extends PCLike>(ctor: PCLikeConstructor<T>, inst: T, points?: Vec[]) => T; /** @internal */ export declare const __copySegment: <T extends PathSegment>(s: T) => T; //# sourceMappingURL=copy.d.ts.map