Reference · Rules, tiles and records
Viewtype
A view: a tile's side in pixels, and where the corner of square (0, 0) is drawn.
Import it
import type { View } from "@johnmorrisdotca/kumimoji";
Definition
type View = {
tile: number;
x: number;
y: number;
};
Members
| Name | Type | Description |
|---|---|---|
tile | number | |
x | number | |
y | number |
Examples
import type { View } from "@johnmorrisdotca/kumimoji";
const view = {tile:40,x:100,y:100};
const value: View = view;
console.log(value);{ tile: 40, x: 100, y: 100 }What it prints (run when this page was built)