mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
18 lines
531 B
TypeScript
18 lines
531 B
TypeScript
// @ts-ignore: WASM Glue code doesn't have type & Only available on build progress
|
|
import Module from '../dist/thorvg-wasm';
|
|
import { ExportableType, LibraryVersion, LottiePlayerModel, PlayerEvent, PlayerState } from './lottie-player.model';
|
|
|
|
let _tvg: any;
|
|
(async () => {
|
|
const module = await Module();
|
|
_tvg = new module.TvgLottieAnimation();
|
|
})();
|
|
|
|
@customElement('lottie-player')
|
|
export class LottiePlayer extends LitElement {
|
|
public render (): TemplateResult {
|
|
return html`
|
|
<h1>Hello ThorVG!</h1>
|
|
`
|
|
}
|
|
}
|