Skip to content

Commit

Permalink
removed legacy style in classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ponchio committed Oct 4, 2023
1 parent 5d9a560 commit afb67c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LayerSvgAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class LayerSvgAnnotation extends LayerAnnotation {
svgGroup: null,
onClick: null, //callback function
classes: {
'': { style: { stroke: '#000' }, label: '' },
'': { stroke: '#000', label: '' },
},
annotationUpdate: null
}, options);
super(options);
for(const [key, value] of Object.entries(this.classes)) {
this.style += `[data-class=${key}] { ` + Object.entries(value.style).map( g => `${g[0]}: ${g[1]};`).join('\n') + '}';
this.style += `[data-class=${key}] { ` + Object.entries(value).map( g => `${g[0]}: ${g[1]};`).join('\n') + '}';
}
//this.createOverlaySVGElement();
//this.setLayout(this.layout);
Expand Down

0 comments on commit afb67c3

Please sign in to comment.