redhotmagma-visualization 1.44.3 → 1.44.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.
|
@@ -132,7 +132,7 @@ var VisualizationContainer = exports.VisualizationContainer = /*#__PURE__*/funct
|
|
|
132
132
|
// init resize sensor if it's not done in the componentDidUpdate
|
|
133
133
|
!this.resizeSensor && this.initResizeSensor();
|
|
134
134
|
}
|
|
135
|
-
if (alignTargetElement && alignTargetElement !== prevProps.alignTargetElement || visualization && visualization !== prevProps.visualization) {
|
|
135
|
+
if ((alignTargetElement && alignTargetElement !== prevProps.alignTargetElement || visualization && visualization !== prevProps.visualization) && alignTargetElement && alignTargetElement.clientWidth > 0 && alignTargetElement.clientHeight > 0) {
|
|
136
136
|
(0, _alignToElement.alignToElement)(visualization, alignTargetElement);
|
|
137
137
|
(0, _updateFitSizeToElement.updateFitSizeToElement)(visualization, alignTargetElement).updateCameraPosition({
|
|
138
138
|
animate: visualization.isAnimating() || !!prevProps.alignTargetElement
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redhotmagma-visualization",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.5",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.44.
|
|
9
|
+
"@configuratorware/scripts": "1.44.5",
|
|
10
10
|
"@tweenjs/tween.js": "^17.6.0",
|
|
11
11
|
"console-polyfill": "^0.3.0",
|
|
12
12
|
"css-element-queries": "^1.2.3",
|
|
@@ -93,8 +93,11 @@ export class VisualizationContainer extends React.Component {
|
|
|
93
93
|
!this.resizeSensor && this.initResizeSensor();
|
|
94
94
|
}
|
|
95
95
|
if (
|
|
96
|
-
(alignTargetElement && alignTargetElement !== prevProps.alignTargetElement) ||
|
|
97
|
-
|
|
96
|
+
((alignTargetElement && alignTargetElement !== prevProps.alignTargetElement) ||
|
|
97
|
+
(visualization && visualization !== prevProps.visualization)) &&
|
|
98
|
+
alignTargetElement &&
|
|
99
|
+
alignTargetElement.clientWidth > 0 &&
|
|
100
|
+
alignTargetElement.clientHeight > 0
|
|
98
101
|
) {
|
|
99
102
|
alignToElement(visualization, alignTargetElement);
|
|
100
103
|
updateFitSizeToElement(visualization, alignTargetElement).updateCameraPosition({
|