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.js
CHANGED
|
@@ -3798,7 +3798,7 @@ var zoom = {
|
|
|
3798
3798
|
|
|
3799
3799
|
var openHelpLink = function openHelpLink() {
|
|
3800
3800
|
var _window$open;
|
|
3801
|
-
return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.27.0-rc.
|
|
3801
|
+
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();
|
|
3802
3802
|
};
|
|
3803
3803
|
var help = {
|
|
3804
3804
|
help: {
|
|
@@ -18954,7 +18954,7 @@ var TemplateTool = function () {
|
|
|
18954
18954
|
value: function () {
|
|
18955
18955
|
var _mousedown = _asyncToGenerator__default["default"]( _regeneratorRuntime__default["default"].mark(function _callee(event) {
|
|
18956
18956
|
var _this$templatePreview;
|
|
18957
|
-
var target, struct, _this$closestItem2, _this$closestItem3, _this$closestItem4, dragCtx, ci, bond;
|
|
18957
|
+
var target, struct, _this$closestItem2, _this$closestItem3, _this$closestItem4, _this$closestItem5, dragCtx, ci, bond;
|
|
18958
18958
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
18959
18959
|
while (1) switch (_context.prev = _context.next) {
|
|
18960
18960
|
case 0:
|
|
@@ -18969,7 +18969,7 @@ var TemplateTool = function () {
|
|
|
18969
18969
|
bonds: [this.closestItem.id]
|
|
18970
18970
|
}));
|
|
18971
18971
|
if (
|
|
18972
|
-
((_this$closestItem4 = this.closestItem) === null || _this$closestItem4 === void 0 ? void 0 : _this$closestItem4.map) === 'functionalGroups' && ketcherCore.FunctionalGroup.isContractedFunctionalGroup(this.closestItem.id, this.functionalGroups)) {
|
|
18972
|
+
(((_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') && ketcherCore.FunctionalGroup.isContractedFunctionalGroup(this.closestItem.id, this.functionalGroups)) {
|
|
18973
18973
|
this.targetGroupsIds.push(this.closestItem.id);
|
|
18974
18974
|
}
|
|
18975
18975
|
}
|
|
@@ -20446,7 +20446,20 @@ function findClosestSGroup(restruct, pos) {
|
|
|
20446
20446
|
var ret = null;
|
|
20447
20447
|
var minDist = SELECTION_DISTANCE_COEFFICIENT;
|
|
20448
20448
|
restruct.molecule.sgroups.forEach(function (sg, sgid) {
|
|
20449
|
-
if (sg.
|
|
20449
|
+
if (sg.isSuperatomWithoutLabel) {
|
|
20450
|
+
return;
|
|
20451
|
+
}
|
|
20452
|
+
if (sg.isContracted()) {
|
|
20453
|
+
var sGroupPosition = sg.pp;
|
|
20454
|
+
if (sGroupPosition) {
|
|
20455
|
+
var dist = ketcherCore.Vec2.dist(pos, sGroupPosition);
|
|
20456
|
+
if (dist < minDist) {
|
|
20457
|
+
ret = sgid;
|
|
20458
|
+
minDist = dist;
|
|
20459
|
+
}
|
|
20460
|
+
}
|
|
20461
|
+
return;
|
|
20462
|
+
}
|
|
20450
20463
|
var d = sg.bracketDirection;
|
|
20451
20464
|
var n = d.rotateSC(1, 0);
|
|
20452
20465
|
var pg = new ketcherCore.Vec2(ketcherCore.Vec2.dot(pos, d), ketcherCore.Vec2.dot(pos, n));
|
|
@@ -21827,7 +21840,7 @@ var EraserTool = function () {
|
|
|
21827
21840
|
this.editor.update(ketcherCore.fromOneAtomDeletion(restruct, ci.id));
|
|
21828
21841
|
} else if (ci.map === 'bonds') {
|
|
21829
21842
|
this.editor.update(ketcherCore.fromOneBondDeletion(restruct, ci.id));
|
|
21830
|
-
} else if (ci.map === 'functionalGroups' && ketcherCore.FunctionalGroup.isContractedFunctionalGroup(ci.id, functionalGroups)) {
|
|
21843
|
+
} else if ((ci.map === 'sgroups' || ci.map === 'functionalGroups') && ketcherCore.FunctionalGroup.isContractedFunctionalGroup(ci.id, functionalGroups)) {
|
|
21831
21844
|
var _sGroup = sgroups.get(ci.id);
|
|
21832
21845
|
this.editor.update(ketcherCore.fromFragmentDeletion(rnd.ctab, {
|
|
21833
21846
|
atoms: _toConsumableArray__default["default"](ketcherCore.SGroup.getAtoms(molecule, _sGroup === null || _sGroup === void 0 ? void 0 : _sGroup.item)),
|
|
@@ -34949,8 +34962,8 @@ var KetcherBuilder = function () {
|
|
|
34949
34962
|
cleanup = initApp(element, appRoot, staticResourcesUrl, {
|
|
34950
34963
|
buttons: buttons || {},
|
|
34951
34964
|
errorHandler: errorHandler || null,
|
|
34952
|
-
version: "2.27.0-rc.
|
|
34953
|
-
buildDate: "2024-
|
|
34965
|
+
version: "2.27.0-rc.3" ,
|
|
34966
|
+
buildDate: "2024-12-24T19:29:23" ,
|
|
34954
34967
|
buildNumber: '',
|
|
34955
34968
|
customButtons: customButtons || []
|
|
34956
34969
|
}, structService, resolve, togglerComponent);
|