UNPKG

@omnia/fx-models

Version:
26 lines (25 loc) 1.19 kB
import { Guid, GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models"; import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../../ux"; import { PropertyDefinition, PropertyDisplaySettingsBase } from "../PropertyDefinition"; import { ImagePropertyValue } from "../values"; export type ImageDisplaySettings = { locks?: PropertyLockStatusType<LockStatusExcludeChildren<Omit<ImageDisplaySettings, "locks">, "label">>; width?: string; height?: string; avatar?: { size: number; }; } & PropertyDisplaySettingsBase; export type ImageEditorSettings = { locks?: PropertyLockStatusType<LockStatusExcludeChildren<Omit<ImageEditorSettings, "locks">, "cropRatioUniqueIds" | "preConfiguredImageScalingUniqueId">>; preConfiguredImageScalingUniqueId?: GuidValue; forceScaling?: boolean; cropRatioUniqueIds?: Array<GuidValue>; required?: boolean; rollupRatiosDisabled?: boolean; }; export declare const imagePropertyDefinitionId: Guid; export declare class ImagePropertyDefinition extends PropertyDefinition<ImagePropertyValue, ImageDisplaySettings, ImageEditorSettings> { id: Guid; typeName: string; }