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
5bd8b75f
Commit
5bd8b75f
authored
Nov 14, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9ec2c788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
svga.ts
src/svga.ts
+3
-2
No files found.
src/svga.ts
View file @
5bd8b75f
import
SVGA
=
require
(
"svgaplayerweb"
);
var
parser
=
new
SVGA
.
Parser
();
var
svgaParser
=
new
SVGA
.
Parser
();
export
const
loadSVGA
=
(
url
:
string
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
p
arser
.
load
(
url
,
(
videoItem
:
SVGA
.
VideoEntity
)
=>
{
svgaP
arser
.
load
(
url
,
(
videoItem
:
SVGA
.
VideoEntity
)
=>
{
resolve
(
videoItem
)
},
(
err
)
=>
{
reject
(
err
)
...
...
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