@lijuhong1981/jsgif 1.0.8 → 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 +5 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -464,13 +464,14 @@ function GifPlayer(options = {}) {
464
464
  function drawCurrentFrame() {
465
465
  const frame = FRAME_LIST[currentFrameIndex];
466
466
  drawFrame(frame);
467
- }
468
-
469
- function doFrame() {
470
- drawCurrentFrame();
471
467
  if (typeof options.onFrameChanged === 'function') {
472
468
  options.onFrameChanged(currentFrameIndex, frame);
473
469
  }
470
+ return frame;
471
+ }
472
+
473
+ function doFrame() {
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.8",
3
+ "version": "1.0.10",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",
@@ -18,5 +18,5 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/lijuhong1981/jslibs/issues"
20
20
  },
21
- "gitHead": "41eaaf2e07770b704c80b27f40b0f033e80dfe9e"
21
+ "gitHead": "99cf51dfff7d8cfa8b3640e057b493c323eb1d40"
22
22
  }