File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,15 +148,15 @@ export interface IVisualizationTimeline {
148148}
149149
150150export interface VisualizationThumbnailData {
151- svg : string ; // Should not exceed a certain size, cf isThumbnailTooLarge
151+ json : string ; // Should not exceed a certain size, cf isThumbnailTooLarge
152152}
153153
154154export const MAX_VISUALIZATION_THUMBNAIL_SIZE_BYTES = 2_097_152 ; // 2MB
155155
156156export function isThumbnailTooLarge (
157157 thumbnail : VisualizationThumbnailData | null | undefined
158158) : boolean {
159- const thumbnailContent = thumbnail ?. svg ?? '' ;
159+ const thumbnailContent = thumbnail ?. json ?? '' ;
160160 const thumbnailSizeBytes = new TextEncoder ( ) . encode ( thumbnailContent ) . byteLength ;
161161 return thumbnailSizeBytes > MAX_VISUALIZATION_THUMBNAIL_SIZE_BYTES ;
162162}
You can’t perform that action at this time.
0 commit comments