Skip to content

Commit

Permalink
More robust access node background coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun authored Jan 12, 2024
1 parent f4662ae commit 745f6c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/renderer_elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1474,11 +1474,11 @@ export class AccessNode extends SDFGNode {
ctx.setLineDash([1, 0]);

// Views are colored like connectors
if (nodedesc && nodedesc.type === 'View') {
if (nodedesc && nodedesc.type.includes('View')) {
ctx.fillStyle = this.getCssProperty(
renderer, '--connector-unscoped-color'
);
} else if (nodedesc && nodedesc.type === 'Reference') {
} else if (nodedesc && nodedesc.type.includes('Reference')) {
ctx.fillStyle = this.getCssProperty(
renderer, '--reference-background-color'
);
Expand Down

0 comments on commit 745f6c3

Please sign in to comment.