From 2d5fb107972bbe42fe8ed45ae14d812f8b578168 Mon Sep 17 00:00:00 2001 From: Jinny You Date: Mon, 18 Nov 2024 14:25:30 +0900 Subject: [PATCH] Spec out TVG Binary issue: #2721 --- src/lottie-player.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/lottie-player.ts b/src/lottie-player.ts index 1141742..89b0e0c 100644 --- a/src/lottie-player.ts +++ b/src/lottie-player.ts @@ -72,7 +72,6 @@ export type RenderConfig = { // Define file type which can be exported export enum ExportableType { GIF = 'gif', - TVG = 'tvg', PNG = 'png', } @@ -82,7 +81,6 @@ export enum MimeType { JPG = 'jpg', PNG = 'png', SVG = 'svg', - TVG = 'tvg', } // Define valid player states @@ -751,12 +749,6 @@ export class LottiePlayer extends LitElement { ); } - if (target === ExportableType.TVG && data.length < 33) { - throw new Error( - `Unable to save the TVG data. The generated file size is invalid.` - ); - } - const blob = new Blob([data], {type: 'application/octet-stream'}); _downloadFile(fileName, blob); }