@lijuhong1981/jsgif 1.1.2 → 1.1.4
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.
- package/index.js +10 -7
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import Check from "@lijuhong1981/jscheck";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import Check from "@lijuhong1981/jscheck/src/Check.js";
|
|
2
|
+
import defineDestroyProperties from "@lijuhong1981/jsdestroy/src/defineDestroyProperties.js";
|
|
3
|
+
import Destroyable from "@lijuhong1981/jsdestroy/src/Destroyable.js";
|
|
4
|
+
import destroyHTMLElement from "@lijuhong1981/jsdestroy/src/destroyHTMLElement.js";
|
|
5
|
+
import destroyObject from "@lijuhong1981/jsdestroy/src/destroyObject.js";
|
|
6
|
+
import EventRaiser from "@lijuhong1981/jsevents/src/EventRaiser.js";
|
|
7
|
+
import fetchArrayBuffer from "@lijuhong1981/jsload/src/fetchArrayBuffer.js";
|
|
5
8
|
|
|
6
9
|
// 转流数组
|
|
7
10
|
function byteToBitArr(bite) {
|
|
@@ -519,12 +522,12 @@ function GifPlayer(options = {}) {
|
|
|
519
522
|
parseHeader();
|
|
520
523
|
parseBlock();
|
|
521
524
|
drawAtlasImage();
|
|
522
|
-
stopGif();
|
|
523
|
-
if (options.autoPlay)
|
|
524
|
-
playGif();
|
|
525
525
|
if (typeof onLoad === 'function')
|
|
526
526
|
onLoad(player);
|
|
527
527
|
resolve(player);
|
|
528
|
+
stopGif();
|
|
529
|
+
if (options.autoPlay)
|
|
530
|
+
playGif();
|
|
528
531
|
} catch (error) {
|
|
529
532
|
if (typeof onError === 'function')
|
|
530
533
|
onError(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lijuhong1981/jsgif",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
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": "
|
|
21
|
+
"gitHead": "6bf58f5be103724e1690a3f4860b108cfb23defb"
|
|
22
22
|
}
|