sprite-player
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "sprite-player", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Web component for controlling sprite sheet animations.", | ||
@@ -5,0 +5,0 @@ "main": "docs/sprite-player.js", |
@@ -30,7 +30,13 @@ # <sprite-player> | ||
**src**: (`string`) Path to sprite image. | ||
**frames**: (`int`) Number of frames in the animation. Defaults to `rows * cols`. | ||
**rows**: (`int`) Number of rows in the sprite. | ||
**cols**: (`int`) Number of columns in the sprite. | ||
**fps**: (`Number`) Frames per second. | ||
**autoplay**: (`Boolean`) Automatically play the animation as soon as the `src` is loaded. | ||
**loop**: (`Boolean`) Automatically replay the animation when it ends. | ||
@@ -43,2 +49,3 @@ | ||
**paused**: (`Boolean`) State of the animation. | ||
**duration**: (`Number`) Duration of animation in seconds. | ||
@@ -54,8 +61,14 @@ | ||
**play**: Sent when playback of the media starts after having been paused; that is, when playback is resumed after a prior pause event. | ||
**playing**: Sent when the media begins to play (either for the first time, after having been paused, or after ending and then *restarting*). | ||
**pause**: Sent when playback is paused. | ||
**ended**: Sent when playback completes. | ||
**loadstart**: Sent when loading of the media begins. | ||
**load**: Sent when media is loaded. | ||
**error**: Sent when media failed to load | ||
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
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
20693
72