UNPKG

@zsnout/ithkuil

Version:

A set of tools which can generate and parse romanized Ithkuil text and which can generate Ithkuil script from text and JSON data.

35 lines (34 loc) 1.76 kB
import { type Specification } from "../../generate/index.js"; export declare const PRIMARY_CORES: { readonly BSC: "M -25 -35 l -7.5 7.5 57.5 62.5 7.5 -7.5 -57.5 -62.5 z"; readonly BSC_ALT: "M -25 -35 l -7.5 7.5 57.5 62.5 7.5 -7.5 -57.5 -62.5 z"; readonly CTE: "M 8.75 5 l 7.5 -7.5 -32.5 -32.5 -7.5 7.5 32.5 32.5 m -17.5 -10 l -7.5 7.5 32.5 32.5 7.5 -7.5 -32.5 -32.5 z"; readonly CSV: "M -7 8.1 l 7.45 -7.5 27.05 34.4 7.5 -7.5 -27.8 -36 -7.75 7.8 -26.95 -34.3 -7.5 7.5 28 35.6 z"; readonly OBJ: "M 20 35 l 7.5 -7.5 -26.9 -26.9 7.45 -7.55 -28.05 -28.05 -7.5 7.5 26.9 26.9 -7.5 7.5 28.1 28.1 z"; }; export declare const HANDWRITTEN_PRIMARY_CORES: { readonly BSC: "M -35 -35 c 0 40 30 70 70 70"; readonly BSC_ALT: "M -35 -35 c 40 0 70 30 70 70"; readonly CTE: "M -25 -35 c 17.156325 0 30 17.1428 30 40 m 20 30 c -17.156325 0 -30 -17.1428 -30 -40"; readonly CSV: "M -30 -35 c 30 0 30 20 30 35 c 30 0 30 20 30 35"; readonly OBJ: "M -30 -35 c 0 35 15 35 30 35 c 0 35 15 35 30 35"; }; export declare const HANDWRITTEN_CORE_EXTENSIONS: { readonly BSC: readonly ["vert2", "horiz2"]; readonly BSC_ALT: readonly ["horiz2", "vert2"]; readonly CTE: readonly ["horiz2", "horiz2"]; readonly CSV: readonly ["horiz2", "vert2"]; readonly OBJ: readonly ["vert2", "horiz2"]; }; /** * Creates the core shape of a primary character as an SVG path. * * @param props Properties that modify the shape. * @returns An `SVGPathElement` containing the shape. */ export declare function PrimaryCore(props: { /** Whether this item is handwritten. */ readonly handwritten?: boolean | undefined; /** The specification of the character. */ readonly specification: Specification | "BSC_ALT"; }): SVGPathElement;