Reference · SVG faces and looks
BlockDirectiontype
Which way a view lifts the layers and shows the thickness: x is 1 when each layer is lifted to the right (and the
thickness shows on the left), -1 the other way round; y is 1 when it is lifted upward (thickness below), -1 downward.
Import it
import type { BlockDirection } from "@johnmorrisdotca/jarajara/faces";
Definition
type BlockDirection = {
x: 1 | -1;
y: 1 | -1;
};
Members
| Name | Type | Description |
|---|---|---|
x | 1 | -1 | |
y | 1 | -1 |
Examples
import type { BlockDirection } from "@johnmorrisdotca/jarajara/faces";
const value: BlockDirection = {x:1,y:1};
console.log(value);{ x: 1, y: 1 }What it prints (run when this page was built)