OPTION_ATTRIBUTES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The attributes of <uchusen-rocket> that choose what is drawn, in the order the demo writes them. The embed.html query uses the same words.
インポート
import { OPTION_ATTRIBUTES } from "@johnmorrisdotca/uchusen-rockets";
定義
const OPTION_ATTRIBUTES: readonly ["rocket", "variant", "show", "look", "view", "build", "mode", "spin", "way", "label", "assets", "engines", "lights", "thrusters", "phase", "motion"] = ["rocket", "variant", "show", "look", "view", "build", "mode", "spin", "way", "label", "assets", "engines", "lights", "thrusters", "phase", "motion"] as const
例
import { OPTION_ATTRIBUTES } from "@johnmorrisdotca/uchusen-rockets";
console.log(OPTION_ATTRIBUTES.join(", "));rocket, variant, show, look, view, build, mode, spin, way, label, assets, engines, lights, thrusters, phase, motion出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。