Skip to content

Commit

Permalink
#3902 - Macro: If open a macro file and put in center of canvas in mi…
Browse files Browse the repository at this point in the history
…cro mode then switch to macro, structure is not in center of canvas
  • Loading branch information
ilya-asiyuk-epam committed Feb 28, 2024
1 parent 96c0b1b commit 1d79516
Show file tree
Hide file tree
Showing 379 changed files with 765 additions and 722 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { test } from '@playwright/test';
import {
moveMouseAway,
openFileAndAddToCanvas,
takeEditorScreenshot,
waitForPageInit,
Expand All @@ -18,6 +19,7 @@ test.describe('Ket Deserialize', () => {
Description: Ket Deserialize
*/
await openFileAndAddToCanvas('KET/monomers-with-bonds.ket', page);
await moveMouseAway(page);
await takeEditorScreenshot(page);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -235,21 +235,48 @@ test.describe('Snake Bond Tool', () => {
3,
3,
);
const { sugar: sugar4 } = await addRnaPresetOnCanvas(
const { sugar: sugar4, phosphate: phosphate4 } = await addRnaPresetOnCanvas(
page,
'T_T_R_P',
100,
100,
4,
4,
);
const { sugar: sugar5, phosphate: phosphate5 } = await addRnaPresetOnCanvas(
page,
'T_T_R_P',
200,
200,
5,
5,
);
const { sugar: sugar6, phosphate: phosphate6 } = await addRnaPresetOnCanvas(
page,
'T_T_R_P',
300,
200,
6,
6,
);
const { sugar: sugar7 } = await addRnaPresetOnCanvas(
page,
'T_T_R_P',
400,
200,
7,
7,
);

await selectSingleBondTool(page);

await bondTwoMonomers(page, phosphate, sugar1);
await bondTwoMonomers(page, phosphate1, sugar2);
await bondTwoMonomers(page, phosphate2, sugar3);
await bondTwoMonomers(page, phosphate3, sugar4);
await bondTwoMonomers(page, phosphate4, sugar5);
await bondTwoMonomers(page, phosphate5, sugar6);
await bondTwoMonomers(page, phosphate6, sugar7);

await selectSnakeLayoutModeTool(page);
await takeEditorScreenshot(page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ test.describe('Undo Redo', () => {
await clickUndo(page);
await takeEditorScreenshot(page);

const startX = 100;
const startY = 100;
const endX = 900;
const endY = 900;
const startX = 10;
const startY = 10;
const endX = 1900;
const endY = 1900;
await selectRectangleArea(page, startX, startY, endX, endY);

const coords = { x: 840, y: 470 };
const coords = { x: 100, y: 100 };
await page.mouse.move(coords.x, coords.y);

await dragMouseTo(coords.x + 100, coords.y + 100, page);
await dragMouseTo(coords.x + 500, coords.y + 500, page);
await takeEditorScreenshot(page);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1)_-_Left_only",
"templateId": "_R1__-_Left_only"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2199999999999998
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R2)_-_R3_gap",
"templateId": "_R1_R2__-_R3_gap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R3)_-_R2_gap",
"templateId": "_R1_R3__-_R2_gap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R2,R3)",
"templateId": "_R1_R2_R3_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R3,R4)",
"templateId": "_R1_R3_R4_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R2,R3,R4)",
"templateId": "_R1_R2_R3_R4_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000003
},
"alias": "(R1,R3,R4,R5)",
"templateId": "_R1_R3_R4_R5_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000003
},
"alias": "(R1,R2,R3,R4,R5)",
"templateId": "_R1_R2_R3_R4_R5_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1)_-_Left_only",
"templateId": "_R1__-_Left_only"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R2)_-_Right_only",
"templateId": "_R2__-_Right_only"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R3)_-_Side_only",
"templateId": "_R3__-_Side_only"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2199999999999998
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R2)_-_R3_gap",
"templateId": "_R1_R2__-_R3_gap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R3)_-_R2_gap",
"templateId": "_R1_R3__-_R2_gap_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R2,R3)_-_R1_gap",
"templateId": "_R2_R3__-_R1_gap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R3,R4)",
"templateId": "_R3_R4_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R2,R3)",
"templateId": "_R1_R2_R3_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2200000000000006
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R3,R4)",
"templateId": "_R1_R3_R4__"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R2,R3,R4)",
"templateId": "_R2_R3_R4_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R3,R4,R5)",
"templateId": "_R3_R4_R5_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R2,R3,R4)",
"templateId": "_R1_R2_R3_R4_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000003
},
"alias": "(R1,R3,R4,R5)",
"templateId": "_R1_R3_R4_R5__"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000003
},
"alias": "(R2,R3,R4,R5)",
"templateId": "_R2_R3_R4_R5_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.219999999999999
"x": 11.9,
"y": -8.325000000000003
},
"alias": "(R1,R2,R3,R4,R5)",
"templateId": "_R1_R2_R3_R4_R5_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325
},
"alias": "(R1)_-_Left_only",
"templateId": "_R1_-_Left_only_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R2)_-_Right_only",
"templateId": "_R2_-_Right_only_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R3)_-_Side_only",
"templateId": "_R3_-_Side_only_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.22
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R2)_-_R3_gap",
"templateId": "_R1_R2_-_R3_gap_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"type": "monomer",
"id": "1",
"position": {
"x": 3.1733333333333333,
"y": -2.2199999999999998
"x": 11.9,
"y": -8.325000000000001
},
"alias": "(R1,R3)_-_R2_gap",
"templateId": "_R1_R3_-_R2_gap_"
Expand Down
Loading

0 comments on commit 1d79516

Please sign in to comment.