@shapediver/viewer.shared.services 2.6.2 → 2.6.4
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.
|
@@ -31,7 +31,7 @@ let Converter = class Converter {
|
|
|
31
31
|
* @param color
|
|
32
32
|
* @param defColor
|
|
33
33
|
*/
|
|
34
|
-
toHex8Color(color, defColorString = '#
|
|
34
|
+
toHex8Color(color, defColorString = '#199b9b') {
|
|
35
35
|
const c = this.toColor(color, defColorString);
|
|
36
36
|
const tColor = new tinycolor_1.TinyColor(c);
|
|
37
37
|
const cH8 = tColor.toHex8String();
|
|
@@ -162,7 +162,7 @@ let Converter = class Converter {
|
|
|
162
162
|
* @param color
|
|
163
163
|
* @param defColor
|
|
164
164
|
*/
|
|
165
|
-
toColor(color, defColorString = '#
|
|
165
|
+
toColor(color, defColorString = '#199b9b') {
|
|
166
166
|
if (!color || color === 'default')
|
|
167
167
|
return defColorString;
|
|
168
168
|
if (color.constructor === Float32Array)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.services",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@sentry/tracing": "^6.7.2",
|
|
45
45
|
"@shapediver/sdk.geometry-api-sdk-v2": "1.2.3",
|
|
46
46
|
"@shapediver/viewer.settings": "0.1.39",
|
|
47
|
-
"@shapediver/viewer.shared.build-data": "2.6.
|
|
47
|
+
"@shapediver/viewer.shared.build-data": "2.6.4",
|
|
48
48
|
"@types/dompurify": "^2.3.1",
|
|
49
49
|
"@types/ua-parser-js": "^0.7.36",
|
|
50
50
|
"@types/uuid": "^8.3.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"ua-parser-js": "^0.7.28",
|
|
56
56
|
"uuid": "^8.3.2"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "f23c813bbc7b77434e55cb1c254322e7f0873154"
|
|
59
59
|
}
|
|
@@ -16,7 +16,7 @@ export class Converter {
|
|
|
16
16
|
* @param color
|
|
17
17
|
* @param defColor
|
|
18
18
|
*/
|
|
19
|
-
public toHex8Color(color: any, defColorString: string = '#
|
|
19
|
+
public toHex8Color(color: any, defColorString: string = '#199b9b'): string {
|
|
20
20
|
const c = this.toColor(color, defColorString);
|
|
21
21
|
const tColor = new TinyColor(c);
|
|
22
22
|
const cH8 = tColor.toHex8String();
|
|
@@ -173,7 +173,7 @@ export class Converter {
|
|
|
173
173
|
* @param color
|
|
174
174
|
* @param defColor
|
|
175
175
|
*/
|
|
176
|
-
public toColor(color: any, defColorString: string = '#
|
|
176
|
+
public toColor(color: any, defColorString: string = '#199b9b'): string {
|
|
177
177
|
if (!color || color === 'default') return defColorString;
|
|
178
178
|
|
|
179
179
|
if (color.constructor === Float32Array)
|