@tsparticles/updater-roll
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
@@ -1,4 +0,4 @@ | ||
import { RollUpdater } from "./RollUpdater"; | ||
import { RollUpdater } from "./RollUpdater.js"; | ||
export async function loadRollUpdater(engine, refresh = true) { | ||
await engine.addParticleUpdater("roll", () => new RollUpdater(), refresh); | ||
} |
import { OptionsColor, setRangeValue, } from "@tsparticles/engine"; | ||
import { RollLight } from "./RollLight"; | ||
import { RollLight } from "./RollLight.js"; | ||
export class Roll { | ||
@@ -4,0 +4,0 @@ constructor() { |
@@ -1,3 +0,3 @@ | ||
import { initParticle, updateRoll } from "./Utils"; | ||
import { Roll } from "./Options/Classes/Roll"; | ||
import { initParticle, updateRoll } from "./Utils.js"; | ||
import { Roll } from "./Options/Classes/Roll.js"; | ||
export class RollUpdater { | ||
@@ -4,0 +4,0 @@ getTransformValues(particle) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadRollUpdater = void 0; | ||
const RollUpdater_1 = require("./RollUpdater"); | ||
const RollUpdater_js_1 = require("./RollUpdater.js"); | ||
async function loadRollUpdater(engine, refresh = true) { | ||
await engine.addParticleUpdater("roll", () => new RollUpdater_1.RollUpdater(), refresh); | ||
await engine.addParticleUpdater("roll", () => new RollUpdater_js_1.RollUpdater(), refresh); | ||
} | ||
exports.loadRollUpdater = loadRollUpdater; |
@@ -5,8 +5,8 @@ "use strict"; | ||
const engine_1 = require("@tsparticles/engine"); | ||
const RollLight_1 = require("./RollLight"); | ||
const RollLight_js_1 = require("./RollLight.js"); | ||
class Roll { | ||
constructor() { | ||
this.darken = new RollLight_1.RollLight(); | ||
this.darken = new RollLight_js_1.RollLight(); | ||
this.enable = false; | ||
this.enlighten = new RollLight_1.RollLight(); | ||
this.enlighten = new RollLight_js_1.RollLight(); | ||
this.mode = "vertical"; | ||
@@ -13,0 +13,0 @@ this.speed = 25; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RollUpdater = void 0; | ||
const Utils_1 = require("./Utils"); | ||
const Roll_1 = require("./Options/Classes/Roll"); | ||
const Utils_js_1 = require("./Utils.js"); | ||
const Roll_js_1 = require("./Options/Classes/Roll.js"); | ||
class RollUpdater { | ||
@@ -15,3 +15,3 @@ getTransformValues(particle) { | ||
init(particle) { | ||
(0, Utils_1.initParticle)(particle); | ||
(0, Utils_js_1.initParticle)(particle); | ||
} | ||
@@ -24,3 +24,3 @@ isEnabled(particle) { | ||
if (!options.roll) { | ||
options.roll = new Roll_1.Roll(); | ||
options.roll = new Roll_js_1.Roll(); | ||
} | ||
@@ -35,5 +35,5 @@ for (const source of sources) { | ||
} | ||
(0, Utils_1.updateRoll)(particle, delta); | ||
(0, Utils_js_1.updateRoll)(particle, delta); | ||
} | ||
} | ||
exports.RollUpdater = RollUpdater; |
@@ -1,4 +0,4 @@ | ||
import { RollUpdater } from "./RollUpdater"; | ||
import { RollUpdater } from "./RollUpdater.js"; | ||
export async function loadRollUpdater(engine, refresh = true) { | ||
await engine.addParticleUpdater("roll", () => new RollUpdater(), refresh); | ||
} |
import { OptionsColor, setRangeValue, } from "@tsparticles/engine"; | ||
import { RollLight } from "./RollLight"; | ||
import { RollLight } from "./RollLight.js"; | ||
export class Roll { | ||
@@ -4,0 +4,0 @@ constructor() { |
@@ -1,3 +0,3 @@ | ||
import { initParticle, updateRoll } from "./Utils"; | ||
import { Roll } from "./Options/Classes/Roll"; | ||
import { initParticle, updateRoll } from "./Utils.js"; | ||
import { Roll } from "./Options/Classes/Roll.js"; | ||
export class RollUpdater { | ||
@@ -4,0 +4,0 @@ getTransformValues(particle) { |
{ | ||
"name": "@tsparticles/updater-roll", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.1", | ||
"description": "tsParticles particles roll updater", | ||
@@ -71,10 +71,22 @@ "homepage": "https://particles.js.org", | ||
}, | ||
"main": "cjs/index.js", | ||
"sideEffects": false, | ||
"jsdelivr": "tsparticles.updater.roll.min.js", | ||
"unpkg": "tsparticles.updater.roll.min.js", | ||
"browser": "browser/index.js", | ||
"main": "cjs/index.js", | ||
"module": "esm/index.js", | ||
"types": "types/index.d.ts", | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"browser": "./browser/index.js", | ||
"import": "./esm/index.js", | ||
"require": "./cjs/index.js", | ||
"umd": "./umd/index.js", | ||
"default": "./cjs/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"dependencies": { | ||
"@tsparticles/engine": "^3.0.0-beta.0" | ||
"@tsparticles/engine": "^3.0.0-beta.1" | ||
}, | ||
@@ -81,0 +93,0 @@ "publishConfig": { |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v3.0.0-beta.0 | ||
* v3.0.0-beta.1 | ||
*/ | ||
@@ -10,0 +10,0 @@ (function webpackUniversalModuleDefinition(root, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! tsParticles Roll Updater v3.0.0-beta.0 by Matteo Bruni */ | ||
/*! tsParticles Roll Updater v3.0.0-beta.1 by Matteo Bruni */ |
import { type IOptionLoader, OptionsColor, type RangeValue, type RecursivePartial } from "@tsparticles/engine"; | ||
import type { IRoll } from "../Interfaces/IRoll"; | ||
import { RollLight } from "./RollLight"; | ||
import { RollMode } from "../../RollMode"; | ||
import type { IRoll } from "../Interfaces/IRoll.js"; | ||
import { RollLight } from "./RollLight.js"; | ||
import { RollMode } from "../../RollMode.js"; | ||
export declare class Roll implements IRoll, IOptionLoader<IRoll> { | ||
@@ -6,0 +6,0 @@ backColor?: OptionsColor; |
import { type IOptionLoader, type RangeValue, type RecursivePartial } from "@tsparticles/engine"; | ||
import type { IRollLight } from "../Interfaces/IRollLight"; | ||
import type { IRollLight } from "../Interfaces/IRollLight.js"; | ||
export declare class RollLight implements IRollLight, IOptionLoader<IRollLight> { | ||
@@ -4,0 +4,0 @@ enable: boolean; |
import type { IOptionsColor, RangeValue, SingleOrMultiple } from "@tsparticles/engine"; | ||
import type { IRollLight } from "./IRollLight"; | ||
import type { RollMode } from "../../RollMode"; | ||
import type { IRollLight } from "./IRollLight.js"; | ||
import type { RollMode } from "../../RollMode.js"; | ||
export interface IRoll { | ||
@@ -5,0 +5,0 @@ backColor?: SingleOrMultiple<string> | IOptionsColor; |
import { type IDelta, type IParticleTransformValues, type IParticleUpdater, type Particle, type RecursivePartial } from "@tsparticles/engine"; | ||
import type { IRollParticlesOptions, RollParticle, RollParticlesOptions } from "./Types"; | ||
import type { IRollParticlesOptions, RollParticle, RollParticlesOptions } from "./Types.js"; | ||
export declare class RollUpdater implements IParticleUpdater { | ||
@@ -4,0 +4,0 @@ getTransformValues(particle: Particle): IParticleTransformValues; |
import { type IParticlesOptions, type Particle, type ParticlesOptions } from "@tsparticles/engine"; | ||
import type { IRoll } from "./Options/Interfaces/IRoll"; | ||
import type { Roll } from "./Options/Classes/Roll"; | ||
import type { IRoll } from "./Options/Interfaces/IRoll.js"; | ||
import type { Roll } from "./Options/Classes/Roll.js"; | ||
export type RollParticle = Particle & { | ||
@@ -5,0 +5,0 @@ options: RollParticlesOptions; |
import { type IDelta } from "@tsparticles/engine"; | ||
import type { RollParticle } from "./Types"; | ||
import type { RollParticle } from "./Types.js"; | ||
export declare function initParticle(particle: RollParticle): void; | ||
export declare function updateRoll(particle: RollParticle, delta: IDelta): void; |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./RollUpdater"], factory); | ||
define(["require", "exports", "./RollUpdater.js"], factory); | ||
} | ||
@@ -14,7 +14,7 @@ })(function (require, exports) { | ||
exports.loadRollUpdater = void 0; | ||
const RollUpdater_1 = require("./RollUpdater"); | ||
const RollUpdater_js_1 = require("./RollUpdater.js"); | ||
async function loadRollUpdater(engine, refresh = true) { | ||
await engine.addParticleUpdater("roll", () => new RollUpdater_1.RollUpdater(), refresh); | ||
await engine.addParticleUpdater("roll", () => new RollUpdater_js_1.RollUpdater(), refresh); | ||
} | ||
exports.loadRollUpdater = loadRollUpdater; | ||
}); |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "@tsparticles/engine", "./RollLight"], factory); | ||
define(["require", "exports", "@tsparticles/engine", "./RollLight.js"], factory); | ||
} | ||
@@ -15,8 +15,8 @@ })(function (require, exports) { | ||
const engine_1 = require("@tsparticles/engine"); | ||
const RollLight_1 = require("./RollLight"); | ||
const RollLight_js_1 = require("./RollLight.js"); | ||
class Roll { | ||
constructor() { | ||
this.darken = new RollLight_1.RollLight(); | ||
this.darken = new RollLight_js_1.RollLight(); | ||
this.enable = false; | ||
this.enlighten = new RollLight_1.RollLight(); | ||
this.enlighten = new RollLight_js_1.RollLight(); | ||
this.mode = "vertical"; | ||
@@ -23,0 +23,0 @@ this.speed = 25; |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./Utils", "./Options/Classes/Roll"], factory); | ||
define(["require", "exports", "./Utils.js", "./Options/Classes/Roll.js"], factory); | ||
} | ||
@@ -14,4 +14,4 @@ })(function (require, exports) { | ||
exports.RollUpdater = void 0; | ||
const Utils_1 = require("./Utils"); | ||
const Roll_1 = require("./Options/Classes/Roll"); | ||
const Utils_js_1 = require("./Utils.js"); | ||
const Roll_js_1 = require("./Options/Classes/Roll.js"); | ||
class RollUpdater { | ||
@@ -26,3 +26,3 @@ getTransformValues(particle) { | ||
init(particle) { | ||
(0, Utils_1.initParticle)(particle); | ||
(0, Utils_js_1.initParticle)(particle); | ||
} | ||
@@ -35,3 +35,3 @@ isEnabled(particle) { | ||
if (!options.roll) { | ||
options.roll = new Roll_1.Roll(); | ||
options.roll = new Roll_js_1.Roll(); | ||
} | ||
@@ -46,3 +46,3 @@ for (const source of sources) { | ||
} | ||
(0, Utils_1.updateRoll)(particle, delta); | ||
(0, Utils_js_1.updateRoll)(particle, delta); | ||
} | ||
@@ -49,0 +49,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
322952
55