@shapediver/viewer.shared.global-access-objects 3.3.4 → 3.3.7
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/package.json +6 -7
- package/src/GlobalAccessObjects.ts +0 -51
- package/src/index.ts +0 -5
- package/tsconfig.json +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.global-access-objects",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
"test": "__tests__"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist",
|
|
14
|
-
"src",
|
|
15
13
|
"package.json",
|
|
14
|
+
"dist/",
|
|
16
15
|
"README.md",
|
|
17
|
-
"
|
|
16
|
+
"LICENSE"
|
|
18
17
|
],
|
|
19
18
|
"publishConfig": {
|
|
20
19
|
"access": "public"
|
|
@@ -40,8 +39,8 @@
|
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"@shapediver/sdk.geometry-api-sdk-v2": "1.11.0",
|
|
43
|
-
"@shapediver/viewer.data-engine.shared-types": "3.3.
|
|
44
|
-
"@shapediver/viewer.shared.node-tree": "3.3.
|
|
42
|
+
"@shapediver/viewer.data-engine.shared-types": "3.3.7",
|
|
43
|
+
"@shapediver/viewer.shared.node-tree": "3.3.7"
|
|
45
44
|
},
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "112787d5c5226cca5e89d08102d0b1a3dd4a1d71"
|
|
47
46
|
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ShapeDiverResponseOutputContent } from "@shapediver/sdk.geometry-api-sdk-v2";
|
|
2
|
-
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
3
|
-
import { ITag3D } from "@shapediver/viewer.data-engine.shared-types";
|
|
4
|
-
|
|
5
|
-
export class GlobalAccessObjects {
|
|
6
|
-
// #region Properties (4)
|
|
7
|
-
|
|
8
|
-
private static _instance: GlobalAccessObjects;
|
|
9
|
-
|
|
10
|
-
#combineTextures?: (red?: HTMLImageElement | ArrayBuffer, green?: HTMLImageElement | ArrayBuffer, blue?: HTMLImageElement | ArrayBuffer) => Promise<{ image: HTMLImageElement | ArrayBuffer, blob: Blob }>;
|
|
11
|
-
#loadContent?: (content: ShapeDiverResponseOutputContent, jwtToken?: string, taskEventId?: string) => Promise<ITreeNode>;
|
|
12
|
-
#loadTag3D?: (tag3dInfo: ITag3D) => ITreeNode | undefined;
|
|
13
|
-
|
|
14
|
-
// #endregion Properties (4)
|
|
15
|
-
|
|
16
|
-
// #region Public Static Getters And Setters (1)
|
|
17
|
-
|
|
18
|
-
public static get instance() {
|
|
19
|
-
return this._instance || (this._instance = new this());
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// #endregion Public Static Getters And Setters (1)
|
|
23
|
-
|
|
24
|
-
// #region Public Getters And Setters (6)
|
|
25
|
-
|
|
26
|
-
public get combineTextures() {
|
|
27
|
-
return this.#combineTextures;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public set combineTextures(value: ((red?: HTMLImageElement | ArrayBuffer, green?: HTMLImageElement | ArrayBuffer, blue?: HTMLImageElement | ArrayBuffer) => Promise<{ image: HTMLImageElement | ArrayBuffer, blob: Blob }>) | undefined) {
|
|
31
|
-
this.#combineTextures = value;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public get loadContent() {
|
|
35
|
-
return this.#loadContent;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
public set loadContent(value: ((content: ShapeDiverResponseOutputContent, jwtToken?: string, taskEventId?: string) => Promise<ITreeNode>) | undefined) {
|
|
39
|
-
this.#loadContent = value;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public get loadTag3D() {
|
|
43
|
-
return this.#loadTag3D;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
public set loadTag3D(value: ((tag3dInfo: ITag3D) => ITreeNode | undefined) | undefined) {
|
|
47
|
-
this.#loadTag3D = value;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// #endregion Public Getters And Setters (6)
|
|
51
|
-
}
|
package/src/index.ts
DELETED
package/tsconfig.json
DELETED