added bit separators
This commit is contained in:
@@ -36,13 +36,31 @@
|
|||||||
name: str(rank)
|
name: str(rank)
|
||||||
)
|
)
|
||||||
|
|
||||||
// Range boundaries
|
if j != struct.bits - 1 {
|
||||||
if rank in boundaries and j != struct.bits - 1 {
|
let top = str(rank) + ".north-east"
|
||||||
draw.line(
|
let bottom = str(rank) + ".south-east"
|
||||||
str(rank) + ".north-east",
|
|
||||||
str(rank) + ".south-east",
|
// Group boundary
|
||||||
stroke: config.border-color
|
if rank in boundaries {
|
||||||
)
|
draw.line(
|
||||||
|
top,
|
||||||
|
bottom,
|
||||||
|
stroke: config.border-color
|
||||||
|
)
|
||||||
|
|
||||||
|
// Bit separator
|
||||||
|
} else {
|
||||||
|
draw.line(
|
||||||
|
top,
|
||||||
|
((), 20%, bottom),
|
||||||
|
stroke: config.border-color
|
||||||
|
)
|
||||||
|
draw.line(
|
||||||
|
bottom,
|
||||||
|
((), 20%, top),
|
||||||
|
stroke: config.border-color
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user