BlockDirection型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { BlockDirection } from "@johnmorrisdotca/jarajara/faces";
定義
type BlockDirection = {
x: 1 | -1;
y: 1 | -1;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
x | 1 | -1 | |
y | 1 | -1 |
例
import type { BlockDirection } from "@johnmorrisdotca/jarajara/faces";
const value: BlockDirection = {x:1,y:1};
console.log(value);{ x: 1, y: 1 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。