SuidoViewtype
The part of a board shown: how far in (1 is the whole board), and where its top left corner is, in the drawing's units.
Import it
import type { SuidoView } from "@johnmorrisdotca/suido/draw";
Definition
type SuidoView = {
zoom: number;
x: number;
y: number;
};
Members
| Name | Type | Description |
|---|---|---|
zoom | number | |
x | number | |
y | number |
Examples
import type { SuidoView } from "@johnmorrisdotca/suido/draw";
const view = {zoom:1,x:0,y:0};
const value: SuidoView = view;
console.log(value);{ zoom: 1, x: 0, y: 0 }What it prints (run when this page was built)