ketcher-react 2.13.0-rc.4 → 2.13.0-rc.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.
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -7
- 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.modern.js
CHANGED
|
@@ -3039,7 +3039,7 @@ var zoom = {
|
|
|
3039
3039
|
|
|
3040
3040
|
var openHelpLink = function openHelpLink() {
|
|
3041
3041
|
var _window$open;
|
|
3042
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.13.0-rc.
|
|
3042
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.13.0-rc.5\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3043
3043
|
};
|
|
3044
3044
|
var help = {
|
|
3045
3045
|
help: {
|
|
@@ -20631,12 +20631,17 @@ var HoverIcon = function () {
|
|
|
20631
20631
|
}, {
|
|
20632
20632
|
key: "updatePosition",
|
|
20633
20633
|
value: function updatePosition() {
|
|
20634
|
+
var render = this.editor.render;
|
|
20634
20635
|
var _this$editor$lastCurs = this.editor.lastCursorPosition,
|
|
20635
20636
|
x = _this$editor$lastCurs.x,
|
|
20636
20637
|
y = _this$editor$lastCurs.y;
|
|
20638
|
+
var currentPosition = new Vec2(x, y);
|
|
20639
|
+
var scrollPosition = render.scrollPos();
|
|
20640
|
+
var zoom = render.options.zoom;
|
|
20641
|
+
var newPosition = currentPosition.add(scrollPosition).scaled(1 / zoom);
|
|
20637
20642
|
this.element.attr({
|
|
20638
|
-
x: x,
|
|
20639
|
-
y: y
|
|
20643
|
+
x: newPosition.x,
|
|
20644
|
+
y: newPosition.y
|
|
20640
20645
|
});
|
|
20641
20646
|
}
|
|
20642
20647
|
}, {
|
|
@@ -21814,8 +21819,8 @@ function updateLastCursorPosition(editor, event) {
|
|
|
21814
21819
|
if (events.includes(event.type)) {
|
|
21815
21820
|
var clientAreaBoundingBox = editor.render.clientArea.getBoundingClientRect();
|
|
21816
21821
|
editor.lastCursorPosition = {
|
|
21817
|
-
x: event.
|
|
21818
|
-
y: event.
|
|
21822
|
+
x: event.clientX - clientAreaBoundingBox.x,
|
|
21823
|
+
y: event.clientY - clientAreaBoundingBox.y
|
|
21819
21824
|
};
|
|
21820
21825
|
}
|
|
21821
21826
|
}
|
|
@@ -30013,8 +30018,8 @@ var KetcherBuilder = function () {
|
|
|
30013
30018
|
initApp(element, staticResourcesUrl, {
|
|
30014
30019
|
buttons: buttons || {},
|
|
30015
30020
|
errorHandler: errorHandler || null,
|
|
30016
|
-
version: "2.13.0-rc.
|
|
30017
|
-
buildDate: "2023-08-
|
|
30021
|
+
version: "2.13.0-rc.5" ,
|
|
30022
|
+
buildDate: "2023-08-25T16:56:04" ,
|
|
30018
30023
|
buildNumber: ''
|
|
30019
30024
|
}, structService, resolve);
|
|
30020
30025
|
});
|