UNPKG

@thi.ng/geom

Version:

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

21 lines 802 B
import type { Vec } from "@thi.ng/vectors"; import type { Attribs, IHiccupShape2 } from "../api.js"; /** * Basic stub for text elements. Currently, only a minimal set of geometry * operations are implemented for this type, however this type implements * [`IToHiccup`](https://docs.thi.ng/umbrella/api/interfaces/IToHiccup.html) and * so is useful as wrapper for inclusion of text elements in {@link Group}s with * other shape types. */ export declare class Text implements IHiccupShape2<Text> { pos: Vec; body: any; attribs?: Attribs | undefined; readonly type = "text"; readonly dim = 2; constructor(pos: Vec, body: any, attribs?: Attribs | undefined); copy(): Text; withAttribs(attribs: Attribs): Text; toHiccup(): any[]; } //# sourceMappingURL=text.d.ts.map