@next2d/webgl 1.17.4 → 1.18.0
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.
|
@@ -87,10 +87,10 @@ export declare class CanvasGradientToWebGL {
|
|
|
87
87
|
radial(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number, rgb?: InterpolationMethodImpl, mode?: SpreadMethodImpl, focal_point_ratio?: number): CanvasGradientToWebGL;
|
|
88
88
|
/**
|
|
89
89
|
* @param {number} offset
|
|
90
|
-
* @param {
|
|
90
|
+
* @param {Int32Array} color
|
|
91
91
|
* @return {void}
|
|
92
92
|
* @method
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
|
-
addColorStop(offset: number, color:
|
|
95
|
+
addColorStop(offset: number, color: Int32Array): void;
|
|
96
96
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $getFloat32Array6, $getArray, $clamp, $
|
|
1
|
+
import { $getFloat32Array6, $getArray, $clamp, $poolInt32Array4, $poolFloat32Array6 } from "@next2d/share";
|
|
2
2
|
/**
|
|
3
3
|
* @class
|
|
4
4
|
*/
|
|
@@ -51,7 +51,7 @@ export class CanvasGradientToWebGL {
|
|
|
51
51
|
dispose() {
|
|
52
52
|
const stops = this._$stops;
|
|
53
53
|
for (let idx = 0; idx < stops.length; ++idx) {
|
|
54
|
-
$
|
|
54
|
+
$poolInt32Array4(stops[idx][1]);
|
|
55
55
|
}
|
|
56
56
|
$poolFloat32Array6(this._$points);
|
|
57
57
|
}
|
|
@@ -170,7 +170,7 @@ export class CanvasGradientToWebGL {
|
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* @param {number} offset
|
|
173
|
-
* @param {
|
|
173
|
+
* @param {Int32Array} color
|
|
174
174
|
* @return {void}
|
|
175
175
|
* @method
|
|
176
176
|
* @public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/webgl",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "Next2D Webgl Packages",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@tvon.jp> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@next2d/share": "1.
|
|
35
|
+
"@next2d/share": "1.18.0"
|
|
36
36
|
}
|
|
37
37
|
}
|