Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions types/aframe/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import * as anime from "animejs";
import * as three from "three";
import * as threeDeprecated from "three/examples/jsm/deprecated/Geometry";

export type ThreeLib = typeof three;
export type AnimeLib = typeof anime;
Expand Down Expand Up @@ -194,7 +193,7 @@ export interface EntityEventMap {
export interface Geometry<T = any> {
data: T;
name: string;
geometry: threeDeprecated.Geometry;
geometry: three.BufferGeometry;
schema: Schema<any>;

init(data: any): void;
Expand Down
3 changes: 1 addition & 2 deletions types/aframe/test/aframe-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
SystemDefinition,
THREE,
} from "aframe";
import * as threeDeprecated from "three/examples/jsm/deprecated/Geometry";

// Global
const threeCamera = new AFRAME.THREE.OrthographicCamera();
Expand Down Expand Up @@ -122,7 +121,7 @@ AFRAME.registerGeometry("a-test-geometry", {
groupIndex: { default: 0 },
},
init(data) {
this.geometry = new threeDeprecated.Geometry();
this.geometry = new THREE.BufferGeometry();
const temp = data.groupIndex;
temp;
},
Expand Down
1 change: 1 addition & 0 deletions types/three/build/three.webgpu.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "../src/Three.WebGPU.js";
1 change: 1 addition & 0 deletions types/three/build/three.webgpu.min.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "../src/Three.WebGPU.js";
2 changes: 1 addition & 1 deletion types/three/examples/jsm/Addons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export * from "./interactive/InteractiveGroup.js";
export * from "./interactive/SelectionBox.js";
export * from "./interactive/SelectionHelper.js";

export { default as IESSpotLight } from "./lights/IESSpotLight.js";
export * from "./lights/LightProbeGenerator.js";
export * from "./lights/RectAreaLightUniformsLib.js";

Expand Down Expand Up @@ -125,6 +124,7 @@ export * from "./loaders/TGALoader.js";
export * from "./loaders/TIFFLoader.js";
export * from "./loaders/TiltLoader.js";
export * from "./loaders/TTFLoader.js";
export * from "./loaders/UltraHDRLoader.js";
export * from "./loaders/USDZLoader.js";
export * from "./loaders/VOXLoader.js";
export * from "./loaders/VRMLLoader.js";
Expand Down
8 changes: 4 additions & 4 deletions types/three/examples/jsm/animation/MMDPhysics.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from "three";
import { Bone, Euler, Matrix4, MeshBasicMaterial, Object3D, Quaternion, SkinnedMesh, Vector3 } from "three";

export interface MMDPhysicsParameter {
unitStep?: number | undefined;
Expand Down Expand Up @@ -115,10 +115,10 @@ export class Constraint {
}

export class MMDPhysicsHelper extends Object3D {
mesh: THREE.SkinnedMesh;
mesh: SkinnedMesh;
physics: MMDPhysics;
materials: [THREE.MeshBasicMaterial, THREE.MeshBasicMaterial, THREE.MeshBasicMaterial];
materials: [MeshBasicMaterial, MeshBasicMaterial, MeshBasicMaterial];

constructor(mesh: THREE.SkinnedMesh, physics: MMDPhysics);
constructor(mesh: SkinnedMesh, physics: MMDPhysics);
dispose(): void;
}
7 changes: 3 additions & 4 deletions types/three/examples/jsm/csm/CSM.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Camera, DirectionalLight, Material, Object3D, Vector2, Vector3 } from "three";
import { CSMFrustum } from "./CSMFrustum.js";

export type CSMMode = "uniform" | "logarithmic" | "practical" | "custom";

Expand Down Expand Up @@ -34,8 +35,8 @@ export class CSM {
lightMargin: number;
customSplitsCallback: (cascades: number, cameraNear: number, cameraFar: number, breaks: number[]) => void;
fade: boolean;
mainFrustum: CSMFrustrum;
frustums: CSMFrustrum[];
mainFrustum: CSMFrustum;
frustums: CSMFrustum[];
breaks: number[];
lights: DirectionalLight[];
shaders: Map<unknown, string>;
Expand All @@ -52,5 +53,3 @@ export class CSM {
remove(): void;
dispose(): void;
}

import CSMFrustrum from "./CSMFrustum.js";
2 changes: 1 addition & 1 deletion types/three/examples/jsm/csm/CSMFrustum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface CSMFrustumParameters {
maxFar?: number;
}

export default class CSMFrustum {
export class CSMFrustum {
constructor(data?: CSMFrustumParameters);
vertices: CSMFrustumVerticies;
setFromProjectionMatrix(projectionMatrix: Matrix4, maxFar: number): CSMFrustumVerticies;
Expand Down
Loading