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.

11 lines (10 loc) 421 B
import { jsx as _jsx } from "@zsnout/ithkuil-jsx/jsx-runtime"; /** * Shows a point. * * @param props Properties modifying how the point is displayed. * @returns An `SVGPathElement` showing the point. */ export function Point(props) { return (_jsx("path", { d: "M " + props.x + " " + props.y + " z", opacity: "0.5", stroke: props.color || "blue", "stroke-linecap": "round", "stroke-width": props.size ?? 5 })); }