UNPKG

@aurigma/design-atoms-model

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

95 lines (94 loc) 3.8 kB
import { ShapeItem } from "./ShapeItem"; import { ContentItem } from "./ContentItem"; import { ImageItem } from "./ImageItem"; import { ImageMetaData } from "./ImageMetaData"; import { Color } from "../../Colors"; import { PlaceholderPermissions } from "./PlaceholderPermissions"; import { ContentPermissions } from "./ContentPermissions"; import { RectangleF } from "../../Math/RectangleF"; import { BarcodeFormat } from "./BarcodeFormat"; import { OverlayEffect } from "./OverlayEffect"; import { ImageViolationSettings } from "./ImageViolationSettings"; export declare enum VerticalContentAlignment { None = 0, Center = 1, Top = 2, Bottom = 3 } export declare enum HorizontalContentAlignment { None = 0, Center = 1, Right = 2, Left = 3 } export declare enum ResizeMode { Fit = 0, Fill = 1, Original = 2 } export declare class PlaceholderItem extends ShapeItem { private _isStubContent; private _isCoverMode; private _contentResizeMode; private _contentEffect; private _contentFillColor; private _contentOverlayEffect; stubStorageMeta: ImageMetaData; linkId: string; allowedSubfolder: string; allowedTabs: string[]; contentVerticalAlignment: VerticalContentAlignment; contentHorizontalAlignment: HorizontalContentAlignment; static type: string; type: string; private _content; private _topFrames; private _bottomFrames; private _placeholderPermissions; constructor(sourceRec?: RectangleF); get contentEffect(): number; set contentEffect(value: number); get contentFillColor(): Color; set contentFillColor(value: Color); get isStubContent(): boolean; set isStubContent(value: boolean); get contentResizeMode(): ResizeMode.Fit | ResizeMode.Fit | ResizeMode; set contentResizeMode(value: ResizeMode); barcodeFormat: BarcodeFormat; get contentOverlayEffect(): OverlayEffect; set contentOverlayEffect(value: OverlayEffect); private _subscribeContentOverlayEffectPropertyChanged; private _unsubscribeContentOverlayEffectPropertyChanged; private _onContentOverlayEffectPropertyChanged; fixedStubContentSize: boolean; get isCoverMode(): boolean; set isCoverMode(value: boolean); getImagePermissions(): import("./ImagePermissions").ImagePermissions; applyPermissionsConstrain(): void; private _contentPermissions; get contentPermissions(): ContentPermissions; set contentPermissions(value: ContentPermissions); get placeholderPermissions(): PlaceholderPermissions; set placeholderPermissions(value: PlaceholderPermissions); get violationSettings(): ImageViolationSettings; set violationSettings(value: ImageViolationSettings); protected _setViolationSettings(value: ImageViolationSettings, skipTypeCheck?: boolean): void; get isFrame(): boolean; get content(): ContentItem; set content(value: ContentItem); private _setStubStorageMeta; get topFrames(): ContentItem[]; set topFrames(value: ContentItem[]); get bottomFrames(): ContentItem[]; set bottomFrames(value: ContentItem[]); updateContentAndFrames(func: (x: ContentItem) => void): void; get imageContent(): ImageItem; get isEmptyContent(): boolean; get isStubOrEmpty(): boolean; protected _canSetIsVariable(): boolean; get isBarcodePlaceholder(): boolean; getSimplifiedObject(): Object; protected _copy(source: PlaceholderItem, destination: PlaceholderItem, generateNewIds: boolean, appropriateParentContainer: boolean): void; equals(other: PlaceholderItem): any; clone(generateNewIds?: boolean, appropriateParentContainer?: boolean): PlaceholderItem; }