hart-estate-widget 0.0.61 → 0.0.62
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.
@@ -90,9 +90,11 @@ var RotationTab = function RotationTab(_ref) {
|
|
90
90
|
var newRotation = new _threesixty.default(container, {
|
91
91
|
image: _toConsumableArray(images),
|
92
92
|
parentElement: widgetTab,
|
93
|
-
inverted: true
|
93
|
+
inverted: true,
|
94
|
+
speed: 150
|
94
95
|
});
|
95
96
|
newRotation._update = updateRotation;
|
97
|
+
newRotation.play();
|
96
98
|
var lastIndex = 0;
|
97
99
|
var controller = (0, _panzoom.default)(container, {
|
98
100
|
maxZoom: 3,
|
@@ -115,15 +117,6 @@ var RotationTab = function RotationTab(_ref) {
|
|
115
117
|
setRotation(newRotation);
|
116
118
|
};
|
117
119
|
|
118
|
-
var onEnd = function onEnd() {
|
119
|
-
rotation.controller.pause();
|
120
|
-
rotation.container.style.transform = 'none';
|
121
|
-
rotation.destroy();
|
122
|
-
setActiveIndex(0);
|
123
|
-
setRotation(null);
|
124
|
-
setInitState(false);
|
125
|
-
};
|
126
|
-
|
127
120
|
var openInstructions = function openInstructions() {
|
128
121
|
return setInstructionsState(true);
|
129
122
|
};
|
@@ -140,15 +133,15 @@ var RotationTab = function RotationTab(_ref) {
|
|
140
133
|
alt: "rotation-view-".concat(index),
|
141
134
|
className: activeIndex === index ? 'active' : ''
|
142
135
|
});
|
143
|
-
}))), !showInstructions && /*#__PURE__*/_react.default.createElement("button", {
|
136
|
+
}))), !initialized && !showInstructions && /*#__PURE__*/_react.default.createElement("button", {
|
144
137
|
className: "widget-tab__threesixty-start",
|
145
|
-
onClick:
|
138
|
+
onClick: openInstructions
|
146
139
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
147
140
|
className: "widget-tab__threesixty-start-icon"
|
148
141
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
149
142
|
src: _rotation.default,
|
150
143
|
alt: "start-icon"
|
151
|
-
})), /*#__PURE__*/_react.default.createElement("span", null, _locale.default.getLocaleText(
|
144
|
+
})), /*#__PURE__*/_react.default.createElement("span", null, _locale.default.getLocaleText('rotate'))), showInstructions && /*#__PURE__*/_react.default.createElement(_Instructions.default, {
|
152
145
|
disabled: disabled,
|
153
146
|
steps: instructionSteps,
|
154
147
|
onClick: onStart
|