ketcher-react 2.11.0-rc.2 → 2.11.0-rc.4

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.
@@ -3010,7 +3010,7 @@ var zoom = {
3010
3010
 
3011
3011
  var openHelpLink = function openHelpLink() {
3012
3012
  var _window$open;
3013
- return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.11.0-rc.2\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3013
+ return (_window$open = window.open("https://github.com/epam/ketcher/blob/".concat("v2.11.0-rc.4\n", "/documentation/help.md#ketcher-overview"))) === null || _window$open === void 0 ? void 0 : _window$open.focus();
3014
3014
  };
3015
3015
  var help = {
3016
3016
  help: {
@@ -7529,6 +7529,7 @@ var RenderStruct = function () {
7529
7529
  var rnd = new Render(el, _objectSpread$11({
7530
7530
  autoScale: true
7531
7531
  }, options));
7532
+ preparedStruct.rescale();
7532
7533
  rnd.setMolecule(preparedStruct);
7533
7534
  if (needCache) {
7534
7535
  renderCache.set(cacheKey, rnd.clientArea.innerHTML);
@@ -17990,7 +17991,7 @@ var InfoPanel = function InfoPanel(props) {
17990
17991
  var childRef = useRef(null);
17991
17992
  var groupName = sGroup === null || sGroup === void 0 ? void 0 : (_sGroup$data = sGroup.data) === null || _sGroup$data === void 0 ? void 0 : _sGroup$data.name;
17992
17993
  useEffect(function () {
17993
- if (!groupStruct && (sGroup === null || sGroup === void 0 ? void 0 : sGroup.type) === 'DAT') {
17994
+ if (sGroup && SGroup$1.isDataSGroup(sGroup)) {
17994
17995
  var _sGroup$data2, _sGroup$data3;
17995
17996
  setSGroupData("".concat((_sGroup$data2 = sGroup.data) === null || _sGroup$data2 === void 0 ? void 0 : _sGroup$data2.fieldName, "=").concat((_sGroup$data3 = sGroup.data) === null || _sGroup$data3 === void 0 ? void 0 : _sGroup$data3.fieldValue));
17996
17997
  } else {
@@ -18000,7 +18001,8 @@ var InfoPanel = function InfoPanel(props) {
18000
18001
  useEffect(function () {
18001
18002
  setMolecule(groupStruct ? groupStruct.clone() : null);
18002
18003
  }, [groupName, groupStruct]);
18003
- if (!molecule && !sGroupData || clientX === undefined || clientY === undefined) {
18004
+ var nonTooltipSGroup = !sGroup || SGroup$1.isMulSGroup(sGroup) || SGroup$1.isSRUSGroup(sGroup);
18005
+ if (nonTooltipSGroup || !molecule && !sGroupData || clientX === undefined || clientY === undefined) {
18004
18006
  return null;
18005
18007
  }
18006
18008
  var _getPanelPosition = getPanelPosition(clientX, clientY, render, sGroup),
@@ -18011,7 +18013,8 @@ var InfoPanel = function InfoPanel(props) {
18011
18013
  y = position.y;
18012
18014
  var width = size.x;
18013
18015
  var height = size.y;
18014
- return molecule ? jsx("div", {
18016
+ var showMolecule = molecule && sGroup && !SGroup$1.isDataSGroup(sGroup);
18017
+ return showMolecule ? jsx("div", {
18015
18018
  style: {
18016
18019
  left: x + 'px',
18017
18020
  top: y + 'px'
@@ -24606,8 +24609,8 @@ var KetcherBuilder = function () {
24606
24609
  initApp(element, staticResourcesUrl, {
24607
24610
  buttons: buttons || {},
24608
24611
  errorHandler: errorHandler || null,
24609
- version: "2.11.0-rc.2" ,
24610
- buildDate: "2023-05-30T13:30:11" ,
24612
+ version: "2.11.0-rc.4" ,
24613
+ buildDate: "2023-06-01T12:49:40" ,
24611
24614
  buildNumber: ''
24612
24615
  }, structService, resolve);
24613
24616
  });