forked from pixijs/assetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spine): Adds a Spine Package (#9)
* - add skip property and skipChildren - fixed json and test - fixed texture packer still creating individual images - ensure output is removed if the cache key changes * -test tweak - fix compressed pngs not working * fix rotation on texture packer * - modify cache-buster to use hash - remove spineAtlasMipmap from mipmap-compress - fix png compression - add spine package * pr feedback * fix install * fix tests * fix test * note * feedback * fix fs * update spine * fix mip --------- Co-authored-by: Zyie <[email protected]>
- Loading branch information
1 parent
973ef7d
commit 469fb68
Showing
44 changed files
with
3,437 additions
and
15,649 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,30 @@ | ||
import type { Asset } from '../Asset'; | ||
|
||
export function findAssetsWithFileName( | ||
test: (asset: Asset) => boolean, | ||
asset: Asset, | ||
searchTransform: boolean, | ||
out: Asset[] = [] | ||
): Asset[] | ||
{ | ||
if (test(asset)) | ||
{ | ||
out.push(asset); | ||
} | ||
|
||
for (let i = 0; i < asset.children.length; i++) | ||
{ | ||
const child = asset.children[i]; | ||
|
||
findAssetsWithFileName(test, child, searchTransform, out); | ||
} | ||
|
||
for (let i = 0; i < asset.transformChildren.length; i++) | ||
{ | ||
const transformChild = asset.transformChildren[i]; | ||
|
||
findAssetsWithFileName(test, transformChild, searchTransform, out); | ||
} | ||
|
||
return out; | ||
} |
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
Oops, something went wrong.