@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
111 lines (110 loc) • 4.11 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomFontFamily = exports.InheritFontFamily = exports.FontFamilyTypes = exports.CustomLineHeight = exports.InheritLineHeight = exports.LineHeightTypes = exports.CustomFontSize = exports.InheritFontSize = exports.FontSizeTypes = exports.CustomFontColor = exports.InheritFontColor = exports.FontColorTypes = exports.CustomFontStyle = exports.InheritFontStyle = exports.FontStyleTypes = void 0;
////////////////////////////////////////////////////////////
//// font style
////////////////////////////////////////////////////////////
var FontStyleTypes;
(function (FontStyleTypes) {
FontStyleTypes["Inherit"] = "IInheritFontStyle";
FontStyleTypes["Custom"] = "ICustomFontStyle";
})(FontStyleTypes = exports.FontStyleTypes || (exports.FontStyleTypes = {}));
class InheritFontStyle {
constructor() {
this.fontStyleType = FontStyleTypes.Inherit;
}
}
exports.InheritFontStyle = InheritFontStyle;
class CustomFontStyle {
constructor(bold, italic, underline) {
this.bold = bold;
this.italic = italic;
this.underline = underline;
this.fontStyleType = FontStyleTypes.Custom;
}
}
exports.CustomFontStyle = CustomFontStyle;
////////////////////////////////////////////////////////////////
/// font color
///////////////////////////////////////////////////////////////
var FontColorTypes;
(function (FontColorTypes) {
FontColorTypes["Inherit"] = "IInheritFontColor";
FontColorTypes["Custom"] = "ICustomFontColor";
})(FontColorTypes = exports.FontColorTypes || (exports.FontColorTypes = {}));
class InheritFontColor {
constructor() {
this.fontColorType = FontColorTypes.Inherit;
}
}
exports.InheritFontColor = InheritFontColor;
class CustomFontColor {
constructor(value) {
this.value = value;
this.fontColorType = FontColorTypes.Custom;
}
}
exports.CustomFontColor = CustomFontColor;
////////////////////////////////////////////////////////////////
/// font size
////////////////////////////////////////////////////////////////
var FontSizeTypes;
(function (FontSizeTypes) {
FontSizeTypes["Inherit"] = "IInheritFontSize";
FontSizeTypes["Custom"] = "ICustomFontSize";
})(FontSizeTypes = exports.FontSizeTypes || (exports.FontSizeTypes = {}));
class InheritFontSize {
constructor() {
this.fontSizeType = FontSizeTypes.Inherit;
}
}
exports.InheritFontSize = InheritFontSize;
class CustomFontSize {
constructor(value) {
this.value = value;
this.fontSizeType = FontSizeTypes.Custom;
}
}
exports.CustomFontSize = CustomFontSize;
////////////////////////////////////////////////////////////////
/// line height
////////////////////////////////////////////////////////////////
var LineHeightTypes;
(function (LineHeightTypes) {
LineHeightTypes["Inherit"] = "IInheritLineHeight";
LineHeightTypes["Custom"] = "ICustomLineHeight";
})(LineHeightTypes = exports.LineHeightTypes || (exports.LineHeightTypes = {}));
class InheritLineHeight {
constructor() {
this.lineHeightType = LineHeightTypes.Inherit;
}
}
exports.InheritLineHeight = InheritLineHeight;
class CustomLineHeight {
constructor(value) {
this.value = value;
this.lineHeightType = LineHeightTypes.Custom;
}
}
exports.CustomLineHeight = CustomLineHeight;
////////////////////////////////////////////////////////////////
/// Font Family types
////////////////////////////////////////////////////////////////
var FontFamilyTypes;
(function (FontFamilyTypes) {
FontFamilyTypes["Inherit"] = "IInheritFontFamily";
FontFamilyTypes["Custom"] = "ICustomFontFamily";
})(FontFamilyTypes = exports.FontFamilyTypes || (exports.FontFamilyTypes = {}));
class InheritFontFamily {
constructor() {
this.fontFamilyType = FontFamilyTypes.Inherit;
}
}
exports.InheritFontFamily = InheritFontFamily;
class CustomFontFamily {
constructor(value) {
this.value = value;
this.fontFamilyType = FontFamilyTypes.Custom;
}
}
exports.CustomFontFamily = CustomFontFamily;