版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const CSSRule_1 = __importDefault(require("../CSSRule"));
  7. const CSSStyleDeclaration_1 = __importDefault(require("../declaration/CSSStyleDeclaration"));
  8. /**
  9. * CSSRule interface.
  10. */
  11. class CSSFontFaceRule extends CSSRule_1.default {
  12. constructor() {
  13. super(...arguments);
  14. this.type = CSSRule_1.default.FONT_FACE_RULE;
  15. this._cssText = '';
  16. this._style = null;
  17. }
  18. /**
  19. * Returns style.
  20. *
  21. * @returns Style.
  22. */
  23. get style() {
  24. if (!this._style) {
  25. this._style = new CSSStyleDeclaration_1.default();
  26. this._style.parentRule = this;
  27. this._style.cssText = this._cssText;
  28. }
  29. return this._style;
  30. }
  31. }
  32. exports.default = CSSFontFaceRule;
  33. //# sourceMappingURL=CSSFontFaceRule.js.map