Commit 85796b4b authored by wildfirecode13's avatar wildfirecode13

1

parent 8d7d9629
export * from "./Countdown"; export * from "./Countdown";
export * from "./Timer"; export * from "./Timer";
export * from "./tools"; export * from "./tools";
export * from "./svga";
...@@ -13,3 +13,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); ...@@ -13,3 +13,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./Countdown"), exports); __exportStar(require("./Countdown"), exports);
__exportStar(require("./Timer"), exports); __exportStar(require("./Timer"), exports);
__exportStar(require("./tools"), 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", "name": "teddi",
"version": "1.0.10", "version": "1.0.11",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
...@@ -4556,6 +4556,11 @@ ...@@ -4556,6 +4556,11 @@
"es6-symbol": "^3.1.1" "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": { "symbol-observable": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "http://npm.dui88.com:80/symbol-observable/-/symbol-observable-1.0.1.tgz", "resolved": "http://npm.dui88.com:80/symbol-observable/-/symbol-observable-1.0.1.tgz",
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": {
"svgaplayerweb": "^2.3.1"
},
"devDependencies": { "devDependencies": {
"browser-sync": "^2.26.13", "browser-sync": "^2.26.13",
"gulp": "^4.0.2", "gulp": "^4.0.2",
...@@ -23,4 +26,4 @@ ...@@ -23,4 +26,4 @@
"typedoc": "^0.19.2", "typedoc": "^0.19.2",
"typescript": "^4.0.5" "typescript": "^4.0.5"
} }
} }
\ No newline at end of file
export * from "./Countdown"; export * from "./Countdown";
export * from "./Timer"; export * from "./Timer";
export * from "./tools"; 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