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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -3
package/dist/index.modern.js
CHANGED
|
@@ -9664,7 +9664,13 @@ function PasteTool(editor, struct) {
|
|
|
9664
9664
|
this.molecule = editor.render.ctab.molecule;
|
|
9665
9665
|
this.functionalGroups = this.molecule.functionalGroups;
|
|
9666
9666
|
var rnd = editor.render;
|
|
9667
|
-
var
|
|
9667
|
+
var _rnd$clientArea = rnd.clientArea,
|
|
9668
|
+
clientHeight = _rnd$clientArea.clientHeight,
|
|
9669
|
+
clientWidth = _rnd$clientArea.clientWidth;
|
|
9670
|
+
var point = editor.lastEvent ? rnd.page2obj(editor.lastEvent) : rnd.page2obj({
|
|
9671
|
+
pageX: clientWidth / 2,
|
|
9672
|
+
pageY: clientHeight / 2
|
|
9673
|
+
});
|
|
9668
9674
|
var _fromPaste = fromPaste(rnd.ctab, this.struct, point),
|
|
9669
9675
|
_fromPaste2 = _slicedToArray(_fromPaste, 2),
|
|
9670
9676
|
action = _fromPaste2[0],
|
|
@@ -16768,8 +16774,8 @@ var KetcherBuilder = function () {
|
|
|
16768
16774
|
initApp(element, staticResourcesUrl, {
|
|
16769
16775
|
buttons: buttons || {},
|
|
16770
16776
|
errorHandler: errorHandler || null,
|
|
16771
|
-
version: "2.4.
|
|
16772
|
-
buildDate: "
|
|
16777
|
+
version: "2.4.1" ,
|
|
16778
|
+
buildDate: "2022-01-13T18:04:07" ,
|
|
16773
16779
|
buildNumber: ''
|
|
16774
16780
|
}, structService, resolve);
|
|
16775
16781
|
});
|