@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
68 lines • 3.27 kB
JavaScript
import { assign } from "@aurigma/design-atoms-model";
import { ValidationSeverity } from "./Interfaces";
import { SafetyLineViolationMode } from "./Interfaces";
var ViewerConfiguration = /** @class */ (function () {
function ViewerConfiguration(conf) {
this.text = { fitToPathStep: 1 };
this.messages = {
warningImageResolution: "Image resolution ([DPI_VALUE_PLACEHOLDER] dpi) is close to poor, however, print quality may still be acceptable but far from ideal.",
badImageResolution: "Too low image resolution ([DPI_VALUE_PLACEHOLDER] dpi) which may result in poor print quality",
moreThanOneWarning: "Element has more than one warning.",
safetyLinesViolationWarning: "The object is too close to the edge.",
bleedViolationWarning: "The object edge is inside the bleed area. It may be trimmed incorrectly. Move it inside the safe zone or outside of the bleed line.",
regionViolationWarning: "The object goes out of the region.",
textCropWarning: "The text is too long for this box. Some text strings are clipped. Try to make it shorter or use smaller font.",
inPlaceNotSupportedWarning: "In-place editing is not supported. Reason: [REASON_PLACEHOLDER].",
rasterElementsViolationWarning: "This element contains raster images, which are not allowed in the selected container.",
fontSizeViolationWarning: "Too small font size which may result in poor print quality."
};
this.violationService = {
enabled: true,
bleedViolationWarningEnabled: true,
qualityChangeContainersEnabled: true,
regionViolationWarningEnabled: true,
textCropViolationWarningEnabled: true,
rasterElements: {
enabled: true,
severity: ValidationSeverity.Warning
},
minFontSize: {
enabled: true,
severity: ValidationSeverity.Warning
},
violationWarningButtonsEnabled: true,
inPlaceNotSupportedWarningEnabled: false,
tolerance: 0.001,
qualityMeter: {
renderingDpi: 300,
enabled: true,
qualityLevels: {
bad: 100,
warning: 100
}
},
safetyLines: {
enabled: true,
mode: SafetyLineViolationMode.PartiallyInsideAny
}
};
this.apiClientConfiguration = { authorizationToken: null };
this.inactiveContainerTransparencyEnabled = true;
this.inactiveContainerTransparencyLevel = 0.8;
conf = conf != null ? conf : {};
assign(this, [conf], { deep: true });
}
return ViewerConfiguration;
}());
export { ViewerConfiguration };
var StubImagesConfig = /** @class */ (function () {
function StubImagesConfig() {
}
return StubImagesConfig;
}());
var StubImagesBarcodeConfig = /** @class */ (function () {
function StubImagesBarcodeConfig() {
}
return StubImagesBarcodeConfig;
}());
//# sourceMappingURL=ViewerConfiguration.js.map