COMPARES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Comparison shapes: plain round sizes, for scale, not facts about anything.
インポート
import { COMPARES } from "@johnmorrisdotca/uchusen-rockets/build";
定義
const COMPARES: { readonly person: { readonly name: "A person, 1.8 m"; readonly height: 1.8; readonly width: 0.5; }; readonly building: { readonly name: "A ten-storey building, 30 m"; readonly height: 30; readonly width: 18; }; } = {
person: { name: "A person, 1.8 m", height: 1.8, width: 0.5 },
building: { name: "A ten-storey building, 30 m", height: 30, width: 18 },
} as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
person | { readonly name: "A person, 1.8 m"; readonly height: 1.8; readonly width: 0.5; } | |
building | { readonly name: "A ten-storey building, 30 m"; readonly height: 30; readonly width: 18; } |
例
import { COMPARES } from "@johnmorrisdotca/uchusen-rockets/build";
console.log(COMPARES.person.height, COMPARES.building.height);1.8 30出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。