@types/three 0.142.0 → 0.143.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.
Files changed (118) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/nodes/Nodes.d.ts +215 -0
  3. three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
  4. three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
  5. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +11 -0
  6. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
  7. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
  8. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
  9. three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
  10. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
  11. three/examples/jsm/nodes/accessors/NormalNode.d.ts +17 -0
  12. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
  13. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
  14. three/examples/jsm/nodes/accessors/PositionNode.d.ts +19 -0
  15. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
  16. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
  17. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
  18. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
  19. three/examples/jsm/nodes/accessors/TextureNode.d.ts +12 -0
  20. three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
  21. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
  22. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
  23. three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
  24. three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
  25. three/examples/jsm/nodes/core/CodeNode.d.ts +16 -0
  26. three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
  27. three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
  28. three/examples/jsm/nodes/core/ExpressionNode.d.ts +7 -0
  29. three/examples/jsm/nodes/core/FunctionCallNode.d.ts +13 -0
  30. three/examples/jsm/nodes/core/FunctionNode.d.ts +15 -0
  31. three/examples/jsm/nodes/core/InputNode.d.ts +12 -0
  32. three/examples/jsm/nodes/core/InstanceIndexNode.d.ts +6 -0
  33. three/examples/jsm/nodes/core/Node.d.ts +30 -0
  34. three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
  35. three/examples/jsm/nodes/core/NodeBuilder.d.ts +134 -0
  36. three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
  37. three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
  38. three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
  39. three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
  40. three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
  41. three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
  42. three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
  43. three/examples/jsm/nodes/core/NodeUtils.d.ts +6 -0
  44. three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
  45. three/examples/jsm/nodes/core/NodeVary.d.ts +6 -0
  46. three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
  47. three/examples/jsm/nodes/core/TempNode.d.ts +8 -0
  48. three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
  49. three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
  50. three/examples/jsm/nodes/core/VaryNode.d.ts +8 -0
  51. three/examples/jsm/nodes/core/constants.d.ts +77 -0
  52. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
  53. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +15 -0
  54. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
  55. three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
  56. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
  57. three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
  58. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
  59. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
  60. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
  61. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
  62. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
  63. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
  64. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
  65. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
  66. three/examples/jsm/nodes/functions/light/getDistanceAttenuation.d.ts +5 -0
  67. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
  68. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
  69. three/examples/jsm/nodes/geometry/RangeNode.d.ts +12 -0
  70. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
  71. three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
  72. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
  73. three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
  74. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
  75. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
  76. three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
  77. three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
  78. three/examples/jsm/nodes/lighting/PunctualLightNode.d.ts +12 -0
  79. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +21 -0
  80. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
  81. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +11 -0
  82. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +16 -0
  83. three/examples/jsm/nodes/materials/Materials.d.ts +15 -0
  84. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +19 -0
  85. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +27 -0
  86. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +22 -0
  87. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
  88. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
  89. three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
  90. three/examples/jsm/nodes/math/MathNode.d.ts +116 -0
  91. three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
  92. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
  93. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +155 -0
  94. three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +267 -0
  95. three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +128 -0
  96. three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
  97. three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
  98. three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
  99. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
  100. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +7 -0
  101. three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
  102. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
  103. three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
  104. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
  105. three/examples/jsm/nodes/utils/TimerNode.d.ts +14 -0
  106. three/examples/jsm/objects/GroundProjectedEnv.d.ts +13 -0
  107. three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +5 -0
  108. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +56 -0
  109. three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
  110. three/examples/jsm/renderers/webgl/nodes/WebGLPhysicalContextNode.d.ts +13 -0
  111. three/examples/jsm/textures/FlakesTexture.d.ts +3 -0
  112. three/index.d.ts +2 -2
  113. three/package.json +2 -2
  114. three/src/Three.d.ts +4 -1
  115. three/src/animation/AnimationUtils.d.ts +32 -34
  116. three/src/core/UniformsGroup.d.ts +27 -0
  117. three/src/renderers/shaders/UniformsUtils.d.ts +6 -1
  118. three/src/renderers/webgl/WebGLUniformsGroups.d.ts +17 -0
@@ -1,38 +1,36 @@
1
1
  import { AnimationClip } from './AnimationClip';
2
2
 
3
- export namespace AnimationUtils {
4
- function arraySlice(array: any, from: number, to: number): any;
5
- function convertArray(array: any, type: any, forceClone: boolean): any;
6
- function isTypedArray(object: any): boolean;
7
- function getKeyframeOrder(times: number[]): number[];
8
- function sortedArray(values: any[], stride: number, order: number[]): any[];
9
- function flattenJSON(jsonKeys: string[], times: any[], values: any[], valuePropertyName: string): void;
3
+ export function arraySlice(array: any, from: number, to: number): any;
4
+ export function convertArray(array: any, type: any, forceClone: boolean): any;
5
+ export function isTypedArray(object: any): boolean;
6
+ export function getKeyframeOrder(times: number[]): number[];
7
+ export function sortedArray(values: any[], stride: number, order: number[]): any[];
8
+ export function flattenJSON(jsonKeys: string[], times: any[], values: any[], valuePropertyName: string): void;
10
9
 
11
- /**
12
- * @param sourceClip
13
- * @param name
14
- * @param startFrame
15
- * @param endFrame
16
- * @param [fps=30]
17
- */
18
- function subclip(
19
- sourceClip: AnimationClip,
20
- name: string,
21
- startFrame: number,
22
- endFrame: number,
23
- fps?: number,
24
- ): AnimationClip;
10
+ /**
11
+ * @param sourceClip
12
+ * @param name
13
+ * @param startFrame
14
+ * @param endFrame
15
+ * @param [fps=30]
16
+ */
17
+ export function subclip(
18
+ sourceClip: AnimationClip,
19
+ name: string,
20
+ startFrame: number,
21
+ endFrame: number,
22
+ fps?: number,
23
+ ): AnimationClip;
25
24
 
26
- /**
27
- * @param targetClip
28
- * @param [referenceFrame=0]
29
- * @param [referenceClip=targetClip]
30
- * @param [fps=30]
31
- */
32
- function makeClipAdditive(
33
- targetClip: AnimationClip,
34
- referenceFrame?: number,
35
- referenceClip?: AnimationClip,
36
- fps?: number,
37
- ): AnimationClip;
38
- }
25
+ /**
26
+ * @param targetClip
27
+ * @param [referenceFrame=0]
28
+ * @param [referenceClip=targetClip]
29
+ * @param [fps=30]
30
+ */
31
+ export function makeClipAdditive(
32
+ targetClip: AnimationClip,
33
+ referenceFrame?: number,
34
+ referenceClip?: AnimationClip,
35
+ fps?: number,
36
+ ): AnimationClip;
@@ -0,0 +1,27 @@
1
+ import { EventDispatcher } from './EventDispatcher';
2
+ import { Uniform } from './Uniform';
3
+
4
+ import { Usage } from '../constants';
5
+
6
+ export class UniformsGroup extends EventDispatcher {
7
+ isUniformsGroup: true;
8
+ id: number;
9
+ usage: Usage;
10
+ uniforms: Uniform[];
11
+
12
+ constructor();
13
+
14
+ add(uniform: Uniform): this;
15
+
16
+ remove(uniform: Uniform): this;
17
+
18
+ setName(name: string): this;
19
+
20
+ setUsage(value: Usage): this;
21
+
22
+ dispose(): this;
23
+
24
+ copy(source: UniformsGroup): this;
25
+
26
+ clone(): UniformsGroup;
27
+ }
@@ -1,5 +1,10 @@
1
+ import { Uniform } from '../../core/Uniform';
2
+ import { UniformsGroup } from '../../core/UniformsGroup';
3
+
1
4
  export function cloneUniforms(uniforms_src: any): any;
2
- export function mergeUniforms(uniforms: any[]): any;
5
+ export function mergeUniforms(uniforms: any): any;
6
+
7
+ export function cloneUniformsGroups(src: UniformsGroup[]): UniformsGroup[];
3
8
 
4
9
  export namespace UniformsUtils {
5
10
  export { mergeUniforms as merge, cloneUniforms as clone };
@@ -0,0 +1,17 @@
1
+ import { UniformsGroup } from '../../core/UniformsGroup';
2
+
3
+ import { WebGLCapabilities } from './WebGLCapabilities';
4
+ import { WebGLInfo } from './WebGLInfo';
5
+ import { WebGLProgram } from './WebGLProgram';
6
+ import { WebGLState } from './WebGLState';
7
+
8
+ export function WebGLUniformsGroups(
9
+ gl: WebGLRenderingContext,
10
+ info: WebGLInfo,
11
+ capabilities: WebGLCapabilities,
12
+ state: WebGLState,
13
+ ): {
14
+ dispose: () => void;
15
+ update: (uniformsGroup: UniformsGroup, program: WebGLProgram) => void;
16
+ bind: (uniformsGroup: UniformsGroup, program: WebGLProgram) => void;
17
+ };