Skip to content

Commit

Permalink
demo: use 2 nads with levelofdetail to allow testing for interference…
Browse files Browse the repository at this point in the history
…s (static variables)

Signed-off-by: HARPER Jon <[email protected]>
  • Loading branch information
jonenst committed Jan 14, 2025
1 parent ef60587 commit 43c13a8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<div id="svg-container-nad-threewt-dl-ub"></div>
<div class="break"></div>
<div id="svg-container-nad-partial-network"></div>
<div id="svg-container-nad-partial-network2"></div>
<div class="break"></div>
<div id="svg-container-sld"></div>
<div id="svg-container-sld-with-callbacks"></div>
Expand Down
22 changes: 22 additions & 0 deletions demo/src/diagram-viewers/add-diagrams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,28 @@ export const addNadToDemo = () => {
.getElementById('svg-container-nad-partial-network')
?.getElementsByTagName('svg')[0]
.setAttribute('style', 'border:2px; border-style:solid;');

new NetworkAreaDiagramViewer(
document.getElementById('svg-container-nad-partial-network2')!,
svgContent,
NadSvgPartialNetworkExampleMeta,
500,
600,
1000,
1200,
handleNodeMove,
handleTextNodeMove,
handleNodeSelect,
true,
true,
null,
handleToggleNadHover
);

document
.getElementById('svg-container-nad-partial-network2')
?.getElementsByTagName('svg')[0]
.setAttribute('style', 'border:2px; border-style:solid;');
});
};

Expand Down

0 comments on commit 43c13a8

Please sign in to comment.