UNPKG

modaq

Version:

Quiz Bowl Reader using TypeScript, React, and MobX

77 lines 2.98 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FontDialogState = exports.DefaultFontFamily = void 0; const mobx_1 = require("mobx"); const mobx_sync_1 = require("mobx-sync"); exports.DefaultFontFamily = "Segoe UI, Times New Roman, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, serif"; class FontDialogState { constructor(fontFamily, fontSize, textColor, pronunciationGuideColor) { Object.defineProperty(this, "fontFamily", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "fontSize", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "pronunciationGuideColor", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "textColor", { enumerable: true, configurable: true, writable: true, value: void 0 }); mobx_1.makeAutoObservable(this); this.fontFamily = fontFamily; this.fontSize = fontSize; this.pronunciationGuideColor = pronunciationGuideColor; this.textColor = textColor; } resetPronunciationGuideColor() { this.pronunciationGuideColor = undefined; } resetTextColor() { this.textColor = undefined; } setFontFamily(listedFont) { this.fontFamily = listedFont + ", " + exports.DefaultFontFamily; } setFontSize(fontSize) { this.fontSize = fontSize; } setPronunciationGuideColor(color) { this.pronunciationGuideColor = color; } setTextColor(color) { this.textColor = color; } } __decorate([ mobx_sync_1.ignore ], FontDialogState.prototype, "fontFamily", void 0); __decorate([ mobx_sync_1.ignore ], FontDialogState.prototype, "fontSize", void 0); __decorate([ mobx_sync_1.ignore ], FontDialogState.prototype, "pronunciationGuideColor", void 0); __decorate([ mobx_sync_1.ignore ], FontDialogState.prototype, "textColor", void 0); exports.FontDialogState = FontDialogState; //# sourceMappingURL=FontDialogState.js.map