fl-web-component 1.3.21 → 1.3.22
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.
package/package.json
CHANGED
|
@@ -361,10 +361,10 @@ function draw3Dmodel(geom, instanceName, instanceCount, nColor, nOpacity) {
|
|
|
361
361
|
let material, mesh, colors, opacity;
|
|
362
362
|
if (Array.isArray(color) && color.length) {
|
|
363
363
|
colors = color;
|
|
364
|
-
opacity = colors[3];
|
|
364
|
+
opacity = colors[3] || 1;
|
|
365
365
|
} else if (typeof color === 'string') {
|
|
366
366
|
colors = color.split(',');
|
|
367
|
-
opacity = colors[3];
|
|
367
|
+
opacity = colors[3] || 1;
|
|
368
368
|
} else {
|
|
369
369
|
colors = [255, 255, 255];
|
|
370
370
|
opacity = 1;
|