@shapediver/viewer.features.attribute-visualization 2.6.3 → 2.6.5
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.
|
@@ -13,7 +13,7 @@ const grayscaleVisualization = (factor, materialType) => {
|
|
|
13
13
|
};
|
|
14
14
|
const opacityVisualization = (factor, materialType, defaultMaterial) => {
|
|
15
15
|
return {
|
|
16
|
-
material: materialType === 'unlit' ? new viewer_shared_types_1.MaterialUnlitData({ color: (defaultMaterial === null || defaultMaterial === void 0 ? void 0 : defaultMaterial.color) || '#
|
|
16
|
+
material: materialType === 'unlit' ? new viewer_shared_types_1.MaterialUnlitData({ color: (defaultMaterial === null || defaultMaterial === void 0 ? void 0 : defaultMaterial.color) || '#199b9b', opacity: factor }) : new viewer_shared_types_1.MaterialStandardData({ color: (defaultMaterial === null || defaultMaterial === void 0 ? void 0 : defaultMaterial.color) || '#199b9b', opacity: factor }),
|
|
17
17
|
matrix: gl_matrix_1.mat4.create()
|
|
18
18
|
};
|
|
19
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.features.attribute-visualization",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"testEnvironment": "node"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@shapediver/viewer": "2.6.
|
|
45
|
-
"@shapediver/viewer.shared.services": "2.6.
|
|
46
|
-
"@shapediver/viewer.shared.types": "2.6.
|
|
44
|
+
"@shapediver/viewer": "2.6.5",
|
|
45
|
+
"@shapediver/viewer.shared.services": "2.6.5",
|
|
46
|
+
"@shapediver/viewer.shared.types": "2.6.5"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"detect-it": "4.0.1",
|
|
50
50
|
"gl-matrix": "3.3.0",
|
|
51
51
|
"tsyringe": "^4.5.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7de51352cf63478851346dc8f886ad996b14c3c2"
|
|
54
54
|
}
|
|
@@ -13,7 +13,7 @@ const grayscaleVisualization = (factor: number, materialType: 'unlit' | 'standar
|
|
|
13
13
|
|
|
14
14
|
const opacityVisualization = (factor: number, materialType: 'unlit' | 'standard', defaultMaterial?: IMaterialAbstractData): ISDTFAttributeVisualizationData => {
|
|
15
15
|
return {
|
|
16
|
-
material: materialType === 'unlit' ? new MaterialUnlitData({color: defaultMaterial?.color || '#
|
|
16
|
+
material: materialType === 'unlit' ? new MaterialUnlitData({color: defaultMaterial?.color || '#199b9b', opacity: factor}) : new MaterialStandardData({color: defaultMaterial?.color || '#199b9b', opacity: factor}),
|
|
17
17
|
matrix: mat4.create()
|
|
18
18
|
}
|
|
19
19
|
}
|