@lijuhong1981/jsgif 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -461,6 +461,9 @@ function GifPlayer(options = {}) {
461
461
  function doCurrentFrame() {
462
462
  const frame = FRAME_LIST[currentFrameIndex];
463
463
  drawFrame(frame);
464
+ if (typeof options.onFrameChanged === 'function') {
465
+ options.onFrameChanged(currentFrameIndex, frame);
466
+ }
464
467
  setTimeout(function () {
465
468
  if (!isPlaying)
466
469
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuhong1981/jsgif",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",