UBERF-5595: set up attachments sizes (#4746)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-02-24 00:03:59 +07:00
committed by GitHub
parent 0349cec3a2
commit 3e782658c6
23 changed files with 485 additions and 131 deletions
+24
View File
@@ -33,6 +33,30 @@ export interface Attachment extends AttachedDoc {
pinned?: boolean // If defined and true, will be shown in top of attachments collection
readonly?: boolean // If readonly, user will not be able to remove or modify this attachment
metadata?: AttachmentMetadata
}
/**
* @public
*/
export type AttachmentMetadata = ImageMetadata | VideoMetadata
/**
* @public
*/
export interface ImageMetadata {
originalWidth: number
originalHeight: number
pixelRatio: number
}
/**
* @public
*/
export interface VideoMetadata {
originalWidth: number
originalHeight: number
}
/**