@combeenation/3d-viewer 3.1.1-alpha7 → 3.1.2

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/README.md +111 -111
  2. package/dist/lib-cjs/api/classes/animationInterface.d.ts +8 -8
  3. package/dist/lib-cjs/api/classes/animationInterface.js +1 -1
  4. package/dist/lib-cjs/api/classes/dottedPath.d.ts +79 -79
  5. package/dist/lib-cjs/api/classes/dottedPath.js +190 -190
  6. package/dist/lib-cjs/api/classes/element.d.ts +125 -126
  7. package/dist/lib-cjs/api/classes/element.js +678 -674
  8. package/dist/lib-cjs/api/classes/element.js.map +1 -1
  9. package/dist/lib-cjs/api/classes/elementParameterizable.d.ts +14 -14
  10. package/dist/lib-cjs/api/classes/elementParameterizable.js +134 -134
  11. package/dist/lib-cjs/api/classes/event.d.ts +312 -312
  12. package/dist/lib-cjs/api/classes/event.js +357 -357
  13. package/dist/lib-cjs/api/classes/eventBroadcaster.d.ts +26 -26
  14. package/dist/lib-cjs/api/classes/eventBroadcaster.js +53 -53
  15. package/dist/lib-cjs/api/classes/parameter.d.ts +165 -165
  16. package/dist/lib-cjs/api/classes/parameter.js +267 -267
  17. package/dist/lib-cjs/api/classes/parameterObservable.d.ts +36 -36
  18. package/dist/lib-cjs/api/classes/parameterObservable.js +126 -126
  19. package/dist/lib-cjs/api/classes/parameterizable.d.ts +15 -15
  20. package/dist/lib-cjs/api/classes/parameterizable.js +149 -149
  21. package/dist/lib-cjs/api/classes/placementAnimation.d.ts +38 -38
  22. package/dist/lib-cjs/api/classes/placementAnimation.js +138 -138
  23. package/dist/lib-cjs/api/classes/variant.d.ts +180 -190
  24. package/dist/lib-cjs/api/classes/variant.js +863 -873
  25. package/dist/lib-cjs/api/classes/variant.js.map +1 -1
  26. package/dist/lib-cjs/api/classes/variantInstance.d.ts +41 -41
  27. package/dist/lib-cjs/api/classes/variantInstance.js +98 -98
  28. package/dist/lib-cjs/api/classes/variantParameterizable.d.ts +17 -17
  29. package/dist/lib-cjs/api/classes/variantParameterizable.js +92 -92
  30. package/dist/lib-cjs/api/classes/viewer.d.ts +128 -128
  31. package/dist/lib-cjs/api/classes/viewer.js +486 -486
  32. package/dist/lib-cjs/api/classes/viewerLight.d.ts +65 -66
  33. package/dist/lib-cjs/api/classes/viewerLight.js +322 -389
  34. package/dist/lib-cjs/api/classes/viewerLight.js.map +1 -1
  35. package/dist/lib-cjs/api/internal/debugViewer.d.ts +13 -13
  36. package/dist/lib-cjs/api/internal/debugViewer.js +87 -87
  37. package/dist/lib-cjs/api/internal/lensRendering.d.ts +8 -8
  38. package/dist/lib-cjs/api/internal/lensRendering.js +11 -11
  39. package/dist/lib-cjs/api/internal/sceneSetup.d.ts +6 -6
  40. package/dist/lib-cjs/api/internal/sceneSetup.js +227 -227
  41. package/dist/lib-cjs/api/manager/animationManager.d.ts +29 -29
  42. package/dist/lib-cjs/api/manager/animationManager.js +121 -121
  43. package/dist/lib-cjs/api/manager/sceneManager.d.ts +32 -32
  44. package/dist/lib-cjs/api/manager/sceneManager.js +132 -132
  45. package/dist/lib-cjs/api/manager/variantInstanceManager.d.ts +90 -90
  46. package/dist/lib-cjs/api/manager/variantInstanceManager.js +321 -321
  47. package/dist/lib-cjs/api/store/specStorage.d.ts +24 -24
  48. package/dist/lib-cjs/api/store/specStorage.js +51 -51
  49. package/dist/lib-cjs/api/util/babylonHelper.d.ts +125 -125
  50. package/dist/lib-cjs/api/util/babylonHelper.js +368 -368
  51. package/dist/lib-cjs/api/util/globalTypes.d.ts +275 -275
  52. package/dist/lib-cjs/api/util/globalTypes.js +1 -1
  53. package/dist/lib-cjs/api/util/resourceHelper.d.ts +30 -30
  54. package/dist/lib-cjs/api/util/resourceHelper.js +247 -203
  55. package/dist/lib-cjs/api/util/resourceHelper.js.map +1 -1
  56. package/dist/lib-cjs/api/util/stringHelper.d.ts +9 -9
  57. package/dist/lib-cjs/api/util/stringHelper.js +25 -25
  58. package/dist/lib-cjs/buildinfo.json +3 -3
  59. package/dist/lib-cjs/index.d.ts +46 -46
  60. package/dist/lib-cjs/index.js +82 -82
  61. package/dist/webpack-stats.json +0 -0
  62. package/package.json +83 -83
  63. package/src/api/classes/animationInterface.ts +11 -11
  64. package/src/api/classes/dottedPath.ts +189 -189
  65. package/src/api/classes/element.ts +608 -606
  66. package/src/api/classes/elementParameterizable.ts +78 -78
  67. package/src/api/classes/event.ts +355 -355
  68. package/src/api/classes/eventBroadcaster.ts +54 -54
  69. package/src/api/classes/parameter.ts +277 -277
  70. package/src/api/classes/parameterObservable.ts +121 -121
  71. package/src/api/classes/placementAnimation.ts +133 -133
  72. package/src/api/classes/variant.ts +659 -670
  73. package/src/api/classes/variantInstance.ts +81 -81
  74. package/src/api/classes/viewer.ts +421 -421
  75. package/src/api/internal/debugViewer.ts +81 -81
  76. package/src/api/internal/lensRendering.ts +10 -10
  77. package/src/api/internal/sceneSetup.ts +203 -203
  78. package/src/api/manager/animationManager.ts +116 -116
  79. package/src/api/manager/sceneManager.ts +105 -105
  80. package/src/api/manager/variantInstanceManager.ts +236 -236
  81. package/src/api/store/specStorage.ts +53 -53
  82. package/src/api/util/babylonHelper.ts +392 -392
  83. package/src/api/util/globalTypes.ts +314 -314
  84. package/src/api/util/resourceHelper.ts +168 -155
  85. package/src/buildinfo.json +2 -2
  86. package/src/commonjs.tsconfig.json +13 -13
  87. package/src/declaration.tsconfig.json +10 -10
  88. package/src/dev.ts +44 -46
  89. package/src/es6.tsconfig.json +13 -13
  90. package/src/index.ts +87 -87
  91. package/src/pagesconfig.json +47 -47
  92. package/src/tsconfig.json +43 -43
  93. package/src/tsconfig.types.json +9 -9
  94. package/src/types.d.ts +4 -4
@@ -1,26 +1,26 @@
1
- import * as EventEmitter from 'eventemitter3';
2
- export declare abstract class EventBroadcaster {
3
- readonly eventEmitter: EventEmitter;
4
- protected readonly _eventEmitter: EventEmitter;
5
- protected constructor();
6
- /**
7
- * Adds a listener function for the given event.
8
- */
9
- addEventListener(event: string, fn: EventEmitter.ListenerFn): EventBroadcaster;
10
- /**
11
- * Removes all `eventListeners` for given event.
12
- */
13
- removeEventListener(event: string): EventBroadcaster;
14
- /**
15
- * Broadcasts the given event with given arguments to all listeners and emitters.
16
- */
17
- broadcastEvent(event: string, ...args: any[]): EventBroadcaster;
18
- /**
19
- * Alias for {@link addEventListener}.
20
- */
21
- on(event: string, fn: EventEmitter.ListenerFn): EventBroadcaster;
22
- /**
23
- * Alias for {@link removeEventListener}.
24
- */
25
- off(event: string): EventBroadcaster;
26
- }
1
+ import * as EventEmitter from 'eventemitter3';
2
+ export declare abstract class EventBroadcaster {
3
+ readonly eventEmitter: EventEmitter;
4
+ protected readonly _eventEmitter: EventEmitter;
5
+ protected constructor();
6
+ /**
7
+ * Adds a listener function for the given event.
8
+ */
9
+ addEventListener(event: string, fn: EventEmitter.ListenerFn): EventBroadcaster;
10
+ /**
11
+ * Removes all `eventListeners` for given event.
12
+ */
13
+ removeEventListener(event: string): EventBroadcaster;
14
+ /**
15
+ * Broadcasts the given event with given arguments to all listeners and emitters.
16
+ */
17
+ broadcastEvent(event: string, ...args: any[]): EventBroadcaster;
18
+ /**
19
+ * Alias for {@link addEventListener}.
20
+ */
21
+ on(event: string, fn: EventEmitter.ListenerFn): EventBroadcaster;
22
+ /**
23
+ * Alias for {@link removeEventListener}.
24
+ */
25
+ off(event: string): EventBroadcaster;
26
+ }
@@ -1,54 +1,54 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventBroadcaster = void 0;
4
- var tslib_1 = require("tslib");
5
- var EventEmitter = require("eventemitter3");
6
- var event_1 = require("./event");
7
- var EventBroadcaster = /** @class */ (function () {
8
- function EventBroadcaster() {
9
- this.eventEmitter = event_1.emitter;
10
- this._eventEmitter = new EventEmitter();
11
- }
12
- /**
13
- * Adds a listener function for the given event.
14
- */
15
- EventBroadcaster.prototype.addEventListener = function (event, fn) {
16
- this._eventEmitter.addListener(event, fn);
17
- return this;
18
- };
19
- /**
20
- * Removes all `eventListeners` for given event.
21
- */
22
- EventBroadcaster.prototype.removeEventListener = function (event) {
23
- this._eventEmitter.removeListener(event);
24
- return this;
25
- };
26
- /**
27
- * Broadcasts the given event with given arguments to all listeners and emitters.
28
- */
29
- EventBroadcaster.prototype.broadcastEvent = function (event) {
30
- var _a, _b;
31
- var args = [];
32
- for (var _i = 1; _i < arguments.length; _i++) {
33
- args[_i - 1] = arguments[_i];
34
- }
35
- (_a = this._eventEmitter).emit.apply(_a, tslib_1.__spreadArrays([event], args));
36
- (_b = this.eventEmitter).emit.apply(_b, tslib_1.__spreadArrays([event], args));
37
- return this;
38
- };
39
- /**
40
- * Alias for {@link addEventListener}.
41
- */
42
- EventBroadcaster.prototype.on = function (event, fn) {
43
- return this.addEventListener(event, fn);
44
- };
45
- /**
46
- * Alias for {@link removeEventListener}.
47
- */
48
- EventBroadcaster.prototype.off = function (event) {
49
- return this.removeEventListener(event);
50
- };
51
- return EventBroadcaster;
52
- }());
53
- exports.EventBroadcaster = EventBroadcaster;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventBroadcaster = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var EventEmitter = require("eventemitter3");
6
+ var event_1 = require("./event");
7
+ var EventBroadcaster = /** @class */ (function () {
8
+ function EventBroadcaster() {
9
+ this.eventEmitter = event_1.emitter;
10
+ this._eventEmitter = new EventEmitter();
11
+ }
12
+ /**
13
+ * Adds a listener function for the given event.
14
+ */
15
+ EventBroadcaster.prototype.addEventListener = function (event, fn) {
16
+ this._eventEmitter.addListener(event, fn);
17
+ return this;
18
+ };
19
+ /**
20
+ * Removes all `eventListeners` for given event.
21
+ */
22
+ EventBroadcaster.prototype.removeEventListener = function (event) {
23
+ this._eventEmitter.removeListener(event);
24
+ return this;
25
+ };
26
+ /**
27
+ * Broadcasts the given event with given arguments to all listeners and emitters.
28
+ */
29
+ EventBroadcaster.prototype.broadcastEvent = function (event) {
30
+ var _a, _b;
31
+ var args = [];
32
+ for (var _i = 1; _i < arguments.length; _i++) {
33
+ args[_i - 1] = arguments[_i];
34
+ }
35
+ (_a = this._eventEmitter).emit.apply(_a, tslib_1.__spreadArrays([event], args));
36
+ (_b = this.eventEmitter).emit.apply(_b, tslib_1.__spreadArrays([event], args));
37
+ return this;
38
+ };
39
+ /**
40
+ * Alias for {@link addEventListener}.
41
+ */
42
+ EventBroadcaster.prototype.on = function (event, fn) {
43
+ return this.addEventListener(event, fn);
44
+ };
45
+ /**
46
+ * Alias for {@link removeEventListener}.
47
+ */
48
+ EventBroadcaster.prototype.off = function (event) {
49
+ return this.removeEventListener(event);
50
+ };
51
+ return EventBroadcaster;
52
+ }());
53
+ exports.EventBroadcaster = EventBroadcaster;
54
54
  //# sourceMappingURL=eventBroadcaster.js.map
@@ -1,165 +1,165 @@
1
- import { Color3 } from '@babylonjs/core/Maths/math.color';
2
- import { Vector3 } from '@babylonjs/core/Maths/math.vector';
3
- /**
4
- * This `Parameter` class defines all parameters that can be consumed and committed by a {@link ParameterObservable}.
5
- * Use {@link ParameterObservable.addParameterObserver} or {@link ParameterObservable.commitParameters} to either add or
6
- * commit parameters on your observable objects.
7
- */
8
- export declare class Parameter {
9
- /**
10
- * Constructor.
11
- */
12
- private constructor();
13
- /**
14
- * Mutates the visibility. Helper methods are {@link ElementParameterizable.show} and
15
- * {@link ElementParameterizable.hide}. Getter and setter is {@link ElementParameterizable.visible}.
16
- *
17
- * Scopes:
18
- * * {@link Element}
19
- * * {@link Variant}
20
- *
21
- * @parser {@link parseBoolean}
22
- */
23
- static readonly VISIBLE = "visible";
24
- /**
25
- * Stretches or compresses some meshes. Getter and setter is {@link ElementParameterizable.scaling}.
26
- *
27
- * Scopes:
28
- * * {@link Element}
29
- * * {@link Variant}
30
- *
31
- * @parser {@link parseScaling}
32
- */
33
- static readonly SCALING = "scaling";
34
- /**
35
- * Mutates the material. Getter and setter is {@link ElementParameterizable.material}. The value of this parameter
36
- * represents the ID of a baked-in glTF or custom created material in the {@link Variant} tree.
37
- *
38
- * Scopes:
39
- * * {@link Element}
40
- * * {@link Variant}
41
- *
42
- * @parser string
43
- */
44
- static readonly MATERIAL = "material";
45
- /**
46
- * Mutates the material color.
47
- *
48
- * Scopes:
49
- * * {@link Element}
50
- * * {@link Variant}
51
- *
52
- * @parser {@link parseColor}
53
- */
54
- static readonly MATERIAL_COLOR = "material.color";
55
- /**
56
- * Mutates the material metallness.
57
- *
58
- * Scopes:
59
- * * {@link Element}
60
- * * {@link Variant}
61
- *
62
- * @parser {@link parseNumber}
63
- */
64
- static readonly MATERIAL_METALLNESS = "material.metallness";
65
- /**
66
- * Mutates the material roughness.
67
- *
68
- * Scopes:
69
- * * {@link Element}
70
- * * {@link Variant}
71
- *
72
- * @parser {@link parseNumber}
73
- */
74
- static readonly MATERIAL_ROUGHNESS = "material.roughness";
75
- /**
76
- * Mutates whether a highlight layer should be enabled.
77
- *
78
- * Scopes:
79
- * * {@link Element}
80
- * * {@link Variant}
81
- *
82
- * @parser {@link parseBoolean}
83
- */
84
- static readonly HIGHLIGHT_ENABLED = "highlight.enabled";
85
- /**
86
- * Changes the highlight color.
87
- *
88
- * Scopes:
89
- * * {@link Element}
90
- * * {@link Variant}
91
- *
92
- * @parser {@link parseColor}
93
- */
94
- static readonly HIGHLIGHT_COLOR = "highlight.color";
95
- /**
96
- * Mutates the highlighted state. Getter and setter is {@link ElementParameterizable.highlighted}.
97
- *
98
- * Scopes:
99
- * * {@link Element}
100
- * * {@link Variant}
101
- *
102
- * @parser {@link parseBoolean}
103
- */
104
- static readonly HIGHLIGHTED = "highlighted";
105
- /**
106
- * Mutates the position relative to its origin position. Getter and setter is {@link ElementParameterizable.position}.
107
- *
108
- * Scopes:
109
- * * {@link Element}
110
- * * {@link Variant}
111
- *
112
- * @parser {@link parseVector}
113
- */
114
- static readonly POSITION = "position";
115
- /**
116
- * Mutates the rotation relative to its origin rotation. Getter and setter is {@link ElementParameterizable.rotation}.
117
- *
118
- * Scopes:
119
- * * {@link Element}
120
- * * {@link Variant}
121
- *
122
- * @parser {@link parseRotation}
123
- */
124
- static readonly ROTATION = "rotation";
125
- /**
126
- * The {@link ParameterDeclarations} for all parameters in this class.
127
- */
128
- static get declarations(): ParameterDeclarations;
129
- /**
130
- * Gets the {@link ParameterDeclaration} for a given {@link Parameter} declared in this class.
131
- */
132
- static getDeclaration(parameter: string): ParameterDeclaration;
133
- /**
134
- * All parameters defined in this class.
135
- */
136
- static get all(): string[];
137
- /**
138
- * Parses a string of format `'(x,y,z)'` to a `Vector3`.
139
- */
140
- static parseVector(value: ParameterValue): Vector3;
141
- /**
142
- * Stringifies a Vector3 to format `(x,y,z)`.
143
- */
144
- static stringifyVector(value: Vector3): string;
145
- /**
146
- * Parses a string of format `'(x,y,z)'` with angular degrees to a `Vector3` with rotation information in radians.
147
- */
148
- static parseRotation(value: ParameterValue): Vector3;
149
- /**
150
- * Parses a string of format `'(x,y,z)'` or a simple `number` to a `Vector3` for scaling.
151
- */
152
- static parseScaling(value: ParameterValue): Vector3;
153
- /**
154
- * Parses a string of format `'#rrggbb'` or `'(r,g,b)'` to a `Color3`.
155
- */
156
- static parseColor(value: ParameterValue): Color3;
157
- /**
158
- * Parses a `boolean` string (`'true'`/`'1'` or `'false'`/`'0'`) or `number` (`1` or `0`) to a `boolean` or `undefined`.
159
- */
160
- static parseBoolean(value: ParameterValue): boolean;
161
- /**
162
- * Parses a number `string` to a `number`.
163
- */
164
- static parseNumber(value: ParameterValue): number;
165
- }
1
+ import { Color3 } from '@babylonjs/core/Maths/math.color';
2
+ import { Vector3 } from '@babylonjs/core/Maths/math.vector';
3
+ /**
4
+ * This `Parameter` class defines all parameters that can be consumed and committed by a {@link ParameterObservable}.
5
+ * Use {@link ParameterObservable.addParameterObserver} or {@link ParameterObservable.commitParameters} to either add or
6
+ * commit parameters on your observable objects.
7
+ */
8
+ export declare class Parameter {
9
+ /**
10
+ * Constructor.
11
+ */
12
+ private constructor();
13
+ /**
14
+ * Mutates the visibility. Helper methods are {@link ElementParameterizable.show} and
15
+ * {@link ElementParameterizable.hide}. Getter and setter is {@link ElementParameterizable.visible}.
16
+ *
17
+ * Scopes:
18
+ * * {@link Element}
19
+ * * {@link Variant}
20
+ *
21
+ * @parser {@link parseBoolean}
22
+ */
23
+ static readonly VISIBLE = "visible";
24
+ /**
25
+ * Stretches or compresses some meshes. Getter and setter is {@link ElementParameterizable.scaling}.
26
+ *
27
+ * Scopes:
28
+ * * {@link Element}
29
+ * * {@link Variant}
30
+ *
31
+ * @parser {@link parseScaling}
32
+ */
33
+ static readonly SCALING = "scaling";
34
+ /**
35
+ * Mutates the material. Getter and setter is {@link ElementParameterizable.material}. The value of this parameter
36
+ * represents the ID of a baked-in glTF or custom created material in the {@link Variant} tree.
37
+ *
38
+ * Scopes:
39
+ * * {@link Element}
40
+ * * {@link Variant}
41
+ *
42
+ * @parser string
43
+ */
44
+ static readonly MATERIAL = "material";
45
+ /**
46
+ * Mutates the material color.
47
+ *
48
+ * Scopes:
49
+ * * {@link Element}
50
+ * * {@link Variant}
51
+ *
52
+ * @parser {@link parseColor}
53
+ */
54
+ static readonly MATERIAL_COLOR = "material.color";
55
+ /**
56
+ * Mutates the material metallness.
57
+ *
58
+ * Scopes:
59
+ * * {@link Element}
60
+ * * {@link Variant}
61
+ *
62
+ * @parser {@link parseNumber}
63
+ */
64
+ static readonly MATERIAL_METALLNESS = "material.metallness";
65
+ /**
66
+ * Mutates the material roughness.
67
+ *
68
+ * Scopes:
69
+ * * {@link Element}
70
+ * * {@link Variant}
71
+ *
72
+ * @parser {@link parseNumber}
73
+ */
74
+ static readonly MATERIAL_ROUGHNESS = "material.roughness";
75
+ /**
76
+ * Mutates whether a highlight layer should be enabled.
77
+ *
78
+ * Scopes:
79
+ * * {@link Element}
80
+ * * {@link Variant}
81
+ *
82
+ * @parser {@link parseBoolean}
83
+ */
84
+ static readonly HIGHLIGHT_ENABLED = "highlight.enabled";
85
+ /**
86
+ * Changes the highlight color.
87
+ *
88
+ * Scopes:
89
+ * * {@link Element}
90
+ * * {@link Variant}
91
+ *
92
+ * @parser {@link parseColor}
93
+ */
94
+ static readonly HIGHLIGHT_COLOR = "highlight.color";
95
+ /**
96
+ * Mutates the highlighted state. Getter and setter is {@link ElementParameterizable.highlighted}.
97
+ *
98
+ * Scopes:
99
+ * * {@link Element}
100
+ * * {@link Variant}
101
+ *
102
+ * @parser {@link parseBoolean}
103
+ */
104
+ static readonly HIGHLIGHTED = "highlighted";
105
+ /**
106
+ * Mutates the position relative to its origin position. Getter and setter is {@link ElementParameterizable.position}.
107
+ *
108
+ * Scopes:
109
+ * * {@link Element}
110
+ * * {@link Variant}
111
+ *
112
+ * @parser {@link parseVector}
113
+ */
114
+ static readonly POSITION = "position";
115
+ /**
116
+ * Mutates the rotation relative to its origin rotation. Getter and setter is {@link ElementParameterizable.rotation}.
117
+ *
118
+ * Scopes:
119
+ * * {@link Element}
120
+ * * {@link Variant}
121
+ *
122
+ * @parser {@link parseRotation}
123
+ */
124
+ static readonly ROTATION = "rotation";
125
+ /**
126
+ * The {@link ParameterDeclarations} for all parameters in this class.
127
+ */
128
+ static get declarations(): ParameterDeclarations;
129
+ /**
130
+ * Gets the {@link ParameterDeclaration} for a given {@link Parameter} declared in this class.
131
+ */
132
+ static getDeclaration(parameter: string): ParameterDeclaration;
133
+ /**
134
+ * All parameters defined in this class.
135
+ */
136
+ static get all(): string[];
137
+ /**
138
+ * Parses a string of format `'(x,y,z)'` to a `Vector3`.
139
+ */
140
+ static parseVector(value: ParameterValue): Vector3;
141
+ /**
142
+ * Stringifies a Vector3 to format `(x,y,z)`.
143
+ */
144
+ static stringifyVector(value: Vector3): string;
145
+ /**
146
+ * Parses a string of format `'(x,y,z)'` with angular degrees to a `Vector3` with rotation information in radians.
147
+ */
148
+ static parseRotation(value: ParameterValue): Vector3;
149
+ /**
150
+ * Parses a string of format `'(x,y,z)'` or a simple `number` to a `Vector3` for scaling.
151
+ */
152
+ static parseScaling(value: ParameterValue): Vector3;
153
+ /**
154
+ * Parses a string of format `'#rrggbb'` or `'(r,g,b)'` to a `Color3`.
155
+ */
156
+ static parseColor(value: ParameterValue): Color3;
157
+ /**
158
+ * Parses a `boolean` string (`'true'`/`'1'` or `'false'`/`'0'`) or `number` (`1` or `0`) to a `boolean` or `undefined`.
159
+ */
160
+ static parseBoolean(value: ParameterValue): boolean;
161
+ /**
162
+ * Parses a number `string` to a `number`.
163
+ */
164
+ static parseNumber(value: ParameterValue): number;
165
+ }