UNPKG

@aurigma/design-atoms

Version:

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

33 lines 1.82 kB
import { isNullOrEmptyOrWhiteSpace } from "@aurigma/design-atoms-model"; import * as RenderingConfigHelper from "./RenderingConfigHelper"; export class RenderingConfigProvider { constructor(renderingConfigContext) { this._renderingConfigContext = renderingConfigContext; } getRgbColorProfileName() { var _a, _b; return (_b = (_a = this._renderingConfigContext.renderingConfig) === null || _a === void 0 ? void 0 : _a.defaultHiResOutputRendering) === null || _b === void 0 ? void 0 : _b.rgbColorProfileName; } getCmykColorProfileName() { var _a, _b; return (_b = (_a = this._renderingConfigContext.renderingConfig) === null || _a === void 0 ? void 0 : _a.defaultHiResOutputRendering) === null || _b === void 0 ? void 0 : _b.cmykColorProfileName; } getGrayscaleColorProfileName() { var _a, _b; return (_b = (_a = this._renderingConfigContext.renderingConfig) === null || _a === void 0 ? void 0 : _a.defaultHiResOutputRendering) === null || _b === void 0 ? void 0 : _b.grayscaleColorProfileName; } getHiResDestinationColorProfileName() { var _a, _b; return (_b = (_a = this._renderingConfigContext.renderingConfig) === null || _a === void 0 ? void 0 : _a.defaultHiResOutputRendering) === null || _b === void 0 ? void 0 : _b.destinationColorProfileName; } cmykModeEnabled() { return !isNullOrEmptyOrWhiteSpace(this.getHiResDestinationColorProfileName()); } getHiResRendering(printArea) { if (this._renderingConfigContext.renderingConfig == null) { return null; } return RenderingConfigHelper.getHiResRendering(this._renderingConfigContext.renderingConfig, printArea); } } //# sourceMappingURL=RenderingConfigProvider.js.map