Commit 66e1009
Add support for multiple sprites in one style (#1805)
* Add debug-page
* Modify example
* First working proto
* Custom sprites' naming
* Revert
* Better test case
* 1st working prototype
* Cancelation handling
* WIP on new Sprite type
* New syntax proto
* WIP on validation
* Working validation
* Strticter validation for duplicates
* Cover validator with tests
* WIP on unit tests
* Fix ESlint
* Provide doc for the new API. Try to suppress failing tests
* Fix integration tests
* After-review changes
* Update sprite doc and example
* Type validateSprite's options
* WIP on unit testing the loadSprite function - convert base64 to img
* Unit tests for loadSprite
* Add render-tests
* WIP on runtime modification
* Implement API: addSprite, removeSprite
* basic setStyle / setGlyphs behaviour
* setSprite, getSprite, setGlyphs, getGlyphs implementation
* update validation, state, async related logic in style's new APIs
* glyph diff sample
* jsdoc in removeSprite
* lint fix, remove console statements
* Fix typo
* Make 4th param optional
* Fix ESLint
* Update src/style/style.ts
Co-authored-by: Zbigniew Matysek <47562286+zbigniewmatysek-tomtom@users.noreply.github.com>
* Fix broken render test
* Revert "Fix broken render test"
This reverts commit 48baedc.
* Fix render tests
* Address feedback
* 100% test coverage for loadSprite
* Refact
* Try fix the build.
* Try fix the build
* Fix unit tests
* Test `_load` for `sprite: undefined`
* Add changelog entry
* Remove sprite better docs
Co-authored-by: ambientlight <primary.taras.vozniuk@gmail.com>
Co-authored-by: Zbigniew Matysek <47562286+zbigniewmatysek-tomtom@users.noreply.github.com>1 parent 05096ba commit 66e1009
32 files changed
Lines changed: 1087 additions & 83 deletions
File tree
- build
- src
- render
- source
- style-spec
- reference
- validate
- style
- ui
- util
- test
- integration
- lib
- render/tests/sprites
- array-default-only
- array-multiple
- unit/assets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
0 commit comments