@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
55 lines (54 loc) • 1.86 kB
TypeScript
import { Color } from "@aurigma/design-atoms-model/Colors";
import { IFontSettings } from "@aurigma/design-atoms-model/Product/Interfaces";
import { TextAlignment, TextVerticalAlignment } from "@aurigma/design-atoms-model/Product/Items/TextEnums";
import { RotatedRectangleF, IPoint, Transform } from "@aurigma/design-atoms-model/Math";
import { OpenTypeFeature } from "@aurigma/design-atoms-text/Model/Span";
import { IListConfiguration } from "../Viewer/Interfaces/IListConfiguration";
import { ITextLimits, ICharStyle } from "@aurigma/design-atoms-text/TextEditor/Interfaces";
export interface IStroke {
color?: Color;
size?: number;
enabled?: boolean;
}
export interface IInlineStyle {
font?: IFontSettings;
color?: Color;
underline?: boolean;
leading?: number;
tracking?: number;
stroke?: IStroke;
openType?: OpenTypeFeature[];
subscript?: boolean;
superscript?: boolean;
baselineShift?: number;
verticalScale?: number;
horizontalScale?: number;
}
export interface IParagraphStyle {
alignment?: TextAlignment;
firstLineIndent?: number;
spaceBefore?: number;
spaceAfter?: number;
leftIndent?: number;
rightIndent?: number;
}
export declare type EditorInitData = {
text?: string;
defaultParagraphStyle?: IParagraphStyle;
defaultInlineStyle?: ICharStyle;
rectangle?: RotatedRectangleF;
textAlignment?: TextAlignment;
borderWidth?: number;
borderColor?: string;
fillColor?: string;
opacity?: number;
point?: IPoint;
previewScale?: number;
textFormattingEnabled?: boolean;
transform?: Transform;
textVerticalAlignment?: TextVerticalAlignment;
newLineEnabled?: boolean;
isVertical?: boolean;
listSettings: IListConfiguration;
limits?: ITextLimits;
};