UNPKG

@tsparticles/plugin-canvas-mask

Version:

tsParticles canvas mask plugin

23 lines (22 loc) 588 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextMaskLine = void 0; const engine_1 = require("@tsparticles/engine"); class TextMaskLine { constructor() { this.separator = "\n"; this.spacing = 10; } load(data) { if ((0, engine_1.isNull)(data)) { return; } if (data.separator !== undefined) { this.separator = data.separator; } if (data.spacing !== undefined) { this.spacing = data.spacing; } } } exports.TextMaskLine = TextMaskLine;