Files
ocis/web/packages/web-pkg/src/constants.ts
Gaurav Soni b99e8ff0a7 feat: [OCISDEV-137] inline markdown editor images as base64 (#12967)
* feat: [OCISDEV-137] inline markdown editor images as base64
2026-09-17 10:47:58 +02:00

20 lines
702 B
TypeScript

export const EVENT_TROW_MOUNTED = 'rowMounted'
export const EVENT_FILE_DROPPED = 'fileDropped'
export const EVENT_TROW_CONTEXTMENU = 'contextmenuClicked'
export const DEFAULT_MAX_IMAGE_SIZE = 2 * 1000 * 1000
export const DEFAULT_MAX_DOCUMENT_IMAGE_SIZE = 10 * 1000 * 1000
export abstract class ImageDimension {
static readonly Thumbnail: [number, number] = [36, 36]
static readonly Tile: [number, number] = [1000, 1000]
static readonly Preview: [number, number] = [1200, 1200]
static readonly Avatar: number = 64
}
export abstract class ImageType {
static readonly Thumbnail: string = 'thumbnail'
static readonly Preview: string = 'preview'
static readonly Avatar: string = 'avatar'
}