@lijuhong1981/jsgif 1.0.9 → 1.0.10

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 +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -467,10 +467,11 @@ function GifPlayer(options = {}) {
467
467
  if (typeof options.onFrameChanged === 'function') {
468
468
  options.onFrameChanged(currentFrameIndex, frame);
469
469
  }
470
+ return frame;
470
471
  }
471
472
 
472
473
  function doFrame() {
473
- drawCurrentFrame();
474
+ const frame = drawCurrentFrame();
474
475
  setTimeout(function () {
475
476
  if (!isPlaying)
476
477
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuhong1981/jsgif",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",