portMarker関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A docking port's marker: a ring with four ticks and the number in the middle, painted round the port so a ship lines up on it.
インポート
import { portMarker } from "@johnmorrisdotca/uchusen-rockets";
定義
function portMarker(n: number, place: MarkingPlace, style?: MarkingStyle): Piece[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
n | number | The port's number. |
place | MarkingPlace | Where; |
style (省略可) | MarkingStyle | The paint and details. |
戻り値
Piece[]
The pieces.
例
import { portMarker } from "@johnmorrisdotca/uchusen-rockets";
console.log(portMarker(2, { radius: 6, y: 4, az: 0, height: 2.4 }).length > 20);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。