@@ -485,10 +485,10 @@ Path(x::Length, y::Real; kwargs...) = throw(DimensionError(x, y))
485485
486486convert(:: Type{Path{T}} , p:: Path{T} ) where {T} = p
487487function convert(:: Type{Path{T}} , p:: Path{S} ) where {T, S}
488- conv_nodes =
489- Node{
490- T
491- } . (convert.(Segment{T}, getproperty.(p . nodes, :seg)), getproperty.(p . nodes, :sty) )
488+ conv_nodes = Node{T} . (
489+ convert.(Segment{T}, getproperty.(p . nodes, :seg)),
490+ getproperty.(p . nodes, :sty)
491+ )
492492 p2 = Path{T}(p. name, convert(Point{T}, p. p0), p. α0, p. metadata, conv_nodes)
493493 reconcile!(p2)
494494 return p2
@@ -1206,7 +1206,7 @@ function terminate!(
12061206) where {T}
12071207 termlen = gap + rounding
12081208 iszero(termlen) && return
1209- termsty = Termination(pa, rounding; initial= initial, cpwopen= ! iszero(gap))
1209+ termsty = Termination(pa, rounding; initial= initial, cpwopen= ( ! iszero(gap) ))
12101210 # Nonzero rounding: splice and delete to make room for rounded part
12111211 if ! iszero(rounding)
12121212 orig_sty = initial ? undecorated(style0(pa)) : laststyle(pa)
@@ -1237,9 +1237,14 @@ function terminate!(
12371237 )
12381238 splice!(pa, split_idx, split(split_node, split_len))
12391239 termsty = if initial
1240- Termination(Path(pa[2 : end ]), rounding; initial= initial, cpwopen= ! iszero(gap))
1240+ Termination(Path(pa[2 : end ]), rounding; initial= initial, cpwopen= ( ! iszero(gap) ))
12411241 else
1242- Termination(Path(pa[1 : (end - 1 )]), rounding; initial= initial, cpwopen= ! iszero(gap))
1242+ Termination(
1243+ Path(pa[1 : (end - 1 )]),
1244+ rounding;
1245+ initial= initial,
1246+ cpwopen= (! iszero(gap))
1247+ )
12431248 end
12441249 end
12451250
@@ -1395,15 +1400,14 @@ function halo(
13951400 if exclude # path metadata is excluded, but still compute halos of path's decorations
13961401 # compute halos of decorations
13971402 cs = DeviceLayout. CoordinateSystem{T}(uniquename(" halo" * name(pa)))
1398- cs. refs =
1399- halo.(
1400- refs(pa),
1401- outer_delta,
1402- inner_delta,
1403- only_layers= only_layers,
1404- ignore_layers= ignore_layers,
1405- memoized_halos= memoized_halos
1406- )
1403+ cs. refs = halo.(
1404+ refs(pa),
1405+ outer_delta,
1406+ inner_delta,
1407+ only_layers= only_layers,
1408+ ignore_layers= ignore_layers,
1409+ memoized_halos= memoized_halos
1410+ )
14071411
14081412 # return a path, to preserve type
14091413 halopath = Path(zero(pa. p0), metadata= pa. metadata)
@@ -1571,12 +1575,11 @@ function halo(
15711575 ignore_layers= [],
15721576 kwargs...
15731577)
1574- idx =
1575- DeviceLayout. layer_included.(
1576- sty. overlay_metadata,
1577- Ref(only_layers),
1578- Ref(ignore_layers)
1579- )
1578+ idx = DeviceLayout. layer_included.(
1579+ sty. overlay_metadata,
1580+ Ref(only_layers),
1581+ Ref(ignore_layers)
1582+ )
15801583 return OverlayStyle(
15811584 halo(sty. s, outer_delta, inner_delta; only_layers, ignore_layers, kwargs... ),
15821585 halo.(
0 commit comments