UNPKG

@tsparticles/engine

Version:

Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

13 lines (12 loc) • 980 B
import { ErrorCodes } from "./ErrorCodes.js"; const messages = { [ErrorCodes.engineVersionMismatch]: "The tsParticles version is different from the loaded plugins version. Engine version: {0}. Plugin version: {1}", [ErrorCodes.particlePositionNotFound]: "a valid position cannot be found for particle", [ErrorCodes.pluginRegisterAfterLoad]: "Registration APIs must be called before engine initialization; plugins must be added from a registered loader", [ErrorCodes.offscreenCanvasUnsupported]: "OffscreenCanvas is required but not supported by this browser", [ErrorCodes.offscreenCanvasTransferFailed]: "OffscreenCanvas transfer failed", [ErrorCodes.hdrEnableInvalid]: 'Invalid HDR "enable" value: expected a boolean, got "{0}"', [ErrorCodes.hdrModeInvalid]: 'Invalid HDR "mode" value: expected one of {0}, got "{1}"', [ErrorCodes.hdrPeakNitsInvalid]: 'Invalid HDR "peakNits" value: expected a positive number, got "{0}"', }; export { messages };