Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright 2018-present Open Networking Foundation |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
Sean Condon | 0c577f6 | 2018-11-18 22:40:05 +0000 | [diff] [blame] | 16 | <svg:g class="topo2-force" xmlns:svg="http://www.w3.org/2000/svg"> |
| 17 | <svg:g id="new-zoom-layer"> |
| 18 | <svg:g class="topo2-links"> |
| 19 | <svg:g onos-linkvisual [link]="link" *ngFor="let link of regionData.links"> |
| 20 | </svg:g> |
| 21 | </svg:g> |
| 22 | <svg:g class="topo2-linkLabels" /> |
| 23 | <svg:g class="topo2-numLinkLabels" /> |
| 24 | <svg:g class="topo2-nodes"> |
| 25 | <svg:g onos-devicenodesvg [device]="device" |
| 26 | *ngFor="let device of regionData.devices[visibleLayerIdx()]" |
| 27 | onosDraggableNode [draggableNode]="device" [draggableInGraph]="graph" |
| 28 | (selectedEvent)="updateSelected($event)"> |
| 29 | </svg:g> |
| 30 | <svg:g onos-hostnodesvg [host]="host" |
| 31 | *ngFor="let host of regionData.hosts[visibleLayerIdx()]" |
| 32 | onosDraggableNode [draggableNode]="host" [draggableInGraph]="graph"> |
| 33 | </svg:g> |
| 34 | <svg:g onos-subregionnodesvg [subRegion]="subRegion" |
| 35 | *ngFor="let subRegion of regionData.subregions" |
| 36 | onosDraggableNode [draggableNode]="host" [draggableInGraph]="graph"> |
| 37 | </svg:g> |
| 38 | </svg:g> |
| 39 | </svg:g> |
| 40 | <!--<svg:g class="topo2-portLabels">--> |
| 41 | <!--<!–TODO make each of these in to a component that can be inserted –>--> |
| 42 | <!--<svg:g *ngIf="selectedLink !== null" id="topo-port-src" class="portLabel" opacity="1">--> |
| 43 | <!--<rect x="0" y="0" width="1" height="1" [ngStyle]="{'transform': 'scale(1)'}"></rect>--> |
| 44 | <!--<text dy="0.3em" [ngStyle]="{'transform': 'scale(1)'}">{{ selectedLink.portA }}</text>--> |
| 45 | <!--</svg:g>--> |
| 46 | |
| 47 | <!--<svg:g *ngIf="selectedLink !== null" id="topo-port-tgt" class="portLabel" opacity="1">--> |
| 48 | <!--<rect x="0" y="0" width="1" height="1" [ngStyle]="{'transform': 'scale(1)'}"></rect>--> |
| 49 | <!--<text dy="0.3em" [ngStyle]="{'transform': 'scale(1)'}">{{ selectedLink.portA }}</text>--> |
| 50 | <!--</svg:g>--> |
| 51 | <!--</svg:g>--> |
Sean Condon | f4f54a1 | 2018-10-10 23:25:46 +0100 | [diff] [blame] | 52 | </svg:g> |