@datagrok/bio 2.4.52 → 2.4.54

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "Leonid Stolbov",
6
6
  "email": "lstolbov@datagrok.ai"
7
7
  },
8
- "version": "2.4.52",
8
+ "version": "2.4.54",
9
9
  "description": "Bioinformatics support (import/export of sequences, conversion, visualization, analysis). [See more](https://github.com/datagrok-ai/public/blob/master/packages/Bio/README.md) for details.",
10
10
  "repository": {
11
11
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "@biowasm/aioli": "^3.1.0",
25
- "@datagrok-libraries/bio": "^5.32.8",
25
+ "@datagrok-libraries/bio": "^5.32.10",
26
26
  "@datagrok-libraries/chem-meta": "^1.0.1",
27
27
  "@datagrok-libraries/ml": "^6.3.39",
28
28
  "@datagrok-libraries/tutorials": "^1.3.2",
@@ -118,7 +118,7 @@ export class MacromoleculeSequenceCellRenderer extends DG.GridCellRenderer {
118
118
  ): void {
119
119
  let gapLength = 0;
120
120
  const msaGapLength = 8;
121
- let maxLengthOfMonomer = 8;
121
+ let maxLengthOfMonomer = 999; // in case of long monomer representation, do not limit max length
122
122
 
123
123
  // TODO: Store temp data to GridColumn
124
124
  // Now the renderer requires data frame table Column underlying GridColumn
@@ -313,7 +313,7 @@ export function drawMoleculeDifferenceOnCanvas(
313
313
  w = textWidth + subParts1.length * 4;
314
314
  g.canvas.width = textWidth + subParts1.length * 4;
315
315
  }
316
- let updatedX = Math.max(x, x + (w - (textWidth + subParts1.length * 4)) / 2);
316
+ let updatedX = Math.max(x, x + (w - (textWidth + subParts1.length * 4)) / 2) + 5;
317
317
  // 28 is the height of the two substitutions on top of each other + space
318
318
  const updatedY = Math.max(y, y + (h - 28) / 2);
319
319
 
@@ -42,13 +42,13 @@ export function getMacromoleculeColumnPropertyPanel(col: DG.Column): DG.Widget {
42
42
  `The max length of monomer name displayed without shortening in '${MonomerWidthMode.short}' monomer width mode.`
43
43
  );
44
44
 
45
- const gapLengthInput = ui.intInput('Monomer gap size', col.temp[mmcrTemps.gapLength] ?? 0,
45
+ const gapLengthInput = ui.intInput('Monomer margin', col.temp[mmcrTemps.gapLength] ?? 0,
46
46
  (value: number) => {
47
47
  col.temp[mmcrTemps.gapLength] = value;
48
48
  col.setTag(mmcrTags.RendererSettingsChanged, rendererSettingsChangedState.true);
49
49
  col.dataFrame.fireValuesChanged();
50
50
  });
51
- gapLengthInput.setTooltip('The size of Gap between monomers (in pixels)');
51
+ gapLengthInput.setTooltip('The size of margin between monomers (in pixels)');
52
52
 
53
53
  const colorCode = ui.boolInput('Color code',
54
54
  (col?.temp['color-code'] != null) ? col.temp['color-code'] : true,