@tsparticles/plugin-oklab-color 4.0.0-beta.15 → 4.0.0-beta.16
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 +1 -1
- package/browser/index.lazy.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.lazy.js +1 -1
- package/esm/index.js +1 -1
- package/esm/index.lazy.js +1 -1
- package/package.json +3 -3
- package/tsparticles.plugin.oklabColor.js +2 -2
- package/tsparticles.plugin.oklabColor.min.js +1 -1
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OklabColorManager } from "./OklabColorManager.js";
|
|
2
2
|
export async function loadOklabColorPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addColorManager("oklab", new OklabColorManager());
|
|
6
6
|
});
|
package/browser/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadOklabColorPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { OklabColorManager } = await import("./OklabColorManager.js");
|
|
5
5
|
e.pluginManager.addColorManager("oklab", new OklabColorManager());
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OklabColorManager } from "./OklabColorManager.js";
|
|
2
2
|
export async function loadOklabColorPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addColorManager("oklab", new OklabColorManager());
|
|
6
6
|
});
|
package/cjs/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadOklabColorPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { OklabColorManager } = await import("./OklabColorManager.js");
|
|
5
5
|
e.pluginManager.addColorManager("oklab", new OklabColorManager());
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OklabColorManager } from "./OklabColorManager.js";
|
|
2
2
|
export async function loadOklabColorPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addColorManager("oklab", new OklabColorManager());
|
|
6
6
|
});
|
package/esm/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadOklabColorPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { OklabColorManager } = await import("./OklabColorManager.js");
|
|
5
5
|
e.pluginManager.addColorManager("oklab", new OklabColorManager());
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-oklab-color",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.16",
|
|
4
4
|
"description": "tsParticles OKLAB color plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
|
-
"directory": "plugins/colors/
|
|
9
|
+
"directory": "plugins/colors/oklab"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"front-end",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"./package.json": "./package.json"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
|
-
"@tsparticles/engine": "4.0.0-beta.
|
|
109
|
+
"@tsparticles/engine": "4.0.0-beta.16"
|
|
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.
|
|
2
|
+
/* Plugin v4.0.0-beta.16 */
|
|
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) :
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
async function loadOklabColorPlugin(engine) {
|
|
86
|
-
engine.checkVersion("4.0.0-beta.
|
|
86
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
87
87
|
await engine.pluginManager.register(e => {
|
|
88
88
|
e.pluginManager.addColorManager("oklab", new OklabColorManager());
|
|
89
89
|
});
|
|
@@ -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.oklabColor=s.__tsParticlesInternals.plugins.oklabColor||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";const e={L:1,a:.3963377774,b:.2158037573},a={L:1,a:-.1055613458,b:-.0638541728},n={L:1,a:-.0894841775,b:-1.291485548},l={l:4.0767416621,m:-3.3077115913,s:.2309699292},r={l:-1.2684380046,m:2.6097574011,s:-.3413193965},i={l:-.0041960863,m:-.7034186147,s:1.707614701},_=2.4,c=.0031308,o=12.92,P=.055,I=1.055;function p(s){const p=s.l/t.percentDenominator,u=s.aAxis,g=s.bAxis,d=(e.L*p+e.a*u+e.b*g)**3,b=(a.L*p+a.a*u+a.b*g)**3,h=(n.L*p+n.a*u+n.b*g)**3,f=l.l*d+l.m*b+l.s*h,x=r.l*d+r.m*b+r.s*h,v=i.l*d+i.m*b+i.s*h,m=s=>{return Math.round(t.clamp((e=s)<=c?o*e:I*Math.pow(e,t.inverseFactorNumerator/_)-P,0,1)*t.rgbMax);var e};return{r:m(f),g:m(x),b:m(v)}}const u=/oklab\(\s*(\d+(\.\d+)?)%\s+(-?\d+(\.\d+)?)\s+(-?\d+(\.\d+)?)(?:\s*\/\s*(0|1|0?\.\d+|\d{1,3}%))?\s*\)/i;class g{accepts(s){return s.startsWith("oklab")}handleColor(s){const t=s.value.oklab??s.value;if("l"in t&&"aAxis"in t&&"bAxis"in t)return p(t)}handleRangeColor(s){const e=s.value.oklab??s.value;if("l"in e&&"aAxis"in e&&"bAxis"in e)return p({l:t.getRangeValue(e.l),aAxis:t.getRangeValue(e.aAxis),bAxis:t.getRangeValue(e.bAxis)})}parseString(s){if(!this.accepts(s))return;const e=u.exec(s),a=1,n=3,l=5,r=7;return e?{a:(i={a:e[r]?t.parseAlpha(e[r]):1,l:parseFloat(e[a]??"0"),aAxis:parseFloat(e[n]??"0"),bAxis:parseFloat(e[l]??"0")}).a,...p(i)}:void 0;var i}}async function d(s){s.checkVersion("4.0.0-beta.
|
|
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.oklabColor=s.__tsParticlesInternals.plugins.oklabColor||{}),s.__tsParticlesInternals.engine)}(this,function(s,t){"use strict";const e={L:1,a:.3963377774,b:.2158037573},a={L:1,a:-.1055613458,b:-.0638541728},n={L:1,a:-.0894841775,b:-1.291485548},l={l:4.0767416621,m:-3.3077115913,s:.2309699292},r={l:-1.2684380046,m:2.6097574011,s:-.3413193965},i={l:-.0041960863,m:-.7034186147,s:1.707614701},_=2.4,c=.0031308,o=12.92,P=.055,I=1.055;function p(s){const p=s.l/t.percentDenominator,u=s.aAxis,g=s.bAxis,d=(e.L*p+e.a*u+e.b*g)**3,b=(a.L*p+a.a*u+a.b*g)**3,h=(n.L*p+n.a*u+n.b*g)**3,f=l.l*d+l.m*b+l.s*h,x=r.l*d+r.m*b+r.s*h,v=i.l*d+i.m*b+i.s*h,m=s=>{return Math.round(t.clamp((e=s)<=c?o*e:I*Math.pow(e,t.inverseFactorNumerator/_)-P,0,1)*t.rgbMax);var e};return{r:m(f),g:m(x),b:m(v)}}const u=/oklab\(\s*(\d+(\.\d+)?)%\s+(-?\d+(\.\d+)?)\s+(-?\d+(\.\d+)?)(?:\s*\/\s*(0|1|0?\.\d+|\d{1,3}%))?\s*\)/i;class g{accepts(s){return s.startsWith("oklab")}handleColor(s){const t=s.value.oklab??s.value;if("l"in t&&"aAxis"in t&&"bAxis"in t)return p(t)}handleRangeColor(s){const e=s.value.oklab??s.value;if("l"in e&&"aAxis"in e&&"bAxis"in e)return p({l:t.getRangeValue(e.l),aAxis:t.getRangeValue(e.aAxis),bAxis:t.getRangeValue(e.bAxis)})}parseString(s){if(!this.accepts(s))return;const e=u.exec(s),a=1,n=3,l=5,r=7;return e?{a:(i={a:e[r]?t.parseAlpha(e[r]):1,l:parseFloat(e[a]??"0"),aAxis:parseFloat(e[n]??"0"),bAxis:parseFloat(e[l]??"0")}).a,...p(i)}:void 0;var i}}async function d(s){s.checkVersion("4.0.0-beta.16"),await s.pluginManager.register(s=>{s.pluginManager.addColorManager("oklab",new g)})}const b=globalThis;b.__tsParticlesInternals=b.__tsParticlesInternals??{},b.loadOklabColorPlugin=d,s.loadOklabColorPlugin=d}),Object.assign(globalThis.window||globalThis,{loadOklabColorPlugin:(globalThis.__tsParticlesInternals.plugins.oklabColor||{}).loadOklabColorPlugin}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
|