diff --git a/CHANGELOG.md b/CHANGELOG.md index 97fbaa25b..ee7f686e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [v17.6.4](https://github.com/TeselaGen/openVectorEditor/compare/v17.3.12...v17.6.4) -- Adjust font size for name in circular view [`#834`](https://github.com/TeselaGen/openVectorEditor/pull/834) -- Tnr add zoom to linear view [`#828`](https://github.com/TeselaGen/openVectorEditor/pull/828) - Added rounded corners to amino acids [`#819`](https://github.com/TeselaGen/openVectorEditor/pull/819) - small selection color style fix https://github.com/TeselaGen/lims/issues/9038#event-6627607729 [`#9038`](https://github.com/TeselaGen/lims/issues/9038) -- bumping new minor version w/ linear view zoom v1 [`8b406cd`](https://github.com/TeselaGen/openVectorEditor/commit/8b406cd95ea665f10b7b44e84403b6c0ef6f4d17) -- making sequences track their default enzyme filter by default; improving setting of default global enzyme filter [`e353f3c`](https://github.com/TeselaGen/openVectorEditor/commit/e353f3c46b0fc1d67ef9f81b537f6ac675901d9f) -- reverting persist enzyme filter UI changes [`2d81d4a`](https://github.com/TeselaGen/openVectorEditor/commit/2d81d4a556ba0dba8daa86f94420e635b347c9b8) +- adding a coercion function to manage the alignment view zoom [`4e16ab4`](https://github.com/TeselaGen/openVectorEditor/commit/4e16ab440ecfe4f6344de3fe191a597b0da18a48) +- improving sequence length toggle, increasing allowable linear view zoom size [`5c4594b`](https://github.com/TeselaGen/openVectorEditor/commit/5c4594b750c48288158c296231f30b168c36cc1b) +- added linear view test cases [`813890a`](https://github.com/TeselaGen/openVectorEditor/commit/813890a0530ed8bd49a85b4cfee7834dc4b17155) #### [v17.3.12](https://github.com/TeselaGen/openVectorEditor/compare/v17.2.7...v17.3.12) diff --git a/cypress/integration/alignment.spec.js b/cypress/integration/alignment.spec.js index 67cf843b5..21fb7b786 100644 --- a/cypress/integration/alignment.spec.js +++ b/cypress/integration/alignment.spec.js @@ -1,4 +1,15 @@ describe("alignment", function () { + it("it should re-draw the labels of features/parts/primers when a feature is so long that the middle of the label does not fit into view", function () { + cy.visit("#/Alignment"); + cy.get(".tg-alignment-visibility-toggle").click(); + cy.contains("cds feature").should("not.exist"); + cy.get(".bp3-popover .bp3-control:contains(Features)").click(); + cy.contains("cds feature"); + cy.get(".tg-alignment-visibility-toggle").click(); + cy.contains("text", "long feat whose label should still appear").should( + "be.visible" + ); + }); it("it should show an unmapped warning", function () { cy.visit("#/Alignment"); cy.get(".bp3-icon-warning-sign"); diff --git a/demo/src/exampleData/msaAlignment.json b/demo/src/exampleData/msaAlignment.json index 51f879194..5ed2de423 100644 --- a/demo/src/exampleData/msaAlignment.json +++ b/demo/src/exampleData/msaAlignment.json @@ -21,8 +21,8 @@ "id": "0bd61b29-d822-474f-86e1-877c476fb5dc", "features": [{ "start": 10, - "end": 50, - "name": "cds feature", + "end": 500, + "name": "long feat whose label should still appear", "type": "CDS", "id": "5ac3f0a199aae6653c0e7d41", "forward": true, diff --git a/src/AlignmentView/AlignmentVisibilityTool.js b/src/AlignmentView/AlignmentVisibilityTool.js index a14290aa3..b5a5a415e 100644 --- a/src/AlignmentView/AlignmentVisibilityTool.js +++ b/src/AlignmentView/AlignmentVisibilityTool.js @@ -19,6 +19,7 @@ export default pureNoFunc(function AlignmentVisibilityTool(props) { target={