Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
teddi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
teddi
Commits
2d76e144
Commit
2d76e144
authored
Nov 14, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5bd8b75f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
svga.js
dist/svga.js
+3
-3
svga.ts
src/svga.ts
+1
-1
No files found.
dist/svga.js
View file @
2d76e144
...
...
@@ -38,10 +38,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
getSVGA
=
exports
.
loadSVGA
=
void
0
;
var
SVGA
=
require
(
"svgaplayerweb"
);
var
p
arser
=
new
SVGA
.
Parser
();
var
svgaP
arser
=
new
SVGA
.
Parser
();
exports
.
loadSVGA
=
function
(
url
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
p
arser
.
load
(
url
,
function
(
videoItem
)
{
svgaP
arser
.
load
(
url
,
function
(
videoItem
)
{
resolve
(
videoItem
);
},
function
(
err
)
{
reject
(
err
);
...
...
@@ -59,7 +59,7 @@ exports.getSVGA = function (url, className, loops, clearsAfterStop) { return __a
if
(
loops
)
svga
.
loops
=
loops
;
if
(
clearsAfterStop
)
svga
.
clearsAfterStop
=
true
;
svga
.
clearsAfterStop
=
clearsAfterStop
;
svga
.
setVideoItem
(
videoItem
);
svga
.
startAnimation
();
return
[
2
/*return*/
,
svga
];
...
...
src/svga.ts
View file @
2d76e144
...
...
@@ -18,7 +18,7 @@ export const getSVGA = async (url:string, className:string, loops:number, clears
if
(
loops
)
svga
.
loops
=
loops
;
if
(
clearsAfterStop
)
svga
.
clearsAfterStop
=
true
;
svga
.
clearsAfterStop
=
clearsAfterStop
;
svga
.
setVideoItem
(
videoItem
);
svga
.
startAnimation
();
return
svga
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment