@excaliburjs/plugin-aseprite
Advanced tools
Comparing version 0.29.0 to 0.29.1
@@ -13,3 +13,4 @@ import { Animation, ImageSource, SpriteSheet } from "excalibur"; | ||
getAsepriteSheet(): AsepriteSpriteSheet; | ||
private _parseRawToFrames; | ||
parse(): void; | ||
} |
@@ -19,2 +19,3 @@ import { Animation, Frame, SpriteSheet } from "excalibur"; | ||
opacity: number; | ||
visible: boolean; | ||
} | ||
@@ -47,3 +48,9 @@ /** | ||
getAnimations(): Map<string, Animation>; | ||
getAnimation(name: string): Animation; | ||
private _animationCache; | ||
/** | ||
* Optionally get an animation by name | ||
* @param name | ||
* @returns | ||
*/ | ||
getAnimation(name?: string): Animation; | ||
private _parseFrame; | ||
@@ -50,0 +57,0 @@ private _parseChunk; |
@@ -17,5 +17,9 @@ import { Loadable, SpriteSheet, Animation } from 'excalibur'; | ||
getSpriteSheet(): SpriteSheet | undefined; | ||
getAnimation(name: string): Animation | null; | ||
/** | ||
* Get an animation by name, if none specified all frames are returned as an Animation. | ||
* @param name | ||
*/ | ||
getAnimation(name?: string): Animation | null; | ||
clone(): AsepriteResource; | ||
isLoaded(): boolean; | ||
} |
@@ -7,4 +7,4 @@ import { SpriteSheet, Animation } from "excalibur"; | ||
getSpriteSheet(): SpriteSheet; | ||
getAnimation(name: string): Animation; | ||
getAnimation(name?: string): Animation; | ||
clone(): AsepriteSpriteSheet; | ||
} |
{ | ||
"name": "@excaliburjs/plugin-aseprite", | ||
"version": "0.29.0", | ||
"version": "0.29.1", | ||
"description": "Aseprite Resource Plugin for Excalibur", | ||
@@ -9,6 +9,8 @@ "main": "./dist/excalibur-aseprite.js", | ||
"start": "webpack-dev-server --config webpack.config.test.js --open", | ||
"start:ci-server": "webpack --config webpack.config.test.js && http-server ./example --port 8080", | ||
"watch": "webpack --progress --watch", | ||
"build": "webpack --mode production", | ||
"test:unit": "karma start", | ||
"test:integration": "webpack --config webpack.config.test.js && ex-test -d ./example -t ./test/integration/test.js", | ||
"test:integration": "npx playwright test", | ||
"test:integration-update": "npx playwright test --update-snapshots", | ||
"test": "npm run test:unit && npm run test:integration" | ||
@@ -27,11 +29,12 @@ }, | ||
"devDependencies": { | ||
"@excaliburjs/testing": "0.25.1", | ||
"@playwright/test": "1.45.2", | ||
"@types/jasmine": "3.10.18", | ||
"@types/node": "^20.12.7", | ||
"@types/pako": "2.0.3", | ||
"@types/webpack-env": "1.18.4", | ||
"acorn": "8.11.3", | ||
"@types/webpack-env": "1.18.5", | ||
"excalibur": "~0.29.0", | ||
"excalibur-jasmine": "0.3.2", | ||
"excalibur-jasmine": "0.3.4", | ||
"http-server": "14.1.1", | ||
"jasmine": "3.99.0", | ||
"karma": "6.4.2", | ||
"karma": "6.4.3", | ||
"karma-chrome-launcher": "3.2.0", | ||
@@ -43,5 +46,5 @@ "karma-jasmine": "4.0.2", | ||
"typescript": "4.9.5", | ||
"webpack": "5.90.3", | ||
"webpack": "5.93.0", | ||
"webpack-cli": "4.10.0", | ||
"webpack-dev-server": "4.15.1" | ||
"webpack-dev-server": "4.15.2" | ||
}, | ||
@@ -48,0 +51,0 @@ "peerDependencies": { |
@@ -54,2 +54,41 @@ | ||
## Contributing | ||
- Built with webpack 5 | ||
- Uses webpack-dev-server | ||
To start development server: | ||
npm start | ||
To watch: | ||
npm run watch | ||
To compile only: | ||
npm run build | ||
To run tests: | ||
npx playwright install | ||
npm test | ||
To update snapshots | ||
* Windows | ||
```powershell | ||
npx playwright test --update-snapshots | ||
``` | ||
* Linux for CI | ||
```powershell | ||
docker run --rm --network host -v C:\projects\excalibur-aseprite:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.43.1-jammy /bin/bash | ||
npm install | ||
npx playwright test --update-snapshots | ||
``` | ||
## Currently unsupported in the Native format | ||
@@ -56,0 +95,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2020492
31
8753
101
19