add grid_label_positions test

This commit is contained in:
Gavin Nishizawa 2023-11-08 13:33:07 -08:00
parent 4c091f5555
commit 96053458bd
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
6 changed files with 20919 additions and 0 deletions

View file

@ -2869,6 +2869,7 @@ y: profits {
loadFromFile(t, "grid_edge_across_cell"),
loadFromFile(t, "nesting_power"),
loadFromFile(t, "unfilled_triangle"),
loadFromFile(t, "grid_label_positions"),
}
runa(t, tcs)

View file

@ -0,0 +1,154 @@
vars: {
grid: {
grid-rows: 2
grid-columns: 5
a
b
c
d
e
f
g
h
i
j
grid-gap: 0
}
}
direction: down
**.blank*: {
label: ""
style: {
stroke: transparent
fill: transparent
}
}
blank*: {
label: ""
style: {
stroke: transparent
fill: transparent
}
}
blank_ot -> blank_t -> blank_c -> blank_b -> blank_ob
blank_ot: {
blank1
OutsideTopLeft: {
label.near: outside-top-left
...${grid}
}
OutsideTopCenter: {
label.near: outside-top-center
...${grid}
}
OutsideTopRight: {
label.near: outside-top-right
...${grid}
}
blank2
}
blank_t: {
OutsideLeftTop: {
label.near: outside-left-top
...${grid}
}
TopLeft: {
label.near: top-left
...${grid}
}
TopCenter: {
label.near: top-center
...${grid}
}
TopRight: {
label.near: top-right
...${grid}
}
OutsideRightTop: {
label.near: outside-right-top
...${grid}
}
}
blank_c: {
OutsideLeftCenter: {
label.near: outside-left-center
...${grid}
}
CenterLeft: {
label.near: center-left
...${grid}
}
CenterCenter: {
label.near: center-center
...${grid}
}
CenterRight: {
label.near: center-right
...${grid}
}
OutsideRightCenter: {
label.near: outside-right-center
...${grid}
}
}
blank_b: {
OutsideLeftBottom: {
label.near: outside-left-bottom
...${grid}
}
BottomLeft: {
label.near: bottom-left
...${grid}
}
BottomCenter: {
label.near: bottom-center
...${grid}
}
BottomRight: {
label.near: bottom-right
...${grid}
}
OutsideRightBottom: {
label.near: outside-right-bottom
...${grid}
}
}
blank_ob: {
blank3
OutsideBottomLeft: {
label.near: outside-bottom-left
...${grid}
}
OutsideBottomCenter: {
label.near: outside-bottom-center
...${grid}
}
OutsideBottomRight: {
label.near: outside-bottom-right
...${grid}
}
blank4
}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 106 KiB

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 106 KiB