UNPKG

@tsparticles/plugin-emitters-shape-canvas

Version:

tsParticles emitters shape canvas plugin

35 lines (34 loc) 929 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextFontOptions = void 0; const engine_1 = require("@tsparticles/engine"); class TextFontOptions { constructor() { this.family = "Verdana"; this.size = 32; this.style = ""; this.variant = ""; this.weight = ""; } load(data) { if ((0, engine_1.isNull)(data)) { return; } if (data.family !== undefined) { this.family = data.family; } if (data.size !== undefined) { this.size = data.size; } if (data.style !== undefined) { this.style = data.style; } if (data.variant !== undefined) { this.variant = data.variant; } if (data.weight !== undefined) { this.weight = data.weight; } } } exports.TextFontOptions = TextFontOptions;