Added visual test for multi-line label alignment.
Calculation of label alignment in multi-line labels seems to be off. This test reproduces it by laying out a series of multi-line labels along an S-shaped curve. In all these cases, the vertical bar character should, to within a few pixels, line up. The orientation at sharper corners is still a little off, but likely due to discontinuities.
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"1"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" ",
|
||||
" !! ",
|
||||
" ! !!! ",
|
||||
" ! ",
|
||||
" ! !!! ! ",
|
||||
" ! ! ! !! ",
|
||||
" ! !! ! ! ",
|
||||
" ! ! !! ",
|
||||
" ! ! !!!! !! !!!! !!",
|
||||
" !! ! !! !! ! !!!",
|
||||
" ! !! !!! ! !!!! !! ! !!!",
|
||||
" ! !! !!!! !! ! !! !! ! ",
|
||||
" ! ! !! ! !! !! ! !! ! ",
|
||||
" ! ! ! !! ! ! !! ! ",
|
||||
" !! !! !! !! ! ! !!!",
|
||||
" ! !! ! ! !",
|
||||
" ! ! ! ! ! ! !",
|
||||
" ! !! ! ! ! !! !! ! ",
|
||||
" ! ! ! ! ! ! !! ! !!! ",
|
||||
" !! !! ! ! !! !! !! !! ! ",
|
||||
" !!!! !! ! !! !! !! !! ",
|
||||
" !! ! ! ! ! !! ! ",
|
||||
" !! !! !!!! !! ",
|
||||
" ! !! !!! ! !! ! ! ! ! ",
|
||||
" ! ! ! !! ! ! ! ",
|
||||
" ! ! ! ! ! !! !! ! ! ! ",
|
||||
" !! !! ! ! !! ! ",
|
||||
" ! ! !! ",
|
||||
" ! ! !! ! !! ! ! ",
|
||||
" ! !! ! ! ! ! ! ! !! ",
|
||||
" ! !! ! ! !! !! !! ! ",
|
||||
" ! !! !! !! !! ! ! !! ! ",
|
||||
" !!! ! ! ! !! ! ",
|
||||
" ! ! !! ! ",
|
||||
" ! ! ! ! ! ! ! ",
|
||||
" ! ! !! !! ! ",
|
||||
" !!!!! ! ! !! ! !!! ! ! ",
|
||||
" ! !! ! ! !! ! ! !! ! ! ! ",
|
||||
" !! !! ! !! !! !! !! ",
|
||||
" !! !! ! !! !!!! !!! !!! ",
|
||||
" !!! !! !! ! ! ",
|
||||
" ! ! ! ! !! ! !!! ! ! ",
|
||||
" !! !! ! ! ! ! ! ! ",
|
||||
" ! ! ! !! ",
|
||||
" ! ! ! !! ! !! ! ",
|
||||
" ! ! ! !!! ! ! ! ",
|
||||
" ! ! ! ",
|
||||
" ! ! ! ",
|
||||
" ! !!! ! ",
|
||||
" !! "
|
||||
]
|
||||
}
|
109
tests/visual_tests/grids/lines-7-400-400-1.0-grid-reference.json
Normal file
|
@ -0,0 +1,109 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"1"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ! ",
|
||||
" ! ! ",
|
||||
" !! ! ",
|
||||
" ! !!!! ! ",
|
||||
" !! ! ! ! ",
|
||||
" !! ! !! !!! ! ",
|
||||
" ! ! !! ! !!! !! ! ! ! ",
|
||||
" !! ! !!!!! !! ! !! !! !! ",
|
||||
" !! ! ! !!!! ! ! ! ! !! !! ",
|
||||
" !! !! ! !!! ! !! ! !! !! ! ",
|
||||
" !!!!! ! ! ! ! !! ! !! ! ",
|
||||
" ! !! ! ! !! ! ",
|
||||
" !! !! ! !!! ! !!!!! ! ",
|
||||
" ! ! !! !! ! !!! ",
|
||||
" ! ! !! ! ! ! ! ! ! ! ! ",
|
||||
" ! ! !! ! ! ! ! ! ",
|
||||
" ! ! ! !! ! ! !! ! ",
|
||||
" ! !! ! !! !! ! ! !! ! ",
|
||||
" ! ! ! !! ! ! !! !! ",
|
||||
" !! ! !! ! !! ",
|
||||
" ! !! !! ! ! ! ",
|
||||
" ! !! !! ! ! ! ",
|
||||
" !! !! ! ! ",
|
||||
" !! ! ! !! !! !! ! !! ! ",
|
||||
" !!!!! ! ! ! ! ! !! ! ",
|
||||
" ! !! !! !!!! !! !! !! !! ",
|
||||
" ! ! ! !!!! ! ",
|
||||
" !! ! ! ! ! !! ! ",
|
||||
" ! ! !! ! ! ! !! !! ! ",
|
||||
" !! !! ! !! ! ",
|
||||
" ! ! ! !! !!!!! ! ! ",
|
||||
" ! !! ! ! ! !! ! ",
|
||||
" ! ! ! !! !! !! !! ! ",
|
||||
" ! ! ! ! ! !! ! !! !! ! ",
|
||||
" ! ! ! !! !! !!! ",
|
||||
" ! ! ! ! !! !! ",
|
||||
" ! !! ! ! ! ! !!! ",
|
||||
" !! ! !!! ! ! ! !! ! ",
|
||||
" !! ! !! ! ! ! ! ! ",
|
||||
" !! !! ! ! !! !! ! ! ! ",
|
||||
" ! ! !! !! !! ! ",
|
||||
" !! ! ! !! ! !! ",
|
||||
" !!! ! !!!! !! ! !! ",
|
||||
" ! ! ! ! ! !! ! !! !! !! ",
|
||||
" !! !! ! !! ! !! !! ",
|
||||
" !!! !! ! ! ! !! !! !! !! ! ",
|
||||
" !! !! !! !! ! ! !! ! ",
|
||||
" !! !! ! ! ! ! ",
|
||||
" ! !!! ! ! !! ! !!! ! ",
|
||||
" ! ! ! ! ! ! ! ! ! ! ",
|
||||
" ! ! ! ! !! !! !! ! ",
|
||||
" ! ! ! !! !! ! !!! !! ! ",
|
||||
" ! ! ! !! !! ",
|
||||
" ! ! !! ! !! ",
|
||||
" ! ! !! ! ! ! ! ! !!! ",
|
||||
" !! ! !!! ! ! ! ! ! ! ",
|
||||
" ! ! !!! !!! ! ! ! ",
|
||||
" !! !! ! !! !! !! ! ",
|
||||
" !! !! ! !! !! ",
|
||||
" !! ! !! ! ! !! ",
|
||||
" !!! ! !! !! !! !! ! ",
|
||||
" ! ! ! !! !! !! !! ",
|
||||
" ! ! ! ! ! !! ! ! ! ! ",
|
||||
" !! !! ! ! ! !! ! ",
|
||||
" !! !! !!! ! ! ! ! ! ",
|
||||
" !! !! ! ! ! !! !! !! ! ",
|
||||
" ! ! ! ! ! ! !! ! ",
|
||||
" ! ! ! ! ",
|
||||
" !! !! ! ! ! ! ! ",
|
||||
" ! !! !! ! ",
|
||||
" ! ! ! ! ! ! ! !! ",
|
||||
" !! !! ! ! ! ! ! !! ",
|
||||
" !! !! ! ! ! ! !! !!! ",
|
||||
" !! ! !! ! !! ! ! ! ! ",
|
||||
" ! !! ! ! !! ! ",
|
||||
" ! ! !! !!!! !! ! ! ",
|
||||
" ! !!! ! !! !! ! ",
|
||||
" !! ! ! !! ! ! !! !! ",
|
||||
" ! ! !!!! ! ! ! ! ! !! ! ",
|
||||
" ! !! ! ! !! ! ! !! !! ",
|
||||
" !! !! ! ! ! ! ! ! !! ! !! ",
|
||||
" !! !! ! ! ! !! !!!! ! ! ! ",
|
||||
" !! !! ! ! ! !! !!! ! ",
|
||||
" !! ! ! ! !! ! ! ! ! ! ! ",
|
||||
" ! ! ! ! !!! ! ",
|
||||
" !! ! ! ! !! ",
|
||||
" ! ! !!!!!! ! ! ",
|
||||
" ! ! !! ! ",
|
||||
" ! !!!! ",
|
||||
" !! !!! ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
}
|
159
tests/visual_tests/grids/lines-7-600-600-1.0-grid-reference.json
Normal file
|
@ -0,0 +1,159 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"1"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" !! !!! ",
|
||||
" !! !! !! ",
|
||||
" ! ! ",
|
||||
" ! !!! ! ! ! ",
|
||||
" ! ! ! !! !! ! ! !! ! ",
|
||||
" ! ! ! !!! ! ! !! ! ",
|
||||
" ! ! ! !! ! ! !! !! !! ",
|
||||
" ! !! ! !! ! ! !! ! ",
|
||||
" ! !! ! ! ! ! ! ! ! ",
|
||||
" !!! !! !! !! !! ! ! ",
|
||||
" ! ! !! ! !! !!! ! ",
|
||||
" ! ! !! !! ! ! !!!!! ! ",
|
||||
" !! ! ! !! ! ! ! ! ! ! ",
|
||||
" ! ! ! ! !!! ! !! ! ! !! ! ",
|
||||
" ! !! ! ! !! !! !! ! ",
|
||||
" ! !!!! ! !!!! ! !! ! ",
|
||||
" ! ! ! ! ! ! ! !! ! ",
|
||||
" !!! !! ! ! ! ! !!!! !! ! ",
|
||||
" ! !!! ! ! ! ! !! !! ",
|
||||
" ! !!! ! ! ! !! !! ",
|
||||
" ! !! !! ! !! ! ! ! ",
|
||||
" ! !! ! !! ! ! ! ! ",
|
||||
" ! !! ! ! !! ! ",
|
||||
" ! ! ! ! ! ! !! ! ",
|
||||
" ! ! ! ! !! !! !! ",
|
||||
" !! ! ! ! !! ",
|
||||
" ! !! ! ! !! ! ! ! ! ",
|
||||
" !!! !!! !! !! ! ! ",
|
||||
" !! ! ! !! ! ! ",
|
||||
" ! ! ! !! !! ! ! !!!!! ",
|
||||
" ! !! !! ! !! ! !! ! ",
|
||||
" !! ! ! ! ! !!!!! !! !! ! ",
|
||||
" !!! ! ! ! !!! !! ! ",
|
||||
" ! ! ! ! ! ! !! !! ",
|
||||
" !!! !! ! ! ! !! ! ! !! !! ",
|
||||
" ! !!! ! ! !! ! !! ",
|
||||
" !! !! ! ! !! !! ! ! ! ",
|
||||
" ! !! !! !! !! ! ! ! ",
|
||||
" ! ! !! ! !! ! ! ! ! ",
|
||||
" ! ! ! ! ! ! !! ! ",
|
||||
" ! !! ! ! ",
|
||||
" ! ! ! !! !! !! ",
|
||||
" !! !! ! ! !! ! !!! !! ",
|
||||
" !! !! ! ! ! ! ! ! ",
|
||||
" !!! ! !! !! !! ! ! ! ! ! ",
|
||||
" ! !!!!! ! ! !! ! ",
|
||||
" ! ! ! !!!!! ! ",
|
||||
" ! !! ! ! ! ! !! ! !! !! ",
|
||||
" !!! !! ! ! !!!! ! ",
|
||||
" ! !!! !! ! ! ",
|
||||
" ! ! ! ! !! !!!! ! ",
|
||||
" ! ! ! ! !! !! ! !! ! ",
|
||||
" ! !!! ! ! !! !! ! !! !! ",
|
||||
" ! !! !!! !!! !! ! ! !! ! ",
|
||||
" !! !! !! ! ",
|
||||
" ! !! ! ! ! ",
|
||||
" ! ! ! ",
|
||||
" ! ! ! ! ! ! !! ",
|
||||
" ! ! ! ! ! ! !! ! ",
|
||||
" ! !! ! ! !! !! !! !! !! ",
|
||||
" ! !! !! !! !! !! ! !! ",
|
||||
" ! !! ! ! !! ! ! ",
|
||||
" ! ! ! ! !!!! !! ! ",
|
||||
" ! !! ! ! !! ! !! ! ",
|
||||
" !! !! ! !! ! !!!! ! ",
|
||||
" ! ! !! ! ! ! !! !! !! !! ! ",
|
||||
" !! !! !! ! ! !! ! ",
|
||||
" ! !!!! ",
|
||||
" ! ! ! ! ! !! ! !! !!! ",
|
||||
" !! !! ! ! ! ! ! !! !! ",
|
||||
" !! ! !! ! !! ! !! !!! ",
|
||||
" !! ! ! !! !! ! ! ! ! ",
|
||||
" ! ! ! ! ",
|
||||
" ! ! ",
|
||||
" ! ! ! ! ",
|
||||
" ! ! ! ! !! ! ! ! ! ",
|
||||
" ! ! ! ! !! ! !! !! ",
|
||||
" !! !! ! !! !! ! !!!! !!! ",
|
||||
" !! !! !! !!! ! ! ",
|
||||
" !!!! !! !! ! ! ",
|
||||
" !! ! ! !! !! ! ! ! ! ",
|
||||
" ! ! ! ! !! !! !!!!! ! ",
|
||||
" ! !! ! ! ! ! ! !! !! !! ",
|
||||
" !!! !! ! !!! !! !! ! ",
|
||||
" !! !!!!! ! ! ! ! ! ! ",
|
||||
" ! ! ! ! !! !! !! ! ",
|
||||
" ! ! !! !! !! !! !! !! ",
|
||||
" !!!! ! !! ! ! !! !! ",
|
||||
" ! !! !! ! ! ! !! ",
|
||||
" ! !! !! ! ! ",
|
||||
" ! !! !! ! ! ! ! ",
|
||||
" ! ! ! ! ! ! ! ! ",
|
||||
" ! ! !! ! !! ! ",
|
||||
" !!!!!! !! ! ",
|
||||
" !! !! ! ! ! !! !!! ",
|
||||
" ! ! !! ! ! !! ! !! ",
|
||||
" ! !! !! ! ! ! !! ! ",
|
||||
" ! !! !! ! ! !! !!! ! ",
|
||||
" !! !! ! ! !! !!!! ! ",
|
||||
" !! !! ! ! !! ! !! !! ! !! ",
|
||||
" ! ! ! !! ! ! !! ! ",
|
||||
" !!! ! ! ! ! ",
|
||||
" ! ! ! !!! ! !! !! ! ! ",
|
||||
" ! !! ! !! !! !! !! ",
|
||||
" ! ! ! ! !! !! ! !! !! ",
|
||||
" !! !! !! !! ! ! !! ! ",
|
||||
" ! !! ! ! ! ! ! ! ",
|
||||
" ! !! !! ! ! ! ",
|
||||
" ! ! ! ! ! ",
|
||||
" ! !! ! ! ! !! ! ",
|
||||
" ! ! !! ! ! ! ! ",
|
||||
" !! ! !! ! ! ! !! ",
|
||||
" ! !! ! !!!! ! !! ! !!! ",
|
||||
" ! !! !! !! !!! ! !! ",
|
||||
" !! ! !!! ! ! ! ! !! ! ! ",
|
||||
" !! ! !!! ! !! ! !!!! ! ! ",
|
||||
" ! ! ! ! ! !! ! ! ",
|
||||
" ! ! ! !! !!! ! ! !! ! ! ",
|
||||
" !! ! ! !! !! !! ! ",
|
||||
" !!!! ! !! ! ! ! !! ! ! ",
|
||||
" ! ! ! !!! !! ! ! ! ! ! ",
|
||||
" ! ! ! ! !! ! !! !!! !! !!! ",
|
||||
" !! !! ! ! ! !! ! ! !! ",
|
||||
" !! !! !! !! ! ! ! ! ",
|
||||
" !! !! !! ! ! ! !!! !! ! ",
|
||||
" ! ! ! !! ! ! !!!! ! ",
|
||||
" ! ! ! ! ",
|
||||
" !! ! !! !! ! ",
|
||||
" !! !! !! ! ",
|
||||
" !! ! !!! ",
|
||||
" !! !!!! ",
|
||||
" ",
|
||||
" !!! ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
}
|
209
tests/visual_tests/grids/lines-7-800-800-1.0-grid-reference.json
Normal file
|
@ -0,0 +1,209 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"1"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" !!! !! ! ",
|
||||
" !! !!! ",
|
||||
" !!! !! !! ",
|
||||
" ! ! !! !!!!!! ! ! ! ! ",
|
||||
" ! ! !!! !! ! ! !! ! ",
|
||||
" ! ! ! ! ! ! ! ! !! !! !! ! ",
|
||||
" !! !! !!!!! ! !! ! !! !! ! ",
|
||||
" ! !!! !!! ! !!! ! !!!!! ! ",
|
||||
" !! ! !! ! ! ! ! ! ! !! ! ",
|
||||
" !!! ! ! ! ! ! !! !! ! ",
|
||||
" !! ! ! ! ! ! ! !!! ! ",
|
||||
" !! !! ! ! !!!! ! ! ",
|
||||
" ! !! !! ! !! ! ! ! !! ! ",
|
||||
" ! ! ! !! ! !! !! ! ",
|
||||
" ! ! ! ! ! ! !! !! ! ",
|
||||
" ! ! !! ! ! !!!!! ! ",
|
||||
" !! !! ! ! ! ! !! ! ",
|
||||
" !! !! ! !! ! ! ! !! ! ",
|
||||
" ! !! ! !! ! !! ! ! ",
|
||||
" !!!! !!! !! ! ! ! ! ",
|
||||
" !! !!!! ! ! ! ",
|
||||
" ! ! ! ! ! ! ! ! ! ",
|
||||
" ! !! ! !! ! !! ! !! !! ! ",
|
||||
" ! ! ! ! !! ! !! ! ",
|
||||
" !! !! !!! ! ! !! !!! ! !! ",
|
||||
" ! ! !! ! ! !! ! ! ",
|
||||
" !! ! ! ! !! ! ! ",
|
||||
" !! !! !! ! !! ! ! ",
|
||||
" ! !! ! ! !! ! ! ! ",
|
||||
" ! ! ! ! ! ! ! !!! ",
|
||||
" ! ! ! !! ! !! !! ! ",
|
||||
" ! ! ! !! ! ! !! !! ! ",
|
||||
" !! !!!!! !!!! ! ",
|
||||
" !! !! ! ! !! !! ! !! ",
|
||||
" !! !! ! ! ! !! !! ",
|
||||
" !!!!! !! ! ! !! !! ",
|
||||
" ! ! !! ! ! !!!! ! ! ! ",
|
||||
" !! !! ! ! ! ! ! ",
|
||||
" ! ! ! !!! !! !! ! ! ! ",
|
||||
" !! ! ! ! !! ! !! ! ",
|
||||
" ! !!!! ! ! !! ! ! !! ",
|
||||
" !! !! ! ! !! !! ! !! ! ",
|
||||
" ! ! ! !! !! ! !!! ! ",
|
||||
" !! ! !! ! ! ! ! ",
|
||||
" ! !! !!!! ! ! ! ! ! ! ",
|
||||
" ! !! ! ! !! !! ! ",
|
||||
" ! !! ! !! !! !!!!! ! ",
|
||||
" ! ! !! !! !! ! ",
|
||||
" ! ! ! !! ! ! ! ",
|
||||
" ! ! ! !! !!! ! ",
|
||||
" ! ! ! !! ! !! ! ! ",
|
||||
" !! ! ! ! !! ! !!!! !! ",
|
||||
" !! ! !!! ! !! !! ! !! !!! ",
|
||||
" !! ! !! ! ! ! ! ! ",
|
||||
" ! !! ! !!! !! !! ! ! ! ",
|
||||
" ! ! ! ! ! ! ",
|
||||
" !!! ! ! !! !! ",
|
||||
" ! !!!! ! ! !! !! !! !! ",
|
||||
" !! !! ! !! ! !! !! ",
|
||||
" ! !! ! ! ! ! ! !! !!! ",
|
||||
" !!! ! ! ! ! !! !! !! ",
|
||||
" ! ! !!! ! !! !! ! ",
|
||||
" ! !! !! ! ! ! ! ! ",
|
||||
" ! !! !!! ! !! ! !!! ! ",
|
||||
" ! ! ! !!! !! ",
|
||||
" !! !! ! ! ! ",
|
||||
" !!! ! ! ! !! ! ! ",
|
||||
" !! !! ! ! ! !!! ! ",
|
||||
" ! !! ! ! ! ! !!! ! !! ! ",
|
||||
" !! !! ! ! !!! !! ! ",
|
||||
" ! ! ! ! !! ",
|
||||
" ! ! !! ",
|
||||
" ! ! ! ! ! !! ! !! ! ! ! ",
|
||||
" !!! !! ! !! ! ! ! ! ",
|
||||
" !! !!!! ! !! !! ! !! !! ! ",
|
||||
" ! ! !! !! ! !! ! ",
|
||||
" ! ! !! ! !!! ! ! ",
|
||||
" !! ! ! ! ! !! ",
|
||||
" !! ! !! ! ! ! ! ! ",
|
||||
" !! !! ! ! ! ! ! ! ! ",
|
||||
" ! !! !! ! !! !! !!! !! ! ",
|
||||
" !! !! !! !! !!!! ",
|
||||
" ! !! ! ! ! ",
|
||||
" ! ! !!!! !! ! ",
|
||||
" ! !! ! ! !! ! !!! ! ",
|
||||
" ! !! ! !! ! ! !!!! ",
|
||||
" ! !! !! ! ! !! !! !! !! !! ",
|
||||
" !!! ! !! !! ! ! !! !! ",
|
||||
" ! ",
|
||||
" ! ! ! ! ! ! !! ! ",
|
||||
" !! !! ! ! ! ! ! ! ",
|
||||
" !!!!! ! ! !! ! !! ! ",
|
||||
" ! ! ! !! !! ! ! !! ! ",
|
||||
" ! ! ! ! !! !! !! ",
|
||||
" ! ! ! !! ",
|
||||
" ! !! ! ! ! ! ! ",
|
||||
" ! !! ! ! !! !! ! ! ! ! ",
|
||||
" ! !! !!! !! ! !!! !! ! ",
|
||||
" ! ! ! !! ! ! !!!!! ! ",
|
||||
" !! ! ! ! ! ! ",
|
||||
" ! ! ! ",
|
||||
" ! ! !! !! ! !! ! ",
|
||||
" ! !! ! ! !! ! !! ! !! ! ",
|
||||
" !! !! !! ! ! !! !! ! ",
|
||||
" !! !! !!! ! ! !! !! ! !! ",
|
||||
" ! !! ! ! !! ! !! ! ",
|
||||
" ! ! !! ! ",
|
||||
" ! ! !! !! !! ! ! ! ",
|
||||
" !!!! ! !! !! ! !! ! ",
|
||||
" ! ! !!! ! ! ! ! !! ! ",
|
||||
" !! !! ! ! ! ! ! ! !! ",
|
||||
" !! !! ! ! !! !! ",
|
||||
" !!! ! !! !! ! ! !! ",
|
||||
" ! !! ! !! !! !! !! ! ",
|
||||
" !! ! ! !! ! ! !! ! ",
|
||||
" ! !! !! !! ! !!! ! ",
|
||||
" ! ! ! !!!!! ! !! ",
|
||||
" ! ! ! ! ! ! ! ! ",
|
||||
" ! ! ! ! ! ! !!! !! ! ",
|
||||
" !! ! ! !!!! ! !! ! ",
|
||||
" ! !! ! !! ! !! ! ",
|
||||
" !! !! !! ! ! !! !! ! !! !!! ",
|
||||
" !! ! ! ! ! ! ! ",
|
||||
" ! ! ! ! ! !! ! ! ! ",
|
||||
" ! !! ! !!! !! ! ",
|
||||
" !!! !! ! !! ! ! ! ",
|
||||
" !! !!!! ! ! ! ! !! ! ",
|
||||
" ! ! ! ! ! !! ! ",
|
||||
" ! ! ! !!! !! ",
|
||||
" !! ! ! !! ! ! ! !! ",
|
||||
" !! !! ! !! ! ! !! !! ! ! ",
|
||||
" !! !! !! ! ! ! ! ! !! ! ",
|
||||
" ! !! !!! !! ! !! !!! ",
|
||||
" ! ! ! ! ! ! !!! ",
|
||||
" ! ! ! ! ! !!! !! !! ! ! ",
|
||||
" ! !!!! !! ! ! ! ",
|
||||
" !! ! !! !! ! ",
|
||||
" !! ! !!! !! ! !! !! !! ",
|
||||
" ! !! ! ! ! ! !!! ",
|
||||
" ! !! !! ! !! ! ! ",
|
||||
" !! !! ! !! ! ! ! ! ",
|
||||
" !! !! ! ! !! ! ! ! ! ",
|
||||
" !! !! ! !! ! ! ! ! ",
|
||||
" !!!! ! !!!!! ",
|
||||
" ! ! ! ! !! ! ",
|
||||
" ! ! !! !! !!! !!! ",
|
||||
" ! ! !! !!! ! ! ",
|
||||
" ! !! !! ! !! !! ! !! !! ! ",
|
||||
" ! !! ! !! ! !! ! ! ! ",
|
||||
" ! !! !!! !!! ! ! !! ! ",
|
||||
" ! !! ! !! !! ! !! !!! ",
|
||||
" ! ! ! ! !! ",
|
||||
" ! !!! ! !! !! ! ",
|
||||
" !! ! !! !! !! !! ",
|
||||
" ! ! !! ! ! ! !! ",
|
||||
" !!!! !! ! !!! !! !! !!! ",
|
||||
" !! ! !!! ! !! !! ! ! ! ",
|
||||
" !! ! !! !!! !! ! ! ! ",
|
||||
" !! !! ! !! ! !! !! ! ",
|
||||
" ! !! ! ! ! ! !! ! ",
|
||||
" !!! ! !! ! ! ! ! ! ",
|
||||
" !!! ! !! ! ! ! ! ",
|
||||
" ! ! ! ! !! ! ! !! ",
|
||||
" ! ! !! ! ! !! !! ! ! ",
|
||||
" !! !! ! ! !! ! !!! ! !! ! ! ! ",
|
||||
" !! !! !! ! ! !! ! ! !! ! !! ",
|
||||
" !! !! !! ! !!! ! !!!!!! ! ! ! ",
|
||||
" ! !! ! ! ! !!!! ! ! ",
|
||||
" ! ! !!!!!! !! ! ! ",
|
||||
" ! ! !!!!!! !! ",
|
||||
" ! !! !! ",
|
||||
" !!!! ! ! ",
|
||||
" !!!! ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
}
|
BIN
tests/visual_tests/images/lines-7-200-200-1.0-agg-reference.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 9.2 KiB |
BIN
tests/visual_tests/images/lines-7-200-200-2.0-agg-reference.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 9 KiB |
BIN
tests/visual_tests/images/lines-7-400-400-1.0-agg-reference.png
Normal file
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 19 KiB |
BIN
tests/visual_tests/images/lines-7-400-400-2.0-agg-reference.png
Normal file
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 22 KiB |
BIN
tests/visual_tests/images/lines-7-600-600-1.0-agg-reference.png
Normal file
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 30 KiB |
BIN
tests/visual_tests/images/lines-7-600-600-2.0-agg-reference.png
Normal file
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 34 KiB |
BIN
tests/visual_tests/images/lines-7-800-800-1.0-agg-reference.png
Normal file
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 40 KiB |
BIN
tests/visual_tests/images/lines-7-800-800-2.0-agg-reference.png
Normal file
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 46 KiB |
35
tests/visual_tests/styles/lines-7.xml
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE Map>
|
||||
<!-- dy and multi lines test -->
|
||||
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
|
||||
|
||||
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
|
||||
<StyleName>lines</StyleName>
|
||||
<StyleName>text</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="type">csv</Parameter>
|
||||
<Parameter name="inline">
|
||||
wkt,nr
|
||||
"LINESTRING(-1.000 -1.000, -0.958 -0.646, -0.917 -0.331, -0.875 -0.055, -0.833 0.185, -0.792 0.390, -0.750 0.562, -0.708 0.703, -0.667 0.815, -0.625 0.898, -0.583 0.956, -0.542 0.989, -0.500 1.000, -0.458 0.990, -0.417 0.961, -0.375 0.914, -0.333 0.852, -0.292 0.776, -0.250 0.688, -0.208 0.589, -0.167 0.481, -0.125 0.367, -0.083 0.248, -0.042 0.125, 0.000 0.000, 0.042 -0.125, 0.083 -0.248, 0.125 -0.367, 0.167 -0.481, 0.208 -0.589, 0.250 -0.688, 0.292 -0.776, 0.333 -0.852, 0.375 -0.914, 0.417 -0.961, 0.458 -0.990, 0.500 -1.000, 0.542 -0.989, 0.583 -0.956, 0.625 -0.898, 0.667 -0.815, 0.708 -0.703, 0.750 -0.562, 0.792 -0.390, 0.833 -0.185, 0.875 0.055, 0.917 0.331, 0.958 0.646, 1.000 1.000)",1
|
||||
</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
<Style name="lines">
|
||||
<Rule>
|
||||
<LineSymbolizer stroke-width="1" stroke="green"/>
|
||||
<LineSymbolizer stroke-width="1" stroke="lightblue" offset="12"/>
|
||||
<LineSymbolizer stroke-width="1" stroke="lightblue" offset="-12"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
|
||||
<Style name="text">
|
||||
<Rule>
|
||||
<!-- note: is an encoded \n -->
|
||||
<TextSymbolizer face-name="DejaVu Sans Book" size="12" placement="line" spacing="10" max-char-angle-delta="180" dy="0" justify-alignment="center" allow-overlap="true">
|
||||
"u!__|__!u m!__|__!m b!__|__!b"
|
||||
</TextSymbolizer>
|
||||
</Rule>
|
||||
</Style>
|
||||
|
||||
</Map>
|
|
@ -95,6 +95,7 @@ files = {
|
|||
'lines-4': {'sizes': sizes_few_square,'bbox':default_text_box},
|
||||
'lines-5': {'sizes': sizes_few_square,'bbox':default_text_box},
|
||||
'lines-6': {'sizes': sizes_few_square,'bbox':default_text_box},
|
||||
'lines-7': {'sizes': sizes_few_square,'bbox':mapnik.Box2d(-1.2, -1.2, 1.2, 1.2)},
|
||||
'lines-shield': {'sizes': sizes_few_square,'bbox':default_text_box},
|
||||
'collision': {'sizes':[(600,400)]},
|
||||
'shield-on-polygon': {'sizes':[(600,400)]},
|
||||
|
|