MEIKYUU_ORIENTATIONS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
WHICH WAY UP A MAZE IS LOOKED AT. A tall maze is made to be played upright on a phone and wants to lie down on a wide screen; a wide one
the other way. Turning is presentation only: the maze, its cells and the line drawn through them stay as they were made (the logical
orientation), and the board draws them a quarter turn counter-clockwise, so the maze's top is on the left, its left at the foot, and a
finger's path over the picture is carried back into the maze before anything is decided. A line stored as its steps (lineToSteps)
therefore replays the same on a board turned either way, which is what lets a person start a level on a phone and finish it on a desk.
The turn is a quarter turn counter-clockwise: the logical point (x, y) is shown at (y, -x), a rotation of -90 degrees in SVG's terms.
インポート
import { MEIKYUU_ORIENTATIONS } from "@johnmorrisdotca/meikyuu/play";
ほかのエクスポート元: @johnmorrisdotca/meikyuu
定義
const MEIKYUU_ORIENTATIONS: readonly ["portrait", "landscape", "auto"] = ["portrait", "landscape", "auto"] as const
例
import { MEIKYUU_ORIENTATIONS } from "@johnmorrisdotca/meikyuu/play";
console.log(MEIKYUU_ORIENTATIONS);[ 'portrait', 'landscape', 'auto' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。