@tsparticles/plugin-lch-color 4.0.1 → 4.0.3

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 { LchColorManager } from "./LchColorManager.js";
2
2
  export async function loadLchColorPlugin(engine) {
3
- engine.checkVersion("4.0.1");
3
+ engine.checkVersion("4.0.3");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addColorManager("lch", new LchColorManager());
6
6
  });
@@ -1,5 +1,5 @@
1
1
  export async function loadLchColorPlugin(engine) {
2
- engine.checkVersion("4.0.1");
2
+ engine.checkVersion("4.0.3");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { LchColorManager } = await import("./LchColorManager.js");
5
5
  e.pluginManager.addColorManager("lch", new LchColorManager());
package/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LchColorManager } from "./LchColorManager.js";
2
2
  export async function loadLchColorPlugin(engine) {
3
- engine.checkVersion("4.0.1");
3
+ engine.checkVersion("4.0.3");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addColorManager("lch", new LchColorManager());
6
6
  });
package/cjs/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadLchColorPlugin(engine) {
2
- engine.checkVersion("4.0.1");
2
+ engine.checkVersion("4.0.3");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { LchColorManager } = await import("./LchColorManager.js");
5
5
  e.pluginManager.addColorManager("lch", new LchColorManager());
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LchColorManager } from "./LchColorManager.js";
2
2
  export async function loadLchColorPlugin(engine) {
3
- engine.checkVersion("4.0.1");
3
+ engine.checkVersion("4.0.3");
4
4
  await engine.pluginManager.register(e => {
5
5
  e.pluginManager.addColorManager("lch", new LchColorManager());
6
6
  });
package/esm/index.lazy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export async function loadLchColorPlugin(engine) {
2
- engine.checkVersion("4.0.1");
2
+ engine.checkVersion("4.0.3");
3
3
  await engine.pluginManager.register(async (e) => {
4
4
  const { LchColorManager } = await import("./LchColorManager.js");
5
5
  e.pluginManager.addColorManager("lch", new LchColorManager());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/plugin-lch-color",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "tsParticles LCH 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.1"
109
+ "@tsparticles/engine": "4.0.3"
110
110
  },
111
111
  "publishConfig": {
112
112
  "access": "public"
package/report.html CHANGED
@@ -4930,7 +4930,7 @@ var drawChart = (function (exports) {
4930
4930
  </script>
4931
4931
  <script>
4932
4932
  /*<!--*/
4933
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.plugin.lchColor.js","children":[{"name":"dist/browser","children":[{"uid":"b43f30fb-1","name":"utils.js"},{"uid":"b43f30fb-3","name":"LchColorManager.js"},{"uid":"b43f30fb-5","name":"index.js"},{"uid":"b43f30fb-7","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"b43f30fb-1":{"renderedLength":2480,"gzipLength":0,"brotliLength":0,"metaUid":"b43f30fb-0"},"b43f30fb-3":{"renderedLength":1654,"gzipLength":0,"brotliLength":0,"metaUid":"b43f30fb-2"},"b43f30fb-5":{"renderedLength":229,"gzipLength":0,"brotliLength":0,"metaUid":"b43f30fb-4"},"b43f30fb-7":{"renderedLength":179,"gzipLength":0,"brotliLength":0,"metaUid":"b43f30fb-6"}},"nodeMetas":{"b43f30fb-0":{"id":"/dist/browser/utils.js","moduleParts":{"tsparticles.plugin.lchColor.js":"b43f30fb-1"},"imported":[{"uid":"b43f30fb-8"}],"importedBy":[{"uid":"b43f30fb-2"}]},"b43f30fb-2":{"id":"/dist/browser/LchColorManager.js","moduleParts":{"tsparticles.plugin.lchColor.js":"b43f30fb-3"},"imported":[{"uid":"b43f30fb-8"},{"uid":"b43f30fb-0"}],"importedBy":[{"uid":"b43f30fb-4"}]},"b43f30fb-4":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.plugin.lchColor.js":"b43f30fb-5"},"imported":[{"uid":"b43f30fb-2"}],"importedBy":[{"uid":"b43f30fb-6"}]},"b43f30fb-6":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.plugin.lchColor.js":"b43f30fb-7"},"imported":[{"uid":"b43f30fb-4"}],"importedBy":[],"isEntry":true},"b43f30fb-8":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"b43f30fb-2"},{"uid":"b43f30fb-0"}],"isExternal":true}},"env":{"rollup":"4.60.3"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4933
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.plugin.lchColor.js","children":[{"name":"dist/browser","children":[{"uid":"7e7c2ee7-1","name":"utils.js"},{"uid":"7e7c2ee7-3","name":"LchColorManager.js"},{"uid":"7e7c2ee7-5","name":"index.js"},{"uid":"7e7c2ee7-7","name":"browser.js"}]}]}],"isRoot":true},"nodeParts":{"7e7c2ee7-1":{"renderedLength":2480,"gzipLength":0,"brotliLength":0,"metaUid":"7e7c2ee7-0"},"7e7c2ee7-3":{"renderedLength":1654,"gzipLength":0,"brotliLength":0,"metaUid":"7e7c2ee7-2"},"7e7c2ee7-5":{"renderedLength":229,"gzipLength":0,"brotliLength":0,"metaUid":"7e7c2ee7-4"},"7e7c2ee7-7":{"renderedLength":179,"gzipLength":0,"brotliLength":0,"metaUid":"7e7c2ee7-6"}},"nodeMetas":{"7e7c2ee7-0":{"id":"/dist/browser/utils.js","moduleParts":{"tsparticles.plugin.lchColor.js":"7e7c2ee7-1"},"imported":[{"uid":"7e7c2ee7-8"}],"importedBy":[{"uid":"7e7c2ee7-2"}]},"7e7c2ee7-2":{"id":"/dist/browser/LchColorManager.js","moduleParts":{"tsparticles.plugin.lchColor.js":"7e7c2ee7-3"},"imported":[{"uid":"7e7c2ee7-8"},{"uid":"7e7c2ee7-0"}],"importedBy":[{"uid":"7e7c2ee7-4"}]},"7e7c2ee7-4":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.plugin.lchColor.js":"7e7c2ee7-5"},"imported":[{"uid":"7e7c2ee7-2"}],"importedBy":[{"uid":"7e7c2ee7-6"}]},"7e7c2ee7-6":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.plugin.lchColor.js":"7e7c2ee7-7"},"imported":[{"uid":"7e7c2ee7-4"}],"importedBy":[],"isEntry":true},"7e7c2ee7-8":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"7e7c2ee7-2"},{"uid":"7e7c2ee7-0"}],"isExternal":true}},"env":{"rollup":"4.60.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
4934
4934
 
4935
4935
  const run = () => {
4936
4936
  const width = window.innerWidth;
@@ -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.1 */
2
+ /* Plugin v4.0.3 */
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) :
@@ -101,7 +101,7 @@
101
101
  }
102
102
 
103
103
  async function loadLchColorPlugin(engine) {
104
- engine.checkVersion("4.0.1");
104
+ engine.checkVersion("4.0.3");
105
105
  await engine.pluginManager.register(e => {
106
106
  e.pluginManager.addColorManager("lch", new LchColorManager());
107
107
  });
@@ -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.lchColor=s.__tsParticlesInternals.plugins.lchColor||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";const e=255,n=.95047,a=1,l=1.08883,r=216/24389,i=24389/27,_=16,c=116,o=500,P=200,I={x:3.2404542,y:-1.5371385,z:-.4985314},p={x:-.969266,y:1.8760108,z:.041556},u={x:.0556434,y:-.2040259,z:1.0572252},h=2.4,g=.0031308,d=12.92,f=1.055,b=.055;function v(s){const v=s.l,y=s.c,x=t.degToRad(s.h),w=y*Math.cos(x),T=y*Math.sin(x),C=(v+_)/c,m=C+w/o,M=C-T/P,z=m**3,R=M**3,S=(z>r?z:(c*m-_)/i)*n,F=(v>i*r?C**3:v/i)*a,L=(R>r?R:(c*M-_)/i)*l,V=I.x*S+I.y*F+I.z*L,E=p.x*S+p.y*F+p.z*L,j=u.x*S+u.y*F+u.z*L,k=s=>{return Math.round(t.clamp((n=s)<=g?d*n:f*Math.pow(n,t.inverseFactorNumerator/h)-b,0,1)*e);var n};return{r:k(V),g:k(E),b:k(j)}}const y=/lch\(\s*(\d+(\.\d+)?)%\s+(\d+(\.\d+)?)\s+(\d+(\.\d+)?)(?:\s*\/\s*(0|1|0?\.\d+|\d{1,3}%))?\s*\)/i;class x{accepts(s){return s.startsWith("lch")}handleColor(s){const t=s.value.lch??s.value;if("l"in t&&"c"in t&&"h"in t)return v(t)}handleRangeColor(s){const e=s.value.lch??s.value;if("l"in e&&"c"in e&&"h"in e)return v({l:t.getRangeValue(e.l),c:t.getRangeValue(e.c),h:t.getRangeValue(e.h)})}parseString(s){if(!this.accepts(s))return;const e=y.exec(s),n=1,a=3,l=5,r=7;return e?{a:(i={a:e[r]?t.parseAlpha(e[r]):1,c:parseFloat(e[a]??"0"),h:parseFloat(e[l]??"0"),l:parseFloat(e[n]??"0")}).a,...v(i)}:void 0;var i}}async function w(s){s.checkVersion("4.0.1"),await s.pluginManager.register(s=>{s.pluginManager.addColorManager("lch",new x)})}const T=globalThis;T.__tsParticlesInternals=T.__tsParticlesInternals??{},T.loadLchColorPlugin=w,s.loadLchColorPlugin=w}),Object.assign(globalThis.window||globalThis,{loadLchColorPlugin:(globalThis.__tsParticlesInternals.plugins.lchColor||{}).loadLchColorPlugin}),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.lchColor=s.__tsParticlesInternals.plugins.lchColor||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";const e=255,n=.95047,a=1,l=1.08883,r=216/24389,i=24389/27,_=16,c=116,o=500,P=200,I={x:3.2404542,y:-1.5371385,z:-.4985314},p={x:-.969266,y:1.8760108,z:.041556},u={x:.0556434,y:-.2040259,z:1.0572252},h=2.4,g=.0031308,d=12.92,f=1.055,b=.055;function v(s){const v=s.l,y=s.c,x=t.degToRad(s.h),w=y*Math.cos(x),T=y*Math.sin(x),C=(v+_)/c,m=C+w/o,M=C-T/P,z=m**3,R=M**3,S=(z>r?z:(c*m-_)/i)*n,F=(v>i*r?C**3:v/i)*a,L=(R>r?R:(c*M-_)/i)*l,V=I.x*S+I.y*F+I.z*L,E=p.x*S+p.y*F+p.z*L,j=u.x*S+u.y*F+u.z*L,k=s=>{return Math.round(t.clamp((n=s)<=g?d*n:f*Math.pow(n,t.inverseFactorNumerator/h)-b,0,1)*e);var n};return{r:k(V),g:k(E),b:k(j)}}const y=/lch\(\s*(\d+(\.\d+)?)%\s+(\d+(\.\d+)?)\s+(\d+(\.\d+)?)(?:\s*\/\s*(0|1|0?\.\d+|\d{1,3}%))?\s*\)/i;class x{accepts(s){return s.startsWith("lch")}handleColor(s){const t=s.value.lch??s.value;if("l"in t&&"c"in t&&"h"in t)return v(t)}handleRangeColor(s){const e=s.value.lch??s.value;if("l"in e&&"c"in e&&"h"in e)return v({l:t.getRangeValue(e.l),c:t.getRangeValue(e.c),h:t.getRangeValue(e.h)})}parseString(s){if(!this.accepts(s))return;const e=y.exec(s),n=1,a=3,l=5,r=7;return e?{a:(i={a:e[r]?t.parseAlpha(e[r]):1,c:parseFloat(e[a]??"0"),h:parseFloat(e[l]??"0"),l:parseFloat(e[n]??"0")}).a,...v(i)}:void 0;var i}}async function w(s){s.checkVersion("4.0.3"),await s.pluginManager.register(s=>{s.pluginManager.addColorManager("lch",new x)})}const T=globalThis;T.__tsParticlesInternals=T.__tsParticlesInternals??{},T.loadLchColorPlugin=w,s.loadLchColorPlugin=w}),Object.assign(globalThis.window||globalThis,{loadLchColorPlugin:(globalThis.__tsParticlesInternals.plugins.lchColor||{}).loadLchColorPlugin}),delete(globalThis.window||globalThis).tsparticlesInternalExports;