ketcher-react 2.13.0-rc.4 → 2.13.0

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 CHANGED
@@ -3102,7 +3102,7 @@ var zoom = {
3102
3102
 
3103
3103
  var openHelpLink = function openHelpLink() {
3104
3104
  var _window$open;
3105
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.13.0-rc.4\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3105
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.13.0\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3106
3106
  };
3107
3107
  var help = {
3108
3108
  help: {
@@ -20694,12 +20694,17 @@ var HoverIcon = function () {
20694
20694
  }, {
20695
20695
  key: "updatePosition",
20696
20696
  value: function updatePosition() {
20697
+ var render = this.editor.render;
20697
20698
  var _this$editor$lastCurs = this.editor.lastCursorPosition,
20698
20699
  x = _this$editor$lastCurs.x,
20699
20700
  y = _this$editor$lastCurs.y;
20701
+ var currentPosition = new ketcherCore.Vec2(x, y);
20702
+ var scrollPosition = render.scrollPos();
20703
+ var zoom = render.options.zoom;
20704
+ var newPosition = currentPosition.add(scrollPosition).scaled(1 / zoom);
20700
20705
  this.element.attr({
20701
- x: x,
20702
- y: y
20706
+ x: newPosition.x,
20707
+ y: newPosition.y
20703
20708
  });
20704
20709
  }
20705
20710
  }, {
@@ -21877,8 +21882,8 @@ function updateLastCursorPosition(editor, event) {
21877
21882
  if (events.includes(event.type)) {
21878
21883
  var clientAreaBoundingBox = editor.render.clientArea.getBoundingClientRect();
21879
21884
  editor.lastCursorPosition = {
21880
- x: event.pageX - clientAreaBoundingBox.x,
21881
- y: event.pageY - clientAreaBoundingBox.y
21885
+ x: event.clientX - clientAreaBoundingBox.x,
21886
+ y: event.clientY - clientAreaBoundingBox.y
21882
21887
  };
21883
21888
  }
21884
21889
  }
@@ -30076,8 +30081,8 @@ var KetcherBuilder = function () {
30076
30081
  initApp(element, staticResourcesUrl, {
30077
30082
  buttons: buttons || {},
30078
30083
  errorHandler: errorHandler || null,
30079
- version: "2.13.0-rc.4" ,
30080
- buildDate: "2023-08-15T08:04:54" ,
30084
+ version: "2.13.0" ,
30085
+ buildDate: "2023-09-28T07:18:08" ,
30081
30086
  buildNumber: ''
30082
30087
  }, structService, resolve);
30083
30088
  });