@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
46 lines (45 loc) • 1.37 kB
TypeScript
export interface IViolationServiceConfiguration {
enabled?: boolean;
qualityMeter?: IQualityMeterConfig;
safetyLines?: ISafetyLinesConfig;
safetyLineViolationWarningEnabled?: boolean;
regionViolationWarningEnabled?: boolean;
bleedViolationWarningEnabled?: boolean;
textCropViolationWarningEnabled?: boolean;
rasterElements?: IRasterElementsConfig;
minFontSize?: IMinFontSizeConfig;
qualityChangeContainersEnabled?: boolean;
violationWarningButtonsEnabled?: boolean;
inPlaceNotSupportedWarningEnabled?: boolean;
tolerance?: number;
}
export interface IQualityMeterConfig {
qualityLevels: IQualityLevelsConfig;
renderingDpi: number;
enabled: boolean;
}
export interface ISafetyLinesConfig {
enabled: boolean;
mode: SafetyLineViolationMode;
}
export declare enum SafetyLineViolationMode {
InsideAll = "InsideAll",
PartiallyInsideAny = "PartiallyInsideAny",
InsideAny = "InsideAny"
}
export interface IQualityLevelsConfig {
warning: number;
bad: number;
}
export interface IRasterElementsConfig {
enabled: boolean;
severity: ValidationSeverity;
}
export interface IMinFontSizeConfig {
enabled: boolean;
severity: ValidationSeverity;
}
export declare enum ValidationSeverity {
Warning = "Warning",
Error = "Error"
}