diff --git a/frontend-js/src/main/js/map/surface/ReactionSurface.js b/frontend-js/src/main/js/map/surface/ReactionSurface.js index b750368fcbf609325c0c9f31d3c5835b3cf59167..2ceeb217ea0c1e6937105dccb991150ceca44dfa 100644 --- a/frontend-js/src/main/js/map/surface/ReactionSurface.js +++ b/frontend-js/src/main/js/map/surface/ReactionSurface.js @@ -87,7 +87,7 @@ ReactionSurface.prototype.setColor = function (color) { strokeColor: color }); } - this.customized = true; + this.setCustomized(true); }; /** @@ -163,7 +163,7 @@ ReactionSurface.prototype.changedToDefault = function () { strokeWeight: 5 }); } - this.customized = false; + this.setCustomized(false); }; /** @@ -177,7 +177,7 @@ ReactionSurface.prototype.changedToCustomized = function () { strokeWeight: this.getWidth() }); } - this.customized = true; + this.setCustomized(true); }; /** diff --git a/rest-api/src/main/java/lcsb/mapviewer/api/projects/overlays/OverlayRestImpl.java b/rest-api/src/main/java/lcsb/mapviewer/api/projects/overlays/OverlayRestImpl.java index de4428df9f88304e9b3591f8c7f2d899d4935bda..c0540b1f76da9760f3947807504d305998ca2202 100644 --- a/rest-api/src/main/java/lcsb/mapviewer/api/projects/overlays/OverlayRestImpl.java +++ b/rest-api/src/main/java/lcsb/mapviewer/api/projects/overlays/OverlayRestImpl.java @@ -143,7 +143,7 @@ public class OverlayRestImpl extends BaseRestImpl { if (columns != null && !columns.trim().isEmpty()) { columnSet = columns.split(","); } else { - columnSet = new String[] { "modelId", "idObject", "value", "color", "uniqueId" }; + columnSet = new String[] { "modelId", "idObject", "value", "color", "uniqueId", "width" }; } List<Map<String, Object>> result = new ArrayList<>(); @@ -426,6 +426,12 @@ public class OverlayRestImpl extends BaseRestImpl { } } else if (column.equals("description")) { value = colorSchema.getDescription(); + } else if (column.equals("width")) { + if (bioEntity instanceof Reaction) { + value = colorSchema.getLineWidth(); + } else { + continue; + } } else if (column.equals("type")) { if (colorSchema instanceof GeneVariationColorSchema) { value = ColorSchemaType.GENETIC_VARIANT;