@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.
13 lines (12 loc) • 582 B
JavaScript
import { jsx as _jsx } from "@zsnout/ithkuil-jsx/jsx-runtime";
/**
* Instantiates a set of lines that most letters rest on.
*
* @param props Properties that modify the output of these `Lines`.
* @returns An `SVGPathElement` containing the lines.
*/
export function Lines(props) {
const width = props.width ?? 250;
const height = props.height ?? 250;
return (_jsx("path", { d: `M ${-width} -35 h ${2 * width} m ${-2 * width} 35 h ${2 * width} m ${-2 * width} 35 h ${2 * width} m ${-width} ${-35 - height} v ${2 * height}`, stroke: "#ccc", "stroke-width": "1" }));
}