Skip to content

Commit 6822f40

Browse files
committed
fix: implements GLTFLoaderPlugin for all GLTF extensions
This typing is necessary to register this extension on the three.js GLTFLoader.
1 parent e279ec8 commit 6822f40

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/plugins/three/gltf/GLTFCesiumRTCExtension.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export class GLTFCesiumRTCExtension {
1+
import { GLTFLoaderPlugin } from 'three/examples/jsm/loaders/GLTFLoader.js';
2+
3+
export class GLTFCesiumRTCExtension implements GLTFLoaderPlugin {
24

35
name: 'CESIUM_RTC';
46

src/plugins/three/gltf/GLTFMeshFeaturesExtension.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Vector3 } from 'three';
2+
import { GLTFLoaderPlugin } from 'three/examples/jsm/loaders/GLTFLoader.js';
23

3-
export class GLTFMeshFeaturesExtension {
4+
export class GLTFMeshFeaturesExtension implements GLTFLoaderPlugin {
45

56
name: 'EXT_mesh_features';
67

src/plugins/three/gltf/GLTFStructuralMetadataExtension.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Vector3, Texture } from 'three';
2+
import { GLTFLoaderPlugin } from 'three/examples/jsm/loaders/GLTFLoader.js';
23

3-
export class GLTFStructuralMetadataExtension {
4+
export class GLTFStructuralMetadataExtension implements GLTFLoaderPlugin {
45

56
name: 'EXT_structural_metadata';
67

0 commit comments

Comments
 (0)