minidraco 0.2.0 → 0.3.0
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/README.md +38 -100
- package/dist/index.d.ts +1 -98
- package/dist/index.js +1405 -1421
- package/dist/three.d.ts +6 -6
- package/dist/three.js +1417 -1429
- package/dist/worker.js +1406 -1419
- package/package.json +1 -1
package/dist/three.d.ts
CHANGED
|
@@ -121,11 +121,11 @@ declare class Mesh extends PointCloud {
|
|
|
121
121
|
|
|
122
122
|
type AttributeIDs = Record<string, number | string>;
|
|
123
123
|
type AttributeTypes = Record<string, string>;
|
|
124
|
-
interface
|
|
124
|
+
interface MinidracoLoaderOptions {
|
|
125
125
|
manager?: LoadingManager;
|
|
126
126
|
workers?: boolean;
|
|
127
127
|
workerLimit?: number;
|
|
128
|
-
|
|
128
|
+
mainThreadByteThreshold?: number;
|
|
129
129
|
}
|
|
130
130
|
interface TaskConfig {
|
|
131
131
|
attributeIDs: AttributeIDs;
|
|
@@ -153,11 +153,11 @@ interface QueuedTask {
|
|
|
153
153
|
resolve: (raw: RawGeometry) => void;
|
|
154
154
|
reject: (error: unknown) => void;
|
|
155
155
|
}
|
|
156
|
-
declare class
|
|
156
|
+
declare class MinidracoLoader extends Loader<BufferGeometry> {
|
|
157
157
|
defaultAttributeIDs: AttributeIDs;
|
|
158
158
|
defaultAttributeTypes: AttributeTypes;
|
|
159
159
|
workerLimit: number;
|
|
160
|
-
|
|
160
|
+
mainThreadByteThreshold: number;
|
|
161
161
|
_workers: WorkerEntry[];
|
|
162
162
|
_taskId: number;
|
|
163
163
|
_tasks: Map<number, {
|
|
@@ -170,7 +170,7 @@ declare class MiniDRACOLoader extends Loader<BufferGeometry> {
|
|
|
170
170
|
_workersBroken: boolean;
|
|
171
171
|
_workerUrl: string | URL | null;
|
|
172
172
|
_workerBlobUrl: string | null;
|
|
173
|
-
constructor(managerOrOptions?: LoadingManager |
|
|
173
|
+
constructor(managerOrOptions?: LoadingManager | MinidracoLoaderOptions);
|
|
174
174
|
setWorkerUrl(url: string | URL | null): this;
|
|
175
175
|
setDecoderPath(_path?: unknown): this;
|
|
176
176
|
setDecoderConfig(_config?: unknown): this;
|
|
@@ -193,4 +193,4 @@ declare class MiniDRACOLoader extends Loader<BufferGeometry> {
|
|
|
193
193
|
_assignVertexColorSpace(attribute: BufferAttribute, inputColorSpace: string): void;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export { type AttributeIDs, type AttributeTypes,
|
|
196
|
+
export { type AttributeIDs, type AttributeTypes, MinidracoLoader as DRACOLoader, MinidracoLoader, type MinidracoLoaderOptions };
|