@tsparticles/plugin-hwb-color 4.0.0-beta.16 → 4.0.0-beta.17

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/browser/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { HwbColorManager } from "./HwbColorManager.js";
2
2
  export async function loadHwbColorPlugin(engine) {
3
- engine.checkVersion("4.0.0-beta.16");
3
+ engine.checkVersion("4.0.0-beta.17");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addColorManager("hwb", new HwbColorManager());
6
6
  });
@@ -1,5 +1,5 @@
1
1
  export async function loadHwbColorPlugin(engine) {
2
- engine.checkVersion("4.0.0-beta.16");
2
+ engine.checkVersion("4.0.0-beta.17");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { HwbColorManager } = await import("./HwbColorManager.js");
5
5
  e.pluginManager.addColorManager("hwb", new HwbColorManager());
package/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { HwbColorManager } from "./HwbColorManager.js";
2
2
  export async function loadHwbColorPlugin(engine) {
3
- engine.checkVersion("4.0.0-beta.16");
3
+ engine.checkVersion("4.0.0-beta.17");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addColorManager("hwb", new HwbColorManager());
6
6
  });
package/cjs/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadHwbColorPlugin(engine) {
2
- engine.checkVersion("4.0.0-beta.16");
2
+ engine.checkVersion("4.0.0-beta.17");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { HwbColorManager } = await import("./HwbColorManager.js");
5
5
  e.pluginManager.addColorManager("hwb", new HwbColorManager());
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { HwbColorManager } from "./HwbColorManager.js";
2
2
  export async function loadHwbColorPlugin(engine) {
3
- engine.checkVersion("4.0.0-beta.16");
3
+ engine.checkVersion("4.0.0-beta.17");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addColorManager("hwb", new HwbColorManager());
6
6
  });
package/esm/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadHwbColorPlugin(engine) {
2
- engine.checkVersion("4.0.0-beta.16");
2
+ engine.checkVersion("4.0.0-beta.17");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { HwbColorManager } = await import("./HwbColorManager.js");
5
5
  e.pluginManager.addColorManager("hwb", new HwbColorManager());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/plugin-hwb-color",
3
- "version": "4.0.0-beta.16",
3
+ "version": "4.0.0-beta.17",
4
4
  "description": "tsParticles HWB color plugin",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -106,7 +106,7 @@
106
106
  "./package.json": "./package.json"
107
107
  },
108
108
  "peerDependencies": {
109
- "@tsparticles/engine": "4.0.0-beta.16"
109
+ "@tsparticles/engine": "4.0.0-beta.17"
110
110
  },
111
111
  "publishConfig": {
112
112
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Plugin v4.0.0-beta.16 */
2
+ /* Plugin v4.0.0-beta.17 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/engine')) :
5
5
  typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/engine'], factory) :
@@ -85,7 +85,7 @@
85
85
  }
86
86
 
87
87
  async function loadHwbColorPlugin(engine) {
88
- engine.checkVersion("4.0.0-beta.16");
88
+ engine.checkVersion("4.0.0-beta.17");
89
89
  await engine.pluginManager.register(e => {
90
90
  e.pluginManager.addColorManager("hwb", new HwbColorManager());
91
91
  });
@@ -1 +1 @@
1
- !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path),s.tsparticlesInternalExports=s.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],t):t(((s="undefined"!=typeof globalThis?globalThis:s||self).__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.hwbColor=s.__tsParticlesInternals.plugins.hwbColor||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";var e;!function(s){s[s.h=1]="h",s[s.w=2]="w",s[s.b=3]="b",s[s.a=5]="a"}(e||(e={}));const n=/hwba?\(\s*(\d{1,3}(?:\.\d+)?(?:deg|rad|grad|turn)?)\s*[\s,]\s*(\d{1,3}(?:\.\d+)?)%\s*[\s,]\s*(\d{1,3}(?:\.\d+)?)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;function a(s){const t=s.h/360,e=s.w/100,n=s.b/100,a=e+n;let l,r,i;if(a>=1){const s=e/a;l=s,r=s,i=s}else{const s=s=>{const a=(s+6*t)%6,l=1-e-n,r=Math.max(0,Math.min(a,4-a,1));return 1-n-l*r};l=s(5),r=s(3),i=s(1)}return{r:Math.round(255*l),g:Math.round(255*r),b:Math.round(255*i)}}class l{accepts(s){return s.startsWith("hwb")}handleColor(s){const t=s.value.hwb??s.value;if("h"in t&&"w"in t&&"b"in t)return a(t)}handleRangeColor(s){const e=s.value.hwb??s.value;if("h"in e&&"w"in e&&"b"in e)return a({h:t.getRangeValue(e.h),w:t.getRangeValue(e.w),b:t.getRangeValue(e.b)})}parseString(s){if(!this.accepts(s))return;const l=n.exec(s);if(!l)return;const r=l[e.h],i=l[e.w],_=l[e.b];return{a:(c={a:l.length>4?t.parseAlpha(l[e.a]):1,h:void 0!==r?parseFloat(r):0,w:void 0!==i?parseFloat(i):0,b:void 0!==_?parseFloat(_):0}).a,...a(c)};var c}}async function r(s){s.checkVersion("4.0.0-beta.16"),await s.pluginManager.register(s=>{s.pluginManager.addColorManager("hwb",new l)})}const i=globalThis;i.__tsParticlesInternals=i.__tsParticlesInternals??{},i.loadHwbColorPlugin=r,s.loadHwbColorPlugin=r}),Object.assign(globalThis.window||globalThis,{loadHwbColorPlugin:(globalThis.__tsParticlesInternals.plugins.hwbColor||{}).loadHwbColorPlugin}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
1
+ !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path),s.tsparticlesInternalExports=s.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],t):t(((s="undefined"!=typeof globalThis?globalThis:s||self).__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.hwbColor=s.__tsParticlesInternals.plugins.hwbColor||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";var e;!function(s){s[s.h=1]="h",s[s.w=2]="w",s[s.b=3]="b",s[s.a=5]="a"}(e||(e={}));const n=/hwba?\(\s*(\d{1,3}(?:\.\d+)?(?:deg|rad|grad|turn)?)\s*[\s,]\s*(\d{1,3}(?:\.\d+)?)%\s*[\s,]\s*(\d{1,3}(?:\.\d+)?)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;function a(s){const t=s.h/360,e=s.w/100,n=s.b/100,a=e+n;let l,r,i;if(a>=1){const s=e/a;l=s,r=s,i=s}else{const s=s=>{const a=(s+6*t)%6,l=1-e-n,r=Math.max(0,Math.min(a,4-a,1));return 1-n-l*r};l=s(5),r=s(3),i=s(1)}return{r:Math.round(255*l),g:Math.round(255*r),b:Math.round(255*i)}}class l{accepts(s){return s.startsWith("hwb")}handleColor(s){const t=s.value.hwb??s.value;if("h"in t&&"w"in t&&"b"in t)return a(t)}handleRangeColor(s){const e=s.value.hwb??s.value;if("h"in e&&"w"in e&&"b"in e)return a({h:t.getRangeValue(e.h),w:t.getRangeValue(e.w),b:t.getRangeValue(e.b)})}parseString(s){if(!this.accepts(s))return;const l=n.exec(s);if(!l)return;const r=l[e.h],i=l[e.w],_=l[e.b];return{a:(c={a:l.length>4?t.parseAlpha(l[e.a]):1,h:void 0!==r?parseFloat(r):0,w:void 0!==i?parseFloat(i):0,b:void 0!==_?parseFloat(_):0}).a,...a(c)};var c}}async function r(s){s.checkVersion("4.0.0-beta.17"),await s.pluginManager.register(s=>{s.pluginManager.addColorManager("hwb",new l)})}const i=globalThis;i.__tsParticlesInternals=i.__tsParticlesInternals??{},i.loadHwbColorPlugin=r,s.loadHwbColorPlugin=r}),Object.assign(globalThis.window||globalThis,{loadHwbColorPlugin:(globalThis.__tsParticlesInternals.plugins.hwbColor||{}).loadHwbColorPlugin}),delete(globalThis.window||globalThis).tsparticlesInternalExports;