@syncfusion/ej2-documenteditor
Version:
Feature-rich document editor control with built-in support for context menu, options pane and dialogs.
107 lines (106 loc) • 3.25 kB
JavaScript
import { isNullOrUndefined } from '@syncfusion/ej2-base';
import { MajorMinorFontScheme } from './major-minor-font-scheme';
/**
* @private
*/
var FontScheme = /** @class */ (function () {
function FontScheme(node) {
this.majFontScheme = new MajorMinorFontScheme();
this.minFontScheme = new 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 (!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;
}());
export { FontScheme };
/**
* @private
*/
var FontSchemeStruct = /** @class */ (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 (!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;
}());
export { FontSchemeStruct };