ketcher-macromolecules 2.22.0-rc.2 → 2.22.0-rc.3
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/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7375,7 +7375,6 @@ var ZoomInput = function ZoomInput(_ref) {
|
|
|
7375
7375
|
};
|
|
7376
7376
|
|
|
7377
7377
|
var ZoomControls = function ZoomControls() {
|
|
7378
|
-
var _ZoomTool$instance3;
|
|
7379
7378
|
var _useState = React.useState(false),
|
|
7380
7379
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
7381
7380
|
isExpanded = _useState2[0],
|
|
@@ -7392,7 +7391,7 @@ var ZoomControls = function ZoomControls() {
|
|
|
7392
7391
|
var _ZoomTool$instance2;
|
|
7393
7392
|
setCurrentZoom(Math.round((ketcherCore.ZoomTool === null || ketcherCore.ZoomTool === void 0 || (_ZoomTool$instance2 = ketcherCore.ZoomTool.instance) === null || _ZoomTool$instance2 === void 0 ? void 0 : _ZoomTool$instance2.getZoomLevel()) * 100));
|
|
7394
7393
|
});
|
|
7395
|
-
}, [ketcherCore.ZoomTool === null || ketcherCore.ZoomTool === void 0
|
|
7394
|
+
}, [ketcherCore.ZoomTool === null || ketcherCore.ZoomTool === void 0 ? void 0 : ketcherCore.ZoomTool.instance]);
|
|
7396
7395
|
var onZoomSubmit = React.useCallback(function () {
|
|
7397
7396
|
var inputEl = inputRef.current;
|
|
7398
7397
|
if (!inputEl) return;
|