Commit 85796b4b authored by wildfirecode13's avatar wildfirecode13

1

parent 8d7d9629
export * from "./Countdown";
export * from "./Timer";
export * from "./tools";
export * from "./svga";
......@@ -13,3 +13,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./Countdown"), exports);
__exportStar(require("./Timer"), exports);
__exportStar(require("./tools"), exports);
__exportStar(require("./svga"), exports);
export declare const loadSVGA: (url: any) => Promise<unknown>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadSVGA = void 0;
var SVGA = require("svgaplayerweb");
var parser = new SVGA.Parser();
exports.loadSVGA = function (url) {
return new Promise(function (resolve, reject) {
parser.load(url, function (videoItem) {
console.log("loaded", url);
resolve(videoItem);
}, function (err) {
reject(err);
});
});
};
{
"name": "teddi",
"version": "1.0.10",
"version": "1.0.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -4556,6 +4556,11 @@
"es6-symbol": "^3.1.1"
}
},
"svgaplayerweb": {
"version": "2.3.1",
"resolved": "http://npm.dui88.com:80/svgaplayerweb/-/svgaplayerweb-2.3.1.tgz",
"integrity": "sha1-Au3BavFiCvn1dKU254E/wlE55Hs="
},
"symbol-observable": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/symbol-observable/-/symbol-observable-1.0.1.tgz",
......
......@@ -16,6 +16,9 @@
},
"author": "",
"license": "ISC",
"dependencies": {
"svgaplayerweb": "^2.3.1"
},
"devDependencies": {
"browser-sync": "^2.26.13",
"gulp": "^4.0.2",
......
export * from "./Countdown";
export * from "./Timer";
export * from "./tools";
export * from "./svga";
import SVGA = require("svgaplayerweb");
var parser = new SVGA.Parser();
export const loadSVGA = (url) => {
return new Promise((resolve, reject) => {
parser.load(
url,
(videoItem) => {
console.log("loaded", url);
resolve(videoItem);
},
(err) => {
reject(err);
}
);
});
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment