-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Spritesheet Spacing Options, allowing Vectors (#3350)
### SpriteSheet.ts - modified SpriteSheetSpacingDimensions originOffset and margin to accept optional Vectors - modified fromImageSource to test for instance of Vector and handle it properly, while maintaining backward compatibility ### SpriteSheetSpec.ts - added test: `can be created from with spacing using vectors` ### Updated docs entry on Spritesheets to note that Vectors are now allowed Ran locally and verified functionality using both vec() and new Vector --------- Co-authored-by: Erik Onarheim <[email protected]>
- Loading branch information
1 parent
a348365
commit 3976b32
Showing
4 changed files
with
58 additions
and
6 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