@@ -2766,7 +2766,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2766
2766
#line paramter
2767
2767
shape_line .color .rgb = RGBColor (112 , 48 , 160 )
2768
2768
shape_line .width = Pt (0.5 )
2769
- self .shape .adjustments [0 ] = float (0.15 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2769
+ self .shape .adjustments [0 ] = float (0.150051 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2770
2770
# text parameter
2771
2771
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (112 , 48 , 160 )
2772
2772
@@ -2798,7 +2798,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2798
2798
# line paramter
2799
2799
shape_line .fill .background ()
2800
2800
shape_line .width = Pt (0.75 )
2801
- self .shape .adjustments [0 ] = float (0.0 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2801
+ self .shape .adjustments [0 ] = float (0.00046 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2802
2802
# text parameter
2803
2803
#self.shape.text_frame.paragraphs[0].font.size = Pt(self.tag_font_large_size)
2804
2804
self .shape .text_frame .paragraphs [0 ].alignment = PP_ALIGN .LEFT
@@ -2811,7 +2811,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2811
2811
# line paramter
2812
2812
shape_line .color .rgb = RGBColor (127 , 127 , 127 )
2813
2813
shape_line .width = Pt (0.5 )
2814
- self .shape .adjustments [0 ] = float (0.15 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2814
+ self .shape .adjustments [0 ] = float (0.150051 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2815
2815
# text parameter
2816
2816
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (127 , 127 , 127 )
2817
2817
@@ -2821,7 +2821,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2821
2821
# line paramter
2822
2822
shape_line .color .rgb = RGBColor (0 , 0 , 0 )
2823
2823
shape_line .width = Pt (0.75 )
2824
- self .shape .adjustments [0 ] = float (0.3 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2824
+ self .shape .adjustments [0 ] = float (0.30045 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2825
2825
# text parameter
2826
2826
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (0 , 0 , 0 )
2827
2827
@@ -2831,7 +2831,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2831
2831
# line paramter
2832
2832
shape_line .color .rgb = RGBColor (192 , 0 , 0 )
2833
2833
shape_line .width = Pt (0.75 )
2834
- self .shape .adjustments [0 ] = float (0.3 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2834
+ self .shape .adjustments [0 ] = float (0.30045 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2835
2835
# text parameter
2836
2836
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (0 , 0 , 0 )
2837
2837
@@ -2861,13 +2861,11 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2861
2861
#line paramter
2862
2862
shape_line .color .rgb = RGBColor (0 , 0 , 0 )
2863
2863
shape_line .width = Pt (1.0 )
2864
- self .shape .adjustments [0 ] = float (0.0 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2864
+ self .shape .adjustments [0 ] = float (0.0001 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2865
2865
# text parameter
2866
2866
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (0 , 0 , 0 )
2867
2867
self .shape .text_frame .paragraphs [0 ].font .size = Pt (self .shae_font_large_size )
2868
2868
2869
-
2870
-
2871
2869
elif shape_type == 'DEVICE_L3_INSTANCE' :
2872
2870
#fill paramter
2873
2871
shape_fill .fore_color .rgb = RGBColor (250 , 251 , 247 )
@@ -2894,7 +2892,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2894
2892
#line paramter
2895
2893
shape_line .color .rgb = RGBColor (0 , 0 , 0 )
2896
2894
shape_line .width = Pt (0.5 )
2897
- self .shape .adjustments [0 ] = float (0.0 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2895
+ self .shape .adjustments [0 ] = float (0.0008 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2898
2896
# text parameter
2899
2897
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (0 , 0 , 0 )
2900
2898
self .shape .text_frame .paragraphs [0 ].alignment = PP_ALIGN .LEFT
@@ -2907,7 +2905,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2907
2905
#line paramter
2908
2906
shape_line .color .rgb = RGBColor (0 , 0 , 0 )
2909
2907
shape_line .width = Pt (1.0 )
2910
- self .shape .adjustments [0 ] = float (0.2 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2908
+ self .shape .adjustments [0 ] = float (0.2007 ) # curve of ROUNDED_RECTANGLE 0.0~1.0
2911
2909
# text parameter
2912
2910
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (0 , 0 , 0 )
2913
2911
#self.shape.text_frame.paragraphs[0].font.size = Pt(16.0)
@@ -2956,6 +2954,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2956
2954
elif shape_type == 'L2SEG_TEXT' :
2957
2955
shape_fill .background ()
2958
2956
shape_line .fill .background ()
2957
+ self .shape .adjustments [0 ] = float (0.00057 )
2959
2958
self .shape .text_frame .paragraphs [0 ].alignment = PP_ALIGN .LEFT
2960
2959
self .shape .text_frame .paragraphs [0 ].font .color .rgb = RGBColor (163 , 101 , 209 )
2961
2960
@@ -2975,7 +2974,7 @@ def add_shape(self,shape_type,shape_left, shape_top, shape_width, shape_hight,sh
2975
2974
tmp_rgp_color = self .attribute_tuple1_1 [self .shape .text ]
2976
2975
shape_fill .fore_color .rgb = RGBColor (tmp_rgp_color [0 ], tmp_rgp_color [1 ], tmp_rgp_color [2 ])
2977
2976
2978
- self .shape .adjustments [0 ] = 0.2
2977
+ self .shape .adjustments [0 ] = 0.2002
2979
2978
self .shape .text_frame .paragraphs [0 ].font .size = Pt (self .shae_font_large_size )
2980
2979
2981
2980
else :
@@ -3056,6 +3055,58 @@ def add_line(self,line_type,inche_from_connect_x,inche_from_connect_y,inche_to_c
3056
3055
<a:headEnd type="diamond" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3057
3056
""" ))
3058
3057
3058
+ if line_type == 'FLOW0' :
3059
+ self .shape .shadow .inherit = True
3060
+ shape_line .color .brightness = 0.3
3061
+ shape_line .color .rgb = RGBColor (0 , 112 , 192 )
3062
+ shape_line .width = Pt (4.0 )
3063
+ line_elem = self .shape .line ._get_or_add_ln ()
3064
+ line_elem .append (parse_xml ("""
3065
+ <a:headEnd type="oval" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3066
+ """ ))
3067
+ line_elem .append (parse_xml ("""
3068
+ <a:tailEnd type="arrow" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3069
+ """ ))
3070
+
3071
+ if line_type == 'FLOW1' :
3072
+ self .shape .shadow .inherit = True
3073
+ shape_line .color .brightness = 0.3
3074
+ shape_line .color .rgb = RGBColor (0 , 112 , 192 )
3075
+ shape_line .width = Pt (4.0 )
3076
+ line_elem = self .shape .line ._get_or_add_ln ()
3077
+ line_elem .append (parse_xml ("""
3078
+ <a:headEnd type="oval" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3079
+ """ ))
3080
+ '''line_elem.append(parse_xml("""
3081
+ <a:tailEnd type="arrow" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3082
+ """))'''
3083
+
3084
+ if line_type == 'FLOW2' :
3085
+ self .shape .shadow .inherit = True
3086
+ shape_line .color .brightness = 0.3
3087
+ shape_line .color .rgb = RGBColor (0 , 112 , 192 )
3088
+ shape_line .width = Pt (4.0 )
3089
+ line_elem = self .shape .line ._get_or_add_ln ()
3090
+ '''line_elem.append(parse_xml("""
3091
+ <a:headEnd type="oval" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3092
+ """))'''
3093
+ line_elem .append (parse_xml ("""
3094
+ <a:tailEnd type="arrow" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3095
+ """ ))
3096
+
3097
+ if line_type == 'FLOW3' :
3098
+ self .shape .shadow .inherit = True
3099
+ shape_line .color .brightness = 0.3
3100
+ shape_line .color .rgb = RGBColor (0 , 112 , 192 )
3101
+ shape_line .width = Pt (4.0 )
3102
+ line_elem = self .shape .line ._get_or_add_ln ()
3103
+ '''line_elem.append(parse_xml("""
3104
+ <a:headEnd type="oval" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3105
+ """))
3106
+ line_elem.append(parse_xml("""
3107
+ <a:tailEnd type="arrow" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>
3108
+ """))'''
3109
+
3059
3110
3060
3111
def l2_device_materials (self ,action_type ,input_device_name ,write_left_top_array ,wp_list_array ):
3061
3112
import ns_def
0 commit comments