|
1 | 1 | <!-- |
2 | | - Copyright (c) 2023, RTE (http://www.rte-france.com) |
3 | | - This Source Code Form is subject to the terms of the Mozilla Public |
4 | | - License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | - file, You can obtain one at http://mozilla.org/MPL/2.0/. |
6 | | ---> |
| 2 | + ~ Copyright (c) 2023, RTE (https://www.rte-france.com) |
| 3 | + ~ This Source Code Form is subject to the terms of the Mozilla Public |
| 4 | + ~ License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 | + ~ file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 6 | + ~ SPDX-License-Identifier: MPL-2.0 |
| 7 | + --> |
| 8 | + |
7 | 9 | <!doctype html> |
8 | 10 | <html lang="en"> |
9 | 11 | <head> |
10 | 12 | <meta charset="utf-8" /> |
11 | 13 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
12 | 14 | <meta name="theme-color" content="#000000" /> |
13 | | - <meta name="description" content="network map viewer demo app" /> |
14 | | - <title>SVG Viewers Examples</title> |
| 15 | + <meta name="description" content="network-viewer demo app" /> |
| 16 | + <title>Network-viewer examples</title> |
15 | 17 | <link rel="stylesheet" href="src/style.css" /> |
16 | 18 | <link rel="stylesheet" href="src/zoom.css" /> |
17 | 19 | <link rel="stylesheet" href="src/demo.css" /> |
|
20 | 22 | <div class="floating-toc"> |
21 | 23 | <h3>Contents</h3> |
22 | 24 | <ul> |
23 | | - <li><a href="#map-viewer">Network Map Viewer</a></li> |
24 | | - <li><a href="#nad-viewers">Network Area Diagram Viewers</a></li> |
25 | | - <li><a href="#sld-viewers">Single Line Diagram Viewers</a></li> |
26 | | - <li><hr /></li> |
27 | | - <li><a href="synced-viewers.html">Synced Viewers Demo</a></li> |
| 25 | + <li><a href="index.html">Network area diagram viewers</a></li> |
| 26 | + <li><a href="map-viewer.html">Map viewers</a></li> |
| 27 | + <li><a href="sld.html">Single-line diagram viewers</a></li> |
| 28 | + <li><a href="synced-viewers.html">Synced viewers demo</a></li> |
28 | 29 | </ul> |
29 | 30 | </div> |
30 | 31 | <div class="flex-container"> |
31 | | - <div id="map-viewer" class="viewer-section"> |
32 | | - <h2>Network Map Viewer</h2> |
33 | | - <div class="break"></div> |
34 | | - <div id="root"></div> |
35 | | - </div> |
36 | | - <div class="break"></div> |
37 | 32 | <div id="nad-viewers" class="viewer-section"> |
38 | 33 | <h2>Network Area Diagram Viewers</h2> |
39 | 34 | <div class="break"></div> |
40 | | - <div id="svg-container-nad"></div> |
41 | | - <div id="svg-container-nad-no-moving"></div> |
42 | | - <div class="break"></div> |
43 | | - <div id="svg-container-nad-multibus-vlnodes"></div> |
44 | | - <div id="svg-container-nad-multibus-vlnodes14"></div> |
| 35 | + <figure class="diagram-figure"> |
| 36 | + <figcaption>Basic</figcaption> |
| 37 | + <div id="svg-container-nad"></div> |
| 38 | + </figure> |
| 39 | + <figure class="diagram-figure"> |
| 40 | + <figcaption>Nodes cannot move</figcaption> |
| 41 | + <div id="svg-container-nad-no-moving"></div> |
| 42 | + </figure> |
45 | 43 | <div class="break"></div> |
46 | | - <div id="svg-container-nad-pst-hvdc"></div> |
47 | | - <div id="svg-container-nad-threewt-dl-ub"></div> |
| 44 | + <figure class="diagram-figure"> |
| 45 | + <figcaption>Slider with callback</figcaption> |
| 46 | + <div id="svg-container-nad-multibus-vlnodes"></div> |
| 47 | + </figure> |
| 48 | + <figure class="diagram-figure"> |
| 49 | + <figcaption>Another basic network</figcaption> |
| 50 | + <div id="svg-container-nad-multibus-vlnodes14"></div> |
| 51 | + </figure> |
48 | 52 | <div class="break"></div> |
49 | | - <div id="svg-container-nad-partial-network"></div> |
50 | | - <div id="svg-container-nad-partial-network-custom-view-box"></div> |
| 53 | + <figure class="diagram-figure"> |
| 54 | + <figcaption>With HVDC</figcaption> |
| 55 | + <div id="svg-container-nad-pst-hvdc"></div> |
| 56 | + </figure> |
| 57 | + <figure class="diagram-figure"> |
| 58 | + <figcaption>With three windings transformer and boundary line</figcaption> |
| 59 | + <div id="svg-container-nad-threewt-dl-ub"></div> |
| 60 | + </figure> |
51 | 61 | <div class="break"></div> |
52 | | - <div id="svg-container-nad-pegase-network"></div> |
| 62 | + <figure class="diagram-figure"> |
| 63 | + <figcaption>Partial network</figcaption> |
| 64 | + <div id="svg-container-nad-partial-network"></div> |
| 65 | + </figure> |
| 66 | + <figure class="diagram-figure"> |
| 67 | + <figcaption>Partial network with custom view box</figcaption> |
| 68 | + <div id="svg-container-nad-partial-network-custom-view-box"></div> |
| 69 | + </figure> |
53 | 70 | <div class="break"></div> |
54 | | - <div id="svg-container-nad-pegase-network-adaptive-zoom"></div> |
| 71 | + <figure class="diagram-figure"> |
| 72 | + <figcaption>Pegase network</figcaption> |
| 73 | + <div id="svg-container-nad-pegase-network"></div> |
| 74 | + </figure> |
55 | 75 | <div class="break"></div> |
56 | | - <div id="svg-container-nad-partial-network-adaptive-zoom"></div> |
57 | | - <div id="svg-container-nad-multibus-vlnodes-middle-arrow"></div> |
| 76 | + <figure class="diagram-figure"> |
| 77 | + <figcaption>Pegase network with adaptive zoom</figcaption> |
| 78 | + <div id="svg-container-nad-pegase-network-adaptive-zoom"></div> |
| 79 | + </figure> |
58 | 80 | <div class="break"></div> |
59 | | - <div id="svg-container-nad-multibus-vlnodes-limit-percentage"></div> |
60 | | - <div id="svg-container-nad-pst-hvdc-multiple-labels"></div> |
| 81 | + <figure class="diagram-figure"> |
| 82 | + <figcaption>Partial network with adaptive zoom</figcaption> |
| 83 | + <div id="svg-container-nad-partial-network-adaptive-zoom"></div> |
| 84 | + </figure> |
| 85 | + <figure class="diagram-figure"> |
| 86 | + <figcaption>Edge info with middle arrows</figcaption> |
| 87 | + <div id="svg-container-nad-multibus-vlnodes-middle-arrow"></div> |
| 88 | + </figure> |
61 | 89 | <div class="break"></div> |
62 | | - <div id="svg-container-nad-hoverCallback"></div> |
63 | | - <div id="svg-container-nad-pst-hvdc-custom"></div> |
64 | | - <div class="break"></div> |
65 | | - <div id="svg-container-nad-double-arrows"></div> |
66 | | - <div id="svg-container-nad-components"></div> |
67 | | - </div> |
68 | | - <div class="break"></div> |
69 | | - <div id="sld-viewers" class="viewer-section"> |
70 | | - <h2>Single Line Diagram Viewers</h2> |
| 90 | + <figure class="diagram-figure"> |
| 91 | + <figcaption>Edge info with limit percentage and blinking display</figcaption> |
| 92 | + <div id="svg-container-nad-multibus-vlnodes-limit-percentage"></div> |
| 93 | + </figure> |
| 94 | + <figure class="diagram-figure"> |
| 95 | + <figcaption>Edge info with multiple labels</figcaption> |
| 96 | + <div id="svg-container-nad-pst-hvdc-multiple-labels"></div> |
| 97 | + </figure> |
71 | 98 | <div class="break"></div> |
72 | | - <div id="svg-container-sld"></div> |
73 | | - <div id="svg-container-sld-with-callbacks"></div> |
| 99 | + <figure class="diagram-figure"> |
| 100 | + <figcaption>Hover callbacks</figcaption> |
| 101 | + <div id="svg-container-nad-hoverCallback"></div> |
| 102 | + </figure> |
| 103 | + <figure class="diagram-figure"> |
| 104 | + <figcaption>Custom style provider</figcaption> |
| 105 | + <div id="svg-container-nad-pst-hvdc-custom"></div> |
| 106 | + </figure> |
74 | 107 | <div class="break"></div> |
75 | | - <div id="svg-container-sldsub-with-callbacks"></div> |
| 108 | + <figure class="diagram-figure"> |
| 109 | + <figcaption>Edge info with double arrows</figcaption> |
| 110 | + <div id="svg-container-nad-double-arrows"></div> |
| 111 | + </figure> |
| 112 | + <figure class="diagram-figure"> |
| 113 | + <figcaption>Edge info with components</figcaption> |
| 114 | + <div id="svg-container-nad-components"></div> |
| 115 | + </figure> |
76 | 116 | </div> |
77 | 117 | </div> |
78 | | - <script type="module" src="/src/index.tsx"></script> |
| 118 | + <script type="module" src="./src/nad.ts"></script> |
79 | 119 | </body> |
80 | 120 | </html> |
0 commit comments