-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Given a set of SVGs as a sprite source X, Martin will now generate two endpoints: `/sprite/X` and `/sdf_sprite/X`, with the second endpoint serving [signed distance field](https://en.wikipedia.org/wiki/Signed_distance_function) images. Closes #1075
- Loading branch information
1 parent
763f626
commit b134cb2
Showing
33 changed files
with
394 additions
and
43 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"another_bicycle": { | ||
"height": 21, | ||
"pixelRatio": 1, | ||
"width": 21, | ||
"x": 26, | ||
"y": 22, | ||
"sdf": true | ||
}, | ||
"bear": { | ||
"height": 22, | ||
"pixelRatio": 1, | ||
"width": 22, | ||
"x": 26, | ||
"y": 0, | ||
"sdf": true | ||
}, | ||
"bicycle": { | ||
"height": 21, | ||
"pixelRatio": 1, | ||
"width": 21, | ||
"x": 0, | ||
"y": 26, | ||
"sdf": true | ||
}, | ||
"sub/circle": { | ||
"height": 26, | ||
"pixelRatio": 1, | ||
"width": 26, | ||
"x": 0, | ||
"y": 0, | ||
"sdf": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
tests/output/configured/sdf_spr_cmp.png: PNG image data, 48 x 47, 8-bit gray+alpha, non-interlaced |
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,34 @@ | ||
{ | ||
"another_bicycle": { | ||
"height": 36, | ||
"pixelRatio": 2, | ||
"width": 36, | ||
"x": 84, | ||
"y": 0, | ||
"sdf": true | ||
}, | ||
"bear": { | ||
"height": 38, | ||
"pixelRatio": 2, | ||
"width": 38, | ||
"x": 46, | ||
"y": 0, | ||
"sdf": true | ||
}, | ||
"bicycle": { | ||
"height": 36, | ||
"pixelRatio": 2, | ||
"width": 36, | ||
"x": 84, | ||
"y": 36, | ||
"sdf": true | ||
}, | ||
"sub/circle": { | ||
"height": 46, | ||
"pixelRatio": 2, | ||
"width": 46, | ||
"x": 0, | ||
"y": 0, | ||
"sdf": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
tests/output/configured/sdf_spr_cmp_2.png: PNG image data, 120 x 72, 8-bit gray+alpha, non-interlaced |
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,10 @@ | ||
{ | ||
"bicycle": { | ||
"height": 36, | ||
"pixelRatio": 2, | ||
"width": 36, | ||
"x": 0, | ||
"y": 0, | ||
"sdf": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
tests/output/configured/sdf_spr_mysrc.png: PNG image data, 36 x 36, 8-bit gray+alpha, non-interlaced |
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,26 @@ | ||
{ | ||
"another_bicycle": { | ||
"height": 21, | ||
"pixelRatio": 1, | ||
"width": 21, | ||
"x": 26, | ||
"y": 22, | ||
"sdf": true | ||
}, | ||
"bear": { | ||
"height": 22, | ||
"pixelRatio": 1, | ||
"width": 22, | ||
"x": 26, | ||
"y": 0, | ||
"sdf": true | ||
}, | ||
"sub/circle": { | ||
"height": 26, | ||
"pixelRatio": 1, | ||
"width": 26, | ||
"x": 0, | ||
"y": 0, | ||
"sdf": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
tests/output/configured/sdf_spr_src1.png: PNG image data, 48 x 43, 8-bit gray+alpha, non-interlaced |
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,26 @@ | ||
{ | ||
"another_bicycle": { | ||
"height": 36, | ||
"pixelRatio": 2, | ||
"width": 36, | ||
"x": 84, | ||
"y": 0, | ||
"sdf": true | ||
}, | ||
"bear": { | ||
"height": 38, | ||
"pixelRatio": 2, | ||
"width": 38, | ||
"x": 46, | ||
"y": 0, | ||
"sdf": true | ||
}, | ||
"sub/circle": { | ||
"height": 46, | ||
"pixelRatio": 2, | ||
"width": 46, | ||
"x": 0, | ||
"y": 0, | ||
"sdf": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
tests/output/configured/sdf_spr_src1_.png: PNG image data, 120 x 46, 8-bit gray+alpha, non-interlaced |
Oops, something went wrong.