feat: implemented focal point picker inside ImageVault

This commit is contained in:
Erik Tiekstra
2024-10-14 16:07:32 +02:00
parent 5f9bd57a7c
commit b1493bcd3d
8 changed files with 217 additions and 16 deletions

View File

@@ -16,6 +16,11 @@ declare global {
}
}
export interface FocalPoint {
x: number
y: number
}
export declare class InsertMediaWindow {
constructor(config: Config, windowOptions: string)
openImageVault: () => void
@@ -58,6 +63,7 @@ export type ImageVaultAsset = {
height: number
aspectRatio: number
}
focalPoint: FocalPoint
meta: { alt: string | undefined; caption: string | undefined }
}
@@ -91,6 +97,8 @@ export declare class InsertResponse {
AddedBy: string
Metadata?: MetaData[] | undefined
FocalPoint: FocalPoint
}
/**