-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read network area diagram metadata from JSON format (#103)
Signed-off-by: Massimo Ferraro <massimo.ferraro@soft.it>
- Loading branch information
1 parent
d046ef4
commit 0a3c2a9
Showing
19 changed files
with
2,155 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
170 changes: 170 additions & 0 deletions
170
demo/src/diagram-viewers/data/nad-eurostag-tutorial-example1_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
{ | ||
"layoutParameters" : { | ||
"textNodesForceLayout" : false, | ||
"springRepulsionFactorForceLayout" : 0.0, | ||
"textNodeFixedShift" : { | ||
"x" : 100.0, | ||
"y" : -40.0 | ||
}, | ||
"maxSteps" : 1000, | ||
"textNodeEdgeConnectionYShift" : 25.0 | ||
}, | ||
"svgParameters" : { | ||
"diagramPadding" : { | ||
"left" : 200.0, | ||
"top" : 200.0, | ||
"right" : 200.0, | ||
"bottom" : 200.0 | ||
}, | ||
"insertNameDesc" : false, | ||
"svgWidthAndHeightAdded" : false, | ||
"cssLocation" : "INSERTED_IN_SVG", | ||
"sizeConstraint" : "FIXED_SCALE", | ||
"fixedWidth" : -1, | ||
"fixedHeight" : -1, | ||
"fixedScale" : 0.2, | ||
"arrowShift" : 30.0, | ||
"arrowLabelShift" : 19.0, | ||
"converterStationWidth" : 70.0, | ||
"voltageLevelCircleRadius" : 30.0, | ||
"fictitiousVoltageLevelCircleRadius" : 15.0, | ||
"transformerCircleRadius" : 20.0, | ||
"nodeHollowWidth" : 15.0, | ||
"edgesForkLength" : 80.0, | ||
"edgesForkAperture" : 60.0, | ||
"edgeStartShift" : 0.0, | ||
"unknownBusNodeExtraRadius" : 10.0, | ||
"loopDistance" : 120.0, | ||
"loopEdgesAperture" : 60.0, | ||
"loopControlDistance" : 40.0, | ||
"edgeInfoAlongEdge" : true, | ||
"edgeNameDisplayed" : true, | ||
"interAnnulusSpace" : 5.0, | ||
"svgPrefix" : "", | ||
"idDisplayed" : false, | ||
"substationDescriptionDisplayed" : false, | ||
"arrowHeight" : 10.0, | ||
"busLegend" : true, | ||
"voltageLevelDetails" : false, | ||
"languageTag" : "en", | ||
"voltageValuePrecision" : 1, | ||
"powerValuePrecision" : 0, | ||
"angleValuePrecision" : 1, | ||
"currentValuePrecision" : 0, | ||
"edgeInfoDisplayed" : "ACTIVE_POWER", | ||
"pstArrowHeadSize" : 8.0, | ||
"undefinedValueSymbol" : "" | ||
}, | ||
"busNodes" : [ { | ||
"svgId" : "1", | ||
"equipmentId" : "VLGEN_0", | ||
"nbNeighbours" : 0, | ||
"index" : 0, | ||
"vlNode" : "0" | ||
}, { | ||
"svgId" : "3", | ||
"equipmentId" : "VLHV1_0", | ||
"nbNeighbours" : 0, | ||
"index" : 0, | ||
"vlNode" : "2" | ||
}, { | ||
"svgId" : "5", | ||
"equipmentId" : "VLHV2_0", | ||
"nbNeighbours" : 0, | ||
"index" : 0, | ||
"vlNode" : "4" | ||
}, { | ||
"svgId" : "7", | ||
"equipmentId" : "VLLOAD_0", | ||
"nbNeighbours" : 0, | ||
"index" : 0, | ||
"vlNode" : "6" | ||
} ], | ||
"nodes" : [ { | ||
"svgId" : "0", | ||
"equipmentId" : "VLGEN", | ||
"x" : -452.59, | ||
"y" : -274.01 | ||
}, { | ||
"svgId" : "2", | ||
"equipmentId" : "VLHV1", | ||
"x" : -245.26, | ||
"y" : 34.3 | ||
}, { | ||
"svgId" : "4", | ||
"equipmentId" : "VLHV2", | ||
"x" : 140.33, | ||
"y" : 58.61 | ||
}, { | ||
"svgId" : "6", | ||
"equipmentId" : "VLLOAD", | ||
"x" : 430.9, | ||
"y" : -174.05 | ||
} ], | ||
"edges" : [ { | ||
"svgId" : "8", | ||
"equipmentId" : "NGEN_NHV1", | ||
"node1" : "0", | ||
"node2" : "2", | ||
"busNode1" : "1", | ||
"busNode2" : "3", | ||
"type" : "TwoWtEdge" | ||
}, { | ||
"svgId" : "9", | ||
"equipmentId" : "NHV1_NHV2_1", | ||
"node1" : "2", | ||
"node2" : "4", | ||
"busNode1" : "3", | ||
"busNode2" : "5", | ||
"type" : "LineEdge" | ||
}, { | ||
"svgId" : "10", | ||
"equipmentId" : "NHV1_NHV2_2", | ||
"node1" : "2", | ||
"node2" : "4", | ||
"busNode1" : "3", | ||
"busNode2" : "5", | ||
"type" : "LineEdge" | ||
}, { | ||
"svgId" : "11", | ||
"equipmentId" : "NHV2_NLOAD", | ||
"node1" : "4", | ||
"node2" : "6", | ||
"busNode1" : "5", | ||
"busNode2" : "7", | ||
"type" : "TwoWtEdge" | ||
} ], | ||
"textNodes" : [ { | ||
"svgId" : "0-textnode", | ||
"equipmentId" : "VLGEN", | ||
"vlNode" : "0", | ||
"shiftX" : 100.0, | ||
"shiftY" : -40.0, | ||
"connectionShiftX" : 100.0, | ||
"connectionShiftY" : -15.0 | ||
}, { | ||
"svgId" : "2-textnode", | ||
"equipmentId" : "VLHV1", | ||
"vlNode" : "2", | ||
"shiftX" : 100.0, | ||
"shiftY" : -40.0, | ||
"connectionShiftX" : 100.0, | ||
"connectionShiftY" : -15.0 | ||
}, { | ||
"svgId" : "4-textnode", | ||
"equipmentId" : "VLHV2", | ||
"vlNode" : "4", | ||
"shiftX" : 100.0, | ||
"shiftY" : -40.0, | ||
"connectionShiftX" : 100.0, | ||
"connectionShiftY" : -15.0 | ||
}, { | ||
"svgId" : "6-textnode", | ||
"equipmentId" : "VLLOAD", | ||
"vlNode" : "6", | ||
"shiftX" : 100.0, | ||
"shiftY" : -40.0, | ||
"connectionShiftX" : 100.0, | ||
"connectionShiftY" : -15.0 | ||
} ] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.