@shapediver/viewer.shared.services 3.16.7 → 3.16.9

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.
Files changed (94) hide show
  1. package/dist/converter/Converter.d.ts +77 -77
  2. package/dist/converter/Converter.js +424 -424
  3. package/dist/converter/Converter.js.map +1 -1
  4. package/dist/dom-event-engine/DomEventEngine.d.ts +56 -56
  5. package/dist/dom-event-engine/DomEventEngine.js +275 -275
  6. package/dist/dom-event-engine/DomEventEngine.js.map +1 -1
  7. package/dist/dom-event-engine/IDomEventListener.d.ts +10 -10
  8. package/dist/dom-event-engine/IDomEventListener.js +2 -2
  9. package/dist/event-engine/EventEngine.d.ts +35 -35
  10. package/dist/event-engine/EventEngine.js +107 -107
  11. package/dist/event-engine/EventEngine.js.map +1 -1
  12. package/dist/event-engine/interfaces/ICallback.d.ts +4 -4
  13. package/dist/event-engine/interfaces/ICallback.js +2 -2
  14. package/dist/event-engine/interfaces/IListener.d.ts +5 -5
  15. package/dist/event-engine/interfaces/IListener.js +2 -2
  16. package/dist/http-client/HttpClient.d.ts +106 -106
  17. package/dist/http-client/HttpClient.js +375 -375
  18. package/dist/http-client/HttpClient.js.map +1 -1
  19. package/dist/http-client/HttpResponse.d.ts +5 -5
  20. package/dist/http-client/HttpResponse.js +2 -2
  21. package/dist/index.d.ts +43 -43
  22. package/dist/index.js +102 -102
  23. package/dist/input-validator/InputValidator.d.ts +10 -10
  24. package/dist/input-validator/InputValidator.d.ts.map +1 -1
  25. package/dist/input-validator/InputValidator.js +169 -169
  26. package/dist/input-validator/InputValidator.js.map +1 -1
  27. package/dist/logger/ErrorTypeGuards.d.ts +41 -41
  28. package/dist/logger/ErrorTypeGuards.js +158 -159
  29. package/dist/logger/ErrorTypeGuards.js.map +1 -1
  30. package/dist/logger/Logger.d.ts +63 -63
  31. package/dist/logger/Logger.js +179 -179
  32. package/dist/logger/Logger.js.map +1 -1
  33. package/dist/logger/ShapeDiverBackendErrors.d.ts +14 -14
  34. package/dist/logger/ShapeDiverBackendErrors.js +28 -28
  35. package/dist/logger/ShapeDiverError.d.ts +33 -33
  36. package/dist/logger/ShapeDiverError.js +43 -43
  37. package/dist/logger/ShapeDiverError.js.map +1 -1
  38. package/dist/logger/ShapeDiverViewerErrors.d.ts +87 -87
  39. package/dist/logger/ShapeDiverViewerErrors.d.ts.map +1 -1
  40. package/dist/logger/ShapeDiverViewerErrors.js +119 -119
  41. package/dist/logger/ShapeDiverViewerErrors.js.map +1 -1
  42. package/dist/parameter-utils/ParameterUtils.d.ts +3 -3
  43. package/dist/parameter-utils/ParameterUtils.d.ts.map +1 -1
  44. package/dist/parameter-utils/ParameterUtils.js +161 -161
  45. package/dist/parameter-utils/ParameterUtils.js.map +1 -1
  46. package/dist/performance-evaluator/PerformanceEvaluator.d.ts +65 -65
  47. package/dist/performance-evaluator/PerformanceEvaluator.js +125 -125
  48. package/dist/settings-engine/SettingsEngine.d.ts +43 -43
  49. package/dist/settings-engine/SettingsEngine.d.ts.map +1 -1
  50. package/dist/settings-engine/SettingsEngine.js +162 -162
  51. package/dist/settings-engine/SettingsEngine.js.map +1 -1
  52. package/dist/settings-engine/defaults/Defaults.d.ts +2 -2
  53. package/dist/settings-engine/defaults/Defaults.js +102 -102
  54. package/dist/settings-engine/defaults/FurnitureDefaults.d.ts +2 -2
  55. package/dist/settings-engine/defaults/FurnitureDefaults.js +158 -158
  56. package/dist/settings-engine/defaults/HighPerformanceDefaults.d.ts +2 -2
  57. package/dist/settings-engine/defaults/HighPerformanceDefaults.js +114 -114
  58. package/dist/settings-engine/defaults/JewelryDefaults.d.ts +2 -2
  59. package/dist/settings-engine/defaults/JewelryDefaults.js +91 -91
  60. package/dist/settings-engine/defaults/MedicalDefaults.d.ts +2 -2
  61. package/dist/settings-engine/defaults/MedicalDefaults.js +102 -102
  62. package/dist/settings-engine/defaults/TwoDimensionalDefaults.d.ts +2 -2
  63. package/dist/settings-engine/defaults/TwoDimensionalDefaults.js +83 -83
  64. package/dist/state-engine/ISessionGlobalAccessObjectDefinition.d.ts +21 -21
  65. package/dist/state-engine/ISessionGlobalAccessObjectDefinition.js +2 -2
  66. package/dist/state-engine/IViewportGlobalAccessObjectDefinition.d.ts +33 -33
  67. package/dist/state-engine/IViewportGlobalAccessObjectDefinition.js +2 -2
  68. package/dist/state-engine/StateEngine.d.ts +18 -18
  69. package/dist/state-engine/StateEngine.js +32 -32
  70. package/dist/state-engine/StatePromise.d.ts +13 -13
  71. package/dist/state-engine/StatePromise.js +55 -55
  72. package/dist/system-info/SystemInfo.d.ts +57 -57
  73. package/dist/system-info/SystemInfo.js +127 -127
  74. package/dist/system-info/SystemInfo.js.map +1 -1
  75. package/dist/type-check/TypeChecker.d.ts +6 -6
  76. package/dist/type-check/TypeChecker.js +19 -19
  77. package/dist/utilities/ObservableArray.d.ts +25 -25
  78. package/dist/utilities/ObservableArray.d.ts.map +1 -1
  79. package/dist/utilities/ObservableArray.js +64 -64
  80. package/dist/utilities/ObservableArray.js.map +1 -1
  81. package/dist/utilities/base64.d.ts +2 -2
  82. package/dist/utilities/base64.d.ts.map +1 -1
  83. package/dist/utilities/base64.js +21 -21
  84. package/dist/utilities/base64.js.map +1 -1
  85. package/dist/utilities/hashCreator.d.ts +7 -7
  86. package/dist/utilities/hashCreator.d.ts.map +1 -1
  87. package/dist/utilities/hashCreator.js +29 -29
  88. package/dist/utilities/hashCreator.js.map +1 -1
  89. package/dist/utilities/numberCleaner.d.ts +1 -1
  90. package/dist/utilities/numberCleaner.d.ts.map +1 -1
  91. package/dist/utilities/numberCleaner.js +8 -8
  92. package/dist/uuid-generator/UuidGenerator.d.ts +28 -28
  93. package/dist/uuid-generator/UuidGenerator.js +46 -46
  94. package/package.json +6 -6
@@ -1,92 +1,92 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JewelryDefaults = void 0;
4
- const JewelryDefaults = () => {
5
- const s = {
6
- build_date: "",
7
- build_version: "",
8
- configuration: {},
9
- settings_version: "7.0",
10
- ar: {
11
- enable: true,
12
- autoScaling: true,
13
- },
14
- camera: {
15
- cameraId: "",
16
- cameras: {},
17
- loadDefaultCameras: true,
18
- },
19
- environment: {
20
- clearAlpha: 1.0,
21
- clearColor: "rgb(66, 66, 66)",
22
- map: "jewelry_studio",
23
- mapAsBackground: false,
24
- mapResolution: "1024",
25
- rotation: { x: 0, y: 0, z: 0, w: 1 },
26
- intensity: 1,
27
- blurriness: 0,
28
- },
29
- environmentGeometry: {
30
- gridColor: "#44444426",
31
- gridVisibility: false,
32
- groundPlaneColor: "#636363ff",
33
- groundPlaneVisibility: false,
34
- groundPlaneShadowColor: "#d3d3d3ff",
35
- groundPlaneShadowVisibility: false,
36
- contactShadowBlur: 1.5,
37
- contactShadowHeight: 0.25,
38
- contactShadowDarkness: 0.5,
39
- contactShadowVisibility: true,
40
- contactShadowOpacity: 1,
41
- },
42
- general: {
43
- transformation: {
44
- scale: { x: 1, y: 1, z: 1 },
45
- translation: { x: 0, y: 0, z: 0 },
46
- rotation: { x: 0, y: 0, z: 0 },
47
- },
48
- blurWhenBusy: true,
49
- pointSize: 1.0,
50
- showMessages: true,
51
- },
52
- light: {
53
- lightSceneId: "",
54
- lightScenes: {},
55
- },
56
- postprocessing: {
57
- antiAliasingTechnique: "smaa",
58
- antiAliasingTechniqueMobile: "fxaa",
59
- enablePostProcessingOnMobile: true,
60
- ssaaSampleLevel: 2,
61
- effects: [
62
- {
63
- properties: {
64
- intensity: 1,
65
- luminanceThreshold: 0.95,
66
- },
67
- type: "bloom",
68
- },
69
- ],
70
- },
71
- rendering: {
72
- automaticColorAdjustment: true,
73
- beautyRenderDelay: 50,
74
- beautyRenderBlendingDuration: 1500,
75
- lights: true,
76
- outputEncoding: "srgb",
77
- physicallyCorrectLights: true,
78
- shadows: true,
79
- softShadows: true,
80
- textureEncoding: "srgb",
81
- toneMapping: "aces_filmic",
82
- toneMappingExposure: 1,
83
- },
84
- session: {},
85
- material: {
86
- defaultMaterialColor: "#199b9bff",
87
- },
88
- };
89
- return s;
90
- };
91
- exports.JewelryDefaults = JewelryDefaults;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JewelryDefaults = void 0;
4
+ const JewelryDefaults = () => {
5
+ const s = {
6
+ build_date: "",
7
+ build_version: "",
8
+ configuration: {},
9
+ settings_version: "7.0",
10
+ ar: {
11
+ enable: true,
12
+ autoScaling: true,
13
+ },
14
+ camera: {
15
+ cameraId: "",
16
+ cameras: {},
17
+ loadDefaultCameras: true,
18
+ },
19
+ environment: {
20
+ clearAlpha: 1.0,
21
+ clearColor: "rgb(66, 66, 66)",
22
+ map: "jewelry_studio",
23
+ mapAsBackground: false,
24
+ mapResolution: "1024",
25
+ rotation: { x: 0, y: 0, z: 0, w: 1 },
26
+ intensity: 1,
27
+ blurriness: 0,
28
+ },
29
+ environmentGeometry: {
30
+ gridColor: "#44444426",
31
+ gridVisibility: false,
32
+ groundPlaneColor: "#636363ff",
33
+ groundPlaneVisibility: false,
34
+ groundPlaneShadowColor: "#d3d3d3ff",
35
+ groundPlaneShadowVisibility: false,
36
+ contactShadowBlur: 1.5,
37
+ contactShadowHeight: 0.25,
38
+ contactShadowDarkness: 0.5,
39
+ contactShadowVisibility: true,
40
+ contactShadowOpacity: 1,
41
+ },
42
+ general: {
43
+ transformation: {
44
+ scale: { x: 1, y: 1, z: 1 },
45
+ translation: { x: 0, y: 0, z: 0 },
46
+ rotation: { x: 0, y: 0, z: 0 },
47
+ },
48
+ blurWhenBusy: true,
49
+ pointSize: 1.0,
50
+ showMessages: true,
51
+ },
52
+ light: {
53
+ lightSceneId: "",
54
+ lightScenes: {},
55
+ },
56
+ postprocessing: {
57
+ antiAliasingTechnique: "smaa",
58
+ antiAliasingTechniqueMobile: "fxaa",
59
+ enablePostProcessingOnMobile: true,
60
+ ssaaSampleLevel: 2,
61
+ effects: [
62
+ {
63
+ properties: {
64
+ intensity: 1,
65
+ luminanceThreshold: 0.95,
66
+ },
67
+ type: "bloom",
68
+ },
69
+ ],
70
+ },
71
+ rendering: {
72
+ automaticColorAdjustment: true,
73
+ beautyRenderDelay: 50,
74
+ beautyRenderBlendingDuration: 1500,
75
+ lights: true,
76
+ outputEncoding: "srgb",
77
+ physicallyCorrectLights: true,
78
+ shadows: true,
79
+ softShadows: true,
80
+ textureEncoding: "srgb",
81
+ toneMapping: "aces_filmic",
82
+ toneMappingExposure: 1,
83
+ },
84
+ session: {},
85
+ material: {
86
+ defaultMaterialColor: "#199b9bff",
87
+ },
88
+ };
89
+ return s;
90
+ };
91
+ exports.JewelryDefaults = JewelryDefaults;
92
92
  //# sourceMappingURL=JewelryDefaults.js.map
@@ -1,3 +1,3 @@
1
- import { ISettings } from "@shapediver/viewer.settings";
2
- export declare const MedicalDefaults: () => ISettings;
1
+ import { ISettings } from "@shapediver/viewer.settings";
2
+ export declare const MedicalDefaults: () => ISettings;
3
3
  //# sourceMappingURL=MedicalDefaults.d.ts.map
@@ -1,103 +1,103 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MedicalDefaults = void 0;
4
- const MedicalDefaults = () => {
5
- const s = {
6
- build_date: "",
7
- build_version: "",
8
- configuration: {},
9
- settings_version: "7.0",
10
- ar: {
11
- enable: true,
12
- autoScaling: true,
13
- },
14
- camera: {
15
- cameraId: "",
16
- cameras: {},
17
- loadDefaultCameras: true,
18
- },
19
- environment: {
20
- clearAlpha: 1.0,
21
- clearColor: "#ffffff",
22
- map: "hospital",
23
- mapAsBackground: false,
24
- mapResolution: "1024",
25
- rotation: { x: 0, y: 0, z: 0, w: 1 },
26
- intensity: 1,
27
- blurriness: 0,
28
- },
29
- environmentGeometry: {
30
- gridColor: "#44444426",
31
- gridVisibility: false,
32
- groundPlaneColor: "#636363ff",
33
- groundPlaneVisibility: false,
34
- groundPlaneShadowColor: "#d3d3d3ff",
35
- groundPlaneShadowVisibility: false,
36
- contactShadowBlur: 1.5,
37
- contactShadowHeight: 0.25,
38
- contactShadowDarkness: 2.5,
39
- contactShadowVisibility: false,
40
- contactShadowOpacity: 1,
41
- },
42
- general: {
43
- transformation: {
44
- scale: { x: 1, y: 1, z: 1 },
45
- translation: { x: 0, y: 0, z: 0 },
46
- rotation: { x: 0, y: 0, z: 0 },
47
- },
48
- blurWhenBusy: true,
49
- pointSize: 1.0,
50
- showMessages: true,
51
- },
52
- light: {
53
- lightSceneId: "",
54
- lightScenes: {},
55
- },
56
- postprocessing: {
57
- antiAliasingTechnique: "smaa",
58
- antiAliasingTechniqueMobile: "fxaa",
59
- enablePostProcessingOnMobile: true,
60
- ssaaSampleLevel: 2,
61
- effects: [
62
- {
63
- properties: {
64
- resolutionScale: 1,
65
- spp: 16,
66
- distance: 0.5,
67
- distanceIntensity: 1,
68
- intensity: 2.5,
69
- color: "#000000",
70
- iterations: 1,
71
- radius: 12,
72
- rings: 11,
73
- lumaPhi: 10,
74
- depthPhi: 2,
75
- normalPhi: 3.25,
76
- samples: 16,
77
- },
78
- type: "ssao",
79
- },
80
- ],
81
- },
82
- rendering: {
83
- automaticColorAdjustment: true,
84
- beautyRenderDelay: 50,
85
- beautyRenderBlendingDuration: 1500,
86
- lights: true,
87
- outputEncoding: "srgb",
88
- physicallyCorrectLights: true,
89
- shadows: true,
90
- softShadows: true,
91
- textureEncoding: "srgb",
92
- toneMapping: "none",
93
- toneMappingExposure: 1,
94
- },
95
- session: {},
96
- material: {
97
- defaultMaterialColor: "#199b9bff",
98
- },
99
- };
100
- return s;
101
- };
102
- exports.MedicalDefaults = MedicalDefaults;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MedicalDefaults = void 0;
4
+ const MedicalDefaults = () => {
5
+ const s = {
6
+ build_date: "",
7
+ build_version: "",
8
+ configuration: {},
9
+ settings_version: "7.0",
10
+ ar: {
11
+ enable: true,
12
+ autoScaling: true,
13
+ },
14
+ camera: {
15
+ cameraId: "",
16
+ cameras: {},
17
+ loadDefaultCameras: true,
18
+ },
19
+ environment: {
20
+ clearAlpha: 1.0,
21
+ clearColor: "#ffffff",
22
+ map: "hospital",
23
+ mapAsBackground: false,
24
+ mapResolution: "1024",
25
+ rotation: { x: 0, y: 0, z: 0, w: 1 },
26
+ intensity: 1,
27
+ blurriness: 0,
28
+ },
29
+ environmentGeometry: {
30
+ gridColor: "#44444426",
31
+ gridVisibility: false,
32
+ groundPlaneColor: "#636363ff",
33
+ groundPlaneVisibility: false,
34
+ groundPlaneShadowColor: "#d3d3d3ff",
35
+ groundPlaneShadowVisibility: false,
36
+ contactShadowBlur: 1.5,
37
+ contactShadowHeight: 0.25,
38
+ contactShadowDarkness: 2.5,
39
+ contactShadowVisibility: false,
40
+ contactShadowOpacity: 1,
41
+ },
42
+ general: {
43
+ transformation: {
44
+ scale: { x: 1, y: 1, z: 1 },
45
+ translation: { x: 0, y: 0, z: 0 },
46
+ rotation: { x: 0, y: 0, z: 0 },
47
+ },
48
+ blurWhenBusy: true,
49
+ pointSize: 1.0,
50
+ showMessages: true,
51
+ },
52
+ light: {
53
+ lightSceneId: "",
54
+ lightScenes: {},
55
+ },
56
+ postprocessing: {
57
+ antiAliasingTechnique: "smaa",
58
+ antiAliasingTechniqueMobile: "fxaa",
59
+ enablePostProcessingOnMobile: true,
60
+ ssaaSampleLevel: 2,
61
+ effects: [
62
+ {
63
+ properties: {
64
+ resolutionScale: 1,
65
+ spp: 16,
66
+ distance: 0.5,
67
+ distanceIntensity: 1,
68
+ intensity: 2.5,
69
+ color: "#000000",
70
+ iterations: 1,
71
+ radius: 12,
72
+ rings: 11,
73
+ lumaPhi: 10,
74
+ depthPhi: 2,
75
+ normalPhi: 3.25,
76
+ samples: 16,
77
+ },
78
+ type: "ssao",
79
+ },
80
+ ],
81
+ },
82
+ rendering: {
83
+ automaticColorAdjustment: true,
84
+ beautyRenderDelay: 50,
85
+ beautyRenderBlendingDuration: 1500,
86
+ lights: true,
87
+ outputEncoding: "srgb",
88
+ physicallyCorrectLights: true,
89
+ shadows: true,
90
+ softShadows: true,
91
+ textureEncoding: "srgb",
92
+ toneMapping: "none",
93
+ toneMappingExposure: 1,
94
+ },
95
+ session: {},
96
+ material: {
97
+ defaultMaterialColor: "#199b9bff",
98
+ },
99
+ };
100
+ return s;
101
+ };
102
+ exports.MedicalDefaults = MedicalDefaults;
103
103
  //# sourceMappingURL=MedicalDefaults.js.map
@@ -1,3 +1,3 @@
1
- import { ISettings } from "@shapediver/viewer.settings";
2
- export declare const TwoDimensionalDefaults: () => ISettings;
1
+ import { ISettings } from "@shapediver/viewer.settings";
2
+ export declare const TwoDimensionalDefaults: () => ISettings;
3
3
  //# sourceMappingURL=TwoDimensionalDefaults.d.ts.map
@@ -1,84 +1,84 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TwoDimensionalDefaults = void 0;
4
- const TwoDimensionalDefaults = () => {
5
- const s = {
6
- build_date: "",
7
- build_version: "",
8
- configuration: {},
9
- settings_version: "7.0",
10
- ar: {
11
- enable: true,
12
- autoScaling: true,
13
- },
14
- camera: {
15
- cameraId: "",
16
- cameras: {},
17
- loadDefaultCameras: true,
18
- },
19
- environment: {
20
- clearAlpha: 1.0,
21
- clearColor: "#ffffff",
22
- map: "default_studio",
23
- mapAsBackground: false,
24
- mapResolution: "1024",
25
- rotation: { x: 0, y: 0, z: 0, w: 1 },
26
- intensity: 1,
27
- blurriness: 0,
28
- },
29
- environmentGeometry: {
30
- gridColor: "#44444426",
31
- gridVisibility: false,
32
- groundPlaneColor: "#636363ff",
33
- groundPlaneVisibility: false,
34
- groundPlaneShadowColor: "#d3d3d3ff",
35
- groundPlaneShadowVisibility: false,
36
- contactShadowBlur: 1.5,
37
- contactShadowHeight: 0.25,
38
- contactShadowDarkness: 2.5,
39
- contactShadowVisibility: false,
40
- contactShadowOpacity: 1,
41
- },
42
- general: {
43
- transformation: {
44
- scale: { x: 1, y: 1, z: 1 },
45
- translation: { x: 0, y: 0, z: 0 },
46
- rotation: { x: 0, y: 0, z: 0 },
47
- },
48
- blurWhenBusy: true,
49
- pointSize: 1.0,
50
- showMessages: true,
51
- },
52
- light: {
53
- lightSceneId: "",
54
- lightScenes: {},
55
- },
56
- postprocessing: {
57
- antiAliasingTechnique: "smaa",
58
- antiAliasingTechniqueMobile: "fxaa",
59
- enablePostProcessingOnMobile: true,
60
- ssaaSampleLevel: 2,
61
- effects: [],
62
- },
63
- rendering: {
64
- automaticColorAdjustment: true,
65
- beautyRenderDelay: 50,
66
- beautyRenderBlendingDuration: 1500,
67
- lights: true,
68
- outputEncoding: "srgb",
69
- physicallyCorrectLights: true,
70
- shadows: true,
71
- softShadows: true,
72
- textureEncoding: "srgb",
73
- toneMapping: "none",
74
- toneMappingExposure: 1,
75
- },
76
- session: {},
77
- material: {
78
- defaultMaterialColor: "#199b9bff",
79
- },
80
- };
81
- return s;
82
- };
83
- exports.TwoDimensionalDefaults = TwoDimensionalDefaults;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TwoDimensionalDefaults = void 0;
4
+ const TwoDimensionalDefaults = () => {
5
+ const s = {
6
+ build_date: "",
7
+ build_version: "",
8
+ configuration: {},
9
+ settings_version: "7.0",
10
+ ar: {
11
+ enable: true,
12
+ autoScaling: true,
13
+ },
14
+ camera: {
15
+ cameraId: "",
16
+ cameras: {},
17
+ loadDefaultCameras: true,
18
+ },
19
+ environment: {
20
+ clearAlpha: 1.0,
21
+ clearColor: "#ffffff",
22
+ map: "default_studio",
23
+ mapAsBackground: false,
24
+ mapResolution: "1024",
25
+ rotation: { x: 0, y: 0, z: 0, w: 1 },
26
+ intensity: 1,
27
+ blurriness: 0,
28
+ },
29
+ environmentGeometry: {
30
+ gridColor: "#44444426",
31
+ gridVisibility: false,
32
+ groundPlaneColor: "#636363ff",
33
+ groundPlaneVisibility: false,
34
+ groundPlaneShadowColor: "#d3d3d3ff",
35
+ groundPlaneShadowVisibility: false,
36
+ contactShadowBlur: 1.5,
37
+ contactShadowHeight: 0.25,
38
+ contactShadowDarkness: 2.5,
39
+ contactShadowVisibility: false,
40
+ contactShadowOpacity: 1,
41
+ },
42
+ general: {
43
+ transformation: {
44
+ scale: { x: 1, y: 1, z: 1 },
45
+ translation: { x: 0, y: 0, z: 0 },
46
+ rotation: { x: 0, y: 0, z: 0 },
47
+ },
48
+ blurWhenBusy: true,
49
+ pointSize: 1.0,
50
+ showMessages: true,
51
+ },
52
+ light: {
53
+ lightSceneId: "",
54
+ lightScenes: {},
55
+ },
56
+ postprocessing: {
57
+ antiAliasingTechnique: "smaa",
58
+ antiAliasingTechniqueMobile: "fxaa",
59
+ enablePostProcessingOnMobile: true,
60
+ ssaaSampleLevel: 2,
61
+ effects: [],
62
+ },
63
+ rendering: {
64
+ automaticColorAdjustment: true,
65
+ beautyRenderDelay: 50,
66
+ beautyRenderBlendingDuration: 1500,
67
+ lights: true,
68
+ outputEncoding: "srgb",
69
+ physicallyCorrectLights: true,
70
+ shadows: true,
71
+ softShadows: true,
72
+ textureEncoding: "srgb",
73
+ toneMapping: "none",
74
+ toneMappingExposure: 1,
75
+ },
76
+ session: {},
77
+ material: {
78
+ defaultMaterialColor: "#199b9bff",
79
+ },
80
+ };
81
+ return s;
82
+ };
83
+ exports.TwoDimensionalDefaults = TwoDimensionalDefaults;
84
84
  //# sourceMappingURL=TwoDimensionalDefaults.js.map
@@ -1,22 +1,22 @@
1
- import { QueryGltfConversion, ResBase } from "@shapediver/sdk.geometry-api-sdk-v2";
2
- import { SessionCreationDefinition } from "@shapediver/viewer.shared.types";
3
- import { SettingsEngine } from "../settings-engine/SettingsEngine";
4
- import { StatePromise } from "./StatePromise";
5
- /**
6
- * Interface for the global access definition of a session.
7
- * This interface is used to define the properties and methods that are available via the state engine for a session.
8
- * This means that they can be called without having a direct reference to the session engine.
9
- */
10
- export interface ISessionGlobalAccessObjectDefinition {
11
- readonly canUploadGLTF: boolean;
12
- readonly id: string;
13
- readonly initialOutputsLoaded: StatePromise<boolean>;
14
- readonly initialized: StatePromise<boolean>;
15
- readonly modelViewUrl: string;
16
- readonly settingsEngine: SettingsEngine;
17
- readonly settingsRegistered: StatePromise<boolean>;
18
- readonly sessionCreationDefinition: SessionCreationDefinition;
19
- isFirstSession: boolean;
20
- uploadGLTF: (gltf: Blob, name: QueryGltfConversion | undefined) => Promise<ResBase>;
21
- }
1
+ import { QueryGltfConversion, ResBase } from "@shapediver/sdk.geometry-api-sdk-v2";
2
+ import { SessionCreationDefinition } from "@shapediver/viewer.shared.types";
3
+ import { SettingsEngine } from "../settings-engine/SettingsEngine";
4
+ import { StatePromise } from "./StatePromise";
5
+ /**
6
+ * Interface for the global access definition of a session.
7
+ * This interface is used to define the properties and methods that are available via the state engine for a session.
8
+ * This means that they can be called without having a direct reference to the session engine.
9
+ */
10
+ export interface ISessionGlobalAccessObjectDefinition {
11
+ readonly canUploadGLTF: boolean;
12
+ readonly id: string;
13
+ readonly initialOutputsLoaded: StatePromise<boolean>;
14
+ readonly initialized: StatePromise<boolean>;
15
+ readonly modelViewUrl: string;
16
+ readonly settingsEngine: SettingsEngine;
17
+ readonly settingsRegistered: StatePromise<boolean>;
18
+ readonly sessionCreationDefinition: SessionCreationDefinition;
19
+ isFirstSession: boolean;
20
+ uploadGLTF: (gltf: Blob, name: QueryGltfConversion | undefined) => Promise<ResBase>;
21
+ }
22
22
  //# sourceMappingURL=ISessionGlobalAccessObjectDefinition.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=ISessionGlobalAccessObjectDefinition.js.map