all files / document-editor/implementation/themes/ font-scheme.js

97.92% Statements 47/48
100% Branches 4/4
95.24% Functions 20/21
97.92% Lines 47/48
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103   4395× 4395×     12×     21×           14379×               14135×                           127921×     169×           14285×     169×           73×     169×                    
define(["require", "exports", "@syncfusion/ej2-base", "./major-minor-font-scheme"], function (require, exports, ej2_base_1, major_minor_font_scheme_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var FontScheme = (function () {
        function FontScheme(node) {
            this.majFontScheme = new major_minor_font_scheme_1.MajorMinorFontScheme();
            this.minFontScheme = new major_minor_font_scheme_1.MajorMinorFontScheme();
        }
        Object.defineProperty(FontScheme.prototype, "fontSchemeName", {
            get: function () {
                return this.schemeName;
            },
            set: function (value) {
                this.schemeName = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FontScheme.prototype, "majorFontScheme", {
            get: function () {
                return this.majFontScheme;
            },
            set: function (value) {
                this.majFontScheme = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FontScheme.prototype, "minorFontScheme", {
            get: function () {
                return this.minFontScheme;
            },
            set: function (value) {
                this.minFontScheme = value;
            },
            enumerable: true,
            configurable: true
        });
        FontScheme.prototype.copyFormat = function (fontScheme) {
            if (!ej2_base_1.isNullOrUndefined(fontScheme)) {
                this.schemeName = fontScheme.schemeName;
                this.majFontScheme.copyFormat(fontScheme.majFontScheme);
                this.minFontScheme.copyFormat(fontScheme.minFontScheme);
            }
        };
        FontScheme.prototype.destroy = function () {
            this.schemeName = undefined;
            this.majFontScheme = undefined;
            this.minFontScheme = undefined;
        };
        return FontScheme;
    }());
    exports.FontScheme = FontScheme;
    var FontSchemeStruct = (function () {
        function FontSchemeStruct() {
        }
        Object.defineProperty(FontSchemeStruct.prototype, "name", {
            get: function () {
                return this.fontName;
            },
            set: function (value) {
                this.fontName = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FontSchemeStruct.prototype, "typeface", {
            get: function () {
                return this.fontTypeface;
            },
            set: function (value) {
                this.fontTypeface = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(FontSchemeStruct.prototype, "panose", {
            get: function () {
                return this.pnose;
            },
            set: function (value) {
                this.pnose = value;
            },
            enumerable: true,
            configurable: true
        });
        FontSchemeStruct.prototype.copyFormat = function (fontSchemeStructure) {
            if (!ej2_base_1.isNullOrUndefined(fontSchemeStructure)) {
                this.fontName = fontSchemeStructure.fontName;
                this.fontTypeface = fontSchemeStructure.fontTypeface;
                this.pnose = fontSchemeStructure.panose;
            }
        };
        FontSchemeStruct.prototype.destroy = function () {
            this.fontName = undefined;
            this.fontTypeface = undefined;
            this.pnose = undefined;
        };
        return FontSchemeStruct;
    }());
    exports.FontSchemeStruct = FontSchemeStruct;
});