@tsparticles/plugin-oklab-color 4.0.0-alpha.5 → 4.0.0-alpha.8
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/899.min.js.LICENSE.txt +1 -1
- package/browser/OklabColorManager.js +2 -6
- package/browser/index.js +1 -1
- package/cjs/OklabColorManager.js +2 -6
- package/cjs/index.js +1 -1
- package/dist_browser_OklabColorManager_js.js +1 -1
- package/esm/OklabColorManager.js +2 -6
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.plugin.oklabColor.js +2 -2
- package/tsparticles.plugin.oklabColor.min.js +1 -1
- package/tsparticles.plugin.oklabColor.min.js.LICENSE.txt +1 -1
- package/umd/OklabColorManager.js +2 -6
- package/umd/index.js +1 -1
package/899.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles OKLAB Color Plugin v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles OKLAB Color Plugin v4.0.0-alpha.8 by Matteo Bruni */
|
|
@@ -10,18 +10,14 @@ export class OklabColorManager {
|
|
|
10
10
|
}
|
|
11
11
|
handleColor(color) {
|
|
12
12
|
const colorValue = color.value, oklabColor = colorValue.oklab ?? color.value;
|
|
13
|
-
if (!Object.hasOwn(oklabColor, "l") ||
|
|
14
|
-
!Object.hasOwn(oklabColor, "aAxis") ||
|
|
15
|
-
!Object.hasOwn(oklabColor, "bAxis")) {
|
|
13
|
+
if (!Object.hasOwn(oklabColor, "l") || !Object.hasOwn(oklabColor, "aAxis") || !Object.hasOwn(oklabColor, "bAxis")) {
|
|
16
14
|
return;
|
|
17
15
|
}
|
|
18
16
|
return oklabToRgb(oklabColor);
|
|
19
17
|
}
|
|
20
18
|
handleRangeColor(color) {
|
|
21
19
|
const colorValue = color.value, oklabColor = colorValue.oklab ?? color.value;
|
|
22
|
-
if (!Object.hasOwn(oklabColor, "l") ||
|
|
23
|
-
!Object.hasOwn(oklabColor, "aAxis") ||
|
|
24
|
-
!Object.hasOwn(oklabColor, "bAxis")) {
|
|
20
|
+
if (!Object.hasOwn(oklabColor, "l") || !Object.hasOwn(oklabColor, "aAxis") || !Object.hasOwn(oklabColor, "bAxis")) {
|
|
25
21
|
return;
|
|
26
22
|
}
|
|
27
23
|
return oklabToRgb({
|
package/browser/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadOklabColorPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
3
|
await engine.register(async (e) => {
|
|
4
4
|
const { OklabColorManager } = await import("./OklabColorManager.js");
|
|
5
5
|
e.addColorManager(new OklabColorManager());
|
package/cjs/OklabColorManager.js
CHANGED
|
@@ -10,18 +10,14 @@ export class OklabColorManager {
|
|
|
10
10
|
}
|
|
11
11
|
handleColor(color) {
|
|
12
12
|
const colorValue = color.value, oklabColor = colorValue.oklab ?? color.value;
|
|
13
|
-
if (!Object.hasOwn(oklabColor, "l") ||
|
|
14
|
-
!Object.hasOwn(oklabColor, "aAxis") ||
|
|
15
|
-
!Object.hasOwn(oklabColor, "bAxis")) {
|
|
13
|
+
if (!Object.hasOwn(oklabColor, "l") || !Object.hasOwn(oklabColor, "aAxis") || !Object.hasOwn(oklabColor, "bAxis")) {
|
|
16
14
|
return;
|
|
17
15
|
}
|
|
18
16
|
return oklabToRgb(oklabColor);
|
|
19
17
|
}
|
|
20
18
|
handleRangeColor(color) {
|
|
21
19
|
const colorValue = color.value, oklabColor = colorValue.oklab ?? color.value;
|
|
22
|
-
if (!Object.hasOwn(oklabColor, "l") ||
|
|
23
|
-
!Object.hasOwn(oklabColor, "aAxis") ||
|
|
24
|
-
!Object.hasOwn(oklabColor, "bAxis")) {
|
|
20
|
+
if (!Object.hasOwn(oklabColor, "l") || !Object.hasOwn(oklabColor, "aAxis") || !Object.hasOwn(oklabColor, "bAxis")) {
|
|
25
21
|
return;
|
|
26
22
|
}
|
|
27
23
|
return oklabToRgb({
|
package/cjs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadOklabColorPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
3
|
await engine.register(async (e) => {
|
|
4
4
|
const { OklabColorManager } = await import("./OklabColorManager.js");
|
|
5
5
|
e.addColorManager(new OklabColorManager());
|
package/esm/OklabColorManager.js
CHANGED
|
@@ -10,18 +10,14 @@ export class OklabColorManager {
|
|
|
10
10
|
}
|
|
11
11
|
handleColor(color) {
|
|
12
12
|
const colorValue = color.value, oklabColor = colorValue.oklab ?? color.value;
|
|
13
|
-
if (!Object.hasOwn(oklabColor, "l") ||
|
|
14
|
-
!Object.hasOwn(oklabColor, "aAxis") ||
|
|
15
|
-
!Object.hasOwn(oklabColor, "bAxis")) {
|
|
13
|
+
if (!Object.hasOwn(oklabColor, "l") || !Object.hasOwn(oklabColor, "aAxis") || !Object.hasOwn(oklabColor, "bAxis")) {
|
|
16
14
|
return;
|
|
17
15
|
}
|
|
18
16
|
return oklabToRgb(oklabColor);
|
|
19
17
|
}
|
|
20
18
|
handleRangeColor(color) {
|
|
21
19
|
const colorValue = color.value, oklabColor = colorValue.oklab ?? color.value;
|
|
22
|
-
if (!Object.hasOwn(oklabColor, "l") ||
|
|
23
|
-
!Object.hasOwn(oklabColor, "aAxis") ||
|
|
24
|
-
!Object.hasOwn(oklabColor, "bAxis")) {
|
|
20
|
+
if (!Object.hasOwn(oklabColor, "l") || !Object.hasOwn(oklabColor, "aAxis") || !Object.hasOwn(oklabColor, "bAxis")) {
|
|
25
21
|
return;
|
|
26
22
|
}
|
|
27
23
|
return oklabToRgb({
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadOklabColorPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
3
|
await engine.register(async (e) => {
|
|
4
4
|
const { OklabColorManager } = await import("./OklabColorManager.js");
|
|
5
5
|
e.addColorManager(new OklabColorManager());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-oklab-color",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"description": "tsParticles OKLAB color plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"./package.json": "./package.json"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
103
|
+
"@tsparticles/engine": "4.0.0-alpha.8"
|
|
104
104
|
},
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|