ThreeParts型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The parts of three.js the Earth and the space view use. A page can hand over a module that re-exports just these (see setThreeLoader) instead of all of three.
インポート
import type { ThreeParts } from "@johnmorrisdotca/chikyu-earth/realistic";
定義
type ThreeParts = {
[Name in "Texture" | "BufferGeometry" | "BufferAttribute" | "ShaderMaterial" | "Group" | "Mesh" | "Scene" | "OrthographicCamera" | "PerspectiveCamera" | "Vector3" | "WebGLRenderer" | "RepeatWrapping" | "ClampToEdgeWrapping" | "LinearMipmapLinearFilter" | "LinearFilter" | "BackSide" | "DoubleSide" | "LineLoop" | "LineBasicMaterial" | "Color"]: (typeof THREE)[Name];
} & {
Points?: typeof THREE.Points;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
Texture | typeof THREE.Texture | |
BufferGeometry | typeof THREE.BufferGeometry | |
BufferAttribute | typeof THREE.BufferAttribute | |
ShaderMaterial | typeof THREE.ShaderMaterial | |
Group | typeof THREE.Group | |
Mesh | typeof THREE.Mesh | |
Scene | typeof THREE.Scene | |
OrthographicCamera | typeof THREE.OrthographicCamera | |
PerspectiveCamera | typeof THREE.PerspectiveCamera | |
Vector3 | typeof THREE.Vector3 | |
WebGLRenderer | typeof THREE.WebGLRenderer | |
RepeatWrapping | 1000 | |
ClampToEdgeWrapping | 1001 | |
LinearMipmapLinearFilter | 1008 | |
LinearFilter | 1006 | |
BackSide | 1 | |
DoubleSide | 2 | |
LineLoop | typeof THREE.LineLoop | |
LineBasicMaterial | typeof THREE.LineBasicMaterial | |
Color | typeof THREE.Color | |
Points (省略可) | typeof THREE.Points | undefined | Only the satellites use it, so a loader that hands over a subset of three.js without it still draws everything else. |
例
import type { ThreeParts } from "@johnmorrisdotca/chikyu-earth/realistic";
const load = (): Promise<ThreeParts> => import("three");
console.log(typeof load);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。