-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add render tests for {text,icon}-halo-{blur,width}
- Loading branch information
1 parent
6ccb5ca
commit 05bb0a2
Showing
11 changed files
with
282 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.35 KB
test/integration/render-tests/icon-halo-blur/property-function/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions
68
test/integration/render-tests/icon-halo-blur/property-function/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 0 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
-10 | ||
] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": { "x": 1 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
10 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"sprite": "local://sprites/sprite", | ||
"layers": [ | ||
{ | ||
"id": "symbol", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"icon-image": "dot.sdf" | ||
}, | ||
"paint": { | ||
"icon-halo-width": 3, | ||
"icon-halo-color": "green", | ||
"icon-halo-blur": { | ||
"property": "x", | ||
"stops": [ | ||
[ | ||
0, | ||
1 | ||
], | ||
[ | ||
1, | ||
3 | ||
] | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+880 Bytes
test/integration/render-tests/icon-halo-width/property-function/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions
67
test/integration/render-tests/icon-halo-width/property-function/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 0 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
-10 | ||
] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": { "x": 1 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
10 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"sprite": "local://sprites/sprite", | ||
"layers": [ | ||
{ | ||
"id": "symbol", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"icon-image": "dot.sdf" | ||
}, | ||
"paint": { | ||
"icon-halo-color": "blue", | ||
"icon-halo-width": { | ||
"property": "x", | ||
"stops": [ | ||
[ | ||
0, | ||
1 | ||
], | ||
[ | ||
1, | ||
3 | ||
] | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+2.68 KB
test/integration/render-tests/text-halo-blur/property-function/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions
72
test/integration/render-tests/text-halo-blur/property-function/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 0 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
-10 | ||
] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": { "x": 1 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
10 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "symbol", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"text-field": "ABC", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
] | ||
}, | ||
"paint": { | ||
"text-halo-width": 2, | ||
"text-halo-color": "blue", | ||
"text-halo-blur": { | ||
"property": "x", | ||
"stops": [ | ||
[ | ||
0, | ||
1 | ||
], | ||
[ | ||
1, | ||
3 | ||
] | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+2.77 KB
test/integration/render-tests/text-halo-width/property-function/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions
71
test/integration/render-tests/text-halo-width/property-function/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 0 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
-10 | ||
] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": { "x": 1 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
10 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "symbol", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"text-field": "ABC", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
] | ||
}, | ||
"paint": { | ||
"text-halo-color": "orange", | ||
"text-halo-width": { | ||
"property": "x", | ||
"stops": [ | ||
[ | ||
0, | ||
1 | ||
], | ||
[ | ||
1, | ||
3 | ||
] | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |