@shapediver/viewer.rendering-engine.rendering-engine 3.5.7 → 3.7.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/dist/IRenderingEngine.d.ts +1 -62
- package/dist/IRenderingEngine.d.ts.map +1 -1
- package/dist/IRenderingEngine.js +0 -71
- package/dist/IRenderingEngine.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -9
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DomEventEngine, SESSION_SETTINGS_MODE, SettingsEngine } from '@shapediver/viewer.shared.services';
|
|
2
|
-
import { IGeometryData } from '@shapediver/viewer.shared.types';
|
|
2
|
+
import { FLAG_TYPE, IGeometryData, RENDERER_TYPE, VISIBILITY_MODE } from '@shapediver/viewer.shared.types';
|
|
3
3
|
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
4
4
|
import { vec2, vec3 } from 'gl-matrix';
|
|
5
5
|
export interface IRenderingEngine {
|
|
@@ -49,65 +49,4 @@ export interface IRenderingEngine {
|
|
|
49
49
|
}): Promise<void>;
|
|
50
50
|
viewableInAR(): boolean;
|
|
51
51
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Modes used to indicate that a viewport is busy.
|
|
54
|
-
*/
|
|
55
|
-
export declare enum BUSY_MODE_DISPLAY {
|
|
56
|
-
/** The viewport will be blurred when a session is busy. */
|
|
57
|
-
BLUR = "blur",
|
|
58
|
-
/** A spinner will be shown when a session is busy. */
|
|
59
|
-
SPINNER = "spinner",
|
|
60
|
-
/** Nothing happens when a session is busy. */
|
|
61
|
-
NONE = "none"
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Types of flags used to influence the render loop.
|
|
65
|
-
*/
|
|
66
|
-
export declare enum FLAG_TYPE {
|
|
67
|
-
/** The flag for the busy mode. */
|
|
68
|
-
BUSY_MODE = "busy_mode",
|
|
69
|
-
/** The flag to freeze the camera. */
|
|
70
|
-
CAMERA_FREEZE = "camera_freeze",
|
|
71
|
-
/** The flag to continuously render the scene. */
|
|
72
|
-
CONTINUOUS_RENDERING = "continuous_rendering",
|
|
73
|
-
/** The flag to continuously update the shadow map. */
|
|
74
|
-
CONTINUOUS_SHADOW_MAP_UPDATE = "continuous_shadow_map_update"
|
|
75
|
-
}
|
|
76
|
-
export declare enum RENDERER_TYPE {
|
|
77
|
-
/** The standard rendering engine */
|
|
78
|
-
STANDARD = "standard",
|
|
79
|
-
/** A basic version of the rendering engine */
|
|
80
|
-
ATTRIBUTES = "attributes"
|
|
81
|
-
}
|
|
82
|
-
export declare enum SPINNER_POSITIONING {
|
|
83
|
-
CENTER = "center",
|
|
84
|
-
TOP_LEFT = "top_left",
|
|
85
|
-
TOP_RIGHT = "top_right",
|
|
86
|
-
BOTTOM_LEFT = "bottom_left",
|
|
87
|
-
BOTTOM_RIGHT = "bottom_right"
|
|
88
|
-
}
|
|
89
|
-
export declare enum TEXTURE_ENCODING {
|
|
90
|
-
LINEAR = "linear",
|
|
91
|
-
SRGB = "srgb",
|
|
92
|
-
RGBE = "rgbe",
|
|
93
|
-
RGBM7 = "rgbm7",
|
|
94
|
-
RGBM16 = "rgbm16",
|
|
95
|
-
RGBD = "rgbd",
|
|
96
|
-
GAMMA = "gamma"
|
|
97
|
-
}
|
|
98
|
-
export declare enum TONE_MAPPING {
|
|
99
|
-
NONE = "none",
|
|
100
|
-
LINEAR = "linear",
|
|
101
|
-
REINHARD = "reinhard",
|
|
102
|
-
CINEON = "cineon",
|
|
103
|
-
ACES_FILMIC = "aces_filmic"
|
|
104
|
-
}
|
|
105
|
-
export declare enum VISIBILITY_MODE {
|
|
106
|
-
/** The viewer shows the scene instantly */
|
|
107
|
-
INSTANT = "instant",
|
|
108
|
-
/** The viewer shows the scene after the first session loading */
|
|
109
|
-
SESSION = "session",
|
|
110
|
-
/** The viewer is shown once the 'show' property is set to true */
|
|
111
|
-
MANUAL = "manual"
|
|
112
|
-
}
|
|
113
52
|
//# sourceMappingURL=IRenderingEngine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IRenderingEngine.d.ts","sourceRoot":"","sources":["../src/IRenderingEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"IRenderingEngine.d.ts","sourceRoot":"","sources":["../src/IRenderingEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAC3G,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC3G,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIvC,MAAM,WAAW,gBAAgB;IAG/B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,cAAc,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,qBAAqB,CAAC;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAM5B,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACjC,oBAAoB,CAAC,cAAc,EAAE,cAA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"}
|
package/dist/IRenderingEngine.js
CHANGED
|
@@ -1,75 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VISIBILITY_MODE = exports.TONE_MAPPING = exports.TEXTURE_ENCODING = exports.SPINNER_POSITIONING = exports.RENDERER_TYPE = exports.FLAG_TYPE = exports.BUSY_MODE_DISPLAY = void 0;
|
|
4
3
|
// #endregion Interfaces (1)
|
|
5
|
-
// #region Enums (7)
|
|
6
|
-
/**
|
|
7
|
-
* Modes used to indicate that a viewport is busy.
|
|
8
|
-
*/
|
|
9
|
-
var BUSY_MODE_DISPLAY;
|
|
10
|
-
(function (BUSY_MODE_DISPLAY) {
|
|
11
|
-
/** The viewport will be blurred when a session is busy. */
|
|
12
|
-
BUSY_MODE_DISPLAY["BLUR"] = "blur";
|
|
13
|
-
/** A spinner will be shown when a session is busy. */
|
|
14
|
-
BUSY_MODE_DISPLAY["SPINNER"] = "spinner";
|
|
15
|
-
/** Nothing happens when a session is busy. */
|
|
16
|
-
BUSY_MODE_DISPLAY["NONE"] = "none";
|
|
17
|
-
})(BUSY_MODE_DISPLAY = exports.BUSY_MODE_DISPLAY || (exports.BUSY_MODE_DISPLAY = {}));
|
|
18
|
-
/**
|
|
19
|
-
* Types of flags used to influence the render loop.
|
|
20
|
-
*/
|
|
21
|
-
var FLAG_TYPE;
|
|
22
|
-
(function (FLAG_TYPE) {
|
|
23
|
-
/** The flag for the busy mode. */
|
|
24
|
-
FLAG_TYPE["BUSY_MODE"] = "busy_mode";
|
|
25
|
-
/** The flag to freeze the camera. */
|
|
26
|
-
FLAG_TYPE["CAMERA_FREEZE"] = "camera_freeze";
|
|
27
|
-
/** The flag to continuously render the scene. */
|
|
28
|
-
FLAG_TYPE["CONTINUOUS_RENDERING"] = "continuous_rendering";
|
|
29
|
-
/** The flag to continuously update the shadow map. */
|
|
30
|
-
FLAG_TYPE["CONTINUOUS_SHADOW_MAP_UPDATE"] = "continuous_shadow_map_update";
|
|
31
|
-
})(FLAG_TYPE = exports.FLAG_TYPE || (exports.FLAG_TYPE = {}));
|
|
32
|
-
var RENDERER_TYPE;
|
|
33
|
-
(function (RENDERER_TYPE) {
|
|
34
|
-
/** The standard rendering engine */
|
|
35
|
-
RENDERER_TYPE["STANDARD"] = "standard";
|
|
36
|
-
/** A basic version of the rendering engine */
|
|
37
|
-
RENDERER_TYPE["ATTRIBUTES"] = "attributes";
|
|
38
|
-
})(RENDERER_TYPE = exports.RENDERER_TYPE || (exports.RENDERER_TYPE = {}));
|
|
39
|
-
var SPINNER_POSITIONING;
|
|
40
|
-
(function (SPINNER_POSITIONING) {
|
|
41
|
-
SPINNER_POSITIONING["CENTER"] = "center";
|
|
42
|
-
SPINNER_POSITIONING["TOP_LEFT"] = "top_left";
|
|
43
|
-
SPINNER_POSITIONING["TOP_RIGHT"] = "top_right";
|
|
44
|
-
SPINNER_POSITIONING["BOTTOM_LEFT"] = "bottom_left";
|
|
45
|
-
SPINNER_POSITIONING["BOTTOM_RIGHT"] = "bottom_right";
|
|
46
|
-
})(SPINNER_POSITIONING = exports.SPINNER_POSITIONING || (exports.SPINNER_POSITIONING = {}));
|
|
47
|
-
var TEXTURE_ENCODING;
|
|
48
|
-
(function (TEXTURE_ENCODING) {
|
|
49
|
-
TEXTURE_ENCODING["LINEAR"] = "linear";
|
|
50
|
-
TEXTURE_ENCODING["SRGB"] = "srgb";
|
|
51
|
-
TEXTURE_ENCODING["RGBE"] = "rgbe";
|
|
52
|
-
TEXTURE_ENCODING["RGBM7"] = "rgbm7";
|
|
53
|
-
TEXTURE_ENCODING["RGBM16"] = "rgbm16";
|
|
54
|
-
TEXTURE_ENCODING["RGBD"] = "rgbd";
|
|
55
|
-
TEXTURE_ENCODING["GAMMA"] = "gamma";
|
|
56
|
-
})(TEXTURE_ENCODING = exports.TEXTURE_ENCODING || (exports.TEXTURE_ENCODING = {}));
|
|
57
|
-
var TONE_MAPPING;
|
|
58
|
-
(function (TONE_MAPPING) {
|
|
59
|
-
TONE_MAPPING["NONE"] = "none";
|
|
60
|
-
TONE_MAPPING["LINEAR"] = "linear";
|
|
61
|
-
TONE_MAPPING["REINHARD"] = "reinhard";
|
|
62
|
-
TONE_MAPPING["CINEON"] = "cineon";
|
|
63
|
-
TONE_MAPPING["ACES_FILMIC"] = "aces_filmic";
|
|
64
|
-
})(TONE_MAPPING = exports.TONE_MAPPING || (exports.TONE_MAPPING = {}));
|
|
65
|
-
var VISIBILITY_MODE;
|
|
66
|
-
(function (VISIBILITY_MODE) {
|
|
67
|
-
/** The viewer shows the scene instantly */
|
|
68
|
-
VISIBILITY_MODE["INSTANT"] = "instant";
|
|
69
|
-
/** The viewer shows the scene after the first session loading */
|
|
70
|
-
VISIBILITY_MODE["SESSION"] = "session";
|
|
71
|
-
/** The viewer is shown once the 'show' property is set to true */
|
|
72
|
-
VISIBILITY_MODE["MANUAL"] = "manual";
|
|
73
|
-
})(VISIBILITY_MODE = exports.VISIBILITY_MODE || (exports.VISIBILITY_MODE = {}));
|
|
74
|
-
// #endregion Enums (7)
|
|
75
4
|
//# sourceMappingURL=IRenderingEngine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IRenderingEngine.js","sourceRoot":"","sources":["../src/IRenderingEngine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IRenderingEngine.js","sourceRoot":"","sources":["../src/IRenderingEngine.ts"],"names":[],"mappings":";;AAgDA,4BAA4B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IManager } from './IManager';
|
|
2
|
-
import {
|
|
2
|
+
import { IRenderingEngine } from './IRenderingEngine';
|
|
3
3
|
import { ISDObject } from './ISDObject';
|
|
4
|
-
export { IRenderingEngine, ISDObject
|
|
4
|
+
export { IRenderingEngine, ISDObject };
|
|
5
5
|
export { IManager };
|
|
6
6
|
//# 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,EAAE,QAAQ,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EACL,gBAAgB,EAAE,SAAS,EAC5B,CAAC;AAEF,OAAO,EACL,QAAQ,EACT,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SPINNER_POSITIONING = exports.FLAG_TYPE = exports.BUSY_MODE_DISPLAY = exports.TONE_MAPPING = exports.TEXTURE_ENCODING = exports.VISIBILITY_MODE = exports.RENDERER_TYPE = void 0;
|
|
4
|
-
const IRenderingEngine_1 = require("./IRenderingEngine");
|
|
5
|
-
Object.defineProperty(exports, "BUSY_MODE_DISPLAY", { enumerable: true, get: function () { return IRenderingEngine_1.BUSY_MODE_DISPLAY; } });
|
|
6
|
-
Object.defineProperty(exports, "FLAG_TYPE", { enumerable: true, get: function () { return IRenderingEngine_1.FLAG_TYPE; } });
|
|
7
|
-
Object.defineProperty(exports, "RENDERER_TYPE", { enumerable: true, get: function () { return IRenderingEngine_1.RENDERER_TYPE; } });
|
|
8
|
-
Object.defineProperty(exports, "TEXTURE_ENCODING", { enumerable: true, get: function () { return IRenderingEngine_1.TEXTURE_ENCODING; } });
|
|
9
|
-
Object.defineProperty(exports, "TONE_MAPPING", { enumerable: true, get: function () { return IRenderingEngine_1.TONE_MAPPING; } });
|
|
10
|
-
Object.defineProperty(exports, "VISIBILITY_MODE", { enumerable: true, get: function () { return IRenderingEngine_1.VISIBILITY_MODE; } });
|
|
11
|
-
Object.defineProperty(exports, "SPINNER_POSITIONING", { enumerable: true, get: function () { return IRenderingEngine_1.SPINNER_POSITIONING; } });
|
|
12
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.rendering-engine.rendering-engine",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"testEnvironment": "node"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@shapediver/viewer.shared.math": "3.
|
|
42
|
-
"@shapediver/viewer.shared.node-tree": "3.
|
|
43
|
-
"@shapediver/viewer.shared.services": "3.
|
|
44
|
-
"@shapediver/viewer.shared.types": "3.
|
|
41
|
+
"@shapediver/viewer.shared.math": "3.7.0",
|
|
42
|
+
"@shapediver/viewer.shared.node-tree": "3.7.0",
|
|
43
|
+
"@shapediver/viewer.shared.services": "3.7.0",
|
|
44
|
+
"@shapediver/viewer.shared.types": "3.7.0",
|
|
45
45
|
"gl-matrix": "3.3.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "8349de91e9ca3a3ea0a283363c01eccca89eb70b"
|
|
48
48
|
}
|