@vitessce/glb 3.5.2 → 3.5.4
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/dist/index.js
CHANGED
|
@@ -1,10 +1,56 @@
|
|
|
1
|
-
import { AbstractTwoStepLoader, LoaderResult } from "@vitessce/vit-s";
|
|
2
1
|
class GlbSource {
|
|
3
2
|
constructor({ url, requestInit }) {
|
|
4
3
|
this.url = url;
|
|
5
4
|
this.requestInit = requestInit;
|
|
6
5
|
}
|
|
7
6
|
}
|
|
7
|
+
class LoaderResult {
|
|
8
|
+
/**
|
|
9
|
+
* @param {LoaderDataType} data
|
|
10
|
+
* @param {object[]|string|null} url Single URL or array of { url, name } objects.
|
|
11
|
+
* @param {object|null} coordinationValues
|
|
12
|
+
* @param {RequestInit|null} requestInit
|
|
13
|
+
*/
|
|
14
|
+
constructor(data, url, coordinationValues = null, requestInit = null) {
|
|
15
|
+
this.data = data;
|
|
16
|
+
this.url = url;
|
|
17
|
+
this.coordinationValues = coordinationValues;
|
|
18
|
+
this.requestInit = requestInit;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
class AbstractLoader {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param {LoaderParams} params
|
|
25
|
+
*/
|
|
26
|
+
constructor({ type, fileType, url, requestInit, options, coordinationValues }) {
|
|
27
|
+
this.fileType = fileType;
|
|
28
|
+
this.type = type;
|
|
29
|
+
this.url = url;
|
|
30
|
+
this.requestInit = requestInit;
|
|
31
|
+
this.options = options;
|
|
32
|
+
this.coordinationValues = coordinationValues;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @returns {Promise<LoaderResult<any>>}
|
|
37
|
+
*/
|
|
38
|
+
// eslint-disable-next-line class-methods-use-this
|
|
39
|
+
async load() {
|
|
40
|
+
return Promise.resolve(new LoaderResult(true, null));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
class AbstractTwoStepLoader extends AbstractLoader {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @param {DataSourceType} dataSource
|
|
47
|
+
* @param {LoaderParams} params
|
|
48
|
+
*/
|
|
49
|
+
constructor(dataSource, params) {
|
|
50
|
+
super(params);
|
|
51
|
+
this.dataSource = dataSource;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
8
54
|
/**
|
|
9
55
|
* @license
|
|
10
56
|
* Copyright 2010-2023 Three.js Authors
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export default class GlbDataLoader {
|
|
1
|
+
export default class GlbDataLoader extends AbstractTwoStepLoader<any> {
|
|
2
|
+
constructor(dataSource: any, params: import("../../abstract/node_modules/@vitessce/types/dist-tsc").LoaderParams);
|
|
2
3
|
load(): Promise<any>;
|
|
3
4
|
}
|
|
5
|
+
import { AbstractTwoStepLoader } from '@vitessce/abstract';
|
|
4
6
|
//# sourceMappingURL=GlbDataLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlbDataLoader.d.ts","sourceRoot":"","sources":["../src/GlbDataLoader.js"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"GlbDataLoader.d.ts","sourceRoot":"","sources":["../src/GlbDataLoader.js"],"names":[],"mappings":"AAMA;;IACE,qBA2BC;CACF;sCAnCmD,oBAAoB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractTwoStepLoader, LoaderResult } from '@vitessce/
|
|
1
|
+
import { AbstractTwoStepLoader, LoaderResult } from '@vitessce/abstract';
|
|
2
2
|
// eslint-disable-next-line import/no-unresolved
|
|
3
3
|
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
4
4
|
// eslint-disable-next-line import/no-unresolved
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/glb",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"d3-array": "^2.4.0",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
22
|
"three": "^0.154.0",
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/utils": "3.5.
|
|
29
|
-
"@vitessce/
|
|
23
|
+
"@vitessce/abstract": "3.5.4",
|
|
24
|
+
"@vitessce/constants-internal": "3.5.4",
|
|
25
|
+
"@vitessce/gl": "3.5.4",
|
|
26
|
+
"@vitessce/sets-utils": "3.5.4",
|
|
27
|
+
"@vitessce/spatial-utils": "3.5.4",
|
|
28
|
+
"@vitessce/image-utils": "3.5.4",
|
|
29
|
+
"@vitessce/utils": "3.5.4"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
package/src/GlbDataLoader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractTwoStepLoader, LoaderResult } from '@vitessce/
|
|
1
|
+
import { AbstractTwoStepLoader, LoaderResult } from '@vitessce/abstract';
|
|
2
2
|
// eslint-disable-next-line import/no-unresolved
|
|
3
3
|
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
4
4
|
// eslint-disable-next-line import/no-unresolved
|