Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/resources/static/js/target.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default class Target{
return marker(isBlank);
});

const ENGINEERED_REGION = "http://identifiers.org/so/SO:0000804";
//place SBOL svg on links
const sbolImgSize = 30;
let images = linksEnter.append("svg:image")
Expand Down Expand Up @@ -145,6 +146,9 @@ export default class Target{
})
.attr("href", (d) => {
if (d.hasOwnProperty("componentRoles") && d["componentRoles"].length > 0) {
if(d["componentRoles"].length > 1) {
return getSBOLImage(ENGINEERED_REGION);
}
return getSBOLImage(d["componentRoles"][0]);
}
return null;
Expand All @@ -156,6 +160,9 @@ export default class Target{
.attr("href", (d) => {
if (d.hasOwnProperty("componentRoles")) {
if (d["componentRoles"].length > 0 && d.hasReverseOrient) {
if(d["componentRoles"].length > 1) {
return getSBOLImage(ENGINEERED_REGION);
}
return getSBOLImage(d["componentRoles"][0]);
}
}
Expand Down