@@ -80,9 +80,9 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
8080 layer_start = config .get ("layer_start" , None )
8181 layer_end = config .get ("layer_end" , None )
8282 layer_join = config .get ("layer_join" , None )
83- linecollection_start = config .get ("linecollection_start " , None )
84- linecollection_end = config .get ("linecollection_end " , None )
85- linecollection_join = config .get ("linecollection_join " , None )
83+ line_start = config .get ("line_start " , None )
84+ line_end = config .get ("line_end " , None )
85+ line_join = config .get ("line_join " , None )
8686 segment_first = config .get ("segment_first" , None )
8787 segment = config .get ("segment" , None )
8888 segment_last = config .get ("segment_last" , None )
@@ -109,8 +109,8 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
109109 lastlines_index = len (layer ) - 1
110110 for lines_index , lines in enumerate (layer ):
111111 lines_scaled = lines * scale
112- if linecollection_start is not None :
113- output .write (linecollection_start .format (index = lines_index ))
112+ if line_start is not None :
113+ output .write (line_start .format (index = lines_index ))
114114 segment_last_index = len (lines_scaled ) - 1
115115 for segment_index , seg in enumerate (lines_scaled ):
116116 x = seg .real
@@ -147,10 +147,10 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
147147 )
148148 last_x = x
149149 last_y = y
150- if linecollection_end is not None :
151- output .write (linecollection_end .format (index = lines_index ))
152- if linecollection_join is not None and lines_index != lastlines_index :
153- output .write (linecollection_join )
150+ if line_end is not None :
151+ output .write (line_end .format (index = lines_index ))
152+ if line_join is not None and lines_index != lastlines_index :
153+ output .write (line_join )
154154 if layer_end is not None :
155155 output .write (layer_end .format (index = layer_index ))
156156 if layer_join is not None and layer_index != lastlayer_index :
0 commit comments