@tsparticles/effect-filter 4.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/719.min.js +1 -0
- package/LICENSE +21 -0
- package/README.md +82 -0
- package/browser/FilterDrawer.js +30 -0
- package/browser/index.js +9 -0
- package/browser/package.json +1 -0
- package/cjs/FilterDrawer.js +30 -0
- package/cjs/index.js +9 -0
- package/cjs/package.json +1 -0
- package/dist_browser_FilterDrawer_js.js +30 -0
- package/esm/FilterDrawer.js +30 -0
- package/esm/index.js +9 -0
- package/esm/package.json +1 -0
- package/package.json +108 -0
- package/report.html +95 -0
- package/tsparticles.effect.filter.js +307 -0
- package/tsparticles.effect.filter.min.js +2 -0
- package/types/FilterDrawer.d.ts +20 -0
- package/types/index.d.ts +2 -0
package/719.min.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunk_tsparticles_effect_filter=this.webpackChunk_tsparticles_effect_filter||[]).push([[719],{719(t,e,r){r.d(e,{FilterDrawer:()=>l});class l{drawAfter(t){let{context:e}=t;e.restore()}drawBefore(t){let{context:e,particle:r}=t;e.save();let l="number"==typeof r.filterBlur?`${r.filterBlur}px`:r.filterBlur,a=l?`blur(${l})`:"",i=r.filterBrightness,f=i?`brightness(${i})`:"",s=r.filterContrast,o=s?`contrast(${s})`:"",u=r.filterDropShadow,$=r.filterGrayscale,p=$?`grayscale(${$})`:"",c="number"==typeof r.filterHueRotate?`${r.filterHueRotate}deg`:r.filterHueRotate,n=c?`hue-rotate(${c})`:"",h=r.filterInvert,d=h?`invert(${h})`:"",w=r.filterOpacity,y=w?`opacity(${w})`:"",b=r.filterSaturate,S=b?`saturate(${b})`:"",g=r.filterSepia,B=g?`sepia(${g})`:"",_=r.filterUrl,v=_?`url(${_})`:"";e.filter=`${a} ${f} ${o} ${u?"drop-shadow(dropShadowValue)":""} ${p} ${n} ${d} ${y} ${S} ${B} ${v}`.trim()}particleInit(t,e){let r=e.effectData;r&&(e.filterBlur=r.blur,e.filterBrightness=r.brightness,e.filterContrast=r.contrast,e.filterDropShadow=!!r.dropShadow,e.filterGrayscale=r.grayscale,e.filterHueRotate=r.hueRotate,e.filterInvert=r.invert,e.filterOpacity=r.opacity,e.filterSaturate=r.saturate,e.filterSepia=r.sepia,e.filterUrl=r.url)}}}}]);
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Matteo Bruni
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[](https://particles.js.org)
|
|
2
|
+
|
|
3
|
+
# tsParticles Filter Effect
|
|
4
|
+
|
|
5
|
+
[](https://www.jsdelivr.com/package/npm/@tsparticles/effect-filter)
|
|
6
|
+
[](https://www.npmjs.com/package/@tsparticles/effect-filter)
|
|
7
|
+
[](https://www.npmjs.com/package/@tsparticles/effect-filter) [](https://github.com/sponsors/matteobruni)
|
|
8
|
+
|
|
9
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) additional filter effect.
|
|
10
|
+
|
|
11
|
+
## How to use it
|
|
12
|
+
|
|
13
|
+
### CDN / Vanilla JS / jQuery
|
|
14
|
+
|
|
15
|
+
The CDN/Vanilla version JS has one required file in vanilla configuration:
|
|
16
|
+
|
|
17
|
+
Including the `tsparticles.effect.filter.min.js` file will export the function to load the effect:
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
loadFilterEffect
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Usage
|
|
24
|
+
|
|
25
|
+
Once the scripts are loaded you can set up `tsParticles` and the effect like this:
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
(async () => {
|
|
29
|
+
await loadFilterEffect(tsParticles);
|
|
30
|
+
|
|
31
|
+
await tsParticles.load({
|
|
32
|
+
id: "tsparticles",
|
|
33
|
+
options: {
|
|
34
|
+
/* options */
|
|
35
|
+
/* here you can use particles.effect.type: "filter" */
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
})();
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### ESM / CommonJS
|
|
42
|
+
|
|
43
|
+
This package is compatible also with ES or CommonJS modules, firstly this needs to be installed, like this:
|
|
44
|
+
|
|
45
|
+
```shell
|
|
46
|
+
$ npm install @tsparticles/effect-filter
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
or
|
|
50
|
+
|
|
51
|
+
```shell
|
|
52
|
+
$ yarn add @tsparticles/effect-filter
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Then you need to import it in the app, like this:
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
const { tsParticles } = require("@tsparticles/engine");
|
|
59
|
+
const { loadFilterEffect } = require("@tsparticles/effect-filter");
|
|
60
|
+
|
|
61
|
+
(async () => {
|
|
62
|
+
await loadFilterEffect(tsParticles);
|
|
63
|
+
})();
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
or
|
|
67
|
+
|
|
68
|
+
```javascript
|
|
69
|
+
import { tsParticles } from "@tsparticles/engine";
|
|
70
|
+
import { loadFilterEffect } from "@tsparticles/effect-filter";
|
|
71
|
+
|
|
72
|
+
(async () => {
|
|
73
|
+
await loadFilterEffect(tsParticles);
|
|
74
|
+
})();
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Safari compatibility
|
|
78
|
+
|
|
79
|
+
As specified in the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter), canvas
|
|
80
|
+
filter is not enabled by default in Safari (and Safari for iOS).
|
|
81
|
+
|
|
82
|
+
It can be enabled in the browser settings, so be careful with this effect if the target user could use Apple Devices.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export class FilterDrawer {
|
|
2
|
+
drawAfter(data) {
|
|
3
|
+
const { context } = data;
|
|
4
|
+
context.restore();
|
|
5
|
+
}
|
|
6
|
+
drawBefore(data) {
|
|
7
|
+
const { context, particle } = data;
|
|
8
|
+
context.save();
|
|
9
|
+
const blurValue = typeof particle.filterBlur === "number" ? `${particle.filterBlur}px` : particle.filterBlur, blurString = blurValue ? `blur(${blurValue})` : "", brightnessValue = particle.filterBrightness, brightnessString = brightnessValue ? `brightness(${brightnessValue})` : "", contrastValue = particle.filterContrast, contrastString = contrastValue ? `contrast(${contrastValue})` : "", dropShadowValue = particle.filterDropShadow, dropShadowString = dropShadowValue ? "drop-shadow(dropShadowValue)" : "", grayscaleValue = particle.filterGrayscale, grayscaleString = grayscaleValue ? `grayscale(${grayscaleValue})` : "", hueRotateValue = typeof particle.filterHueRotate === "number" ? `${particle.filterHueRotate}deg` : particle.filterHueRotate, hueRotateString = hueRotateValue ? `hue-rotate(${hueRotateValue})` : "", invertValue = particle.filterInvert, invertString = invertValue ? `invert(${invertValue})` : "", opacityValue = particle.filterOpacity, opacityString = opacityValue ? `opacity(${opacityValue})` : "", saturateValue = particle.filterSaturate, saturateString = saturateValue ? `saturate(${saturateValue})` : "", sepiaValue = particle.filterSepia, sepiaString = sepiaValue ? `sepia(${sepiaValue})` : "", urlValue = particle.filterUrl, urlString = urlValue ? `url(${urlValue})` : "";
|
|
10
|
+
context.filter =
|
|
11
|
+
`${blurString} ${brightnessString} ${contrastString} ${dropShadowString} ${grayscaleString} ${hueRotateString} ${invertString} ${opacityString} ${saturateString} ${sepiaString} ${urlString}`.trim();
|
|
12
|
+
}
|
|
13
|
+
particleInit(_container, particle) {
|
|
14
|
+
const effectData = particle.effectData;
|
|
15
|
+
if (!effectData) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
particle.filterBlur = effectData.blur;
|
|
19
|
+
particle.filterBrightness = effectData.brightness;
|
|
20
|
+
particle.filterContrast = effectData.contrast;
|
|
21
|
+
particle.filterDropShadow = !!effectData.dropShadow;
|
|
22
|
+
particle.filterGrayscale = effectData.grayscale;
|
|
23
|
+
particle.filterHueRotate = effectData.hueRotate;
|
|
24
|
+
particle.filterInvert = effectData.invert;
|
|
25
|
+
particle.filterOpacity = effectData.opacity;
|
|
26
|
+
particle.filterSaturate = effectData.saturate;
|
|
27
|
+
particle.filterSepia = effectData.sepia;
|
|
28
|
+
particle.filterUrl = effectData.url;
|
|
29
|
+
}
|
|
30
|
+
}
|
package/browser/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export async function loadFilterEffect(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-beta.5");
|
|
3
|
+
await engine.pluginManager.register(e => {
|
|
4
|
+
e.pluginManager.addEffect("filter", async () => {
|
|
5
|
+
const { FilterDrawer } = await import("./FilterDrawer.js");
|
|
6
|
+
return new FilterDrawer();
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export class FilterDrawer {
|
|
2
|
+
drawAfter(data) {
|
|
3
|
+
const { context } = data;
|
|
4
|
+
context.restore();
|
|
5
|
+
}
|
|
6
|
+
drawBefore(data) {
|
|
7
|
+
const { context, particle } = data;
|
|
8
|
+
context.save();
|
|
9
|
+
const blurValue = typeof particle.filterBlur === "number" ? `${particle.filterBlur}px` : particle.filterBlur, blurString = blurValue ? `blur(${blurValue})` : "", brightnessValue = particle.filterBrightness, brightnessString = brightnessValue ? `brightness(${brightnessValue})` : "", contrastValue = particle.filterContrast, contrastString = contrastValue ? `contrast(${contrastValue})` : "", dropShadowValue = particle.filterDropShadow, dropShadowString = dropShadowValue ? "drop-shadow(dropShadowValue)" : "", grayscaleValue = particle.filterGrayscale, grayscaleString = grayscaleValue ? `grayscale(${grayscaleValue})` : "", hueRotateValue = typeof particle.filterHueRotate === "number" ? `${particle.filterHueRotate}deg` : particle.filterHueRotate, hueRotateString = hueRotateValue ? `hue-rotate(${hueRotateValue})` : "", invertValue = particle.filterInvert, invertString = invertValue ? `invert(${invertValue})` : "", opacityValue = particle.filterOpacity, opacityString = opacityValue ? `opacity(${opacityValue})` : "", saturateValue = particle.filterSaturate, saturateString = saturateValue ? `saturate(${saturateValue})` : "", sepiaValue = particle.filterSepia, sepiaString = sepiaValue ? `sepia(${sepiaValue})` : "", urlValue = particle.filterUrl, urlString = urlValue ? `url(${urlValue})` : "";
|
|
10
|
+
context.filter =
|
|
11
|
+
`${blurString} ${brightnessString} ${contrastString} ${dropShadowString} ${grayscaleString} ${hueRotateString} ${invertString} ${opacityString} ${saturateString} ${sepiaString} ${urlString}`.trim();
|
|
12
|
+
}
|
|
13
|
+
particleInit(_container, particle) {
|
|
14
|
+
const effectData = particle.effectData;
|
|
15
|
+
if (!effectData) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
particle.filterBlur = effectData.blur;
|
|
19
|
+
particle.filterBrightness = effectData.brightness;
|
|
20
|
+
particle.filterContrast = effectData.contrast;
|
|
21
|
+
particle.filterDropShadow = !!effectData.dropShadow;
|
|
22
|
+
particle.filterGrayscale = effectData.grayscale;
|
|
23
|
+
particle.filterHueRotate = effectData.hueRotate;
|
|
24
|
+
particle.filterInvert = effectData.invert;
|
|
25
|
+
particle.filterOpacity = effectData.opacity;
|
|
26
|
+
particle.filterSaturate = effectData.saturate;
|
|
27
|
+
particle.filterSepia = effectData.sepia;
|
|
28
|
+
particle.filterUrl = effectData.url;
|
|
29
|
+
}
|
|
30
|
+
}
|
package/cjs/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export async function loadFilterEffect(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-beta.5");
|
|
3
|
+
await engine.pluginManager.register(e => {
|
|
4
|
+
e.pluginManager.addEffect("filter", async () => {
|
|
5
|
+
const { FilterDrawer } = await import("./FilterDrawer.js");
|
|
6
|
+
return new FilterDrawer();
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
}
|
package/cjs/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Author : Matteo Bruni
|
|
3
|
+
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
+
* Demo / Generator : https://particles.js.org/
|
|
5
|
+
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
+
* How to use? : Check the GitHub README
|
|
7
|
+
* v4.0.0-beta.5
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_effect_filter"] = this["webpackChunk_tsparticles_effect_filter"] || []).push([["dist_browser_FilterDrawer_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "./dist/browser/FilterDrawer.js"
|
|
21
|
+
/*!**************************************!*\
|
|
22
|
+
!*** ./dist/browser/FilterDrawer.js ***!
|
|
23
|
+
\**************************************/
|
|
24
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
+
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FilterDrawer: () => (/* binding */ FilterDrawer)\n/* harmony export */ });\nclass FilterDrawer {\n drawAfter(data) {\n const { context } = data;\n context.restore();\n }\n drawBefore(data) {\n const { context, particle } = data;\n context.save();\n const blurValue = typeof particle.filterBlur === \"number\" ? `${particle.filterBlur}px` : particle.filterBlur, blurString = blurValue ? `blur(${blurValue})` : \"\", brightnessValue = particle.filterBrightness, brightnessString = brightnessValue ? `brightness(${brightnessValue})` : \"\", contrastValue = particle.filterContrast, contrastString = contrastValue ? `contrast(${contrastValue})` : \"\", dropShadowValue = particle.filterDropShadow, dropShadowString = dropShadowValue ? \"drop-shadow(dropShadowValue)\" : \"\", grayscaleValue = particle.filterGrayscale, grayscaleString = grayscaleValue ? `grayscale(${grayscaleValue})` : \"\", hueRotateValue = typeof particle.filterHueRotate === \"number\" ? `${particle.filterHueRotate}deg` : particle.filterHueRotate, hueRotateString = hueRotateValue ? `hue-rotate(${hueRotateValue})` : \"\", invertValue = particle.filterInvert, invertString = invertValue ? `invert(${invertValue})` : \"\", opacityValue = particle.filterOpacity, opacityString = opacityValue ? `opacity(${opacityValue})` : \"\", saturateValue = particle.filterSaturate, saturateString = saturateValue ? `saturate(${saturateValue})` : \"\", sepiaValue = particle.filterSepia, sepiaString = sepiaValue ? `sepia(${sepiaValue})` : \"\", urlValue = particle.filterUrl, urlString = urlValue ? `url(${urlValue})` : \"\";\n context.filter = `${blurString} ${brightnessString} ${contrastString} ${dropShadowString} ${grayscaleString} ${hueRotateString} ${invertString} ${opacityString} ${saturateString} ${sepiaString} ${urlString}`.trim();\n }\n particleInit(_container, particle) {\n const effectData = particle.effectData;\n if (!effectData) {\n return;\n }\n particle.filterBlur = effectData.blur;\n particle.filterBrightness = effectData.brightness;\n particle.filterContrast = effectData.contrast;\n particle.filterDropShadow = !!effectData.dropShadow;\n particle.filterGrayscale = effectData.grayscale;\n particle.filterHueRotate = effectData.hueRotate;\n particle.filterInvert = effectData.invert;\n particle.filterOpacity = effectData.opacity;\n particle.filterSaturate = effectData.saturate;\n particle.filterSepia = effectData.sepia;\n particle.filterUrl = effectData.url;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/effect-filter/./dist/browser/FilterDrawer.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export class FilterDrawer {
|
|
2
|
+
drawAfter(data) {
|
|
3
|
+
const { context } = data;
|
|
4
|
+
context.restore();
|
|
5
|
+
}
|
|
6
|
+
drawBefore(data) {
|
|
7
|
+
const { context, particle } = data;
|
|
8
|
+
context.save();
|
|
9
|
+
const blurValue = typeof particle.filterBlur === "number" ? `${particle.filterBlur}px` : particle.filterBlur, blurString = blurValue ? `blur(${blurValue})` : "", brightnessValue = particle.filterBrightness, brightnessString = brightnessValue ? `brightness(${brightnessValue})` : "", contrastValue = particle.filterContrast, contrastString = contrastValue ? `contrast(${contrastValue})` : "", dropShadowValue = particle.filterDropShadow, dropShadowString = dropShadowValue ? "drop-shadow(dropShadowValue)" : "", grayscaleValue = particle.filterGrayscale, grayscaleString = grayscaleValue ? `grayscale(${grayscaleValue})` : "", hueRotateValue = typeof particle.filterHueRotate === "number" ? `${particle.filterHueRotate}deg` : particle.filterHueRotate, hueRotateString = hueRotateValue ? `hue-rotate(${hueRotateValue})` : "", invertValue = particle.filterInvert, invertString = invertValue ? `invert(${invertValue})` : "", opacityValue = particle.filterOpacity, opacityString = opacityValue ? `opacity(${opacityValue})` : "", saturateValue = particle.filterSaturate, saturateString = saturateValue ? `saturate(${saturateValue})` : "", sepiaValue = particle.filterSepia, sepiaString = sepiaValue ? `sepia(${sepiaValue})` : "", urlValue = particle.filterUrl, urlString = urlValue ? `url(${urlValue})` : "";
|
|
10
|
+
context.filter =
|
|
11
|
+
`${blurString} ${brightnessString} ${contrastString} ${dropShadowString} ${grayscaleString} ${hueRotateString} ${invertString} ${opacityString} ${saturateString} ${sepiaString} ${urlString}`.trim();
|
|
12
|
+
}
|
|
13
|
+
particleInit(_container, particle) {
|
|
14
|
+
const effectData = particle.effectData;
|
|
15
|
+
if (!effectData) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
particle.filterBlur = effectData.blur;
|
|
19
|
+
particle.filterBrightness = effectData.brightness;
|
|
20
|
+
particle.filterContrast = effectData.contrast;
|
|
21
|
+
particle.filterDropShadow = !!effectData.dropShadow;
|
|
22
|
+
particle.filterGrayscale = effectData.grayscale;
|
|
23
|
+
particle.filterHueRotate = effectData.hueRotate;
|
|
24
|
+
particle.filterInvert = effectData.invert;
|
|
25
|
+
particle.filterOpacity = effectData.opacity;
|
|
26
|
+
particle.filterSaturate = effectData.saturate;
|
|
27
|
+
particle.filterSepia = effectData.sepia;
|
|
28
|
+
particle.filterUrl = effectData.url;
|
|
29
|
+
}
|
|
30
|
+
}
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export async function loadFilterEffect(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-beta.5");
|
|
3
|
+
await engine.pluginManager.register(e => {
|
|
4
|
+
e.pluginManager.addEffect("filter", async () => {
|
|
5
|
+
const { FilterDrawer } = await import("./FilterDrawer.js");
|
|
6
|
+
return new FilterDrawer();
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
}
|
package/esm/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsparticles/effect-filter",
|
|
3
|
+
"version": "4.0.0-beta.5",
|
|
4
|
+
"description": "tsParticles filter effect",
|
|
5
|
+
"homepage": "https://particles.js.org",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
|
+
"directory": "effects/filter"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"front-end",
|
|
13
|
+
"frontend",
|
|
14
|
+
"tsparticles",
|
|
15
|
+
"particles.js",
|
|
16
|
+
"particlesjs",
|
|
17
|
+
"particles",
|
|
18
|
+
"particle",
|
|
19
|
+
"canvas",
|
|
20
|
+
"jsparticles",
|
|
21
|
+
"xparticles",
|
|
22
|
+
"particles-js",
|
|
23
|
+
"particles-bg",
|
|
24
|
+
"particles-bg-vue",
|
|
25
|
+
"particles-ts",
|
|
26
|
+
"particles.ts",
|
|
27
|
+
"react-particles-js",
|
|
28
|
+
"react-particles.js",
|
|
29
|
+
"react-particles",
|
|
30
|
+
"react",
|
|
31
|
+
"reactjs",
|
|
32
|
+
"vue-particles",
|
|
33
|
+
"ngx-particles",
|
|
34
|
+
"angular-particles",
|
|
35
|
+
"particleground",
|
|
36
|
+
"vue",
|
|
37
|
+
"vuejs",
|
|
38
|
+
"preact",
|
|
39
|
+
"preactjs",
|
|
40
|
+
"jquery",
|
|
41
|
+
"angularjs",
|
|
42
|
+
"angular",
|
|
43
|
+
"typescript",
|
|
44
|
+
"javascript",
|
|
45
|
+
"animation",
|
|
46
|
+
"web",
|
|
47
|
+
"html5",
|
|
48
|
+
"web-design",
|
|
49
|
+
"webdesign",
|
|
50
|
+
"css",
|
|
51
|
+
"html",
|
|
52
|
+
"css3",
|
|
53
|
+
"animated",
|
|
54
|
+
"background",
|
|
55
|
+
"confetti",
|
|
56
|
+
"canvas",
|
|
57
|
+
"fireworks",
|
|
58
|
+
"fireworks-js",
|
|
59
|
+
"confetti-js",
|
|
60
|
+
"confettijs",
|
|
61
|
+
"fireworksjs",
|
|
62
|
+
"canvas-confetti",
|
|
63
|
+
"tsparticles-effect"
|
|
64
|
+
],
|
|
65
|
+
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"bugs": {
|
|
68
|
+
"url": "https://github.com/tsparticles/tsparticles/issues"
|
|
69
|
+
},
|
|
70
|
+
"funding": [
|
|
71
|
+
{
|
|
72
|
+
"type": "github",
|
|
73
|
+
"url": "https://github.com/sponsors/matteobruni"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "github",
|
|
77
|
+
"url": "https://github.com/sponsors/tsparticles"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "buymeacoffee",
|
|
81
|
+
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"sideEffects": false,
|
|
85
|
+
"jsdelivr": "tsparticles.effect.filter.min.js",
|
|
86
|
+
"unpkg": "tsparticles.effect.filter.min.js",
|
|
87
|
+
"browser": "browser/index.js",
|
|
88
|
+
"main": "cjs/index.js",
|
|
89
|
+
"module": "esm/index.js",
|
|
90
|
+
"types": "types/index.d.ts",
|
|
91
|
+
"exports": {
|
|
92
|
+
".": {
|
|
93
|
+
"types": "./types/index.d.ts",
|
|
94
|
+
"browser": "./browser/index.js",
|
|
95
|
+
"import": "./esm/index.js",
|
|
96
|
+
"require": "./cjs/index.js",
|
|
97
|
+
"default": "./esm/index.js"
|
|
98
|
+
},
|
|
99
|
+
"./package.json": "./package.json"
|
|
100
|
+
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"@tsparticles/engine": "4.0.0-beta.5"
|
|
103
|
+
},
|
|
104
|
+
"publishConfig": {
|
|
105
|
+
"access": "public"
|
|
106
|
+
},
|
|
107
|
+
"type": "module"
|
|
108
|
+
}
|