@@ -120,6 +120,7 @@ def _create_fm_layers(self, drawing):
120120 "FM-Depth" : 1 , # Red - Y-axis values (depth/elevation)
121121 "FM-Value" : 8 , # Grey - X-axis values
122122 "FM-Text" : 2 , # Yellow - axis labels and other text
123+ "FM-Grid" : 7 , # Light Blue - grid lines
123124 }
124125
125126 for layer_name , color in fm_layers .items ():
@@ -149,10 +150,14 @@ def _determine_element_layer(self):
149150 if not self .use_fm_layers :
150151 return "0"
151152
152- # Check if ANY active group has method_symbol gid
153+ # Check if ANY active group has gid for FM layers
153154 for group_name in self ._groupd :
154- if self ._group_gids .get (group_name ) == "method_symbol " :
155+ if self ._group_gids .get (group_name ) == "FM-Method " :
155156 return "FM-Method"
157+ if self ._group_gids .get (group_name ) == "FM-Grid" :
158+ return "FM-Grid"
159+ if self ._group_gids .get (group_name ) == "FM-Frame" :
160+ return "FM-Frame"
156161
157162 if not self ._groupd :
158163 return "0"
@@ -199,7 +204,7 @@ def _determine_text_layer(self, text_content, fontsize):
199204
200205 # Check if ANY active group has method_symbol gid
201206 for group_name in self ._groupd :
202- if self ._group_gids .get (group_name ) == "method_symbol " :
207+ if self ._group_gids .get (group_name ) == "FM-Method " :
203208 return "FM-Method"
204209
205210 context_str = " " .join (self ._groupd ).lower () if self ._groupd else ""
0 commit comments