UNPKG

@bitbybit-dev/jscad-worker

Version:

Bit By Bit Developers JSCAD Based CAD Library to Program Geometry Via WebWorker

38 lines (37 loc) 1.38 kB
import { JSCADWorkerManager } from "../jscad-worker/jscad-worker-manager"; import * as Inputs from "@bitbybit-dev/jscad/lib/api/inputs/inputs"; /** * Contains various functions for solid 3D texts from JSCAD library https://github.com/jscad/OpenJSCAD.org * Thanks JSCAD community for developing this kernel */ export declare class JSCADText { private readonly jscadWorkerManager; constructor(jscadWorkerManager: JSCADWorkerManager); /** * Creates a text that is based on chain hulling cylinders * @param inputs Cylindrical text parameters * @returns List of solids for text * @group text * @shortname cylindrical * @drawable true */ cylindricalText(inputs: Inputs.JSCAD.CylinderTextDto): Promise<Inputs.JSCAD.JSCADEntity[]>; /** * Creates a text that is based on chain hulling spheres * @param inputs Spherical text parameters * @returns List of solids for text * @group text * @shortname spherical * @drawable true */ sphericalText(inputs: Inputs.JSCAD.SphereTextDto): Promise<Inputs.JSCAD.JSCADEntity[]>; /** * Creates a vector text * @param inputs Vector text parameters * @returns List of polygons * @group text * @shortname vector * @drawable false */ createVectorText(inputs: Inputs.JSCAD.TextDto): Promise<Inputs.Base.Point2[][]>; }