ketcher-react 2.27.0-rc.2 → 2.27.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.
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3733,7 +3733,7 @@ var zoom = {
|
|
|
3733
3733
|
|
|
3734
3734
|
var openHelpLink = function openHelpLink() {
|
|
3735
3735
|
var _window$open;
|
|
3736
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.27.0-rc.
|
|
3736
|
+
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.27.0-rc.3\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
|
|
3737
3737
|
};
|
|
3738
3738
|
var help = {
|
|
3739
3739
|
help: {
|
|
@@ -18889,7 +18889,7 @@ var TemplateTool = function () {
|
|
|
18889
18889
|
value: function () {
|
|
18890
18890
|
var _mousedown = _asyncToGenerator( _regeneratorRuntime.mark(function _callee(event) {
|
|
18891
18891
|
var _this$templatePreview;
|
|
18892
|
-
var target, struct, _this$closestItem2, _this$closestItem3, _this$closestItem4, dragCtx, ci, bond;
|
|
18892
|
+
var target, struct, _this$closestItem2, _this$closestItem3, _this$closestItem4, _this$closestItem5, dragCtx, ci, bond;
|
|
18893
18893
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
18894
18894
|
while (1) switch (_context.prev = _context.next) {
|
|
18895
18895
|
case 0:
|
|
@@ -18904,7 +18904,7 @@ var TemplateTool = function () {
|
|
|
18904
18904
|
bonds: [this.closestItem.id]
|
|
18905
18905
|
}));
|
|
18906
18906
|
if (
|
|
18907
|
-
((_this$closestItem4 = this.closestItem) === null || _this$closestItem4 === void 0 ? void 0 : _this$closestItem4.map) === 'functionalGroups' && FunctionalGroup.isContractedFunctionalGroup(this.closestItem.id, this.functionalGroups)) {
|
|
18907
|
+
(((_this$closestItem4 = this.closestItem) === null || _this$closestItem4 === void 0 ? void 0 : _this$closestItem4.map) === 'functionalGroups' || ((_this$closestItem5 = this.closestItem) === null || _this$closestItem5 === void 0 ? void 0 : _this$closestItem5.map) === 'sgroups') && FunctionalGroup.isContractedFunctionalGroup(this.closestItem.id, this.functionalGroups)) {
|
|
18908
18908
|
this.targetGroupsIds.push(this.closestItem.id);
|
|
18909
18909
|
}
|
|
18910
18910
|
}
|
|
@@ -20381,7 +20381,20 @@ function findClosestSGroup(restruct, pos) {
|
|
|
20381
20381
|
var ret = null;
|
|
20382
20382
|
var minDist = SELECTION_DISTANCE_COEFFICIENT;
|
|
20383
20383
|
restruct.molecule.sgroups.forEach(function (sg, sgid) {
|
|
20384
|
-
if (sg.
|
|
20384
|
+
if (sg.isSuperatomWithoutLabel) {
|
|
20385
|
+
return;
|
|
20386
|
+
}
|
|
20387
|
+
if (sg.isContracted()) {
|
|
20388
|
+
var sGroupPosition = sg.pp;
|
|
20389
|
+
if (sGroupPosition) {
|
|
20390
|
+
var dist = Vec2.dist(pos, sGroupPosition);
|
|
20391
|
+
if (dist < minDist) {
|
|
20392
|
+
ret = sgid;
|
|
20393
|
+
minDist = dist;
|
|
20394
|
+
}
|
|
20395
|
+
}
|
|
20396
|
+
return;
|
|
20397
|
+
}
|
|
20385
20398
|
var d = sg.bracketDirection;
|
|
20386
20399
|
var n = d.rotateSC(1, 0);
|
|
20387
20400
|
var pg = new Vec2(Vec2.dot(pos, d), Vec2.dot(pos, n));
|
|
@@ -21762,7 +21775,7 @@ var EraserTool = function () {
|
|
|
21762
21775
|
this.editor.update(fromOneAtomDeletion(restruct, ci.id));
|
|
21763
21776
|
} else if (ci.map === 'bonds') {
|
|
21764
21777
|
this.editor.update(fromOneBondDeletion(restruct, ci.id));
|
|
21765
|
-
} else if (ci.map === 'functionalGroups' && FunctionalGroup.isContractedFunctionalGroup(ci.id, functionalGroups)) {
|
|
21778
|
+
} else if ((ci.map === 'sgroups' || ci.map === 'functionalGroups') && FunctionalGroup.isContractedFunctionalGroup(ci.id, functionalGroups)) {
|
|
21766
21779
|
var _sGroup = sgroups.get(ci.id);
|
|
21767
21780
|
this.editor.update(fromFragmentDeletion(rnd.ctab, {
|
|
21768
21781
|
atoms: _toConsumableArray(SGroup$1.getAtoms(molecule, _sGroup === null || _sGroup === void 0 ? void 0 : _sGroup.item)),
|
|
@@ -34884,8 +34897,8 @@ var KetcherBuilder = function () {
|
|
|
34884
34897
|
cleanup = initApp(element, appRoot, staticResourcesUrl, {
|
|
34885
34898
|
buttons: buttons || {},
|
|
34886
34899
|
errorHandler: errorHandler || null,
|
|
34887
|
-
version: "2.27.0-rc.
|
|
34888
|
-
buildDate: "2024-
|
|
34900
|
+
version: "2.27.0-rc.3" ,
|
|
34901
|
+
buildDate: "2024-12-24T19:29:23" ,
|
|
34889
34902
|
buildNumber: '',
|
|
34890
34903
|
customButtons: customButtons || []
|
|
34891
34904
|
}, structService, resolve, togglerComponent);
|