ketcher-react 2.14.0-rc.2 → 2.14.0-rc.4
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 +13 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/HoverIcon.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3105,7 +3105,7 @@ var zoom = {
|
|
|
3105
3105
|
|
|
3106
3106
|
var openHelpLink = function openHelpLink() {
|
|
3107
3107
|
var _window$open;
|
|
3108
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.14.0-rc.
|
|
3108
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.14.0-rc.4\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3109
3109
|
};
|
|
3110
3110
|
var help = {
|
|
3111
3111
|
help: {
|
|
@@ -16825,7 +16825,7 @@ function removeNotRenderedStruct(actionTool, group, dispatch) {
|
|
|
16825
16825
|
}
|
|
16826
16826
|
var abbreviationLookupTimeoutId;
|
|
16827
16827
|
var ABBREVIATION_LOOKUP_TYPING_TIMEOUT = 1000;
|
|
16828
|
-
var shortcutKeys = ['1', '2', '3', '4', 't'];
|
|
16828
|
+
var shortcutKeys = ['1', '2', '3', '4', 't', 'h', 'n', 'o', 's', 'p', 'f', 'i', 'b'];
|
|
16829
16829
|
function keyHandle(dispatch, getState, hotKeys, event) {
|
|
16830
16830
|
var state = getState();
|
|
16831
16831
|
if (state.modal || selectIsAbbreviationLookupOpen(state)) return;
|
|
@@ -20956,12 +20956,17 @@ var HoverIcon = function () {
|
|
|
20956
20956
|
}, {
|
|
20957
20957
|
key: "updatePosition",
|
|
20958
20958
|
value: function updatePosition() {
|
|
20959
|
+
var render = this.editor.render;
|
|
20959
20960
|
var _this$editor$lastCurs = this.editor.lastCursorPosition,
|
|
20960
20961
|
x = _this$editor$lastCurs.x,
|
|
20961
20962
|
y = _this$editor$lastCurs.y;
|
|
20963
|
+
var currentPosition = new ketcherCore.Vec2(x, y);
|
|
20964
|
+
var scrollPosition = render.scrollPos();
|
|
20965
|
+
var zoom = render.options.zoom;
|
|
20966
|
+
var newPosition = currentPosition.add(scrollPosition).scaled(1 / zoom);
|
|
20962
20967
|
this.element.attr({
|
|
20963
|
-
x: x,
|
|
20964
|
-
y: y
|
|
20968
|
+
x: newPosition.x,
|
|
20969
|
+
y: newPosition.y
|
|
20965
20970
|
});
|
|
20966
20971
|
}
|
|
20967
20972
|
}, {
|
|
@@ -22142,8 +22147,8 @@ function updateLastCursorPosition(editor, event) {
|
|
|
22142
22147
|
if (events.includes(event.type)) {
|
|
22143
22148
|
var clientAreaBoundingBox = editor.render.clientArea.getBoundingClientRect();
|
|
22144
22149
|
editor.lastCursorPosition = {
|
|
22145
|
-
x: event.
|
|
22146
|
-
y: event.
|
|
22150
|
+
x: event.clientX - clientAreaBoundingBox.x,
|
|
22151
|
+
y: event.clientY - clientAreaBoundingBox.y
|
|
22147
22152
|
};
|
|
22148
22153
|
}
|
|
22149
22154
|
}
|
|
@@ -30465,8 +30470,8 @@ var KetcherBuilder = function () {
|
|
|
30465
30470
|
initApp(element, appRoot, staticResourcesUrl, {
|
|
30466
30471
|
buttons: buttons || {},
|
|
30467
30472
|
errorHandler: errorHandler || null,
|
|
30468
|
-
version: "2.14.0-rc.
|
|
30469
|
-
buildDate: "2023-
|
|
30473
|
+
version: "2.14.0-rc.4" ,
|
|
30474
|
+
buildDate: "2023-09-05T11:18:38" ,
|
|
30470
30475
|
buildNumber: ''
|
|
30471
30476
|
}, structService, resolve);
|
|
30472
30477
|
});
|