Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'TeselaGen:master' into upgradeReactRedux
Browse files Browse the repository at this point in the history
  • Loading branch information
XingGao-PKI authored Dec 13, 2022
2 parents d829ffe + 953aaed commit cfa387b
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 19 deletions.
4 changes: 1 addition & 3 deletions cypress/e2e/chromatogram.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ describe("chromatogram", function () {
cy.tgToggle("chromatogramExample");
cy.get(".chromatogram");
cy.get(".chromatogram.noQualityScores").should("not.exist");
cy.triggerFileCmd("Chromatogram", { noEnter: true });
cy.contains("Chromatogram").click();
cy.contains("Show Quality Scores").click({ force: true });
cy.triggerFileCmd("Show Quality Scores");
cy.get(".chromatogram.noQualityScores").should("exist");
});

Expand Down
1 change: 1 addition & 0 deletions demo/src/exampleData/msaAlignment.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"alignmentTracks": [
{
"sequenceData": {
"seqLink": "https://github.com/TeselaGen/",
"id": "0bd61b29-d822-474f-86e1-877c476fb5dc",
"features": [{
"start": 10,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-vector-editor",
"version": "18.1.58",
"version": "18.1.60",
"description": "Teselagen's Open Source Vector Editor",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
18 changes: 17 additions & 1 deletion src/AlignmentView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
MenuItem,
Tooltip,
Icon,
Spinner
Spinner,
AnchorButton
} from "@blueprintjs/core";
import {
InfoHelper,
Expand Down Expand Up @@ -788,6 +789,21 @@ export class AlignmentView extends React.Component {
minimal
></Button>
)}
{sequenceData.seqLink && (
<AnchorButton
href={sequenceData.seqLink}
target="_blank"
small
icon={
<Icon
size={12}
color="lightgrey"
icon="document-open"
></Icon>
}
minimal
></AnchorButton>
)}
{name}
</div>
<div style={{ fontSize: 10 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/CircularView/Feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Feature(props) {
if (isPart) {
colorToUse = startsWith(color, "override_")
? color.replace("override_", "")
: "purple";
: "#ac68cc";
}
const labelNeedsFlip = shouldFlipText(centerAngle + rotationRadians);
if (containsLocations) {
Expand Down
2 changes: 1 addition & 1 deletion src/CircularView/Labels/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/CircularView/Part.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Part({
});
const colorToUse = startsWith(color, "override_")
? color.replace("override_", "")
: "purple";
: "#ac68cc";
return (
<path
className={className}
Expand Down
4 changes: 2 additions & 2 deletions src/CircularView/drawAnnotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ function drawAnnotations(props) {
fontStyle: fontStyle || "normal",
color:
annotation.labelColor ||
(annotationType === "part" ? "purple" : "black"),
(annotationType === "part" ? "#ac68cc" : "black"),
onContextMenu,
...labelOptions
};
}
if (!hideAnnotation) {
const annotationColor = getColor
? getColor(annotation)
: annotation.color || "purple";
: annotation.color || "#ac68cc";
DrawAnnotation.displayName = annotationType + "--- DrawAnnotation";
const CompToUse = noHover ? DrawAnnotationInner : DrawAnnotation;
svgGroup.push(
Expand Down
2 changes: 1 addition & 1 deletion src/CircularView/getInternalLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function getInternalLabel({
(revTransform || "") + (angleAdjust ? ` rotate(${angleAdjust})` : "")
}
fill={
isPart ? "purple" : Color(colorToUse).isDark() ? "white" : "black"
isPart ? "#ac68cc" : Color(colorToUse).isDark() ? "white" : "black"
}
dy={-2}
>
Expand Down
2 changes: 1 addition & 1 deletion src/FindBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function AnnotationSearchMatchComp({
style={{
background:
type === "parts"
? "purple"
? "#ac68cc"
: ann.color ||
getFeatureToColorMap({ includeHidden: true })[
ann.type
Expand Down
2 changes: 1 addition & 1 deletion src/RowItem/Chromatograms/Chromatogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function drawTrace({
thymine: "red",
guanine: "black",
cytosine: "blue",
other: "purple"
other: "#ac68cc"
};
const ctx = peakCanvas.getContext("2d");

Expand Down
2 changes: 1 addition & 1 deletion src/RowItem/Labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ const DrawLabel = withHover(
whiteSpace: "nowrap",
color:
annotation.annotationTypePlural === "parts"
? "purple"
? "#ac68cc"
: annotation.labelColor,
zIndex: 10
}}
Expand Down
8 changes: 4 additions & 4 deletions src/RowItem/StackedAnnotations/PointedAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function PointedAnnotation(props) {
<circle
className="partWithOverhangsIndicator"
style={{ fillOpacity: 1 }}
fill="purple"
fill="#ac68cc"
cx={(forward ? -7 : 0) + 15}
cy={7}
r={4}
Expand All @@ -283,7 +283,7 @@ function PointedAnnotation(props) {
<circle
className="partWithOverhangsIndicator"
style={{ fillOpacity: 1 }}
fill="purple"
fill="#ac68cc"
cx={(forward ? -7 : 0) + width - 10}
cy={7}
r={4}
Expand Down Expand Up @@ -318,7 +318,7 @@ export default withHover(PointedAnnotation);
// >
// <rect
// style={{ fillOpacity: 1 }}
// stroke="purple"
// stroke="#ac68cc"
// fill="none"
// x={-10}
// width={10}
Expand All @@ -332,7 +332,7 @@ export default withHover(PointedAnnotation);
// >
// <rect
// style={{ fillOpacity: 1 }}
// stroke="purple"
// stroke="#ac68cc"
// fill="none"
// x={ width + 2 }
// y={7}
Expand Down
2 changes: 1 addition & 1 deletion src/RowItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default function RowItem(props) {
const { color } = annotation;
const colorToUse = startsWith(color, "override_")
? color.replace("override_", "")
: "purple";
: "#ac68cc";
return {
textColor: colorToUse,
stroke: colorToUse
Expand Down

0 comments on commit cfa387b

Please sign in to comment.