mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 12:04:56 +02:00
UBERF-5595: set up attachments sizes (#4746)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user