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