@types/three 0.157.1 → 0.157.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- three/README.md +1 -1
- three/examples/jsm/animation/CCDIKSolver.d.ts +30 -0
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +105 -0
- three/examples/jsm/animation/MMDPhysics.d.ts +124 -0
- three/examples/jsm/cameras/CinematicCamera.d.ts +41 -0
- three/examples/jsm/capabilities/WebGL.d.ts +9 -0
- three/examples/jsm/controls/FirstPersonControls.d.ts +31 -0
- three/examples/jsm/controls/OrbitControls.d.ts +286 -0
- three/examples/jsm/controls/TrackballControls.d.ts +58 -0
- three/examples/jsm/effects/OutlineEffect.d.ts +36 -0
- three/examples/jsm/environments/RoomEnvironment.d.ts +6 -0
- three/examples/jsm/exporters/PLYExporter.d.ts +30 -0
- three/examples/jsm/exporters/STLExporter.d.ts +21 -0
- three/examples/jsm/geometries/TextGeometry.d.ts +115 -0
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +10 -0
- three/examples/jsm/helpers/ViewHelper.d.ts +15 -0
- three/examples/jsm/libs/fflate.module.d.ts +1 -0
- three/examples/jsm/libs/lil-gui.module.min.d.ts +609 -0
- three/examples/jsm/libs/tween.module.d.ts +219 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +3 -0
- three/examples/jsm/lines/Line2.d.ts +11 -0
- three/examples/jsm/lines/LineGeometry.d.ts +10 -0
- three/examples/jsm/lines/LineMaterial.d.ts +31 -0
- three/examples/jsm/lines/LineSegments2.d.ts +14 -0
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +23 -0
- three/examples/jsm/loaders/DDSLoader.d.ts +16 -0
- three/examples/jsm/loaders/DRACOLoader.d.ts +19 -0
- three/examples/jsm/loaders/FontLoader.d.ts +27 -0
- three/examples/jsm/loaders/GLTFLoader.d.ts +147 -0
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +18 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +16 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +19 -0
- three/examples/jsm/loaders/MMDLoader.d.ts +56 -0
- three/examples/jsm/loaders/MTLLoader.d.ts +104 -0
- three/examples/jsm/loaders/OBJLoader.d.ts +10 -0
- three/examples/jsm/loaders/PCDLoader.d.ts +8 -0
- three/examples/jsm/loaders/RGBELoader.d.ts +19 -0
- three/examples/jsm/loaders/RGBMLoader.d.ts +32 -0
- three/examples/jsm/loaders/SVGLoader.d.ts +68 -0
- three/examples/jsm/loaders/TGALoader.d.ts +7 -0
- three/examples/jsm/loaders/TTFLoader.d.ts +8 -0
- three/examples/jsm/loaders/USDZLoader.d.ts +11 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +17 -0
- three/examples/jsm/modifiers/TessellateModifier.d.ts +9 -0
- three/examples/jsm/nodes/Nodes.d.ts +149 -0
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +18 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +12 -0
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +21 -0
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +18 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +14 -0
- three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
- three/examples/jsm/nodes/code/CodeNode.d.ts +15 -0
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +7 -0
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +13 -0
- three/examples/jsm/nodes/code/FunctionNode.d.ts +17 -0
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
- three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
- three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
- three/examples/jsm/nodes/core/CacheNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
- three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
- three/examples/jsm/nodes/core/InputNode.d.ts +16 -0
- three/examples/jsm/nodes/core/Node.d.ts +31 -0
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +138 -0
- three/examples/jsm/nodes/core/NodeCache.d.ts +9 -0
- three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
- three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
- three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
- three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
- three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeUtils.d.ts +13 -0
- three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
- three/examples/jsm/nodes/core/NodeVarying.d.ts +8 -0
- three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
- three/examples/jsm/nodes/core/StackNode.d.ts +11 -0
- three/examples/jsm/nodes/core/TempNode.d.ts +11 -0
- three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
- three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
- three/examples/jsm/nodes/core/VaryingNode.d.ts +8 -0
- three/examples/jsm/nodes/core/constants.d.ts +78 -0
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +32 -0
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +18 -0
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +8 -0
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
- three/examples/jsm/nodes/display/ViewportNode.d.ts +23 -0
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +9 -0
- three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +13 -0
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
- three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
- three/examples/jsm/nodes/lighting/LightUtils.d.ts +4 -0
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +10 -0
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +15 -0
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +14 -0
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +9 -0
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +9 -0
- three/examples/jsm/nodes/materials/Materials.d.ts +17 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +10 -0
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +22 -0
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +18 -0
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +38 -0
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +94 -0
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +4 -0
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +6 -0
- three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +115 -0
- three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +156 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +310 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +166 -0
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +6 -0
- three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +11 -0
- three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
- three/examples/jsm/nodes/utils/RemapNode.d.ts +13 -0
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +8 -0
- three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
- three/examples/jsm/nodes/utils/TimerNode.d.ts +19 -0
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +22 -0
- three/examples/jsm/objects/GroundProjectedSkybox.d.ts +13 -0
- three/examples/jsm/objects/MarchingCubes.d.ts +76 -0
- three/examples/jsm/objects/Reflector.d.ts +29 -0
- three/examples/jsm/postprocessing/EffectComposer.d.ts +31 -0
- three/examples/jsm/postprocessing/Pass.d.ts +31 -0
- three/examples/jsm/postprocessing/SavePass.d.ts +12 -0
- three/examples/jsm/postprocessing/ShaderPass.d.ts +11 -0
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +26 -0
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +17 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +37 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +10 -0
- three/examples/jsm/shaders/BokehShader2.d.ts +42 -0
- three/examples/jsm/shaders/ToonShader.d.ts +54 -0
- three/examples/jsm/shaders/VelocityShader.d.ts +13 -0
- three/examples/jsm/textures/FlakesTexture.d.ts +3 -0
- three/examples/jsm/utils/CameraUtils.d.ts +9 -0
- three/examples/jsm/utils/GeometryUtils.d.ts +25 -0
- three/examples/jsm/utils/LDrawUtils.d.ts +5 -0
- three/examples/jsm/utils/ShadowMapViewer.d.ts +24 -0
- three/examples/jsm/webxr/VRButton.d.ts +5 -0
- three/examples/jsm/webxr/XRButton.d.ts +6 -0
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +21 -0
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +11 -0
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +25 -0
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +24 -0
- three/package.json +2 -2
- three/src/extras/Earcut.d.ts +15 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Camera,
|
|
3
|
+
Scene,
|
|
4
|
+
Vector2,
|
|
5
|
+
Vector4,
|
|
6
|
+
WebGLRenderer,
|
|
7
|
+
WebGLRenderTarget,
|
|
8
|
+
WebGLShadowMap,
|
|
9
|
+
} from '../../../src/Three.js';
|
|
10
|
+
|
|
11
|
+
export interface OutlineEffectParameters {
|
|
12
|
+
defaultThickness?: number | undefined;
|
|
13
|
+
defaultColor?: number[] | undefined;
|
|
14
|
+
defaultAlpha?: number | undefined;
|
|
15
|
+
defaultKeepAlive?: boolean | undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class OutlineEffect {
|
|
19
|
+
constructor(renderer: WebGLRenderer, parameters?: OutlineEffectParameters);
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
autoClear: boolean;
|
|
22
|
+
domElement: HTMLElement;
|
|
23
|
+
shadowMap: WebGLShadowMap;
|
|
24
|
+
|
|
25
|
+
clear(color?: boolean, depth?: boolean, stencil?: boolean): void;
|
|
26
|
+
getPixelRatio(): number;
|
|
27
|
+
getSize(target: Vector2): Vector2;
|
|
28
|
+
render(scene: Scene, camera: Camera): void;
|
|
29
|
+
renderOutline(scene: Scene, camera: Camera): void;
|
|
30
|
+
setRenderTarget(renderTarget: WebGLRenderTarget | null): void;
|
|
31
|
+
setPixelRatio(value: number): void;
|
|
32
|
+
setScissor(x: Vector4 | number, y?: number, width?: number, height?: number): void;
|
|
33
|
+
setScissorTest(enable: boolean): void;
|
|
34
|
+
setSize(width: number, height: number, updateStyle?: boolean): void;
|
|
35
|
+
setViewport(x: Vector4 | number, y?: number, width?: number, height?: number): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Object3D } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export interface PLYExporterOptionsBase {
|
|
4
|
+
excludeAttributes?: string[];
|
|
5
|
+
littleEndian?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface PLYExporterOptionsBinary extends PLYExporterOptionsBase {
|
|
9
|
+
binary: true;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface PLYExporterOptionsString extends PLYExporterOptionsBase {
|
|
13
|
+
binary?: false;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface PLYExporterOptions extends PLYExporterOptionsBase {
|
|
17
|
+
binary?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class PLYExporter {
|
|
21
|
+
constructor();
|
|
22
|
+
|
|
23
|
+
parse(object: Object3D, onDone: (res: ArrayBuffer) => void, options: PLYExporterOptionsBinary): ArrayBuffer | null;
|
|
24
|
+
parse(object: Object3D, onDone: (res: string) => void, options?: PLYExporterOptionsString): string | null;
|
|
25
|
+
parse(
|
|
26
|
+
object: Object3D,
|
|
27
|
+
onDone: (res: string | ArrayBuffer) => void,
|
|
28
|
+
options?: PLYExporterOptions,
|
|
29
|
+
): string | ArrayBuffer | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Object3D } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export interface STLExporterOptionsBinary {
|
|
4
|
+
binary: true;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface STLExporterOptionsString {
|
|
8
|
+
binary?: false;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface STLExporterOptions {
|
|
12
|
+
binary?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class STLExporter {
|
|
16
|
+
constructor();
|
|
17
|
+
|
|
18
|
+
parse(scene: Object3D, options: STLExporterOptionsBinary): DataView;
|
|
19
|
+
parse(scene: Object3D, options?: STLExporterOptionsString): string;
|
|
20
|
+
parse(scene: Object3D, options?: STLExporterOptions): string | DataView;
|
|
21
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ExtrudeGeometry, ExtrudeGeometryOptions, Shape } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
import { Font } from '../loaders/FontLoader.js';
|
|
4
|
+
|
|
5
|
+
export interface TextGeometryParameters extends ExtrudeGeometryOptions {
|
|
6
|
+
font: Font;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Size of the text
|
|
10
|
+
* Expects a `Float`.
|
|
11
|
+
* @defaultValue `100`
|
|
12
|
+
*/
|
|
13
|
+
size?: number | undefined;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Thickness to extrude text.
|
|
17
|
+
* Expects a `Float`.
|
|
18
|
+
* @defaultValue `50`
|
|
19
|
+
*/
|
|
20
|
+
height?: number | undefined;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @override
|
|
24
|
+
* @defaultValue `12`
|
|
25
|
+
*/
|
|
26
|
+
curveSegments?: number | undefined;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @defaultValue `false`
|
|
30
|
+
*/
|
|
31
|
+
bevelEnabled?: boolean | undefined;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* How deep into text bevel goes.
|
|
35
|
+
* Expects a `Float`.
|
|
36
|
+
* @override
|
|
37
|
+
* @defaultValue `10`
|
|
38
|
+
*/
|
|
39
|
+
bevelThickness?: number | undefined;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* How far from text outline is bevel.
|
|
43
|
+
* Expects a `Float`.
|
|
44
|
+
* @override
|
|
45
|
+
* @defaultValue `8`
|
|
46
|
+
*/
|
|
47
|
+
bevelSize?: number | undefined;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* How far from text outline bevel starts.
|
|
51
|
+
* Expects a `Float`.
|
|
52
|
+
* @override
|
|
53
|
+
* @defaultValue `0`
|
|
54
|
+
*/
|
|
55
|
+
bevelOffset?: number | undefined;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @override
|
|
59
|
+
* @defaultValue `3`
|
|
60
|
+
*/
|
|
61
|
+
bevelSegments?: number | undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* A class for generating text as a single geometry
|
|
66
|
+
* @remarks
|
|
67
|
+
* It is constructed by providing a string of text, and a set of parameters consisting of a loaded font and settings for the geometry's parent {@link THREE.ExtrudeGeometry | ExtrudeGeometry}
|
|
68
|
+
* See the {@link THREE.FontLoader | FontLoader} page for additional details.
|
|
69
|
+
* @example
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const loader = new FontLoader();
|
|
72
|
+
* loader.load('fonts/helvetiker_regular.typeface.json', function (font) {
|
|
73
|
+
* const geometry = new TextGeometry('Hello three.js!', {
|
|
74
|
+
* font: font,
|
|
75
|
+
* size: 80,
|
|
76
|
+
* height: 5,
|
|
77
|
+
* curveSegments: 12,
|
|
78
|
+
* bevelEnabled: true,
|
|
79
|
+
* bevelThickness: 10,
|
|
80
|
+
* bevelSize: 8,
|
|
81
|
+
* bevelOffset: 0,
|
|
82
|
+
* bevelSegments: 5
|
|
83
|
+
* });
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
* @see Example: {@link https://threejs.org/examples/#webgl_geometry_text | geometry / text }
|
|
87
|
+
* @see {@link https://threejs.org/docs/index.html#api/en/C:/rafaelsc/Source/threejs/three.js/docs/examples/en/geometries/TextGeometry | Official Documentation}
|
|
88
|
+
* @see {@link https://github.com/mrdoob/three.js/blob/master/examples/jsm/geometries/TextGeometry.js | Source}
|
|
89
|
+
*/
|
|
90
|
+
export class TextGeometry extends ExtrudeGeometry {
|
|
91
|
+
/**
|
|
92
|
+
* Create a new instance of {@link TextGeometry}
|
|
93
|
+
* @param text The text that needs to be shown.
|
|
94
|
+
* @param parameters Object that can contain the following parameters. @see {@link TextGeometryParameters} for defaults.
|
|
95
|
+
*/
|
|
96
|
+
constructor(text: string, parameters?: TextGeometryParameters);
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* A Read-only _string_ to check if `this` object type.
|
|
100
|
+
* @remarks Sub-classes will update this value.
|
|
101
|
+
* @defaultValue `TextGeometry`
|
|
102
|
+
*/
|
|
103
|
+
override readonly type: string | 'TextGeometry';
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* An object with a property for each of the constructor parameters.
|
|
107
|
+
* @remarks Any modification after instantiation does not change the geometry.
|
|
108
|
+
*/
|
|
109
|
+
readonly parameters: {
|
|
110
|
+
readonly shapes: Shape | Shape[];
|
|
111
|
+
readonly options: TextGeometryParameters;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export { TextGeometry as TextBufferGeometry };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Line, RectAreaLight, ColorRepresentation } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export class RectAreaLightHelper extends Line {
|
|
4
|
+
constructor(light: RectAreaLight, color?: ColorRepresentation);
|
|
5
|
+
|
|
6
|
+
light: RectAreaLight;
|
|
7
|
+
color: ColorRepresentation | undefined;
|
|
8
|
+
|
|
9
|
+
dispose(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Camera, Object3D, Vector3, WebGLRenderer } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export class ViewHelper extends Object3D {
|
|
4
|
+
animating: boolean;
|
|
5
|
+
center: Vector3;
|
|
6
|
+
|
|
7
|
+
readonly isViewHelper: true;
|
|
8
|
+
|
|
9
|
+
constructor(camera: Camera, domElement: HTMLElement);
|
|
10
|
+
|
|
11
|
+
render(renderer: WebGLRenderer): void;
|
|
12
|
+
handleClick(event: MouseEvent): boolean;
|
|
13
|
+
update(delta: number): void;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'fflate';
|