版博士V2.0程序
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

33 satır
1006 B

  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