Skip to content

Commit

Permalink
fix(svg): don't render graph containers
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Mar 11, 2024
1 parent e2f46a8 commit 039e710
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SVGRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ export class SVGRenderer extends EventTarget {
}

case 'Rectangle': {
const flags = (item.properties?.flags ?? '').split(',');
if (flags.includes('graph')) {
// We currently don't support graph rectangles
break;
}
if (item.properties.image_data != null) {
const image = document.createElementNS('http://www.w3.org/2000/svg', 'image');
image.setAttribute('x', Math.min(item.x1, item.x2).toString());
Expand Down

0 comments on commit 039e710

Please sign in to comment.