added bit separators
This commit is contained in:
@@ -36,13 +36,31 @@
|
||||
name: str(rank)
|
||||
)
|
||||
|
||||
// Range boundaries
|
||||
if rank in boundaries and j != struct.bits - 1 {
|
||||
if j != struct.bits - 1 {
|
||||
let top = str(rank) + ".north-east"
|
||||
let bottom = str(rank) + ".south-east"
|
||||
|
||||
// Group boundary
|
||||
if rank in boundaries {
|
||||
draw.line(
|
||||
str(rank) + ".north-east",
|
||||
str(rank) + ".south-east",
|
||||
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