UNPKG

@tsparticles/plugin-canvas-mask

Version:

tsParticles canvas mask plugin

19 lines (18 loc) 516 B
import { isNull, loadProperty } from "@tsparticles/engine"; export class FontTextMask { family = "sans-serif"; size = 100; style = ""; variant = ""; weight = ""; load(data) { if (isNull(data)) { return; } loadProperty(this, "family", data.family); loadProperty(this, "size", data.size); loadProperty(this, "style", data.style); loadProperty(this, "variant", data.variant); loadProperty(this, "weight", data.weight); } }