Skip to content

Commit

Permalink
default color style
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 15, 2025
1 parent f0dc6ba commit 787e745
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/extension/openseadragon-overlays-manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@
if($.isArray(layer.data)){
for(let j = 0;j < layer.data.length;j++){
const path = layer.data[j].geometry.path;
const style = layer.data[j].properties.style;
let style = layer.data[j].properties.style;
if (style == undefined || style == null){
style = {"color": "#FF6296")
}
const pathData = layer.data[j];
if(layer.hoverable&&path.contains(img_point.x,img_point.y)){
this.resize();
Expand Down Expand Up @@ -907,4 +910,4 @@



})(OpenSeadragon)
})(OpenSeadragon)

0 comments on commit 787e745

Please sign in to comment.