Skip to content

Commit c3f2ab7

Browse files
Rob TjalmaRob TjalmaJakob Vogelsangca-d
authored
First version Single Line Diagram editor (#376)
* Added initial Single Line Diagram editor * Fixing unit tests * First batch * Every element is a group now * Bit of refactoring * Bit of refactoring * Refactoring * Added Connectivity Node route drawing * Some refactoring * refactoring * Added terminal check for Connectivity Nodes * Very small refactoring * Finalized BusBar * First try using equipment icons * Added elements * refactoring * Added first SingleLineDiagram unit test * Fixing build * Added unit tests for foundation * Remove panzoom temporary, because it's not working correctly during testing * Small refactoring * Added different text size for different components * Remove text from Connectivity Node * Added unit tests * Added terminals * small refactoring * Refactoring * Refactoring * More refactoring * More refactoring * More refactoring + adding Panzoom * Review comment * Work after review * Removed embedded SVG implementation * refactor: make eslint happy * refactor(SingleLineDiagram): filter for ConnecitvityNode grounded * refactor(editors/singlelinediagram/sld-drawing): make use of the transform attribute * test(editors/singlelinediagram/sld-drawing): remove osolet tests * refactor(SingleLineDiagram): hide overflow of SLD * refactor: use identity string as identifier * refactor(singlelinediagram/sld-drawing): import connectivityNode directly * feat(icons): add two winding power transformer icon * refactor(SingleLineDiagram): simplify position/coordinates handling * refactor: simplify bas bar length calculation * feat(SingleLineDiagram): add PowerTransformer to SLD * fix(SingleLineDiagram): not connected route in SLD Editor (#391) * Intermediate commit * Added default dimensions for ConductingEquipment * Slow revert * Make ESLint happy * Small refactoring * Removed drawRoute alias Co-authored-by: Rob Tjalma <[email protected]> * Added terminal and Connectivity Node information (#402) * Added terminal/connectivity node information * Removed console.log * Some refactoring * Small refactoring * fix(translations/de): add missing German translations Thank you very much for adding these nice wizards to translate! 👍 Co-authored-by: Rob Tjalma <[email protected]> Co-authored-by: Christian Dinkel <[email protected]> Co-authored-by: Rob Tjalma <[email protected]> Co-authored-by: Jakob Vogelsang <[email protected]> Co-authored-by: Christian Dinkel <[email protected]>
1 parent f6bce2e commit c3f2ab7

21 files changed

+3323
-20855
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# `Single Line Diagram drawing`
2+
3+
## `creates a group element for every given PowerTransformer element that`
4+
5+
#### `looks like its latest snapshot`
6+
7+
```html
8+
<g
9+
id="AA1>TA1"
10+
sxy:x="1"
11+
sxy:y="9"
12+
type="PowerTransformer"
13+
>
14+
<line
15+
stroke="currentColor"
16+
stroke-linecap="round"
17+
stroke-width="1.5"
18+
transform="translate(64,576) scale(1.5)"
19+
x1="12.5"
20+
x2="12.5"
21+
y1="2"
22+
y2="5"
23+
>
24+
</line>
25+
<circle
26+
cx="12.5"
27+
cy="10"
28+
fill="transparent"
29+
r="5"
30+
stroke="currentColor"
31+
stroke-linecap="round"
32+
stroke-width="1.5"
33+
transform="translate(64,576) scale(1.5)"
34+
>
35+
</circle>
36+
<circle
37+
cx="12.5"
38+
cy="15"
39+
fill="transparent"
40+
r="5"
41+
stroke="currentColor"
42+
stroke-linecap="round"
43+
stroke-width="1.5"
44+
transform="translate(64,576) scale(1.5)"
45+
>
46+
</circle>
47+
<line
48+
stroke="currentColor"
49+
stroke-linecap="round"
50+
stroke-width="1.5"
51+
transform="translate(64,576) scale(1.5)"
52+
x1="12.5"
53+
x2="12.5"
54+
y1="20"
55+
y2="23"
56+
>
57+
</line>
58+
<text
59+
style="font-family: Roboto, sans-serif; font-weight: 300; font-size: x-small"
60+
x="49"
61+
y="606"
62+
>
63+
TA1
64+
</text>
65+
</g>
66+
67+
```
68+

0 commit comments

Comments
 (0)