@tsparticles/interaction-external-push
Advanced tools
Comparing version 3.0.3 to 3.1.0
import { ExternalInteractorBase, getRangeValue, itemFromArray, } from "@tsparticles/engine"; | ||
import { Push } from "./Options/Classes/Push.js"; | ||
const pushMode = "push"; | ||
const pushMode = "push", minQuantity = 0; | ||
export class Pusher extends ExternalInteractorBase { | ||
@@ -16,3 +16,3 @@ constructor(container) { | ||
const quantity = getRangeValue(pushOptions.quantity); | ||
if (quantity <= 0) { | ||
if (quantity <= minQuantity) { | ||
return; | ||
@@ -19,0 +19,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
const Push_js_1 = require("./Options/Classes/Push.js"); | ||
const pushMode = "push"; | ||
const pushMode = "push", minQuantity = 0; | ||
class Pusher extends engine_1.ExternalInteractorBase { | ||
@@ -20,3 +20,3 @@ constructor(container) { | ||
const quantity = (0, engine_1.getRangeValue)(pushOptions.quantity); | ||
if (quantity <= 0) { | ||
if (quantity <= minQuantity) { | ||
return; | ||
@@ -23,0 +23,0 @@ } |
import { ExternalInteractorBase, getRangeValue, itemFromArray, } from "@tsparticles/engine"; | ||
import { Push } from "./Options/Classes/Push.js"; | ||
const pushMode = "push"; | ||
const pushMode = "push", minQuantity = 0; | ||
export class Pusher extends ExternalInteractorBase { | ||
@@ -16,3 +16,3 @@ constructor(container) { | ||
const quantity = getRangeValue(pushOptions.quantity); | ||
if (quantity <= 0) { | ||
if (quantity <= minQuantity) { | ||
return; | ||
@@ -19,0 +19,0 @@ } |
{ | ||
"name": "@tsparticles/interaction-external-push", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"description": "tsParticles push external interaction", | ||
@@ -90,3 +90,3 @@ "homepage": "https://particles.js.org", | ||
"dependencies": { | ||
"@tsparticles/engine": "^3.0.3" | ||
"@tsparticles/engine": "^3.1.0" | ||
}, | ||
@@ -93,0 +93,0 @@ "publishConfig": { |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v3.0.3 | ||
* v3.1.0 | ||
*/ | ||
@@ -131,3 +131,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
const pushMode = "push"; | ||
const pushMode = "push", | ||
minQuantity = 0; | ||
class Pusher extends engine_root_window_.ExternalInteractorBase { | ||
@@ -147,3 +148,3 @@ constructor(container) { | ||
const quantity = (0,engine_root_window_.getRangeValue)(pushOptions.quantity); | ||
if (quantity <= 0) { | ||
if (quantity <= minQuantity) { | ||
return; | ||
@@ -150,0 +151,0 @@ } |
@@ -1,1 +0,1 @@ | ||
/*! tsParticles Push External Interaction v3.0.3 by Matteo Bruni */ | ||
/*! tsParticles Push External Interaction v3.1.0 by Matteo Bruni */ |
import type { Container, Options } from "@tsparticles/engine"; | ||
import type { IPush } from "./Options/Interfaces/IPush.js"; | ||
import type { Push } from "./Options/Classes/Push.js"; | ||
export type IPushMode = { | ||
export interface IPushMode { | ||
push: IPush; | ||
}; | ||
export type PushMode = { | ||
} | ||
export interface PushMode { | ||
push?: Push; | ||
}; | ||
} | ||
export type PushContainer = Container & { | ||
@@ -11,0 +11,0 @@ actualOptions: PushOptions; |
@@ -15,3 +15,3 @@ (function (factory) { | ||
const Push_js_1 = require("./Options/Classes/Push.js"); | ||
const pushMode = "push"; | ||
const pushMode = "push", minQuantity = 0; | ||
class Pusher extends engine_1.ExternalInteractorBase { | ||
@@ -29,3 +29,3 @@ constructor(container) { | ||
const quantity = (0, engine_1.getRangeValue)(pushOptions.quantity); | ||
if (quantity <= 0) { | ||
if (quantity <= minQuantity) { | ||
return; | ||
@@ -32,0 +32,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
306439
627
Updated@tsparticles/engine@^3.1.0