@next2d/filters 3.8.2 → 3.9.1
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/package.json +3 -2
- package/src/BitmapFilter.d.ts +9 -0
- package/src/BitmapFilter.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/filters",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "Next2D Filters Package",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,5 +22,6 @@
|
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
24
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false
|
|
26
27
|
}
|
package/src/BitmapFilter.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ export declare class BitmapFilter {
|
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
$updated: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @description toNumberArray() の結果のキャッシュ。$updated が true になったら無効化される。
|
|
28
|
+
* Cache of the toNumberArray() result. Invalidated when $updated is set to true.
|
|
29
|
+
*
|
|
30
|
+
* @type {Float32Array | null}
|
|
31
|
+
* @default null
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
$buffer: Float32Array | null;
|
|
26
35
|
/**
|
|
27
36
|
* @constructor
|
|
28
37
|
* @public
|
package/src/BitmapFilter.js
CHANGED
|
@@ -33,7 +33,22 @@ export class BitmapFilter {
|
|
|
33
33
|
writable: true,
|
|
34
34
|
value: void 0
|
|
35
35
|
});
|
|
36
|
+
/**
|
|
37
|
+
* @description toNumberArray() の結果のキャッシュ。$updated が true になったら無効化される。
|
|
38
|
+
* Cache of the toNumberArray() result. Invalidated when $updated is set to true.
|
|
39
|
+
*
|
|
40
|
+
* @type {Float32Array | null}
|
|
41
|
+
* @default null
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
Object.defineProperty(this, "$buffer", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true,
|
|
47
|
+
writable: true,
|
|
48
|
+
value: void 0
|
|
49
|
+
});
|
|
36
50
|
this.$updated = true;
|
|
51
|
+
this.$buffer = null;
|
|
37
52
|
}
|
|
38
53
|
/**
|
|
39
54
|
* @description フィルターを適用できるかどうかを返します。
|