ketcher-react 2.4.0 → 2.4.1

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
@@ -9715,7 +9715,13 @@ function PasteTool(editor, struct) {
9715
9715
  this.molecule = editor.render.ctab.molecule;
9716
9716
  this.functionalGroups = this.molecule.functionalGroups;
9717
9717
  var rnd = editor.render;
9718
- var point = editor.lastEvent ? rnd.page2obj(editor.lastEvent) : null;
9718
+ var _rnd$clientArea = rnd.clientArea,
9719
+ clientHeight = _rnd$clientArea.clientHeight,
9720
+ clientWidth = _rnd$clientArea.clientWidth;
9721
+ var point = editor.lastEvent ? rnd.page2obj(editor.lastEvent) : rnd.page2obj({
9722
+ pageX: clientWidth / 2,
9723
+ pageY: clientHeight / 2
9724
+ });
9719
9725
  var _fromPaste = ketcherCore.fromPaste(rnd.ctab, this.struct, point),
9720
9726
  _fromPaste2 = _slicedToArray__default["default"](_fromPaste, 2),
9721
9727
  action = _fromPaste2[0],
@@ -16819,8 +16825,8 @@ var KetcherBuilder = function () {
16819
16825
  initApp(element, staticResourcesUrl, {
16820
16826
  buttons: buttons || {},
16821
16827
  errorHandler: errorHandler || null,
16822
- version: "2.4.0" ,
16823
- buildDate: "2021-12-30T09:40:26" ,
16828
+ version: "2.4.1" ,
16829
+ buildDate: "2022-01-13T18:04:07" ,
16824
16830
  buildNumber: ''
16825
16831
  }, structService, resolve);
16826
16832
  });