-
-
Notifications
You must be signed in to change notification settings - Fork 93
Add vertical-align in format expression
#900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
HarelM
merged 22 commits into
maplibre:main
from
tomtom-forks:issue-832-format-expression-vertical-align
Jan 14, 2025
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
d785d2b
Add vertical-align to v8.json
stanislawpuda-tomtom cfd9111
Add vertical-align to format definition
stanislawpuda-tomtom 7593fa9
Add static value validation
stanislawpuda-tomtom 6065c88
Add support for image
stanislawpuda-tomtom a4630d0
update vertical-align description
stanislawpuda-tomtom 071c277
Merge branch 'main' of https://github.com/tomtom-forks/maplibre-style…
stanislawpuda-tomtom 1a5cf7c
add changelog
stanislawpuda-tomtom 4460a7e
Merge branch 'main' of https://github.com/tomtom-forks/maplibre-style…
stanislawpuda-tomtom 695efdf
add image section `vertical-align` test
stanislawpuda-tomtom c74afe5
change `baseline` to `bottom`
stanislawpuda-tomtom b55daaa
add `vertical-align` to sdk support table
stanislawpuda-tomtom 2429fe8
add links to maplibre native issue
stanislawpuda-tomtom 4cf94a5
review fixes
stanislawpuda-tomtom 8e957bd
Merge branch 'main' into issue-832-format-expression-vertical-align
stanislawpuda-tomtom 37e1178
Merge branch 'main' into issue-832-format-expression-vertical-align
stanislawpuda-tomtom ef5ac81
Define `vertical-align` as set of possible values instead of `string`
stanislawpuda-tomtom 653c90a
Merge branch 'main' into issue-832-format-expression-vertical-align
stanislawpuda-tomtom 7adf081
simplify vertical-align options description
stanislawpuda-tomtom 56c2eed
update example
stanislawpuda-tomtom f2595e9
link design proposal for more details
stanislawpuda-tomtom c8fd47e
Merge branch 'main' of https://github.com/tomtom-forks/maplibre-style…
stanislawpuda-tomtom 65be105
add images to docs
stanislawpuda-tomtom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
HarelM marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
64 changes: 64 additions & 0 deletions
64
test/integration/expression/tests/format/data-driven-vertical-align/test.json
This file contains hidden or 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,64 @@ | ||
| { | ||
| "expression": [ | ||
| "format", | ||
| "a", | ||
| { | ||
| "vertical-align": [ | ||
| "get", | ||
| "vertical-align" | ||
| ] | ||
| } | ||
| ], | ||
| "inputs": [ | ||
| [ | ||
| {}, | ||
| { | ||
| "properties": { | ||
| "vertical-align": "center" | ||
| } | ||
| } | ||
| ], | ||
| [ | ||
| {}, | ||
| { | ||
| "properties": { | ||
| "vertical-align": "top" | ||
| } | ||
| } | ||
| ] | ||
| ], | ||
| "expected": { | ||
| "compiled": { | ||
| "result": "success", | ||
| "isFeatureConstant": false, | ||
| "isZoomConstant": true, | ||
| "type": "formatted" | ||
| }, | ||
| "outputs": [ | ||
| { | ||
| "sections": [ | ||
| { | ||
| "text": "a", | ||
| "image": null, | ||
| "scale": null, | ||
| "fontStack": null, | ||
| "textColor": null, | ||
| "verticalAlign": "center" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "sections": [ | ||
| { | ||
| "text": "a", | ||
| "image": null, | ||
| "scale": null, | ||
| "fontStack": null, | ||
| "textColor": null, | ||
| "verticalAlign": "top" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.