oa-componentbook 1.0.1-stage.41 → 1.0.1-stage.43
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.
|
@@ -154,13 +154,8 @@ function ImageCarouselWidget(_ref) {
|
|
|
154
154
|
textAlign: 'center'
|
|
155
155
|
}
|
|
156
156
|
}, currentImage === null || currentImage === void 0 ? void 0 : currentImage.rejectReason), /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
157
|
-
type: "link",
|
|
158
157
|
onClick: handleShowHeatmap,
|
|
159
|
-
|
|
160
|
-
display: 'block',
|
|
161
|
-
textAlign: 'center',
|
|
162
|
-
marginBottom: 10
|
|
163
|
-
},
|
|
158
|
+
type: "text-only",
|
|
164
159
|
label: showHeatmap ? 'View Original Image' : 'View Heatmap Image'
|
|
165
160
|
}), /*#__PURE__*/_react.default.createElement(_antd.Carousel, {
|
|
166
161
|
afterChange: handleImageChange,
|
|
@@ -200,13 +195,8 @@ function ImageCarouselWidget(_ref) {
|
|
|
200
195
|
onClick: handleFullscreenToggle
|
|
201
196
|
}), /*#__PURE__*/_react.default.createElement(_reactZoomPanPinch.TransformWrapper, null, /*#__PURE__*/_react.default.createElement(_reactZoomPanPinch.TransformComponent, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
202
197
|
src: showHeatmap ? currentImage === null || currentImage === void 0 ? void 0 : currentImage.heatmapImageUrl : currentImage === null || currentImage === void 0 ? void 0 : currentImage.originalImageUrl,
|
|
203
|
-
alt: currentImage === null || currentImage === void 0 ? void 0 : currentImage.imageType
|
|
204
|
-
|
|
205
|
-
width: '100%',
|
|
206
|
-
maxHeight: '500px',
|
|
207
|
-
objectFit: 'contain'
|
|
208
|
-
}
|
|
209
|
-
})))))));
|
|
198
|
+
alt: currentImage === null || currentImage === void 0 ? void 0 : currentImage.imageType
|
|
199
|
+
}))), /*#__PURE__*/_react.default.createElement("div", null, "Pinch in/out to zoom")))));
|
|
210
200
|
}
|
|
211
201
|
ImageCarouselWidget.propTypes = {
|
|
212
202
|
images: _propTypes.default.array.isRequired,
|