リファレンス
Webコンポーネント
import { … } from "@johnmorrisdotca/uchusen-rockets/element";
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
defineUchusenRocket | 関数 | Defines both elements, once. |
FlightWords | 型 | The words the flight bar says itself, each of which a page can replace (for a language) with flight.words = { play: "…" }. |
ROCKETS | 定数 | Every rocket that has a shape, by id, each with its variants. |
RocketState | 型 | What a <uchusen-rocket> is doing, as its data-state attribute says: picture (the drawing), loading (the 3D view is on its way), 3d, fallback (no WebGL, so the drawing stays) or error. |
setAssetBase | 関数 | Where the licensed models are, for every element with no assets attribute of its own. |
UchusenFlight | クラス | The <uchusen-flight> element: a play button, a slider and the phase's name for a rocket's flight. |
UchusenLineup | クラス | Rockets side by side on one baseline at one scale: <uchusen-lineup items="starship:v1,starship:v3,person,building" unit="4" ruler labels>. |
UchusenRocket | クラス | The <uchusen-rocket> element: a rocket as a drawing that a 3D view takes over from when the browser can draw WebGL. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。