Reference · SVG faces and looks
LayoutFrametype
The drawing's viewBox: where it starts and how large it is, in the face's units.
Import it
import type { LayoutFrame } from "@johnmorrisdotca/jarajara/faces";
Definition
type LayoutFrame = {
x: number;
y: number;
width: number;
height: number;
};
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number | |
width | number | |
height | number |
Examples
import type { LayoutFrame } from "@johnmorrisdotca/jarajara/faces";
import { layoutFrame } from "@johnmorrisdotca/jarajara/faces";
const value: LayoutFrame = layoutFrame(4)!;
console.log(value);{ x: 0, y: 5, width: 125, height: 55 }What it prints (run when this page was built)