lyb-pixi-js 1.11.26 → 1.11.27

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.
@@ -22,6 +22,10 @@ export const libPixiFilter = (filterName, v) => {
22
22
  filter = new ColorMatrixFilter();
23
23
  filter.contrast(v, false);
24
24
  }
25
+ else if (filterName === "saturate") {
26
+ filter = new ColorMatrixFilter();
27
+ filter.saturate(v, false);
28
+ }
25
29
  else {
26
30
  throw new Error("未知滤镜名称");
27
31
  }
package/lyb-pixi.js CHANGED
@@ -54556,6 +54556,9 @@ void main(void)\r
54556
54556
  } else if (filterName === "contrast") {
54557
54557
  filter = new ColorMatrixFilter();
54558
54558
  filter.contrast(v2, false);
54559
+ } else if (filterName === "saturate") {
54560
+ filter = new ColorMatrixFilter();
54561
+ filter.saturate(v2, false);
54559
54562
  } else {
54560
54563
  throw new Error("未知滤镜名称");
54561
54564
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.26",
3
+ "version": "1.11.27",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {