@shapediver/viewer.shared.types 3.5.5 → 3.5.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.
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Modes used to indicate that a viewport is busy.
3
+ */
4
+ export declare enum BUSY_MODE_DISPLAY {
5
+ /** The viewport will be blurred when a session is busy. */
6
+ BLUR = "blur",
7
+ /** A spinner will be shown when a session is busy. */
8
+ SPINNER = "spinner",
9
+ /** Nothing happens when a session is busy. */
10
+ NONE = "none"
11
+ }
12
+ /**
13
+ * Types of flags used to influence the render loop.
14
+ */
15
+ export declare enum FLAG_TYPE {
16
+ /** The flag for the busy mode. */
17
+ BUSY_MODE = "busy_mode",
18
+ /** The flag to freeze the camera. */
19
+ CAMERA_FREEZE = "camera_freeze",
20
+ /** The flag to continuously render the scene. */
21
+ CONTINUOUS_RENDERING = "continuous_rendering",
22
+ /** The flag to continuously update the shadow map. */
23
+ CONTINUOUS_SHADOW_MAP_UPDATE = "continuous_shadow_map_update"
24
+ }
25
+ export declare enum RENDERER_TYPE {
26
+ /** The standard rendering engine */
27
+ STANDARD = "standard",
28
+ /** A basic version of the rendering engine */
29
+ ATTRIBUTES = "attributes"
30
+ }
31
+ export declare enum SPINNER_POSITIONING {
32
+ CENTER = "center",
33
+ TOP_LEFT = "top_left",
34
+ TOP_RIGHT = "top_right",
35
+ BOTTOM_LEFT = "bottom_left",
36
+ BOTTOM_RIGHT = "bottom_right"
37
+ }
38
+ export declare enum TEXTURE_ENCODING {
39
+ LINEAR = "linear",
40
+ SRGB = "srgb",
41
+ RGBE = "rgbe",
42
+ RGBM7 = "rgbm7",
43
+ RGBM16 = "rgbm16",
44
+ RGBD = "rgbd",
45
+ GAMMA = "gamma"
46
+ }
47
+ export declare enum TONE_MAPPING {
48
+ NONE = "none",
49
+ LINEAR = "linear",
50
+ REINHARD = "reinhard",
51
+ CINEON = "cineon",
52
+ ACES_FILMIC = "aces_filmic"
53
+ }
54
+ export declare enum VISIBILITY_MODE {
55
+ /** The viewer shows the scene instantly */
56
+ INSTANT = "instant",
57
+ /** The viewer shows the scene after the first session loading */
58
+ SESSION = "session",
59
+ /** The viewer is shown once the 'show' property is set to true */
60
+ MANUAL = "manual"
61
+ }
62
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/interfaces/renderingEngine/enums.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,iBAAiB;IACzB,2DAA2D;IAC3D,IAAI,SAAS;IACb,sDAAsD;IACtD,OAAO,YAAY;IACnB,8CAA8C;IAC9C,IAAI,SAAS;CAChB;AAED;;KAEK;AACL,oBAAY,SAAS;IACjB,kCAAkC;IAClC,SAAS,cAAc;IACvB,qCAAqC;IACrC,aAAa,kBAAkB;IAC/B,iDAAiD;IACjD,oBAAoB,yBAAyB;IAC7C,sDAAsD;IACtD,4BAA4B,iCAAiC;CAChE;AAED,oBAAY,aAAa;IACrB,oCAAoC;IACpC,QAAQ,aAAa;IACrB,8CAA8C;IAC9C,UAAU,eAAe;CAC5B;AAED,oBAAY,mBAAmB;IAC3B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;CAChC;AAED,oBAAY,gBAAgB;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAED,oBAAY,YAAY;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,WAAW,gBAAgB;CAC9B;AAED,oBAAY,eAAe;IACvB,2CAA2C;IAC3C,OAAO,YAAY;IACnB,iEAAiE;IACjE,OAAO,YAAY;IACnB,kEAAkE;IAClE,MAAM,WAAW;CACpB"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ // #region Enums (7)
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VISIBILITY_MODE = exports.TONE_MAPPING = exports.TEXTURE_ENCODING = exports.SPINNER_POSITIONING = exports.RENDERER_TYPE = exports.FLAG_TYPE = exports.BUSY_MODE_DISPLAY = void 0;
5
+ /**
6
+ * Modes used to indicate that a viewport is busy.
7
+ */
8
+ var BUSY_MODE_DISPLAY;
9
+ (function (BUSY_MODE_DISPLAY) {
10
+ /** The viewport will be blurred when a session is busy. */
11
+ BUSY_MODE_DISPLAY["BLUR"] = "blur";
12
+ /** A spinner will be shown when a session is busy. */
13
+ BUSY_MODE_DISPLAY["SPINNER"] = "spinner";
14
+ /** Nothing happens when a session is busy. */
15
+ BUSY_MODE_DISPLAY["NONE"] = "none";
16
+ })(BUSY_MODE_DISPLAY = exports.BUSY_MODE_DISPLAY || (exports.BUSY_MODE_DISPLAY = {}));
17
+ /**
18
+ * Types of flags used to influence the render loop.
19
+ */
20
+ var FLAG_TYPE;
21
+ (function (FLAG_TYPE) {
22
+ /** The flag for the busy mode. */
23
+ FLAG_TYPE["BUSY_MODE"] = "busy_mode";
24
+ /** The flag to freeze the camera. */
25
+ FLAG_TYPE["CAMERA_FREEZE"] = "camera_freeze";
26
+ /** The flag to continuously render the scene. */
27
+ FLAG_TYPE["CONTINUOUS_RENDERING"] = "continuous_rendering";
28
+ /** The flag to continuously update the shadow map. */
29
+ FLAG_TYPE["CONTINUOUS_SHADOW_MAP_UPDATE"] = "continuous_shadow_map_update";
30
+ })(FLAG_TYPE = exports.FLAG_TYPE || (exports.FLAG_TYPE = {}));
31
+ var RENDERER_TYPE;
32
+ (function (RENDERER_TYPE) {
33
+ /** The standard rendering engine */
34
+ RENDERER_TYPE["STANDARD"] = "standard";
35
+ /** A basic version of the rendering engine */
36
+ RENDERER_TYPE["ATTRIBUTES"] = "attributes";
37
+ })(RENDERER_TYPE = exports.RENDERER_TYPE || (exports.RENDERER_TYPE = {}));
38
+ var SPINNER_POSITIONING;
39
+ (function (SPINNER_POSITIONING) {
40
+ SPINNER_POSITIONING["CENTER"] = "center";
41
+ SPINNER_POSITIONING["TOP_LEFT"] = "top_left";
42
+ SPINNER_POSITIONING["TOP_RIGHT"] = "top_right";
43
+ SPINNER_POSITIONING["BOTTOM_LEFT"] = "bottom_left";
44
+ SPINNER_POSITIONING["BOTTOM_RIGHT"] = "bottom_right";
45
+ })(SPINNER_POSITIONING = exports.SPINNER_POSITIONING || (exports.SPINNER_POSITIONING = {}));
46
+ var TEXTURE_ENCODING;
47
+ (function (TEXTURE_ENCODING) {
48
+ TEXTURE_ENCODING["LINEAR"] = "linear";
49
+ TEXTURE_ENCODING["SRGB"] = "srgb";
50
+ TEXTURE_ENCODING["RGBE"] = "rgbe";
51
+ TEXTURE_ENCODING["RGBM7"] = "rgbm7";
52
+ TEXTURE_ENCODING["RGBM16"] = "rgbm16";
53
+ TEXTURE_ENCODING["RGBD"] = "rgbd";
54
+ TEXTURE_ENCODING["GAMMA"] = "gamma";
55
+ })(TEXTURE_ENCODING = exports.TEXTURE_ENCODING || (exports.TEXTURE_ENCODING = {}));
56
+ var TONE_MAPPING;
57
+ (function (TONE_MAPPING) {
58
+ TONE_MAPPING["NONE"] = "none";
59
+ TONE_MAPPING["LINEAR"] = "linear";
60
+ TONE_MAPPING["REINHARD"] = "reinhard";
61
+ TONE_MAPPING["CINEON"] = "cineon";
62
+ TONE_MAPPING["ACES_FILMIC"] = "aces_filmic";
63
+ })(TONE_MAPPING = exports.TONE_MAPPING || (exports.TONE_MAPPING = {}));
64
+ var VISIBILITY_MODE;
65
+ (function (VISIBILITY_MODE) {
66
+ /** The viewer shows the scene instantly */
67
+ VISIBILITY_MODE["INSTANT"] = "instant";
68
+ /** The viewer shows the scene after the first session loading */
69
+ VISIBILITY_MODE["SESSION"] = "session";
70
+ /** The viewer is shown once the 'show' property is set to true */
71
+ VISIBILITY_MODE["MANUAL"] = "manual";
72
+ })(VISIBILITY_MODE = exports.VISIBILITY_MODE || (exports.VISIBILITY_MODE = {}));
73
+ // #endregion Enums (7)
74
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/interfaces/renderingEngine/enums.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAEpB;;GAEG;AACH,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,2DAA2D;IAC3D,kCAAa,CAAA;IACb,sDAAsD;IACtD,wCAAmB,CAAA;IACnB,8CAA8C;IAC9C,kCAAa,CAAA;AACjB,CAAC,EAPW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAO5B;AAED;;KAEK;AACL,IAAY,SASX;AATD,WAAY,SAAS;IACjB,kCAAkC;IAClC,oCAAuB,CAAA;IACvB,qCAAqC;IACrC,4CAA+B,CAAA;IAC/B,iDAAiD;IACjD,0DAA6C,CAAA;IAC7C,sDAAsD;IACtD,0EAA6D,CAAA;AACjE,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,oCAAoC;IACpC,sCAAqB,CAAA;IACrB,8CAA8C;IAC9C,0CAAyB,CAAA;AAC7B,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,oDAA6B,CAAA;AACjC,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IACxB,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,mCAAe,CAAA;AACnB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACpB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,2CAA2B,CAAA;AAC/B,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAED,IAAY,eAOX;AAPD,WAAY,eAAe;IACvB,2CAA2C;IAC3C,sCAAmB,CAAA;IACnB,iEAAiE;IACjE,sCAAmB,CAAA;IACnB,kEAAkE;IAClE,oCAAiB,CAAA;AACrB,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AAED,uBAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/viewer.shared.types",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "Michael Oppitz <michael@shapediver.com>",
@@ -40,11 +40,11 @@
40
40
  "dependencies": {
41
41
  "@shapediver/sdk.geometry-api-sdk-v2": "1.12.2",
42
42
  "@shapediver/sdk.sdtf-v1": "1.5.3",
43
- "@shapediver/viewer.shared.math": "3.5.5",
44
- "@shapediver/viewer.shared.node-tree": "3.5.5",
45
- "@shapediver/viewer.shared.services": "3.5.5",
43
+ "@shapediver/viewer.shared.math": "3.5.7",
44
+ "@shapediver/viewer.shared.node-tree": "3.5.7",
45
+ "@shapediver/viewer.shared.services": "3.5.7",
46
46
  "gl-matrix": "3.3.0",
47
47
  "zod": "^3.23.8"
48
48
  },
49
- "gitHead": "c7f06566e67aa2453d7fa74cbca02952ed94fdbe"
49
+ "gitHead": "59c8cb124d4c562c450102434c7b301df9ff7cb0"
50
50
  }