ketcher-react 2.14.0-rc.2 → 2.14.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.
@@ -3042,7 +3042,7 @@ var zoom = {
3042
3042
 
3043
3043
  var openHelpLink = function openHelpLink() {
3044
3044
  var _window$open;
3045
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.14.0-rc.2\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3045
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.14.0-rc.3\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3046
3046
  };
3047
3047
  var help = {
3048
3048
  help: {
@@ -16762,7 +16762,7 @@ function removeNotRenderedStruct(actionTool, group, dispatch) {
16762
16762
  }
16763
16763
  var abbreviationLookupTimeoutId;
16764
16764
  var ABBREVIATION_LOOKUP_TYPING_TIMEOUT = 1000;
16765
- var shortcutKeys = ['1', '2', '3', '4', 't'];
16765
+ var shortcutKeys = ['1', '2', '3', '4', 't', 'h', 'n', 'o', 's', 'p', 'f', 'i', 'b'];
16766
16766
  function keyHandle(dispatch, getState, hotKeys, event) {
16767
16767
  var state = getState();
16768
16768
  if (state.modal || selectIsAbbreviationLookupOpen(state)) return;
@@ -20893,12 +20893,17 @@ var HoverIcon = function () {
20893
20893
  }, {
20894
20894
  key: "updatePosition",
20895
20895
  value: function updatePosition() {
20896
+ var render = this.editor.render;
20896
20897
  var _this$editor$lastCurs = this.editor.lastCursorPosition,
20897
20898
  x = _this$editor$lastCurs.x,
20898
20899
  y = _this$editor$lastCurs.y;
20900
+ var currentPosition = new Vec2(x, y);
20901
+ var scrollPosition = render.scrollPos();
20902
+ var zoom = render.options.zoom;
20903
+ var newPosition = currentPosition.add(scrollPosition).scaled(1 / zoom);
20899
20904
  this.element.attr({
20900
- x: x,
20901
- y: y
20905
+ x: newPosition.x,
20906
+ y: newPosition.y
20902
20907
  });
20903
20908
  }
20904
20909
  }, {
@@ -22079,8 +22084,8 @@ function updateLastCursorPosition(editor, event) {
22079
22084
  if (events.includes(event.type)) {
22080
22085
  var clientAreaBoundingBox = editor.render.clientArea.getBoundingClientRect();
22081
22086
  editor.lastCursorPosition = {
22082
- x: event.pageX - clientAreaBoundingBox.x,
22083
- y: event.pageY - clientAreaBoundingBox.y
22087
+ x: event.clientX - clientAreaBoundingBox.x,
22088
+ y: event.clientY - clientAreaBoundingBox.y
22084
22089
  };
22085
22090
  }
22086
22091
  }
@@ -30402,8 +30407,8 @@ var KetcherBuilder = function () {
30402
30407
  initApp(element, appRoot, staticResourcesUrl, {
30403
30408
  buttons: buttons || {},
30404
30409
  errorHandler: errorHandler || null,
30405
- version: "2.14.0-rc.2" ,
30406
- buildDate: "2023-08-22T08:01:40" ,
30410
+ version: "2.14.0-rc.3" ,
30411
+ buildDate: "2023-08-30T11:39:46" ,
30407
30412
  buildNumber: ''
30408
30413
  }, structService, resolve);
30409
30414
  });