55
66# Make this subclass StrEnum when dropping Py 3.10 support
77class Styles (Enum ):
8- NODE = "verticalAlign=top;align=left;overflow=fill; html=1;rounded=0;shadow=0;comic =0;labelBackgroundColor=none;strokeColor={stroke};strokeWidth=1;fillColor={fill};"
8+ NODE = "verticalAlign={vertical_align}; html=1;rounded=0;labelBackgroundColor=none;strokeColor={stroke};strokeWidth=1;fillColor={fill};"
99 EDGE = "html=1;endArrow={end_arrow};dashed={dashed};endFill={end_fill};startArrow={start_arrow};startFill={start_fill};fillColor={stroke};strokeColor={stroke};"
1010 EDGE_LABEL = (
1111 "edgeLabel;html=1;align=center;verticalAlign=bottom;resizable=0;points=[];"
1212 )
1313 EDGE_INVIS = "rounded=1;html=1;exitX={exit_x:.3g};exitY={exit_y:.3g};jettySize=auto;curved={curved};endArrow={end_arrow};dashed={dashed};endFill={end_fill};"
1414
15- TEXT = "margin:0px;text-align:{align};{margin}; font-size:{size}px;font-family: {family}; color: {color}; "
15+ TEXT_VALUE = "{open_tags}< font style='font -size: {size}px;' face=' {family}' color=' {color}'>{text}</font>{close_tags} "
1616
1717 ELLIPSE = "ellipse;" + NODE
1818 CIRCLE = "ellipse;aspect=fixed;" + NODE
@@ -28,12 +28,10 @@ class Styles(Enum):
2828 PARALLELOGRAM = "shape=parallelogram;perimeter=parallelogramPerimeter;" + NODE
2929 HOUSE = "shape=offPageConnector;direction=west;" + NODE
3030 PENTAGON = "shape=mxgraph.basic.pentagon;" + NODE
31- OCTAGON = (
32- "shape=mxgraph.basic.octagon2;align=center;verticalAlign=middle;dx=15;" + NODE
33- )
31+ OCTAGON = "shape=mxgraph.basic.octagon2;align=center;dx=15;" + NODE
3432 DOUBLE_CIRCLE = "ellipse;shape=doubleEllipse;aspect=fixed;" + NODE
3533 DOUBLE_OCTAGON = (
36- "shape=image;html=1;verticalAlign=middle; verticalLabelPosition=middle;imageAspect=0;aspect=fixed;image=https://cdn4.iconfinder.com/data/icons/feather/24/octagon-128.png;labelPosition=center;align=center;"
34+ "shape=image;html=1;verticalLabelPosition=middle;imageAspect=0;aspect=fixed;image=https://cdn4.iconfinder.com/data/icons/feather/24/octagon-128.png;labelPosition=center;align=center;"
3735 + NODE
3836 )
3937 INV_TRIANGLE = "triangle;direction=south;" + NODE
@@ -43,32 +41,30 @@ class Styles(Enum):
4341 INV_HOUSE = "shape=offPageConnector;direction=east;" + NODE
4442 SQUARE = "aspect=fixed;" + NODE
4543 STAR = (
46- "shape=mxgraph.basic.star;labelPosition=center;align=center;verticalLabelPosition=middle;verticalAlign=middle; "
44+ "shape=mxgraph.basic.star;labelPosition=center;align=center;verticalLabelPosition=middle;"
4745 + NODE
4846 )
4947 UNDERLINE = "line;strokeWidth=2;verticalAlign=bottom;labelPosition=center;verticalLabelPosition=top;align=center;"
5048 CYLINDER = "shape=cylinder;boundedLbl=1;backgroundOutline=1;" + NODE
5149 NOTE = "shape=note;backgroundOutline=1;" + NODE
5250 TAB = "shape=folder;tabWidth=40;tabHeight=14;tabPosition=left;" + NODE
5351 FOLDER = (
54- "shape=mxgraph.office.concepts.folder;outlineConnect=0;align=center;verticalLabelPosition=middle;verticalAlign=middle; labelPosition=center;shadow=0;dashed=0;"
52+ "shape=mxgraph.office.concepts.folder;outlineConnect=0;align=center;verticalLabelPosition=middle;labelPosition=center;shadow=0;dashed=0;"
5553 + NODE
5654 )
5755 CUBE = "shape=cube;boundedLbl=1;backgroundOutline=1;" + NODE
58- COMPONENT = (
59- "shape=component;align=center;spacingLeft=36;verticalAlign=bottom;" + NODE
60- )
56+ COMPONENT = "shape=component;align=center;spacingLeft=36;" + NODE
6157 RPROMOTER = (
62- "shape=mxgraph.arrows2.bendArrow;dy=15;dx=38;notch=0;arrowHead=55;rounded=0;shadow=0;dashed=0;align=center;verticalAlign=middle; "
58+ "shape=mxgraph.arrows2.bendArrow;dy=15;dx=38;notch=0;arrowHead=55;rounded=0;shadow=0;dashed=0;align=center;"
6359 + NODE
6460 )
6561 LPROMOTER = "flipH=1;" + RPROMOTER
6662 CDS = (
67- "shape=mxgraph.arrows2.arrow;dy=0;dx=10;notch=0;shadow=0;dashed=0;align=center;verticalAlign=middle; "
63+ "shape=mxgraph.arrows2.arrow;dy=0;dx=10;notch=0;shadow=0;dashed=0;align=center;"
6864 + NODE
6965 )
7066 RARROW = (
71- "shape=mxgraph.arrows2.arrow;dy=0.6;dx=40;align=center;labelPosition=center;notch=0;strokeWidth=2;verticalLabelPosition=middle;verticalAlign=middle; "
67+ "shape=mxgraph.arrows2.arrow;dy=0.6;dx=40;align=center;labelPosition=center;notch=0;strokeWidth=2;verticalLabelPosition=middle;"
7268 + NODE
7369 )
7470 LARROW = "flipH=1;" + RARROW
0 commit comments