@types/three
Advanced tools
Comparing version 0.144.0 to 0.146.0
@@ -24,3 +24,4 @@ import { Object3D, SkinnedMesh } from '../../../src/Three'; | ||
export class CCDIKHelper extends Object3D { | ||
constructor(mesh: SkinnedMesh, iks: IKS[]); | ||
constructor(mesh: SkinnedMesh, iks?: IKS[], sphereSize?: number); | ||
dispose(): void; | ||
} |
@@ -118,3 +118,8 @@ import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from '../../../src/Three'; | ||
export class MMDPhysicsHelper extends Object3D { | ||
constructor(); | ||
mesh: THREE.SkinnedMesh; | ||
physics: MMDPhysics; | ||
materials: [THREE.MeshBasicMaterial, THREE.MeshBasicMaterial, THREE.MeshBasicMaterial]; | ||
constructor(mesh: THREE.SkinnedMesh, physics: MMDPhysics); | ||
dispose(): void; | ||
} |
@@ -26,2 +26,3 @@ import { | ||
update(): void; | ||
dispose(): void; | ||
} |
@@ -14,2 +14,5 @@ import { ColorRepresentation, LineSegments } from '../../../src/Three'; | ||
type: 'OctreeHelper' | string; | ||
update(): void; | ||
dispose(): void; | ||
} |
@@ -10,2 +10,4 @@ import { Object3D, LineSegments } from '../../../src/Three'; | ||
update(): void; | ||
dispose(): void; | ||
} |
@@ -10,2 +10,4 @@ import { Object3D, LineSegments } from '../../../src/Three'; | ||
update(): void; | ||
dispose(): void; | ||
} |
@@ -14,3 +14,3 @@ import { Points, Loader, LoadingManager } from '../../../src/Three'; | ||
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Points>; | ||
parse(data: ArrayBuffer | string, url: string): Points; | ||
parse(data: ArrayBuffer | string): Points; | ||
} |
@@ -10,3 +10,2 @@ import { LoadingManager, DataTextureLoader, TextureDataType, PixelFormat } from '../../../src/Three'; | ||
exposure: number; | ||
format: PixelFormat; | ||
type: TextureDataType; | ||
@@ -13,0 +12,0 @@ } |
import Node from '../core/Node'; | ||
export type NormalNodeScope = | ||
| typeof NormalNode.GEOMETRY | ||
| typeof NormalNode.LOCAL | ||
| typeof NormalNode.WORLD | ||
| typeof NormalNode.VIEW; | ||
export type NormalNodeScope = typeof NormalNode.GEOMETRY | typeof NormalNode.LOCAL | typeof NormalNode.VIEW; | ||
@@ -12,3 +8,2 @@ export default class NormalNode extends Node { | ||
static LOCAL: 'local'; | ||
static WORLD: 'world'; | ||
static VIEW: 'view'; | ||
@@ -15,0 +10,0 @@ scope: NormalNodeScope; |
@@ -7,2 +7,3 @@ import Node from '../core/Node'; | ||
| typeof PositionNode.WORLD | ||
| typeof PositionNode.WORLD_DIRECTION | ||
| typeof PositionNode.VIEW | ||
@@ -15,2 +16,3 @@ | typeof PositionNode.VIEW_DIRECTION; | ||
static WORLD: 'world'; | ||
static WORLD_DIRECTION: 'worldDirection'; | ||
static VIEW: 'view'; | ||
@@ -17,0 +19,0 @@ static VIEW_DIRECTION: 'viewDirection'; |
@@ -5,10 +5,10 @@ import { Color, Matrix3, Matrix4, Vector2, Vector3, Vector4 } from '../../../../src/Three'; | ||
export const NodeShaderStage: { | ||
Vertex: 'vertex'; | ||
Fragment: 'fragment'; | ||
VERTEX: 'vertex'; | ||
FRAGMENT: 'fragment'; | ||
}; | ||
export const NodeUpdateType: { | ||
None: 'none'; | ||
Frame: 'frame'; | ||
Object: 'object'; | ||
NONE: 'none'; | ||
FRAME: 'frame'; | ||
OBJECT: 'object'; | ||
}; | ||
@@ -70,10 +70,10 @@ | ||
export const NodeType: { | ||
Boolean: 'bool'; | ||
Integer: 'int'; | ||
Float: 'float'; | ||
Vector2: 'vec2'; | ||
Vector3: 'vec3'; | ||
Vector4: 'vec4'; | ||
Matrix3: 'mat3'; | ||
Matrix4: 'mat4'; | ||
BOOLEAN: 'bool'; | ||
INTEGER: 'int'; | ||
FLOAT: 'float'; | ||
VECTOR2: 'vec2'; | ||
VECTOR3: 'vec3'; | ||
VECTOR4: 'vec4'; | ||
MATRIX3: 'mat3'; | ||
MATRIX4: 'mat4'; | ||
}; |
@@ -20,3 +20,3 @@ import { | ||
import NodeVar from './NodeVar'; | ||
import NodeVary from './NodeVary'; | ||
import NodeVarying from './NodeVarying'; | ||
@@ -86,3 +86,3 @@ export type BuildStageOption = 'construct' | 'analyze' | 'generate'; | ||
// @TODO: rename to .generateConst() | ||
getConst(type: NodeTypeOption, value: unknown): Node; | ||
getConst(type: NodeTypeOption, value?: unknown): Node; | ||
getType(type: NodeTypeOption): NodeTypeOption; | ||
@@ -110,3 +110,3 @@ | ||
getVarFromNode(node: Node, type: NodeTypeOption, shaderStage?: NodeShaderStageOption): NodeVar; | ||
getVaryFromNode(node: Node, type: NodeTypeOption): NodeVary; | ||
getVaryFromNode(node: Node, type: NodeTypeOption): NodeVarying; | ||
getCodeFromNode(node: Node, type: NodeTypeOption, shaderStage?: NodeShaderStageOption): string; | ||
@@ -123,2 +123,3 @@ addFlowCode(code: string): void; | ||
): FlowData; | ||
hasGeometryAttribute(name: string): boolean; | ||
abstract getAttributes(shaderStage: NodeShaderStageOption): string; | ||
@@ -125,0 +126,0 @@ abstract getVarys(shaderStage: NodeShaderStageOption): string; |
@@ -30,3 +30,2 @@ import Node from '../core/Node'; | ||
| typeof MathNode.DFDY | ||
| typeof MathNode.SATURATE | ||
| typeof MathNode.ROUND; | ||
@@ -84,4 +83,4 @@ | ||
static DFDY: 'dFdy'; | ||
static SATURATE: 'saturate'; | ||
static ROUND: 'round'; | ||
static RECIPROCAL: 'reciprocal'; | ||
@@ -88,0 +87,0 @@ // 2 inputs |
@@ -21,3 +21,3 @@ // core | ||
import NodeVar from './core/NodeVar'; | ||
import NodeVary from './core/NodeVary'; | ||
import NodeVarying from './core/NodeVarying'; | ||
import PropertyNode from './core/PropertyNode'; | ||
@@ -30,2 +30,3 @@ import TempNode from './core/TempNode'; | ||
// accessors | ||
import BitangentNode, { BitangentNodeScope } from './accessors/BitangentNode'; | ||
import BufferNode from './accessors/BufferNode'; | ||
@@ -46,2 +47,3 @@ import CameraNode, { CameraNodeScope } from './accessors/CameraNode'; | ||
import SkinningNode from './accessors/SkinningNode'; | ||
import TangentNode, { TangentNodeScope } from './accessors/TangentNode'; | ||
import TextureNode from './accessors/TextureNode'; | ||
@@ -58,2 +60,3 @@ import UVNode from './accessors/UVNode'; | ||
// display | ||
import BlendModeNode, { BlendMode } from './display/BlendModeNode'; | ||
import ColorAdjustmentNode, { ColorAdjustmentMethod } from './display/ColorAdjustmentNode'; | ||
@@ -63,2 +66,3 @@ import ColorSpaceNode, { ColorSpaceNodeMethod } from './display/ColorSpaceNode'; | ||
import NormalMapNode from './display/NormalMapNode'; | ||
import PosterizeNode from './display/PosterizeNode'; | ||
import ToneMappingNode from './display/ToneMappingNode'; | ||
@@ -85,2 +89,3 @@ | ||
import ConvertNode from './utils/ConvertNode'; | ||
import EquirectUVNode from './utils/EquirectUVNode'; | ||
import JoinNode from './utils/JoinNode'; | ||
@@ -90,2 +95,3 @@ import MatcapUVNode from './utils/MatcapUVNode'; | ||
import OscNode, { OscNodeMethod } from './utils/OscNode'; | ||
import RemapNode from './utils/RemapNode'; | ||
import RotateUVNode from './utils/RotateUVNode'; | ||
@@ -95,2 +101,3 @@ import SplitNode from './utils/SplitNode'; | ||
import TimerNode, { TimerNodeScope } from './utils/TimerNode'; | ||
import TriplanarTexturesNode from './utils/TriplanarTexturesNode'; | ||
@@ -140,3 +147,3 @@ // loaders | ||
NodeVar, | ||
NodeVary, | ||
NodeVarying, | ||
PropertyNode, | ||
@@ -153,2 +160,4 @@ TempNode, | ||
// accessors | ||
BitangentNode, | ||
BitangentNodeScope, | ||
BufferNode, | ||
@@ -174,2 +183,4 @@ CameraNode, | ||
SkinningNode, | ||
TangentNode, | ||
TangentNodeScope, | ||
TextureNode, | ||
@@ -179,2 +190,4 @@ UVNode, | ||
// display | ||
BlendModeNode, | ||
BlendMode, | ||
ColorAdjustmentNode, | ||
@@ -186,2 +199,3 @@ ColorAdjustmentMethod, | ||
NormalMapNode, | ||
PosterizeNode, | ||
ToneMappingNode, | ||
@@ -210,2 +224,3 @@ // math | ||
ConvertNode, | ||
EquirectUVNode, | ||
JoinNode, | ||
@@ -216,2 +231,3 @@ MatcapUVNode, | ||
OscNodeMethod, | ||
RemapNode, | ||
RotateUVNode, | ||
@@ -222,2 +238,3 @@ SplitNode, | ||
TimerNodeScope, | ||
TriplanarTexturesNode, | ||
// procedural | ||
@@ -224,0 +241,0 @@ CheckerNode, |
@@ -23,2 +23,3 @@ import TextureNode from '../accessors/TextureNode'; | ||
import { | ||
BitangentNode, | ||
BufferNode, | ||
@@ -47,2 +48,3 @@ BypassNode, | ||
ReferenceNode, | ||
TangentNode, | ||
UserDataNode, | ||
@@ -96,2 +98,4 @@ UVNode, | ||
export function convert(node: NodeRepresentation, types: NodeTypeOption): Swizzable; | ||
export function bypass(returnNode: NodeRepresentation, callNode: NodeRepresentation): Swizzable<BypassNode>; | ||
@@ -170,2 +174,16 @@ export function code(code: string, nodeType?: NodeTypeOption): Swizzable<CodeNode>; | ||
export const tangentGeometry: Swizzable<TangentNode>; | ||
export const tangentLocal: Swizzable<TangentNode>; | ||
export const tangentView: Swizzable<TangentNode>; | ||
export const tangentWorld: Swizzable<TangentNode>; | ||
export const transformedTangentView: Swizzable<MathNode>; | ||
export const transformedTangentWorld: Swizzable<MathNode>; | ||
export const bitangentGeometry: Swizzable<BitangentNode>; | ||
export const bitangentLocal: Swizzable<BitangentNode>; | ||
export const bitangentView: Swizzable<BitangentNode>; | ||
export const bitangentWorld: Swizzable<BitangentNode>; | ||
export const transformedBitangentView: Swizzable<MathNode>; | ||
export const transformedBitangentWorld: Swizzable<MathNode>; | ||
export const modelViewMatrix: Swizzable<ModelNode>; | ||
@@ -180,2 +198,3 @@ export const modelNormalMatrix: Swizzable<ModelNode>; | ||
export const positionWorld: Swizzable<PositionNode>; | ||
export const positionWorldDirection: Swizzable<PositionNode>; | ||
export const positionView: Swizzable<PositionNode>; | ||
@@ -254,4 +273,4 @@ export const positionViewDirection: Swizzable<PositionNode>; | ||
export const dFdy: Unary; | ||
export const saturate: Unary; | ||
export const round: Unary; | ||
export const reciprocal: Unary; | ||
@@ -290,3 +309,6 @@ export const atan2: Binary; | ||
// miscellaneous | ||
export const lumaCoeffs: Swizzable<MathNode>; | ||
export const luminance: Binary; | ||
export const difference: Binary; | ||
export const dotNV: Swizzable<MathNode>; | ||
export const transformedNormalWorld: Swizzable<MathNode>; | ||
export const TBNViewMatrix: Swizzable<MathNode>; |
@@ -15,2 +15,3 @@ import Node from '../core/Node'; | ||
import { | ||
BlendModeNode, | ||
CheckerNode, | ||
@@ -20,2 +21,3 @@ ColorAdjustmentNode, | ||
CubeTextureNode, | ||
EquirectUVNode, | ||
FogNode, | ||
@@ -29,2 +31,4 @@ FogRangeNode, | ||
OscNode, | ||
PosterizeNode, | ||
RemapNode, | ||
ReflectVectorNode, | ||
@@ -36,2 +40,3 @@ RotateUVNode, | ||
ToneMappingNode, | ||
TriplanarTexturesNode, | ||
} from '../Nodes'; | ||
@@ -76,2 +81,7 @@ | ||
export function burn(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>; | ||
export function dodge(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>; | ||
export function overlay(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>; | ||
export function screen(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>; | ||
export function saturation( | ||
@@ -95,2 +105,4 @@ colorNode: NodeRepresentation, | ||
export function posterize(sourceNode: NodeRepresentation, stepsNode: NodeRepresentation): Swizzable<PosterizeNode>; | ||
// lighting | ||
@@ -104,2 +116,4 @@ | ||
export const matcapUV: Swizzable<MatcapUVNode>; | ||
export const equirectUV: Swizzable<EquirectUVNode>; | ||
export function maxMipLevel(texture: Texture): Swizzable<MaxMipLevelNode>; | ||
@@ -112,2 +126,5 @@ | ||
export function remap(node: Node, inLowNode: Node): Swizzable<RemapNode>; | ||
export function remapClamp(node: Node, inLowNode: Node): Swizzable<RemapNode>; | ||
export function rotateUV(uvNode: Node, rotationNode: Node, centerNode?: Node): Swizzable<RotateUVNode>; | ||
@@ -124,2 +141,15 @@ | ||
export function timerDelta(timeScale: number, value?: number): Swizzable<TimerNode>; | ||
export const frameId: Swizzable<TimerNode>; | ||
export function triplanarTextures( | ||
textureXNode: NodeRepresentation, | ||
textureYNode?: NodeRepresentation, | ||
textureZNode?: NodeRepresentation, | ||
scaleNode?: NodeRepresentation, | ||
positionNode?: NodeRepresentation, | ||
normalNode?: NodeRepresentation, | ||
): Swizzable<TriplanarTexturesNode>; | ||
export function triplanarTexture( | ||
texture: NodeRepresentation, | ||
...params: NodeRepresentation[] | ||
): Swizzable<TriplanarTexturesNode>; | ||
@@ -126,0 +156,0 @@ // geometry |
import UniformNode from '../core/UniformNode'; | ||
export type TimerNodeScope = typeof TimerNode.LOCAL | typeof TimerNode.GLOBAL | typeof TimerNode.DELTA; | ||
export type TimerNodeScope = | ||
| typeof TimerNode.LOCAL | ||
| typeof TimerNode.GLOBAL | ||
| typeof TimerNode.DELTA | ||
| typeof TimerNode.FRAME; | ||
@@ -9,2 +13,3 @@ export default class TimerNode extends UniformNode { | ||
static DELTA: 'delta'; | ||
static FRAME: 'frame'; | ||
@@ -11,0 +16,0 @@ scope: TimerNodeScope; |
@@ -6,3 +6,3 @@ import { WebGLRenderTarget, ShaderMaterial } from '../../../src/Three'; | ||
export class BloomPass extends Pass { | ||
constructor(strength?: number, kernelSize?: number, sigma?: number, resolution?: number); | ||
constructor(strength?: number, kernelSize?: number, sigma?: number); | ||
renderTargetX: WebGLRenderTarget; | ||
@@ -9,0 +9,0 @@ renderTargetY: WebGLRenderTarget; |
@@ -10,4 +10,2 @@ import { Scene, Camera, ShaderMaterial, WebGLRenderTarget, MeshDepthMaterial, Color } from '../../../src/Three'; | ||
maxblur?: number; | ||
width?: number; | ||
height?: number; | ||
} | ||
@@ -14,0 +12,0 @@ |
@@ -30,2 +30,3 @@ import { Clock, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three'; | ||
setPixelRatio(pixelRatio: number): void; | ||
dispose(): void; | ||
} |
@@ -18,2 +18,4 @@ import { Material, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three'; | ||
): void; | ||
dispose(): void; | ||
} | ||
@@ -20,0 +22,0 @@ |
@@ -42,6 +42,6 @@ import NodeBuilder from '../../../nodes/core/NodeBuilder'; | ||
addCodeAfterCode(shaderStage: string, snippet: string, code: string): string; | ||
addCode(shaderStage: string, source: string, code: string, scope?: this): string; | ||
addCodeAfterInclude(shaderStage: string, snippet: string, code: string): string; | ||
replaceCode(shaderStage: string, source: string, target: string): void; | ||
replaceCode(shaderStage: string, source: string, target: string, scope?: this): void; | ||
parseInclude(shaderStage: string, ...includes: string[]): void; | ||
@@ -48,0 +48,0 @@ getTextureEncodingFromMap(map: Texture): TextureEncoding; |
@@ -11,2 +11,3 @@ import { | ||
export function deepCloneAttribute(attribute: BufferAttribute): BufferAttribute; | ||
export function mergeBufferGeometries(geometries: BufferGeometry[], useGroups?: boolean): BufferGeometry; | ||
@@ -13,0 +14,0 @@ export function mergeBufferAttributes(attributes: BufferAttribute[]): BufferAttribute; |
@@ -1,2 +0,2 @@ | ||
import { BufferGeometry, Group, InstancedMesh, Material, Object3D, Scene, Mesh } from '../../../src/Three'; | ||
import { BufferGeometry, Group, InstancedMesh, Material, Object3D, Scene, Mesh, Vector3 } from '../../../src/Three'; | ||
@@ -15,1 +15,9 @@ export function createMeshesFromInstancedMesh(instancedMesh: InstancedMesh): Group; | ||
export function createMeshesFromMultiMaterialMesh(mesh: Mesh): Group; | ||
export function sortInstancedMesh(mesh: InstancedMesh, compareFn: (a: number, b: number) => number): void; | ||
export function reduceVertices<TValue>( | ||
object: Object3D, | ||
func: (value: TValue, vertex: Vector3) => TValue, | ||
initialValue: TValue, | ||
): TValue; |
@@ -1,2 +0,2 @@ | ||
// Type definitions for three 0.144 | ||
// Type definitions for three 0.146 | ||
// Project: https://threejs.org/ | ||
@@ -3,0 +3,0 @@ // Definitions by: Josh Ellis <https://github.com/joshuaellis> |
{ | ||
"name": "@types/three", | ||
"version": "0.144.0", | ||
"version": "0.146.0", | ||
"description": "TypeScript definitions for three", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three", | ||
}, | ||
"typesPublisherContentHash": "fd44eeaf35ec2ad7992d39b9da4bfde0290790e3cec4fb679df94f09e35c72dd", | ||
"typesPublisherContentHash": "8811cec6dcb6daed91e5163eee03aeed7a0b56ad67126ce3b6ade0354b3d8614", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 02 Sep 2022 10:02:40 GMT | ||
* Last updated: Mon, 07 Nov 2022 20:26:35 GMT | ||
* Dependencies: [@types/webxr](https://npmjs.com/package/@types/webxr) | ||
@@ -14,0 +14,0 @@ * Global values: `THREE` |
@@ -113,2 +113,9 @@ import { Vector3 } from './../math/Vector3'; | ||
/** | ||
* When this is set, the renderer checks every frame if the object and its children need matrix updates. | ||
* Otherwise, you have to maintain all matrices in the object and its children yourself. | ||
* @default THREE.Object3D.DefaultMatrixWorldAutoUpdate | ||
*/ | ||
matrixWorldAutoUpdate: boolean; | ||
/** | ||
* When this is set, it calculates the matrixWorld in that frame and resets this property to false. | ||
@@ -214,2 +221,3 @@ * @default false | ||
static DefaultMatrixAutoUpdate: boolean; | ||
static DefaultMatrixWorldAutoUpdate: boolean; | ||
@@ -369,3 +377,3 @@ /** | ||
getObjectByProperty(name: string, value: string): Object3D | undefined; | ||
getObjectByProperty(name: string, value: any): Object3D | undefined; | ||
@@ -372,0 +380,0 @@ getWorldPosition(target: Vector3): Vector3; |
@@ -58,2 +58,6 @@ import { Vector3 } from './../math/Vector3'; | ||
setColor(color: ColorRepresentation): void; | ||
copy(source: this): this; | ||
dispose(): void; | ||
} |
@@ -18,2 +18,4 @@ import { Box3 } from './../math/Box3'; | ||
box: Box3; | ||
dispose(): void; | ||
} |
@@ -20,2 +20,4 @@ import { ColorRepresentation } from '../utils'; | ||
setFromObject(object: Object3D): this; | ||
dispose(): void; | ||
} |
@@ -18,6 +18,3 @@ import { ColorRepresentation } from '../utils'; | ||
/** | ||
* @deprecated Colors should be specified in the constructor. | ||
*/ | ||
setColors(color1?: ColorRepresentation, color2?: ColorRepresentation): void; | ||
dispose(): void; | ||
} |
@@ -25,2 +25,4 @@ import { Plane } from './../math/Plane'; | ||
updateMatrixWorld(force?: boolean): void; | ||
dispose(): void; | ||
} |
@@ -26,2 +26,4 @@ import { LineSegments } from '../objects/LineSegments'; | ||
type: string; | ||
dispose(): void; | ||
} |
@@ -28,2 +28,4 @@ import { Object3D } from './../core/Object3D'; | ||
update(): void; | ||
dispose(): void; | ||
} |
@@ -10,3 +10,3 @@ import { Loader } from './Loader'; | ||
url: string, | ||
onLoad: (dataTexture: DataTexture, texData: object) => void, | ||
onLoad?: (dataTexture: DataTexture, texData: object) => void, | ||
onProgress?: (event: ProgressEvent) => void, | ||
@@ -13,0 +13,0 @@ onError?: (event: ErrorEvent) => void, |
@@ -70,3 +70,3 @@ import { Color } from './../math/Color'; | ||
*/ | ||
dispalcementScale: number; | ||
displacementScale: number; | ||
@@ -73,0 +73,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { LinearSRGBColorSpace, SRGBColorSpace } from '../constants'; | ||
import { ColorSpace, LinearSRGBColorSpace, SRGBColorSpace } from '../constants'; | ||
import { Color } from './Color'; | ||
@@ -9,2 +9,12 @@ | ||
export namespace ColorManagement { | ||
/** | ||
* @default true | ||
*/ | ||
let legacyMode: boolean; | ||
/** | ||
* @default LinearSRGBColorSpace | ||
*/ | ||
let workingColorSpace: ColorSpace; | ||
function convert( | ||
@@ -11,0 +21,0 @@ color: Color, |
@@ -5,4 +5,6 @@ import { Matrix4 } from './Matrix4'; | ||
export type EulerOrder = 'XYZ' | 'YXZ' | 'ZXY' | 'ZYX' | 'YZX' | 'XZY'; | ||
export class Euler { | ||
constructor(x?: number, y?: number, z?: number, order?: string); | ||
constructor(x?: number, y?: number, z?: number, order?: EulerOrder); | ||
@@ -27,3 +29,3 @@ /** | ||
*/ | ||
order: string; | ||
order: EulerOrder; | ||
readonly isEuler: true; | ||
@@ -33,18 +35,18 @@ | ||
set(x: number, y: number, z: number, order?: string): Euler; | ||
set(x: number, y: number, z: number, order?: EulerOrder): Euler; | ||
clone(): this; | ||
copy(euler: Euler): this; | ||
setFromRotationMatrix(m: Matrix4, order?: string, update?: boolean): Euler; | ||
setFromQuaternion(q: Quaternion, order?: string, update?: boolean): Euler; | ||
setFromVector3(v: Vector3, order?: string): Euler; | ||
reorder(newOrder: string): Euler; | ||
setFromRotationMatrix(m: Matrix4, order?: EulerOrder, update?: boolean): Euler; | ||
setFromQuaternion(q: Quaternion, order?: EulerOrder, update?: boolean): Euler; | ||
setFromVector3(v: Vector3, order?: EulerOrder): Euler; | ||
reorder(newOrder: EulerOrder): Euler; | ||
equals(euler: Euler): boolean; | ||
fromArray(xyzo: any[]): Euler; | ||
toArray(array?: number[], offset?: number): number[]; | ||
fromArray(xyzo: [number, number, number, EulerOrder?, ...any[]]): Euler; | ||
toArray(array?: Array<number | string | undefined>, offset?: number): Array<number | string | undefined>; | ||
_onChange(callback: () => void): this; | ||
static RotationOrders: string[]; | ||
static DefaultOrder: string; | ||
static RotationOrders: EulerOrder[]; | ||
static DefaultOrder: 'XYZ'; | ||
[Symbol.iterator](): Generator<string | number, void>; | ||
} |
import { Euler } from './Euler'; | ||
import { Vector3 } from './Vector3'; | ||
import { Matrix4 } from './Matrix4'; | ||
import { BufferAttribute } from '../core/BufferAttribute'; | ||
import { InterleavedBufferAttribute } from '../core/InterleavedBufferAttribute'; | ||
@@ -139,2 +141,9 @@ /** | ||
/** | ||
* Sets x, y, z, w properties of this quaternion from the attribute. | ||
* @param attribute the source attribute. | ||
* @param index index in the attribute. | ||
*/ | ||
fromBufferAttribute(attribute: BufferAttribute | InterleavedBufferAttribute, index: number): Quaternion; | ||
_onChange(callback: () => void): Quaternion; | ||
@@ -151,3 +160,3 @@ _onChangeCallback: () => void; | ||
t: number, | ||
): Quaternion; | ||
): void; | ||
@@ -154,0 +163,0 @@ static multiplyQuaternionsFlat( |
@@ -22,4 +22,5 @@ // tslint:disable-next-line:interface-name | ||
reflectivity: IUniform; | ||
refractionRatio: IUniform; | ||
maxMipLevel: IUniform; | ||
ior: IUniform; | ||
refractRatio: IUniform; | ||
backgroundBlurriness: IUniform; | ||
}; | ||
@@ -26,0 +27,0 @@ aomap: { |
@@ -23,2 +23,3 @@ export interface WebGLCapabilitiesParameters { | ||
floatVertexTextures: boolean; | ||
maxSamples: number; | ||
@@ -25,0 +26,0 @@ getMaxAnisotropy(): number; |
@@ -15,3 +15,3 @@ import { Data3DTexture } from '../textures/Data3DTexture'; | ||
*/ | ||
constructor(width: number, height: number, depth: number); | ||
constructor(width?: number, height?: number, depth?: number); | ||
@@ -18,0 +18,0 @@ /** |
@@ -15,3 +15,3 @@ import { DataArrayTexture } from '../textures/DataArrayTexture'; | ||
*/ | ||
constructor(width: number, height: number, depth: number); | ||
constructor(width?: number, height?: number, depth?: number); | ||
@@ -18,0 +18,0 @@ /** |
@@ -7,3 +7,3 @@ import { WebGLRenderTargetOptions, WebGLRenderTarget } from './WebGLRenderTarget'; | ||
export class WebGLCubeRenderTarget extends WebGLRenderTarget { | ||
constructor(size: number, options?: WebGLRenderTargetOptions); | ||
constructor(size?: number, options?: WebGLRenderTargetOptions); | ||
@@ -10,0 +10,0 @@ texture: CubeTexture; |
@@ -21,3 +21,3 @@ import { EventDispatcher } from '../core/EventDispatcher'; | ||
*/ | ||
constructor(width: number, height: number, count: number, options?: WebGLRenderTargetOptions); | ||
constructor(width?: number, height?: number, count?: number, options?: WebGLRenderTargetOptions); | ||
@@ -24,0 +24,0 @@ setSize(width: number, height: number, depth?: number): this; |
@@ -20,3 +20,3 @@ import { Scene } from './../scenes/Scene'; | ||
import { BufferGeometry } from './../core/BufferGeometry'; | ||
import { Texture } from '../textures/Texture'; | ||
import { OffscreenCanvas, Texture } from '../textures/Texture'; | ||
import { Data3DTexture } from '../textures/Data3DTexture'; | ||
@@ -35,6 +35,2 @@ import { Vector3 } from '../math/Vector3'; | ||
/** This is only available in worker JS contexts, not the DOM. */ | ||
// tslint:disable-next-line:no-empty-interface | ||
export interface OffscreenCanvas extends EventTarget {} | ||
export interface WebGLRendererParameters { | ||
@@ -41,0 +37,0 @@ /** |
@@ -29,3 +29,3 @@ import { Vector4 } from './../math/Vector4'; | ||
export class WebGLRenderTarget extends EventDispatcher { | ||
constructor(width: number, height: number, options?: WebGLRenderTargetOptions); | ||
constructor(width?: number, height?: number, options?: WebGLRenderTargetOptions); | ||
@@ -32,0 +32,0 @@ width: number; |
@@ -25,2 +25,4 @@ import { FogBase } from './Fog'; | ||
backgroundBlurriness: number; | ||
/** | ||
@@ -33,7 +35,2 @@ * If not null, it will force everything in the scene to be rendered with that material. Default is null. | ||
/** | ||
* @default true | ||
*/ | ||
autoUpdate: boolean; | ||
/** | ||
* @default null | ||
@@ -40,0 +37,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import { Texture } from './Texture'; | ||
import { OffscreenCanvas, Texture } from './Texture'; | ||
import { Mapping, Wrapping, TextureFilter, PixelFormat, TextureDataType } from '../constants'; | ||
@@ -18,3 +18,3 @@ | ||
constructor( | ||
canvas: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, | ||
canvas: TexImageSource | OffscreenCanvas, | ||
mapping?: Mapping, | ||
@@ -21,0 +21,0 @@ wrapS?: Wrapping, |
@@ -15,2 +15,6 @@ import { Vector2 } from './../math/Vector2'; | ||
/** Shim for OffscreenCanvas. */ | ||
// tslint:disable-next-line:no-empty-interface | ||
export interface OffscreenCanvas extends EventTarget {} | ||
export class Texture extends EventDispatcher { | ||
@@ -30,3 +34,3 @@ /** | ||
constructor( | ||
image?: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, | ||
image?: TexImageSource | OffscreenCanvas, | ||
mapping?: Mapping, | ||
@@ -33,0 +37,0 @@ wrapS?: Wrapping, |
@@ -161,2 +161,3 @@ /** | ||
export * from './math/SphericalHarmonics3'; | ||
export { ColorManagement } from './math/ColorManagement'; | ||
import * as MathUtils from './math/MathUtils'; | ||
@@ -227,2 +228,3 @@ export { MathUtils }; | ||
export * from './textures/VideoTexture'; | ||
export * from './textures/CompressedArrayTexture'; | ||
export * from './textures/DataTexture'; | ||
@@ -229,0 +231,0 @@ export * from './textures/DataTexture2DArray'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
670037
623
20175