Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsparticles

Package Overview
Dependencies
Maintainers
1
Versions
380
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsparticles - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0-beta.0

20

browser/index.js

@@ -10,12 +10,12 @@ import { loadAbsorbersPlugin } from "@tsparticles/plugin-absorbers";

import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
export async function loadFull(engine) {
await loadSlim(engine);
await loadDestroyUpdater(engine);
await loadRollUpdater(engine);
await loadTiltUpdater(engine);
await loadTwinkleUpdater(engine);
await loadWobbleUpdater(engine);
await loadExternalTrailInteraction(engine);
await loadAbsorbersPlugin(engine);
await loadEmittersPlugin(engine);
export async function loadFull(engine, refresh = true) {
await loadDestroyUpdater(engine, false);
await loadRollUpdater(engine, false);
await loadTiltUpdater(engine, false);
await loadTwinkleUpdater(engine, false);
await loadWobbleUpdater(engine, false);
await loadExternalTrailInteraction(engine, false);
await loadAbsorbersPlugin(engine, false);
await loadEmittersPlugin(engine, false);
await loadSlim(engine, refresh);
}
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -22,15 +13,13 @@ exports.loadFull = void 0;

const updater_wobble_1 = require("@tsparticles/updater-wobble");
function loadFull(engine) {
return __awaiter(this, void 0, void 0, function* () {
yield (0, slim_1.loadSlim)(engine);
yield (0, updater_destroy_1.loadDestroyUpdater)(engine);
yield (0, updater_roll_1.loadRollUpdater)(engine);
yield (0, updater_tilt_1.loadTiltUpdater)(engine);
yield (0, updater_twinkle_1.loadTwinkleUpdater)(engine);
yield (0, updater_wobble_1.loadWobbleUpdater)(engine);
yield (0, interaction_external_trail_1.loadExternalTrailInteraction)(engine);
yield (0, plugin_absorbers_1.loadAbsorbersPlugin)(engine);
yield (0, plugin_emitters_1.loadEmittersPlugin)(engine);
});
async function loadFull(engine, refresh = true) {
await (0, updater_destroy_1.loadDestroyUpdater)(engine, false);
await (0, updater_roll_1.loadRollUpdater)(engine, false);
await (0, updater_tilt_1.loadTiltUpdater)(engine, false);
await (0, updater_twinkle_1.loadTwinkleUpdater)(engine, false);
await (0, updater_wobble_1.loadWobbleUpdater)(engine, false);
await (0, interaction_external_trail_1.loadExternalTrailInteraction)(engine, false);
await (0, plugin_absorbers_1.loadAbsorbersPlugin)(engine, false);
await (0, plugin_emitters_1.loadEmittersPlugin)(engine, false);
await (0, slim_1.loadSlim)(engine, refresh);
}
exports.loadFull = loadFull;

@@ -10,12 +10,12 @@ import { loadAbsorbersPlugin } from "@tsparticles/plugin-absorbers";

import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
export async function loadFull(engine) {
await loadSlim(engine);
await loadDestroyUpdater(engine);
await loadRollUpdater(engine);
await loadTiltUpdater(engine);
await loadTwinkleUpdater(engine);
await loadWobbleUpdater(engine);
await loadExternalTrailInteraction(engine);
await loadAbsorbersPlugin(engine);
await loadEmittersPlugin(engine);
export async function loadFull(engine, refresh = true) {
await loadDestroyUpdater(engine, false);
await loadRollUpdater(engine, false);
await loadTiltUpdater(engine, false);
await loadTwinkleUpdater(engine, false);
await loadWobbleUpdater(engine, false);
await loadExternalTrailInteraction(engine, false);
await loadAbsorbersPlugin(engine, false);
await loadEmittersPlugin(engine, false);
await loadSlim(engine, refresh);
}
{
"name": "tsparticles",
"version": "3.0.0-alpha.1",
"version": "3.0.0-beta.0",
"description": "Easily create highly customizable particle 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.",

@@ -69,6 +69,16 @@ "homepage": "https://particles.js.org",

},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/matteobruni"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/matteobruni"
},
{
"type": "github",
"url": "https://github.com/sponsors/tsparticles"
},
{
"type": "buymeacoffee",
"url": "https://www.buymeacoffee.com/matteobruni"
}
],
"main": "cjs/index.js",

@@ -79,17 +89,18 @@ "module": "esm/index.js",

"types": "types/index.d.ts",
"sideEffects": false,
"dependencies": {
"@tsparticles/engine": "^3.0.0-beta.0",
"@tsparticles/interaction-external-trail": "^3.0.0-beta.0",
"@tsparticles/plugin-absorbers": "^3.0.0-beta.0",
"@tsparticles/plugin-emitters": "^3.0.0-beta.0",
"@tsparticles/slim": "^3.0.0-beta.0",
"@tsparticles/updater-destroy": "^3.0.0-beta.0",
"@tsparticles/updater-roll": "^3.0.0-beta.0",
"@tsparticles/updater-tilt": "^3.0.0-beta.0",
"@tsparticles/updater-twinkle": "^3.0.0-beta.0",
"@tsparticles/updater-wobble": "^3.0.0-beta.0"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@tsparticles/engine": "^3.0.0-alpha.1",
"@tsparticles/interaction-external-trail": "^3.0.0-alpha.1",
"@tsparticles/plugin-absorbers": "^3.0.0-alpha.1",
"@tsparticles/plugin-emitters": "^3.0.0-alpha.1",
"@tsparticles/slim": "^3.0.0-alpha.1",
"@tsparticles/updater-destroy": "^3.0.0-alpha.1",
"@tsparticles/updater-roll": "^3.0.0-alpha.1",
"@tsparticles/updater-tilt": "^3.0.0-alpha.1",
"@tsparticles/updater-twinkle": "^3.0.0-alpha.1",
"@tsparticles/updater-wobble": "^3.0.0-alpha.1"
}
}
}

@@ -8,14 +8,15 @@ [![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)

[tsParticles](https://github.com/matteobruni/tsparticles) full bundle loads all the v1 features to
a `tsparticles-engine` instance.
a `@tsparticles/engine` instance.
**Included Packages**
- [tsparticles-engine](https://github.com/matteobruni/tsparticles/tree/main/engine)
- [tsparticles-slim (and all its dependencies)](https://github.com/matteobruni/tsparticles/tree/main/bundles/slim)
- [tsparticles-interaction-external-trail](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/trail)
- [tsparticles-plugin-absorbers](https://github.com/matteobruni/tsparticles/tree/main/plugins/absorbers)
- [tsparticles-plugin-emitters](https://github.com/matteobruni/tsparticles/tree/main/plugins/emitters)
- [tsparticles-updater-roll](https://github.com/matteobruni/tsparticles/tree/main/updaters/roll)
- [tsparticles-updater-tilt](https://github.com/matteobruni/tsparticles/tree/main/updaters/tilt)
- [tsparticles-updater-wobble](https://github.com/matteobruni/tsparticles/tree/main/updaters/wobble)
- [@tsparticles/slim (and all its dependencies)](https://github.com/matteobruni/tsparticles/tree/main/bundles/slim)
- [@tsparticles/interaction-external-trail](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/trail)
- [@tsparticles/plugin-absorbers](https://github.com/matteobruni/tsparticles/tree/main/plugins/absorbers)
- [@tsparticles/plugin-emitters](https://github.com/matteobruni/tsparticles/tree/main/plugins/emitters)
- [@tsparticles/updater-destroy](https://github.com/matteobruni/tsparticles/tree/main/updaters/destroy)
- [@tsparticles/updater-roll](https://github.com/matteobruni/tsparticles/tree/main/updaters/roll)
- [@tsparticles/updater-tilt](https://github.com/matteobruni/tsparticles/tree/main/updaters/tilt)
- [@tsparticles/updater-twinkle](https://github.com/matteobruni/tsparticles/tree/main/updaters/twinkle)
- [@tsparticles/updater-wobble](https://github.com/matteobruni/tsparticles/tree/main/updaters/wobble)

@@ -46,4 +47,4 @@ ## How to use it

A note about `tsparticles-slim` can be made: it's not mandatory to include all of its dependencies, the slim bundle file
is enough, and if this is done the `tsparticles-engine` is not needed, since it's already bundled in the slim bundle.
A note about `@tsparticles/slim` can be made: it's not mandatory to include all of its dependencies, the slim bundle file
is enough, and if this is done the `@tsparticles/engine` is not needed, since it's already bundled in the slim bundle.

@@ -78,3 +79,3 @@ ### Usage

import Particles from "react-particles";
import type { Engine } from "tsparticles-engine";
import type { Engine } from "@tsparticles/engine";
import { loadFull } from "tsparticles";

@@ -104,3 +105,3 @@

import Particles from "react-particles";
import type { Engine } from "tsparticles-engine";
import type { Engine } from "@tsparticles/engine";
import { loadFull } from "tsparticles";

@@ -144,3 +145,3 @@

```html
<angular-particles [id]="id" [options]="options" [particlesInit]="particlesInit"></angular-particles>
<ng-particles [id]="id" [options]="options" [particlesInit]="particlesInit"></ng-particles>
```

@@ -163,5 +164,5 @@

<Particles
id="tsparticles"
options={options}
particlesInit={particlesInit}
id="tsparticles"
options={options}
particlesInit={particlesInit}
/>

@@ -168,0 +169,0 @@ ```

@@ -1,8 +0,1 @@

/*!
* Author : Matteo Bruni
* MIT license: https://opensource.org/licenses/MIT
* Demo / Generator : https://particles.js.org/
* GitHub : https://www.github.com/matteobruni/tsparticles
* How to use? : Check the GitHub README
* v3.0.0-alpha.1
*/
/*! tsParticles v3.0.0-beta.0 by Matteo Bruni */

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.0.0-alpha.1
* v3.0.0-beta.0
*/

@@ -160,3 +160,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "loadFull": () => (/* binding */ loadFull)
/* harmony export */ loadFull: () => (/* binding */ loadFull)
/* harmony export */ });

@@ -190,12 +190,12 @@ /* harmony import */ var _tsparticles_plugin_absorbers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94);

async function loadFull(engine) {
await (0,_tsparticles_slim__WEBPACK_IMPORTED_MODULE_5__.loadSlim)(engine);
await (0,_tsparticles_updater_destroy__WEBPACK_IMPORTED_MODULE_1__.loadDestroyUpdater)(engine);
await (0,_tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__.loadRollUpdater)(engine);
await (0,_tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_6__.loadTiltUpdater)(engine);
await (0,_tsparticles_updater_twinkle__WEBPACK_IMPORTED_MODULE_7__.loadTwinkleUpdater)(engine);
await (0,_tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__.loadWobbleUpdater)(engine);
await (0,_tsparticles_interaction_external_trail__WEBPACK_IMPORTED_MODULE_3__.loadExternalTrailInteraction)(engine);
await (0,_tsparticles_plugin_absorbers__WEBPACK_IMPORTED_MODULE_0__.loadAbsorbersPlugin)(engine);
await (0,_tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_2__.loadEmittersPlugin)(engine);
async function loadFull(engine, refresh = true) {
await (0,_tsparticles_updater_destroy__WEBPACK_IMPORTED_MODULE_1__.loadDestroyUpdater)(engine, false);
await (0,_tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__.loadRollUpdater)(engine, false);
await (0,_tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_6__.loadTiltUpdater)(engine, false);
await (0,_tsparticles_updater_twinkle__WEBPACK_IMPORTED_MODULE_7__.loadTwinkleUpdater)(engine, false);
await (0,_tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__.loadWobbleUpdater)(engine, false);
await (0,_tsparticles_interaction_external_trail__WEBPACK_IMPORTED_MODULE_3__.loadExternalTrailInteraction)(engine, false);
await (0,_tsparticles_plugin_absorbers__WEBPACK_IMPORTED_MODULE_0__.loadAbsorbersPlugin)(engine, false);
await (0,_tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_2__.loadEmittersPlugin)(engine, false);
await (0,_tsparticles_slim__WEBPACK_IMPORTED_MODULE_5__.loadSlim)(engine, refresh);
}

@@ -202,0 +202,0 @@ })();

/*! For license information please see tsparticles.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/plugin-absorbers"),require("@tsparticles/updater-destroy"),require("@tsparticles/plugin-emitters"),require("@tsparticles/interaction-external-trail"),require("@tsparticles/updater-roll"),require("@tsparticles/slim"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-twinkle"),require("@tsparticles/updater-wobble"));else if("function"==typeof define&&define.amd)define(["@tsparticles/plugin-absorbers","@tsparticles/updater-destroy","@tsparticles/plugin-emitters","@tsparticles/interaction-external-trail","@tsparticles/updater-roll","@tsparticles/slim","@tsparticles/updater-tilt","@tsparticles/updater-twinkle","@tsparticles/updater-wobble"],t);else{var r="object"==typeof exports?t(require("@tsparticles/plugin-absorbers"),require("@tsparticles/updater-destroy"),require("@tsparticles/plugin-emitters"),require("@tsparticles/interaction-external-trail"),require("@tsparticles/updater-roll"),require("@tsparticles/slim"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-twinkle"),require("@tsparticles/updater-wobble")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((e,t,r,i,a,s,l,o,p)=>(()=>{"use strict";var d={889:e=>{e.exports=i},94:t=>{t.exports=e},68:e=>{e.exports=r},830:e=>{e.exports=s},344:e=>{e.exports=t},734:e=>{e.exports=a},448:e=>{e.exports=l},4:e=>{e.exports=o},83:e=>{e.exports=p}},n={};function u(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return d[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{loadFull:()=>d});var e=u(94),t=u(344),r=u(68),i=u(889),a=u(734),s=u(830),l=u(448),o=u(4),p=u(83);async function d(d){await(0,s.loadSlim)(d),await(0,t.loadDestroyUpdater)(d),await(0,a.loadRollUpdater)(d),await(0,l.loadTiltUpdater)(d),await(0,o.loadTwinkleUpdater)(d),await(0,p.loadWobbleUpdater)(d),await(0,i.loadExternalTrailInteraction)(d),await(0,e.loadAbsorbersPlugin)(d),await(0,r.loadEmittersPlugin)(d)}})(),c})()));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/plugin-absorbers"),require("@tsparticles/updater-destroy"),require("@tsparticles/plugin-emitters"),require("@tsparticles/interaction-external-trail"),require("@tsparticles/updater-roll"),require("@tsparticles/slim"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-twinkle"),require("@tsparticles/updater-wobble"));else if("function"==typeof define&&define.amd)define(["@tsparticles/plugin-absorbers","@tsparticles/updater-destroy","@tsparticles/plugin-emitters","@tsparticles/interaction-external-trail","@tsparticles/updater-roll","@tsparticles/slim","@tsparticles/updater-tilt","@tsparticles/updater-twinkle","@tsparticles/updater-wobble"],t);else{var r="object"==typeof exports?t(require("@tsparticles/plugin-absorbers"),require("@tsparticles/updater-destroy"),require("@tsparticles/plugin-emitters"),require("@tsparticles/interaction-external-trail"),require("@tsparticles/updater-roll"),require("@tsparticles/slim"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-twinkle"),require("@tsparticles/updater-wobble")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((e,t,r,i,a,s,l,o,p)=>(()=>{"use strict";var d={889:e=>{e.exports=i},94:t=>{t.exports=e},68:e=>{e.exports=r},830:e=>{e.exports=s},344:e=>{e.exports=t},734:e=>{e.exports=a},448:e=>{e.exports=l},4:e=>{e.exports=o},83:e=>{e.exports=p}},n={};function u(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return d[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{loadFull:()=>d});var e=u(94),t=u(344),r=u(68),i=u(889),a=u(734),s=u(830),l=u(448),o=u(4),p=u(83);async function d(d,n=!0){await(0,t.loadDestroyUpdater)(d,!1),await(0,a.loadRollUpdater)(d,!1),await(0,l.loadTiltUpdater)(d,!1),await(0,o.loadTwinkleUpdater)(d,!1),await(0,p.loadWobbleUpdater)(d,!1),await(0,i.loadExternalTrailInteraction)(d,!1),await(0,e.loadAbsorbersPlugin)(d,!1),await(0,r.loadEmittersPlugin)(d,!1),await(0,s.loadSlim)(d,n)}})(),c})()));

@@ -1,8 +0,1 @@

/*!
* Author : Matteo Bruni
* MIT license: https://opensource.org/licenses/MIT
* Demo / Generator : https://particles.js.org/
* GitHub : https://www.github.com/matteobruni/tsparticles
* How to use? : Check the GitHub README
* v3.0.0-alpha.1
*/
/*! tsParticles v3.0.0-beta.0 by Matteo Bruni */
import type { Engine } from "@tsparticles/engine";
export declare function loadFull(engine: Engine): Promise<void>;
export declare function loadFull(engine: Engine, refresh?: boolean): Promise<void>;

@@ -22,14 +22,14 @@ (function (factory) {

const updater_wobble_1 = require("@tsparticles/updater-wobble");
async function loadFull(engine) {
await (0, slim_1.loadSlim)(engine);
await (0, updater_destroy_1.loadDestroyUpdater)(engine);
await (0, updater_roll_1.loadRollUpdater)(engine);
await (0, updater_tilt_1.loadTiltUpdater)(engine);
await (0, updater_twinkle_1.loadTwinkleUpdater)(engine);
await (0, updater_wobble_1.loadWobbleUpdater)(engine);
await (0, interaction_external_trail_1.loadExternalTrailInteraction)(engine);
await (0, plugin_absorbers_1.loadAbsorbersPlugin)(engine);
await (0, plugin_emitters_1.loadEmittersPlugin)(engine);
async function loadFull(engine, refresh = true) {
await (0, updater_destroy_1.loadDestroyUpdater)(engine, false);
await (0, updater_roll_1.loadRollUpdater)(engine, false);
await (0, updater_tilt_1.loadTiltUpdater)(engine, false);
await (0, updater_twinkle_1.loadTwinkleUpdater)(engine, false);
await (0, updater_wobble_1.loadWobbleUpdater)(engine, false);
await (0, interaction_external_trail_1.loadExternalTrailInteraction)(engine, false);
await (0, plugin_absorbers_1.loadAbsorbersPlugin)(engine, false);
await (0, plugin_emitters_1.loadEmittersPlugin)(engine, false);
await (0, slim_1.loadSlim)(engine, refresh);
}
exports.loadFull = loadFull;
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc