@threepipe/plugin-svg-renderer
Version:
Plugins for SVG Rendering of 3d objects for Threepipe
9 lines • 1.04 kB
TypeScript
import { Circle as SVGCircle, Dom, Ellipse as SVGEllipse, FillData, FontData, Image, NumberAlias as SVGNumberAlias, Path as SVGPath, Polygon as SVGPolygon, Rect as SVGRect, StrokeData, Text as SVGText } from '@svgdotjs/svg.js';
import { PointLike, RectLike } from '../../utils';
export declare function getSVGImage(url: string, rect: RectLike): Image;
export declare function getSVGText(text: string, x: number, y: number, fontStyle?: FontData, strokeStyle?: StrokeData, fillStyle?: FillData): SVGText;
export declare function getSVGPath(contour: PointLike[], holes: PointLike[][], closed: boolean, strokeStyle?: StrokeData, fillStyle?: FillData, fillImage?: Image, parent?: Dom): SVGPath;
export declare function getSVGCircle(cx: number, cy: number, radius: number, strokeStyle?: StrokeData, fillStyle?: FillData): SVGCircle;
export declare function replaceShapeByPath(shape: SVGPolygon | SVGRect | SVGEllipse | SVGCircle): SVGPath;
export declare function NumberAliasToNumber(n: SVGNumberAlias): number;
//# sourceMappingURL=svgutils.d.ts.map