@@ -52,7 +52,7 @@ function get_rescaler(locs::AbstractVector{<:Tuple}, pad)
5252 return Rescaler (promote (xmin, xmax, ymin, ymax, pad)... )
5353end
5454
55- default_vertex_style (scale, stroke_color, fill_color) = compose (context (), Viznet. nodestyle (:default , r= 0.15 cm* scale), Compose. stroke (stroke_color), fill (fill_color), linewidth (0.3 mm* scale))
55+ default_vertex_style (scale, stroke_color, fill_color) = compose (Compose . context (), Viznet. nodestyle (:default , r= 0.15 cm* scale), Compose. stroke (stroke_color), fill (fill_color), linewidth (0.3 mm* scale))
5656default_text_style (scale, color) = Viznet. textstyle (:default , fontsize (4 pt* scale), fill (color))
5757default_edge_style (scale, color) = Viznet. bondstyle (:default , Compose. stroke (color), linewidth (0.3 mm* scale))
5858
@@ -101,7 +101,7 @@ function show_graph(locations, edges;
101101 kwargs... )
102102 if length (locations) == 0
103103 dx, dy = 12 cm, 12 cm
104- img = Compose. compose (context ())
104+ img = Compose. compose (Compose . context ())
105105 else
106106 img, (dx, dy) = viz_atoms (locations, edges; vertex_colors= vertex_colors, edge_colors= edge_colors, texts= texts, config= GraphDisplayConfig (; config_plotting (locations)... , kwargs... ))
107107 end
@@ -121,9 +121,9 @@ function fit_image(rescaler::Rescaler, image_size, imgs...)
121121 Y = rescaler. ymax - rescaler. ymin + 2 * rescaler. pad
122122 img_rescale = image_size/ max (X, Y)* cm
123123 if Y < X
124- return Compose. compose (context (0 , 0 , 1.0 , X/ Y), imgs... ), (X* img_rescale, Y* img_rescale)
124+ return Compose. compose (Compose . context (0 , 0 , 1.0 , X/ Y), imgs... ), (X* img_rescale, Y* img_rescale)
125125 else
126- return Compose. compose (context (0 , 0 , Y/ X, 1.0 ), imgs... ), (X* img_rescale, Y* img_rescale)
126+ return Compose. compose (Compose . context (0 , 0 , Y/ X, 1.0 ), imgs... ), (X* img_rescale, Y* img_rescale)
127127 end
128128end
129129
@@ -178,7 +178,7 @@ function _viz_atoms(locs, edges, vertex_colors, edge_colors, texts, config, resc
178178 edge_styles[k] >> (locs[i], locs[j])
179179 end
180180 end
181- Compose. compose (context (), img1)
181+ Compose. compose (Compose . context (), img1)
182182end
183183
184184"""
@@ -257,4 +257,4 @@ function spring_layout(g::AbstractGraph,
257257 map! (z -> scaler (z, min_y, max_y), locs_y, locs_y)
258258
259259 return collect (zip (locs_x, locs_y))
260- end
260+ end
0 commit comments