@tsparticles/interaction-external-slow 3.0.0-beta.0 → 3.0.0-beta.2
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/README.md +1 -1
- package/browser/Slower.js +1 -1
- package/browser/index.js +3 -3
- package/browser/package.json +1 -0
- package/cjs/Slower.js +2 -2
- package/cjs/index.js +4 -4
- package/cjs/package.json +1 -0
- package/esm/Slower.js +1 -1
- package/esm/index.js +3 -3
- package/esm/package.json +1 -0
- package/package.json +18 -6
- package/report.html +23 -5
- package/tsparticles.interaction.external.slow.js +1 -1
- package/tsparticles.interaction.external.slow.min.js.LICENSE.txt +1 -1
- package/types/Options/Classes/Slow.d.ts +1 -1
- package/types/Options/Classes/SlowOptions.d.ts +1 -1
- package/types/Slower.d.ts +1 -1
- package/types/Types.d.ts +3 -3
- package/types/index.d.ts +2 -2
- package/umd/Slower.js +3 -3
- package/umd/index.js +5 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
* v3.0.0-beta.
|
|
7
|
+
* v3.0.0-beta.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Slow External Interaction v3.0.0-beta.
|
|
1
|
+
/*! tsParticles Slow External Interaction v3.0.0-beta.2 by Matteo Bruni */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IOptionLoader, RecursivePartial } from "@tsparticles/engine";
|
|
2
|
-
import type { ISlow } from "../Interfaces/ISlow";
|
|
2
|
+
import type { ISlow } from "../Interfaces/ISlow.js";
|
|
3
3
|
export declare class Slow implements ISlow, IOptionLoader<ISlow> {
|
|
4
4
|
factor: number;
|
|
5
5
|
radius: number;
|
package/types/Slower.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExternalInteractorBase, type IDelta, type IModes, type Modes, type Particle, type RecursivePartial } from "@tsparticles/engine";
|
|
2
|
-
import type { ISlowMode, SlowContainer, SlowMode } from "./Types";
|
|
2
|
+
import type { ISlowMode, SlowContainer, SlowMode } from "./Types.js";
|
|
3
3
|
export declare class Slower extends ExternalInteractorBase<SlowContainer> {
|
|
4
4
|
constructor(container: SlowContainer);
|
|
5
5
|
clear(particle: Particle, delta: IDelta, force?: boolean): void;
|
package/types/Types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Container } from "@tsparticles/engine";
|
|
2
|
-
import type { ISlow } from "./Options/Interfaces/ISlow";
|
|
3
|
-
import type { Slow } from "./Options/Classes/Slow";
|
|
4
|
-
import type { SlowOptions } from "./Options/Classes/SlowOptions";
|
|
2
|
+
import type { ISlow } from "./Options/Interfaces/ISlow.js";
|
|
3
|
+
import type { Slow } from "./Options/Classes/Slow.js";
|
|
4
|
+
import type { SlowOptions } from "./Options/Classes/SlowOptions.js";
|
|
5
5
|
export type ISlowMode = {
|
|
6
6
|
slow: ISlow;
|
|
7
7
|
};
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Engine } from "@tsparticles/engine";
|
|
2
2
|
export declare function loadExternalSlowInteraction(engine: Engine, refresh?: boolean): Promise<void>;
|
|
3
|
-
export * from "./Options/Classes/Slow";
|
|
4
|
-
export * from "./Options/Interfaces/ISlow";
|
|
3
|
+
export * from "./Options/Classes/Slow.js";
|
|
4
|
+
export * from "./Options/Interfaces/ISlow.js";
|
package/umd/Slower.js
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "@tsparticles/engine", "./Options/Classes/Slow"], factory);
|
|
7
|
+
define(["require", "exports", "@tsparticles/engine", "./Options/Classes/Slow.js"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Slower = void 0;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
|
-
const
|
|
14
|
+
const Slow_js_1 = require("./Options/Classes/Slow.js");
|
|
15
15
|
class Slower extends engine_1.ExternalInteractorBase {
|
|
16
16
|
constructor(container) {
|
|
17
17
|
super(container);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
loadModeOptions(options, ...sources) {
|
|
39
39
|
if (!options.slow) {
|
|
40
|
-
options.slow = new
|
|
40
|
+
options.slow = new Slow_js_1.Slow();
|
|
41
41
|
}
|
|
42
42
|
for (const source of sources) {
|
|
43
43
|
options.slow.load(source?.slow);
|
package/umd/index.js
CHANGED
|
@@ -18,17 +18,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
if (v !== undefined) module.exports = v;
|
|
19
19
|
}
|
|
20
20
|
else if (typeof define === "function" && define.amd) {
|
|
21
|
-
define(["require", "exports", "./Slower", "./Options/Classes/Slow", "./Options/Interfaces/ISlow"], factory);
|
|
21
|
+
define(["require", "exports", "./Slower.js", "./Options/Classes/Slow.js", "./Options/Interfaces/ISlow.js"], factory);
|
|
22
22
|
}
|
|
23
23
|
})(function (require, exports) {
|
|
24
24
|
"use strict";
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.loadExternalSlowInteraction = void 0;
|
|
27
|
-
const
|
|
27
|
+
const Slower_js_1 = require("./Slower.js");
|
|
28
28
|
async function loadExternalSlowInteraction(engine, refresh = true) {
|
|
29
|
-
await engine.addInteractor("externalSlow", (container) => new
|
|
29
|
+
await engine.addInteractor("externalSlow", (container) => new Slower_js_1.Slower(container), refresh);
|
|
30
30
|
}
|
|
31
31
|
exports.loadExternalSlowInteraction = loadExternalSlowInteraction;
|
|
32
|
-
__exportStar(require("./Options/Classes/Slow"), exports);
|
|
33
|
-
__exportStar(require("./Options/Interfaces/ISlow"), exports);
|
|
32
|
+
__exportStar(require("./Options/Classes/Slow.js"), exports);
|
|
33
|
+
__exportStar(require("./Options/Interfaces/ISlow.js"), exports);
|
|
34
34
|
});
|