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

95.65% Statements 22/23
100% Branches 2/2
88.89% Functions 8/9
95.65% Lines 22/23
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   9109× 9109× 9109× 9109×     18657×               43788×                          
define(["require", "exports", "@syncfusion/ej2-base", "../../index"], function (require, exports, ej2_base_1, index_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var MajorMinorFontScheme = (function () {
        function MajorMinorFontScheme() {
            this.fntTypeface = new index_1.Dictionary();
            this.fntSchemeList = [];
            this.fntTypeface = new index_1.Dictionary();
            this.fntSchemeList = [];
        }
        Object.defineProperty(MajorMinorFontScheme.prototype, "fontTypeface", {
            get: function () {
                return this.fntTypeface;
            },
            set: function (value) {
                this.fntTypeface = value;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(MajorMinorFontScheme.prototype, "fontSchemeList", {
            get: function () {
                return this.fntSchemeList;
            },
            set: function (value) {
                this.fntSchemeList = value;
            },
            enumerable: true,
            configurable: true
        });
        MajorMinorFontScheme.prototype.copyFormat = function (majorMinor) {
            if (!ej2_base_1.isNullOrUndefined(majorMinor)) {
                this.fntTypeface = majorMinor.fntTypeface;
                this.fntSchemeList = majorMinor.fntSchemeList;
            }
        };
        MajorMinorFontScheme.prototype.destroy = function () {
            this.fntTypeface = undefined;
            this.fntSchemeList = undefined;
        };
        return MajorMinorFontScheme;
    }());
    exports.MajorMinorFontScheme = MajorMinorFontScheme;
});