@threepipe/plugins-extra-importers 0.2.6 → 0.3.0-r172.1
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.
- package/CHANGELOG.md +18 -3
- package/README.md +1 -1
- package/dist/dependencies.txt +4 -4
- package/dist/index.d.ts +73 -46
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14605 -14845
- package/dist/index.js.map +1 -1
- package/docs/assets/highlight.css +1 -1
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +4 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +21 -6
- package/docs/classes/AMFLoadPlugin.html +145 -5
- package/docs/classes/BVHLoadPlugin.html +145 -5
- package/docs/classes/ColladaLoadPlugin.html +145 -5
- package/docs/classes/GCodeLoadPlugin.html +145 -5
- package/docs/classes/LDrawLoadPlugin.html +145 -5
- package/docs/classes/MDDLoadPlugin.html +145 -5
- package/docs/classes/PCDLoadPlugin.html +145 -5
- package/docs/classes/TDSLoadPlugin.html +145 -5
- package/docs/classes/ThreeMFLoadPlugin.html +145 -5
- package/docs/classes/VOXLoadPlugin.html +145 -5
- package/docs/classes/VRMLLoadPlugin.html +145 -5
- package/docs/classes/VTKLoadPlugin.html +145 -5
- package/docs/classes/XYZLoadPlugin.html +145 -5
- package/docs/hierarchy.html +28 -1
- package/docs/index.html +38 -1
- package/docs/variables/extraImportPlugins.html +32 -1
- package/package.json +5 -2
- package/src/index.ts +7 -11
- package/tsconfig.json +3 -5
- package/docs/classes/TiltLoadPlugin.html +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
# Changelog for @threepipe/extra-importers
|
|
1
|
+
# Changelog for @threepipe/plugins-extra-importers
|
|
2
2
|
|
|
3
3
|
All notable changes to this plugin will be documented in this file.
|
|
4
4
|
|
|
5
5
|
[//]: # (The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).)
|
|
6
6
|
|
|
7
|
+
## [0.3.0-r172.1] - 2026-11-05
|
|
8
|
+
|
|
9
|
+
Release candidate of the three.js r172 upgrade lane, under the npm dist-tag `three-r172`, for threepipe 0.8.0-r172.1: the changes listed under [Unreleased] below.
|
|
10
|
+
|
|
7
11
|
## [Unreleased]
|
|
8
12
|
|
|
9
|
-
###
|
|
13
|
+
### Removed
|
|
14
|
+
|
|
15
|
+
- `TiltLoadPlugin` — three.js r169 removed `TiltLoader` (Tilt Brush `.tilt` files)
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- `LDrawLoadPlugin` sets `LDrawConditionalLineMaterial` on the loader: since three.js r171 `LDrawLoader` throws on files with conditional lines unless the material type is set with `setConditionalLineMaterial()`
|
|
20
|
+
|
|
21
|
+
## [0.2.7] - 2026-10-23
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
10
24
|
|
|
11
|
-
-
|
|
25
|
+
- Type declarations resolve in consumer projects with `moduleResolution: bundler`, `node16` and `nodenext` ([#60](https://github.com/repalash/threepipe/pull/60)): the `.d.ts` files imported a tsconfig `paths` alias of `three`, which resolves nowhere; relative imports carry `.js`
|
|
12
26
|
|
|
13
27
|
## [0.2.6] - 2025-19-24
|
|
14
28
|
|
|
@@ -24,5 +38,6 @@ All notable changes to this plugin will be documented in this file.
|
|
|
24
38
|
- Update [threepipe](https://threepipe.org/) `peerDependency` to [0.1.0](https://github.com/repalash/threepipe/releases/tag/v0.1.0)
|
|
25
39
|
|
|
26
40
|
[unreleased]: https://github.com/repalash/threepipe/tree/dev/plugins/extra-importers
|
|
41
|
+
[0.2.7]: https://github.com/repalash/threepipe/releases/tag/@threepipe/plugins-extra-importers-0.2.7
|
|
27
42
|
[0.2.5]: https://github.com/repalash/threepipe/releases/tag/@threepipe/plugins-extra-importers-0.2.5
|
|
28
43
|
[0.2.4]: https://github.com/repalash/threepipe/releases/tag/@threepipe/plugins-extra-importers-0.2.4
|
package/README.md
CHANGED
package/dist/dependencies.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Name: three
|
|
2
|
-
Version: 0.
|
|
1
|
+
Name: three-modded
|
|
2
|
+
Version: 0.172.10001-rc.2
|
|
3
3
|
License: MIT
|
|
4
4
|
Private: false
|
|
5
5
|
Description: JavaScript 3D library
|
|
6
|
-
Repository: https://github.com/
|
|
6
|
+
Repository: https://github.com/repalash/three.js-modded
|
|
7
7
|
Homepage: https://threejs.org/
|
|
8
8
|
Author: mrdoob
|
|
9
|
-
License
|
|
9
|
+
License Text:
|
|
10
10
|
===
|
|
11
11
|
|
|
12
12
|
The MIT License
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyOptions, BaseImporterPlugin, BufferGeometry, Group, ImportAddOptions, Importer, Mesh, Object3D, Points, PointsMaterial, Scene } from 'threepipe';
|
|
1
|
+
import { AnyOptions, BaseImporterPlugin, BufferGeometry, Group, ImportAddOptions, Importer, LoadingManager, Mesh, Object3D, Points, PointsMaterial, Scene } from 'threepipe';
|
|
2
2
|
import { TDSLoader } from 'three/examples/jsm/loaders/TDSLoader.js';
|
|
3
3
|
import { ThreeMFLoader } from 'three/examples/jsm/loaders/3MFLoader.js';
|
|
4
4
|
import { Collada } from 'three/examples/jsm/loaders/ColladaLoader.js';
|
|
@@ -7,8 +7,8 @@ import { GCodeLoader } from 'three/examples/jsm/loaders/GCodeLoader.js';
|
|
|
7
7
|
import { BVH } from 'three/examples/jsm/loaders/BVHLoader.js';
|
|
8
8
|
import { Chunk } from 'three/examples/jsm/loaders/VOXLoader.js';
|
|
9
9
|
import { MDD } from 'three/examples/jsm/loaders/MDDLoader.js';
|
|
10
|
-
import { TiltLoader } from 'three/examples/jsm/loaders/TiltLoader.js';
|
|
11
10
|
import { VRMLLoader } from 'three/examples/jsm/loaders/VRMLLoader.js';
|
|
11
|
+
import { LDrawConditionalLineMaterial } from 'three/examples/jsm/materials/LDrawConditionalLineMaterial.js';
|
|
12
12
|
/**
|
|
13
13
|
* Adds support for loading Autodesk 3ds `.3ds`, `application/x-3ds` files and data uris
|
|
14
14
|
*/
|
|
@@ -30,15 +30,16 @@ export declare class ColladaLoadPlugin extends BaseImporterPlugin {
|
|
|
30
30
|
static readonly PluginType = "ColladaLoadPlugin";
|
|
31
31
|
protected _importer: Importer<{
|
|
32
32
|
transform(res: Collada, _: AnyOptions): Scene;
|
|
33
|
-
parse(text: string, path: string): Collada;
|
|
34
33
|
crossOrigin: string;
|
|
35
34
|
withCredentials: boolean;
|
|
36
35
|
path: string;
|
|
37
36
|
resourcePath: string;
|
|
38
|
-
manager:
|
|
37
|
+
manager: LoadingManager;
|
|
39
38
|
requestHeader: {
|
|
40
39
|
[header: string]: string;
|
|
41
40
|
};
|
|
41
|
+
priority: "high" | "low" | "auto";
|
|
42
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
42
43
|
load(url: string, onLoad: (data: Collada) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
43
44
|
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Collada>;
|
|
44
45
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
@@ -48,6 +49,9 @@ export declare class ColladaLoadPlugin extends BaseImporterPlugin {
|
|
|
48
49
|
setRequestHeader(requestHeader: {
|
|
49
50
|
[header: string]: string;
|
|
50
51
|
}): /*elided*/ any;
|
|
52
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
53
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
54
|
+
parse(text: string, path: string): Collada;
|
|
51
55
|
}>;
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
@@ -71,17 +75,16 @@ export declare class BVHLoadPlugin extends BaseImporterPlugin {
|
|
|
71
75
|
static readonly PluginType = "BVHLoadPlugin";
|
|
72
76
|
protected _importer: Importer<{
|
|
73
77
|
transform(res: BVH, _: AnyOptions): Object3D;
|
|
74
|
-
animateBonePositions: boolean;
|
|
75
|
-
animateBoneRotations: boolean;
|
|
76
|
-
parse(text: string): BVH;
|
|
77
78
|
crossOrigin: string;
|
|
78
79
|
withCredentials: boolean;
|
|
79
80
|
path: string;
|
|
80
81
|
resourcePath: string;
|
|
81
|
-
manager:
|
|
82
|
+
manager: LoadingManager;
|
|
82
83
|
requestHeader: {
|
|
83
84
|
[header: string]: string;
|
|
84
85
|
};
|
|
86
|
+
priority: "high" | "low" | "auto";
|
|
87
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
85
88
|
load(url: string, onLoad: (data: BVH) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
86
89
|
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<BVH>;
|
|
87
90
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
@@ -91,6 +94,11 @@ export declare class BVHLoadPlugin extends BaseImporterPlugin {
|
|
|
91
94
|
setRequestHeader(requestHeader: {
|
|
92
95
|
[header: string]: string;
|
|
93
96
|
}): /*elided*/ any;
|
|
97
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
98
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
99
|
+
animateBonePositions: boolean;
|
|
100
|
+
animateBoneRotations: boolean;
|
|
101
|
+
parse(text: string): BVH;
|
|
94
102
|
}>;
|
|
95
103
|
}
|
|
96
104
|
/**
|
|
@@ -100,15 +108,16 @@ export declare class VOXLoadPlugin extends BaseImporterPlugin {
|
|
|
100
108
|
static readonly PluginType = "VOXLoadPlugin";
|
|
101
109
|
protected _importer: Importer<{
|
|
102
110
|
transform(chunks: Chunk[], _: AnyOptions): Object3D;
|
|
103
|
-
parse(data: ArrayBuffer): object[];
|
|
104
111
|
crossOrigin: string;
|
|
105
112
|
withCredentials: boolean;
|
|
106
113
|
path: string;
|
|
107
114
|
resourcePath: string;
|
|
108
|
-
manager:
|
|
115
|
+
manager: LoadingManager;
|
|
109
116
|
requestHeader: {
|
|
110
117
|
[header: string]: string;
|
|
111
118
|
};
|
|
119
|
+
priority: "high" | "low" | "auto";
|
|
120
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
112
121
|
load(url: string, onLoad: (data: Chunk[]) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
113
122
|
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Chunk[]>;
|
|
114
123
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
@@ -118,6 +127,9 @@ export declare class VOXLoadPlugin extends BaseImporterPlugin {
|
|
|
118
127
|
setRequestHeader(requestHeader: {
|
|
119
128
|
[header: string]: string;
|
|
120
129
|
}): /*elided*/ any;
|
|
130
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
131
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
132
|
+
parse(data: ArrayBuffer): object[];
|
|
121
133
|
}>;
|
|
122
134
|
}
|
|
123
135
|
/**
|
|
@@ -127,15 +139,16 @@ export declare class MDDLoadPlugin extends BaseImporterPlugin {
|
|
|
127
139
|
static readonly PluginType = "MDDLoadPlugin";
|
|
128
140
|
protected _importer: Importer<{
|
|
129
141
|
transform(res: MDD, _: AnyOptions): Object3D;
|
|
130
|
-
parse(data: ArrayBuffer): MDD;
|
|
131
142
|
crossOrigin: string;
|
|
132
143
|
withCredentials: boolean;
|
|
133
144
|
path: string;
|
|
134
145
|
resourcePath: string;
|
|
135
|
-
manager:
|
|
146
|
+
manager: LoadingManager;
|
|
136
147
|
requestHeader: {
|
|
137
148
|
[header: string]: string;
|
|
138
149
|
};
|
|
150
|
+
priority: "high" | "low" | "auto";
|
|
151
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
139
152
|
load(url: string, onLoad: (data: MDD) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
140
153
|
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<MDD>;
|
|
141
154
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
@@ -145,6 +158,9 @@ export declare class MDDLoadPlugin extends BaseImporterPlugin {
|
|
|
145
158
|
setRequestHeader(requestHeader: {
|
|
146
159
|
[header: string]: string;
|
|
147
160
|
}): /*elided*/ any;
|
|
161
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
162
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
163
|
+
parse(data: ArrayBuffer): MDD;
|
|
148
164
|
}>;
|
|
149
165
|
}
|
|
150
166
|
/**
|
|
@@ -154,18 +170,18 @@ export declare class PCDLoadPlugin extends BaseImporterPlugin {
|
|
|
154
170
|
static readonly PluginType = "PCDLoadPlugin";
|
|
155
171
|
protected _importer: Importer<{
|
|
156
172
|
transform(points: Points, options: ImportAddOptions): any;
|
|
157
|
-
littleEndian: boolean;
|
|
158
|
-
parse(data: ArrayBuffer | string): Points<BufferGeometry, PointsMaterial>;
|
|
159
173
|
crossOrigin: string;
|
|
160
174
|
withCredentials: boolean;
|
|
161
175
|
path: string;
|
|
162
176
|
resourcePath: string;
|
|
163
|
-
manager:
|
|
177
|
+
manager: LoadingManager;
|
|
164
178
|
requestHeader: {
|
|
165
179
|
[header: string]: string;
|
|
166
180
|
};
|
|
167
|
-
|
|
168
|
-
|
|
181
|
+
priority: "high" | "low" | "auto";
|
|
182
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
183
|
+
load(url: string, onLoad: (data: Points<BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>, PointsMaterial, import("three").Object3DEventMap>) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
184
|
+
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Points<BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>, PointsMaterial, import("three").Object3DEventMap>>;
|
|
169
185
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
170
186
|
setWithCredentials(value: boolean): /*elided*/ any;
|
|
171
187
|
setPath(path: string): /*elided*/ any;
|
|
@@ -173,15 +189,12 @@ export declare class PCDLoadPlugin extends BaseImporterPlugin {
|
|
|
173
189
|
setRequestHeader(requestHeader: {
|
|
174
190
|
[header: string]: string;
|
|
175
191
|
}): /*elided*/ any;
|
|
192
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
193
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
194
|
+
littleEndian: boolean;
|
|
195
|
+
parse(data: ArrayBuffer | string): Points<BufferGeometry, PointsMaterial>;
|
|
176
196
|
}>;
|
|
177
197
|
}
|
|
178
|
-
/**
|
|
179
|
-
* Adds support for loading Tilt brush `.tilt`, `application/tilt` files and data uris
|
|
180
|
-
*/
|
|
181
|
-
export declare class TiltLoadPlugin extends BaseImporterPlugin {
|
|
182
|
-
static readonly PluginType = "TiltLoadPlugin";
|
|
183
|
-
protected _importer: Importer<TiltLoader>;
|
|
184
|
-
}
|
|
185
198
|
/**
|
|
186
199
|
* Adds support for loading VRML `.wrl`, `model/vrml` files and data uris
|
|
187
200
|
*/
|
|
@@ -196,26 +209,18 @@ export declare class LDrawLoadPlugin extends BaseImporterPlugin {
|
|
|
196
209
|
static readonly PluginType = "LDrawLoadPlugin";
|
|
197
210
|
protected _importer: Importer<{
|
|
198
211
|
transform(res: Group, _: AnyOptions): any;
|
|
199
|
-
materials: import('./threepipe').Material[];
|
|
200
|
-
materialsLibrary: Record<string, import('./threepipe').Material>;
|
|
201
|
-
fileMap: Record<string, string>;
|
|
202
|
-
smoothNormals: boolean;
|
|
203
|
-
preloadMaterials(url: string): Promise<void>;
|
|
204
|
-
setFileMap(fileMap: Record<string, string>): void;
|
|
205
|
-
setMaterials(materials: import('./threepipe').Material[]): void;
|
|
206
|
-
parse(text: string, path: string, onLoad: (data: Group) => void): void;
|
|
207
|
-
addMaterial(material: import('./threepipe').Material): void;
|
|
208
|
-
getMaterial(colourCode: string): import('./threepipe').Material | null;
|
|
209
212
|
crossOrigin: string;
|
|
210
213
|
withCredentials: boolean;
|
|
211
214
|
path: string;
|
|
212
215
|
resourcePath: string;
|
|
213
|
-
manager:
|
|
216
|
+
manager: LoadingManager;
|
|
214
217
|
requestHeader: {
|
|
215
218
|
[header: string]: string;
|
|
216
219
|
};
|
|
217
|
-
|
|
218
|
-
|
|
220
|
+
priority: "high" | "low" | "auto";
|
|
221
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
222
|
+
load(url: string, onLoad: (data: Group<import("three").Object3DEventMap>) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
223
|
+
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<Group<import("three").Object3DEventMap>>;
|
|
219
224
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
220
225
|
setWithCredentials(value: boolean): /*elided*/ any;
|
|
221
226
|
setPath(path: string): /*elided*/ any;
|
|
@@ -223,6 +228,20 @@ export declare class LDrawLoadPlugin extends BaseImporterPlugin {
|
|
|
223
228
|
setRequestHeader(requestHeader: {
|
|
224
229
|
[header: string]: string;
|
|
225
230
|
}): /*elided*/ any;
|
|
231
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
232
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
233
|
+
materials: import("three").Material[];
|
|
234
|
+
materialsLibrary: Record<string, import("three").Material>;
|
|
235
|
+
fileMap: Record<string, string>;
|
|
236
|
+
smoothNormals: boolean;
|
|
237
|
+
ConditionalLineMaterial: typeof LDrawConditionalLineMaterial | typeof import("three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js").LDrawConditionalLineMaterial | null;
|
|
238
|
+
setConditionalLineMaterial(type: typeof LDrawConditionalLineMaterial | typeof import("three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js").LDrawConditionalLineMaterial): /*elided*/ any;
|
|
239
|
+
preloadMaterials(url: string): Promise<void>;
|
|
240
|
+
setFileMap(fileMap: Record<string, string>): void;
|
|
241
|
+
setMaterials(materials: import("three").Material[]): void;
|
|
242
|
+
parse(text: string, path: string, onLoad: (data: Group) => void, onError?: (error: unknown) => void): void;
|
|
243
|
+
addMaterial(material: import("three").Material): void;
|
|
244
|
+
getMaterial(colourCode: string): import("three").Material | null;
|
|
226
245
|
}>;
|
|
227
246
|
}
|
|
228
247
|
/**
|
|
@@ -232,17 +251,18 @@ export declare class VTKLoadPlugin extends BaseImporterPlugin {
|
|
|
232
251
|
static readonly PluginType = "VTKLoadPlugin";
|
|
233
252
|
protected _importer: Importer<{
|
|
234
253
|
transform(res: BufferGeometry, _: AnyOptions): Mesh | undefined;
|
|
235
|
-
parse(data: ArrayBuffer | string, path: string): BufferGeometry;
|
|
236
254
|
crossOrigin: string;
|
|
237
255
|
withCredentials: boolean;
|
|
238
256
|
path: string;
|
|
239
257
|
resourcePath: string;
|
|
240
|
-
manager:
|
|
258
|
+
manager: LoadingManager;
|
|
241
259
|
requestHeader: {
|
|
242
260
|
[header: string]: string;
|
|
243
261
|
};
|
|
244
|
-
|
|
245
|
-
|
|
262
|
+
priority: "high" | "low" | "auto";
|
|
263
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
264
|
+
load(url: string, onLoad: (data: BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
265
|
+
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>>;
|
|
246
266
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
247
267
|
setWithCredentials(value: boolean): /*elided*/ any;
|
|
248
268
|
setPath(path: string): /*elided*/ any;
|
|
@@ -250,6 +270,9 @@ export declare class VTKLoadPlugin extends BaseImporterPlugin {
|
|
|
250
270
|
setRequestHeader(requestHeader: {
|
|
251
271
|
[header: string]: string;
|
|
252
272
|
}): /*elided*/ any;
|
|
273
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
274
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
275
|
+
parse(data: ArrayBuffer | string, path: string): BufferGeometry;
|
|
253
276
|
}>;
|
|
254
277
|
}
|
|
255
278
|
/**
|
|
@@ -259,17 +282,18 @@ export declare class XYZLoadPlugin extends BaseImporterPlugin {
|
|
|
259
282
|
static readonly PluginType = "XYZLoadPlugin";
|
|
260
283
|
protected _importer: Importer<{
|
|
261
284
|
transform(res: BufferGeometry, options: ImportAddOptions): Points | undefined;
|
|
262
|
-
parse(data: string, onLoad: (geometry: BufferGeometry) => void): object;
|
|
263
285
|
crossOrigin: string;
|
|
264
286
|
withCredentials: boolean;
|
|
265
287
|
path: string;
|
|
266
288
|
resourcePath: string;
|
|
267
|
-
manager:
|
|
289
|
+
manager: LoadingManager;
|
|
268
290
|
requestHeader: {
|
|
269
291
|
[header: string]: string;
|
|
270
292
|
};
|
|
271
|
-
|
|
272
|
-
|
|
293
|
+
priority: "high" | "low" | "auto";
|
|
294
|
+
cache: "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
|
295
|
+
load(url: string, onLoad: (data: BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>) => void, onProgress?: (event: ProgressEvent) => void, onError?: (err: unknown) => void): void;
|
|
296
|
+
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>>;
|
|
273
297
|
setCrossOrigin(crossOrigin: string): /*elided*/ any;
|
|
274
298
|
setWithCredentials(value: boolean): /*elided*/ any;
|
|
275
299
|
setPath(path: string): /*elided*/ any;
|
|
@@ -277,7 +301,10 @@ export declare class XYZLoadPlugin extends BaseImporterPlugin {
|
|
|
277
301
|
setRequestHeader(requestHeader: {
|
|
278
302
|
[header: string]: string;
|
|
279
303
|
}): /*elided*/ any;
|
|
304
|
+
setPriority(value: "high" | "low" | "auto"): /*elided*/ any;
|
|
305
|
+
setCache(value: "default" | "no-store" | "reload" | "no-cache" | "force-cache"): /*elided*/ any;
|
|
306
|
+
parse(data: string, onLoad: (geometry: BufferGeometry) => void): object;
|
|
280
307
|
}>;
|
|
281
308
|
}
|
|
282
|
-
export declare const extraImportPlugins: readonly [typeof TDSLoadPlugin, typeof ThreeMFLoadPlugin, typeof ColladaLoadPlugin, typeof AMFLoadPlugin, typeof GCodeLoadPlugin, typeof BVHLoadPlugin, typeof VOXLoadPlugin, typeof MDDLoadPlugin, typeof PCDLoadPlugin, typeof
|
|
309
|
+
export declare const extraImportPlugins: readonly [typeof TDSLoadPlugin, typeof ThreeMFLoadPlugin, typeof ColladaLoadPlugin, typeof AMFLoadPlugin, typeof GCodeLoadPlugin, typeof BVHLoadPlugin, typeof VOXLoadPlugin, typeof MDDLoadPlugin, typeof PCDLoadPlugin, typeof VRMLLoadPlugin, typeof LDrawLoadPlugin, typeof VTKLoadPlugin, typeof XYZLoadPlugin];
|
|
283
310
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,kBAAkB,EAElB,cAAc,EAEd,KAAK,EAEL,gBAAgB,EAChB,QAAQ,EACR,IAAI,EACJ,QAAQ,EAER,MAAM,EACN,cAAc,EACd,KAA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