@next2d/filters 1.14.20

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.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/dist/BevelFilter.d.ts +254 -0
  4. package/dist/BevelFilter.js +490 -0
  5. package/dist/BitmapFilter.d.ts +75 -0
  6. package/dist/BitmapFilter.js +95 -0
  7. package/dist/BlurFilter.d.ts +150 -0
  8. package/dist/BlurFilter.js +371 -0
  9. package/dist/ColorMatrixFilter.d.ts +116 -0
  10. package/dist/ColorMatrixFilter.js +179 -0
  11. package/dist/ConvolutionFilter.d.ts +210 -0
  12. package/dist/ConvolutionFilter.js +366 -0
  13. package/dist/DisplacementMapFilter.d.ts +211 -0
  14. package/dist/DisplacementMapFilter.js +368 -0
  15. package/dist/DropShadowFilter.d.ts +240 -0
  16. package/dist/DropShadowFilter.js +461 -0
  17. package/dist/GlowFilter.d.ts +204 -0
  18. package/dist/GlowFilter.js +356 -0
  19. package/dist/GradientBevelFilter.d.ts +243 -0
  20. package/dist/GradientBevelFilter.js +476 -0
  21. package/dist/GradientGlowFilter.d.ts +243 -0
  22. package/dist/GradientGlowFilter.js +466 -0
  23. package/dist/index.d.ts +10 -0
  24. package/dist/index.js +10 -0
  25. package/dist/interface/AttachmentImpl.d.ts +11 -0
  26. package/dist/interface/AttachmentImpl.js +1 -0
  27. package/dist/interface/BitmapDataChannelImpl.d.ts +1 -0
  28. package/dist/interface/BitmapDataChannelImpl.js +1 -0
  29. package/dist/interface/BitmapFilterTypeImpl.d.ts +1 -0
  30. package/dist/interface/BitmapFilterTypeImpl.js +1 -0
  31. package/dist/interface/BoundsImpl.d.ts +6 -0
  32. package/dist/interface/BoundsImpl.js +1 -0
  33. package/dist/interface/DisplacementMapFilterModeImpl.d.ts +1 -0
  34. package/dist/interface/DisplacementMapFilterModeImpl.js +1 -0
  35. package/dist/interface/FilterQualityImpl.d.ts +1 -0
  36. package/dist/interface/FilterQualityImpl.js +1 -0
  37. package/package.json +38 -0
@@ -0,0 +1,476 @@
1
+ import { BitmapFilter } from "./BitmapFilter";
2
+ import { BlurFilter } from "./BlurFilter";
3
+ import { $Array, $clamp, $Deg2Rad, $getArray, $getBoundsObject, $Math, $toColorInt } from "@next2d/share";
4
+ /**
5
+ * GradientBevelFilter クラスを使用すると、オブジェクトにグラデーションベベル効果を適用し、表示できます。
6
+ * グラデーションベベルは、オブジェクトの外側、内側、または上側が斜めになったエッジであり、グラデーションカラーで強調されます。
7
+ * 斜めのエッジによってオブジェクトが 3 次元に見えます。
8
+ *
9
+ * The GradientBevelFilter class lets you apply a gradient bevel effect to display objects.
10
+ * A gradient bevel is a beveled edge, enhanced with gradient color,
11
+ * on the outside, inside, or top of an object.
12
+ * Beveled edges make objects look three-dimensional.
13
+ *
14
+ * @class
15
+ * @memberOf next2d.filters
16
+ * @extends BitmapFilter
17
+ */
18
+ export class GradientBevelFilter extends BitmapFilter {
19
+ /**
20
+ * @param {number} [distance=4.0]
21
+ * @param {number} [angle=45]
22
+ * @param {array} [colors=null]
23
+ * @param {array} [alphas=null]
24
+ * @param {array} [ratios=null]
25
+ * @param {number} [blur_x=4.0]
26
+ * @param {number} [blur_y=4.0]
27
+ * @param {number} [strength=1]
28
+ * @param {number} [quality=1]
29
+ * @param {string} [type=BitmapFilterType.INNER]
30
+ * @param {boolean} [knockout=false]
31
+ *
32
+ * @constructor
33
+ * @public
34
+ */
35
+ constructor(distance = 4, angle = 45, colors = null, alphas = null, ratios = null, blur_x = 4, blur_y = 4, strength = 1, quality = 1, type = "inner", knockout = false) {
36
+ super();
37
+ /**
38
+ * @type {BlurFilter}
39
+ * @default BlurFilter
40
+ * @private
41
+ */
42
+ this._$blurFilter = new BlurFilter(blur_x, blur_y, quality);
43
+ /**
44
+ * @type {number}
45
+ * @default 4
46
+ * @private
47
+ */
48
+ this._$distance = 4;
49
+ /**
50
+ * @type {number}
51
+ * @default 45
52
+ * @private
53
+ */
54
+ this._$angle = 45;
55
+ /**
56
+ * @type {array}
57
+ * @default null
58
+ * @private
59
+ */
60
+ this._$colors = null;
61
+ /**
62
+ * @type {array}
63
+ * @default null
64
+ * @private
65
+ */
66
+ this._$alphas = null;
67
+ /**
68
+ * @type {array}
69
+ * @default null
70
+ * @private
71
+ */
72
+ this._$ratios = null;
73
+ /**
74
+ * @type {number}
75
+ * @default 1
76
+ * @private
77
+ */
78
+ this._$strength = 1;
79
+ /**
80
+ * @type {string}
81
+ * @default BitmapFilterType.INNER
82
+ * @private
83
+ */
84
+ this._$type = "inner";
85
+ /**
86
+ * @type {boolean}
87
+ * @default false
88
+ * @private
89
+ */
90
+ this._$knockout = false;
91
+ // setup
92
+ this.distance = distance;
93
+ this.angle = angle;
94
+ this.colors = colors;
95
+ this.alphas = alphas;
96
+ this.ratios = ratios;
97
+ this.strength = strength;
98
+ this.type = type;
99
+ this.knockout = knockout;
100
+ }
101
+ /**
102
+ * @description 指定されたクラスのストリングを返します。
103
+ * Returns the string representation of the specified class.
104
+ *
105
+ * @return {string}
106
+ * @default [class GradientBevelFilter]
107
+ * @method
108
+ * @static
109
+ */
110
+ static toString() {
111
+ return "[class GradientBevelFilter]";
112
+ }
113
+ /**
114
+ * @description 指定されたクラスの空間名を返します。
115
+ * Returns the space name of the specified class.
116
+ *
117
+ * @return {string}
118
+ * @default next2d.filters.GradientBevelFilter
119
+ * @const
120
+ * @static
121
+ */
122
+ static get namespace() {
123
+ return "next2d.filters.GradientBevelFilter";
124
+ }
125
+ /**
126
+ * @description 指定されたオブジェクトのストリングを返します。
127
+ * Returns the string representation of the specified object.
128
+ *
129
+ * @return {string}
130
+ * @default [object GradientBevelFilter]
131
+ * @method
132
+ * @public
133
+ */
134
+ toString() {
135
+ return "[object GradientBevelFilter]";
136
+ }
137
+ /**
138
+ * @description 指定されたオブジェクトの空間名を返します。
139
+ * Returns the space name of the specified object.
140
+ *
141
+ * @return {string}
142
+ * @default next2d.filters.GradientBevelFilter
143
+ * @const
144
+ * @public
145
+ */
146
+ get namespace() {
147
+ return "next2d.filters.GradientBevelFilter";
148
+ }
149
+ /**
150
+ * @description カラー配列内の各色に対応するアルファ透明度の値の配列です。
151
+ * An array of alpha transparency values
152
+ * for the corresponding colors in the colors array.
153
+ *
154
+ * @member {array}
155
+ * @default null
156
+ * @public
157
+ */
158
+ get alphas() {
159
+ return this._$alphas;
160
+ }
161
+ set alphas(alphas) {
162
+ if (alphas !== this._$alphas) {
163
+ this._$alphas = alphas;
164
+ if ($Array.isArray(alphas)) {
165
+ for (let idx = 0; idx < alphas.length; ++idx) {
166
+ const alpha = alphas[idx];
167
+ alphas[idx] = $clamp(+alpha, 0, 1, 0);
168
+ }
169
+ this._$alphas = alphas;
170
+ }
171
+ this._$doChanged();
172
+ }
173
+ }
174
+ /**
175
+ * @description シャドウの角度
176
+ * The angle of the shadow.
177
+ *
178
+ * @member {number}
179
+ * @default 45
180
+ * @public
181
+ */
182
+ get angle() {
183
+ return this._$angle;
184
+ }
185
+ set angle(angle) {
186
+ angle = $clamp(angle % 360, -360, 360, 45);
187
+ if (angle !== this._$angle) {
188
+ this._$angle = angle;
189
+ this._$doChanged();
190
+ }
191
+ }
192
+ /**
193
+ * @description 水平方向のぼかし量。
194
+ * The amount of horizontal blur.
195
+ *
196
+ * @member {number}
197
+ * @default 4
198
+ * @public
199
+ */
200
+ get blurX() {
201
+ return this._$blurFilter.blurX;
202
+ }
203
+ set blurX(blur_x) {
204
+ this._$blurFilter.blurX = blur_x;
205
+ }
206
+ /**
207
+ * @description 垂直方向のぼかし量。
208
+ * The amount of vertical blur.
209
+ *
210
+ * @member {number}
211
+ * @default 4
212
+ * @public
213
+ */
214
+ get blurY() {
215
+ return this._$blurFilter.blurY;
216
+ }
217
+ set blurY(blur_y) {
218
+ this._$blurFilter.blurY = blur_y;
219
+ }
220
+ /**
221
+ * @description グラデーションで使用する RGB 16 進数カラー値の配列です。
222
+ * An array of RGB hexadecimal color values to use in the gradient.
223
+ *
224
+ * @member {array}
225
+ * @default null
226
+ * @public
227
+ */
228
+ get colors() {
229
+ return this._$colors;
230
+ }
231
+ set colors(colors) {
232
+ if (this._$colors !== colors) {
233
+ this._$colors = colors;
234
+ if ($Array.isArray(colors)) {
235
+ for (let idx = 0; idx < colors.length; ++idx) {
236
+ colors[idx] = $clamp($toColorInt(colors[idx]), 0, 0xffffff, 0);
237
+ }
238
+ this._$colors = colors;
239
+ }
240
+ this._$doChanged();
241
+ }
242
+ }
243
+ /**
244
+ * @description シャドウのオフセット距離です。
245
+ * The offset distance for the shadow, in pixels.
246
+ *
247
+ * @member {number}
248
+ * @default 4
249
+ * @public
250
+ */
251
+ get distance() {
252
+ return this._$distance;
253
+ }
254
+ set distance(distance) {
255
+ distance = $clamp(+distance, -255, 255, 4);
256
+ if (distance !== this._$distance) {
257
+ this._$distance = distance;
258
+ this._$doChanged();
259
+ }
260
+ }
261
+ /**
262
+ * @description オブジェクトにノックアウト効果を適用するかどうか
263
+ * Specifies whether the object has a knockout effect.
264
+ *
265
+ * @member {boolean}
266
+ * @default false
267
+ * @public
268
+ */
269
+ get knockout() {
270
+ return this._$knockout;
271
+ }
272
+ set knockout(knockout) {
273
+ if (knockout !== this._$knockout) {
274
+ this._$knockout = !!knockout;
275
+ this._$doChanged();
276
+ }
277
+ }
278
+ /**
279
+ * @description ぼかしの実行回数です。
280
+ * The number of times to perform the blur.
281
+ *
282
+ * @member {number}
283
+ * @default 1
284
+ * @public
285
+ */
286
+ get quality() {
287
+ return this._$blurFilter.quality;
288
+ }
289
+ set quality(quality) {
290
+ this._$blurFilter.quality = quality;
291
+ }
292
+ /**
293
+ * @description カラー配列内の対応するカラーの色分布比率の配列です。
294
+ * An array of color distribution ratios
295
+ * for the corresponding colors in the colors array.
296
+ *
297
+ * @member {array}
298
+ * @default null
299
+ * @public
300
+ */
301
+ get ratios() {
302
+ return this._$ratios;
303
+ }
304
+ set ratios(ratios) {
305
+ if (this._$ratios !== ratios) {
306
+ this._$ratios = ratios;
307
+ if ($Array.isArray(ratios)) {
308
+ for (let idx = 0; idx < ratios.length; ++idx) {
309
+ ratios[idx] = $clamp(+ratios[idx], 0, 255, 0);
310
+ }
311
+ this._$ratios = ratios;
312
+ }
313
+ this._$doChanged();
314
+ }
315
+ }
316
+ /**
317
+ * @description インプリントの強さまたは広がりです。
318
+ * The strength of the imprint or spread.
319
+ *
320
+ * @member {number}
321
+ * @default 1
322
+ * @public
323
+ */
324
+ get strength() {
325
+ return this._$strength;
326
+ }
327
+ set strength(strength) {
328
+ strength = $clamp(strength | 0, 0, 255, 0);
329
+ if (strength !== this._$strength) {
330
+ this._$strength = strength;
331
+ this._$doChanged();
332
+ }
333
+ }
334
+ /**
335
+ * @description オブジェクトでのベベルの配置
336
+ * The placement of the bevel on the object.
337
+ *
338
+ * @member {string}
339
+ * @default BitmapFilterType.INNER
340
+ * @public
341
+ */
342
+ get type() {
343
+ return this._$type;
344
+ }
345
+ set type(type) {
346
+ if (type !== this._$type) {
347
+ this._$type = type;
348
+ this._$doChanged();
349
+ }
350
+ }
351
+ /**
352
+ * @description オブジェクトのコピーを返します。
353
+ * Returns a copy of this filter object.
354
+ *
355
+ * @return {GradientBevelFilter}
356
+ * @method
357
+ * @public
358
+ */
359
+ clone() {
360
+ return new GradientBevelFilter(this._$distance, this._$angle, this._$colors ? this._$colors.slice() : null, this._$alphas ? this._$alphas.slice() : null, this._$ratios ? this._$ratios.slice() : null, this._$blurFilter.blurX, this._$blurFilter.blurY, this._$strength, this._$blurFilter.quality, this._$type, this._$knockout);
361
+ }
362
+ /**
363
+ * @return {array}
364
+ * @method
365
+ * @public
366
+ */
367
+ _$toArray() {
368
+ return $getArray(7, this._$distance, this._$angle, this._$colors, this._$alphas, this._$ratios, this._$blurFilter.blurX, this._$blurFilter.blurY, this._$strength, this._$blurFilter.quality, this._$type, this._$knockout);
369
+ }
370
+ /**
371
+ * @return {boolean}
372
+ * @method
373
+ * @private
374
+ */
375
+ _$isUpdated() {
376
+ return this._$updated || this._$blurFilter._$isUpdated();
377
+ }
378
+ /**
379
+ * @param {object} bounds
380
+ * @param {number} [x_scale=0]
381
+ * @param {number} [y_scale=0]
382
+ * @return {object}
383
+ * @method
384
+ * @private
385
+ */
386
+ _$generateFilterRect(bounds, x_scale = 0, y_scale = 0) {
387
+ let clone = $getBoundsObject(bounds.xMin, bounds.xMax, bounds.yMin, bounds.yMax);
388
+ if (!this._$canApply()) {
389
+ return clone;
390
+ }
391
+ clone = this
392
+ ._$blurFilter
393
+ ._$generateFilterRect(clone, x_scale, y_scale);
394
+ const radian = this._$angle * $Deg2Rad;
395
+ const x = $Math.abs($Math.cos(radian) * this._$distance);
396
+ const y = $Math.abs($Math.sin(radian) * this._$distance);
397
+ clone.xMin += -x;
398
+ clone.xMax += x;
399
+ clone.yMin += -y;
400
+ clone.yMax += y * 2;
401
+ return clone;
402
+ }
403
+ /**
404
+ * @return {boolean}
405
+ * @method
406
+ * @private
407
+ */
408
+ _$canApply() {
409
+ return this._$strength > 0 && this._$distance > 0
410
+ && this._$alphas !== null && this._$ratios !== null && this._$colors !== null
411
+ && this._$blurFilter._$canApply();
412
+ }
413
+ /**
414
+ * @param {CanvasToWebGLContext} context
415
+ * @param {Float32Array} matrix
416
+ * @return {WebGLTexture}
417
+ * @method
418
+ * @private
419
+ */
420
+ _$applyFilter(context, matrix) {
421
+ this._$updated = false;
422
+ const manager = context.frameBuffer;
423
+ const currentAttachment = manager.currentAttachment;
424
+ // reset
425
+ context.setTransform(1, 0, 0, 1, 0, 0);
426
+ const baseTexture = manager
427
+ .getTextureFromCurrentAttachment();
428
+ if (!this._$canApply() || !currentAttachment) {
429
+ return baseTexture;
430
+ }
431
+ const baseWidth = currentAttachment.width;
432
+ const baseHeight = currentAttachment.height;
433
+ const baseOffsetX = context._$offsetX;
434
+ const baseOffsetY = context._$offsetY;
435
+ // matrix to scale
436
+ const xScale = $Math.sqrt(matrix[0] * matrix[0] + matrix[1] * matrix[1]);
437
+ const yScale = $Math.sqrt(matrix[2] * matrix[2] + matrix[3] * matrix[3]);
438
+ // pointer
439
+ const radian = +(this._$angle * $Deg2Rad);
440
+ const x = +($Math.cos(radian) * this._$distance * xScale);
441
+ const y = +($Math.sin(radian) * this._$distance * yScale);
442
+ // highlight buffer
443
+ const highlightTextureBaseAttachment = manager
444
+ .createTextureAttachment(baseWidth, baseHeight);
445
+ context._$bind(highlightTextureBaseAttachment);
446
+ context.reset();
447
+ context.drawImage(baseTexture, 0, 0, baseWidth, baseHeight);
448
+ context.globalCompositeOperation = "erase";
449
+ context.drawImage(baseTexture, x * 2, y * 2, baseWidth, baseHeight);
450
+ const highlightTextureBase = this
451
+ ._$blurFilter
452
+ ._$applyFilter(context, matrix, false);
453
+ const blurWidth = highlightTextureBase.width;
454
+ const blurHeight = highlightTextureBase.height;
455
+ const bevelWidth = $Math.ceil(blurWidth + $Math.abs(x) * 2);
456
+ const bevelHeight = $Math.ceil(blurHeight + $Math.abs(y) * 2);
457
+ // bevel filter buffer
458
+ const isInner = this._$type === "inner";
459
+ const width = isInner ? baseWidth : bevelWidth;
460
+ const height = isInner ? baseHeight : bevelHeight;
461
+ const absX = $Math.abs(x);
462
+ const absY = $Math.abs(y);
463
+ const blurOffsetX = (blurWidth - baseWidth) / 2;
464
+ const blurOffsetY = (blurHeight - baseHeight) / 2;
465
+ const baseTextureX = isInner ? 0 : absX + blurOffsetX;
466
+ const baseTextureY = isInner ? 0 : absY + blurOffsetY;
467
+ const blurTextureX = isInner ? -blurOffsetX - x : absX - x;
468
+ const blurTextureY = isInner ? -blurOffsetY - y : absY - y;
469
+ context._$bind(currentAttachment);
470
+ context._$applyBitmapFilter(highlightTextureBase, width, height, baseWidth, baseHeight, baseTextureX, baseTextureY, blurWidth, blurHeight, blurTextureX, blurTextureY, false, this._$type, this._$knockout, this._$strength, this._$ratios, this._$colors, this._$alphas, 0, 0, 0, 0, 0, 0, 0, 0);
471
+ context._$offsetX = baseOffsetX + baseTextureX;
472
+ context._$offsetY = baseOffsetY + baseTextureY;
473
+ manager.releaseAttachment(highlightTextureBaseAttachment, true);
474
+ return manager.getTextureFromCurrentAttachment();
475
+ }
476
+ }
@@ -0,0 +1,243 @@
1
+ import { BitmapFilter } from "./BitmapFilter";
2
+ import type { FilterQualityImpl } from "./interface/FilterQualityImpl";
3
+ import type { BitmapFilterTypeImpl } from "./interface/BitmapFilterTypeImpl";
4
+ import type { BoundsImpl } from "./interface/BoundsImpl";
5
+ import type { CanvasToWebGLContext } from "@next2d/webgl";
6
+ /**
7
+ * GradientGlowFilter クラスを使用すると、表示オブジェクトにグラデーショングロー効果を適用できます。
8
+ * グラデーショングローとは、制御可能なカラーグラデーションによるリアルな輝きです。
9
+ * グラデーショングローは、オブジェクトの内側エッジや外側エッジの周囲、またはオブジェクトの上に適用できます。
10
+ *
11
+ * The GradientGlowFilter class lets you apply a gradient glow effect to display objects.
12
+ * A gradient glow is a realistic-looking glow with a color gradient that you can control.
13
+ * You can apply a gradient glow around the inner or outer edge of an object or on top of an object.
14
+ *
15
+ * @class
16
+ * @memberOf next2d.filters
17
+ * @extends BitmapFilter
18
+ */
19
+ export declare class GradientGlowFilter extends BitmapFilter {
20
+ private _$blurFilter;
21
+ private _$distance;
22
+ private _$angle;
23
+ private _$colors;
24
+ private _$alphas;
25
+ private _$ratios;
26
+ private _$strength;
27
+ private _$type;
28
+ private _$knockout;
29
+ /**
30
+ * @param {number} [distance=4.0]
31
+ * @param {number} [angle=45]
32
+ * @param {array} [colors=null]
33
+ * @param {array} [alphas=null]
34
+ * @param {array} [ratios=null]
35
+ * @param {number} [blur_x=4.0]
36
+ * @param {number} [blur_y=4.0]
37
+ * @param {number} [strength=1]
38
+ * @param {number} [quality=1]
39
+ * @param {string} [type=BitmapFilterType.INNER]
40
+ * @param {boolean} [knockout=false]
41
+ *
42
+ * @constructor
43
+ * @public
44
+ */
45
+ constructor(distance?: number, angle?: number, colors?: number[] | null, alphas?: number[] | null, ratios?: number[] | null, blur_x?: number, blur_y?: number, strength?: number, quality?: FilterQualityImpl, type?: BitmapFilterTypeImpl, knockout?: boolean);
46
+ /**
47
+ * @description 指定されたクラスのストリングを返します。
48
+ * Returns the string representation of the specified class.
49
+ *
50
+ * @return {string}
51
+ * @default [class GradientGlowFilter]
52
+ * @method
53
+ * @static
54
+ */
55
+ static toString(): string;
56
+ /**
57
+ * @description 指定されたクラスの空間名を返します。
58
+ * Returns the space name of the specified class.
59
+ *
60
+ * @return {string}
61
+ * @default next2d.filters.GradientGlowFilter
62
+ * @const
63
+ * @static
64
+ */
65
+ static get namespace(): string;
66
+ /**
67
+ * @description 指定されたオブジェクトのストリングを返します。
68
+ * Returns the string representation of the specified object.
69
+ *
70
+ * @return {string}
71
+ * @default [object GradientGlowFilter]
72
+ * @method
73
+ * @public
74
+ */
75
+ toString(): string;
76
+ /**
77
+ * @description 指定されたオブジェクトの空間名を返します。
78
+ * Returns the space name of the specified object.
79
+ *
80
+ * @return {string}
81
+ * @default next2d.filters.GradientGlowFilter
82
+ * @const
83
+ * @public
84
+ */
85
+ get namespace(): string;
86
+ /**
87
+ * @description カラー配列内の各色に対応するアルファ透明度の値の配列です。
88
+ * An array of alpha transparency values
89
+ * for the corresponding colors in the colors array.
90
+ *
91
+ * @member {array}
92
+ * @default null
93
+ * @public
94
+ */
95
+ get alphas(): number[] | null;
96
+ set alphas(alphas: number[] | null);
97
+ /**
98
+ * @description シャドウの角度
99
+ * The angle of the shadow.
100
+ *
101
+ * @member {number}
102
+ * @default 45
103
+ * @public
104
+ */
105
+ get angle(): number;
106
+ set angle(angle: number);
107
+ /**
108
+ * @description 水平方向のぼかし量。
109
+ * The amount of horizontal blur.
110
+ *
111
+ * @member {number}
112
+ * @default 4
113
+ * @public
114
+ */
115
+ get blurX(): number;
116
+ set blurX(blur_x: number);
117
+ /**
118
+ * @description 垂直方向のぼかし量。
119
+ * The amount of vertical blur.
120
+ *
121
+ * @member {number}
122
+ * @default 4
123
+ * @public
124
+ */
125
+ get blurY(): number;
126
+ set blurY(blur_y: number);
127
+ /**
128
+ * @description グラデーションで使用する RGB 16 進数カラー値の配列です。
129
+ * An array of RGB hexadecimal color values to use in the gradient.
130
+ *
131
+ * @member {array}
132
+ * @default null
133
+ * @public
134
+ */
135
+ get colors(): number[] | null;
136
+ set colors(colors: number[] | null);
137
+ /**
138
+ * @description シャドウのオフセット距離です。
139
+ * The offset distance for the shadow, in pixels.
140
+ *
141
+ * @member {number}
142
+ * @default 4
143
+ * @public
144
+ */
145
+ get distance(): number;
146
+ set distance(distance: number);
147
+ /**
148
+ * @description オブジェクトにノックアウト効果を適用するかどうか
149
+ * Specifies whether the object has a knockout effect.
150
+ *
151
+ * @member {boolean}
152
+ * @default false
153
+ * @public
154
+ */
155
+ get knockout(): boolean;
156
+ set knockout(knockout: boolean);
157
+ /**
158
+ * @description ぼかしの実行回数です。
159
+ * The number of times to perform the blur.
160
+ *
161
+ * @member {number}
162
+ * @default 1
163
+ * @public
164
+ */
165
+ get quality(): FilterQualityImpl;
166
+ set quality(quality: FilterQualityImpl);
167
+ /**
168
+ * @description カラー配列内の対応するカラーの色分布比率の配列です。
169
+ * An array of color distribution ratios
170
+ * for the corresponding colors in the colors array.
171
+ *
172
+ * @member {array}
173
+ * @default null
174
+ * @public
175
+ */
176
+ get ratios(): number[] | null;
177
+ set ratios(ratios: number[] | null);
178
+ /**
179
+ * @description インプリントの強さまたは広がりです。
180
+ * The strength of the imprint or spread.
181
+ *
182
+ * @member {number}
183
+ * @default 1
184
+ * @public
185
+ */
186
+ get strength(): number;
187
+ set strength(strength: number);
188
+ /**
189
+ * @description オブジェクトでのベベルの配置
190
+ * The placement of the bevel on the object.
191
+ *
192
+ * @member {string}
193
+ * @default BitmapFilterType.INNER
194
+ * @public
195
+ */
196
+ get type(): BitmapFilterTypeImpl;
197
+ set type(type: BitmapFilterTypeImpl);
198
+ /**
199
+ * @description オブジェクトのコピーを返します。
200
+ * Returns a copy of this filter object.
201
+ *
202
+ * @return {GradientGlowFilter}
203
+ * @method
204
+ * @public
205
+ */
206
+ clone(): GradientGlowFilter;
207
+ /**
208
+ * @return {array}
209
+ * @method
210
+ * @public
211
+ */
212
+ _$toArray(): any[];
213
+ /**
214
+ * @return {boolean}
215
+ * @method
216
+ * @private
217
+ */
218
+ _$isUpdated(): boolean;
219
+ /**
220
+ * @param {object} bounds
221
+ * @param {number} [x_scale=0]
222
+ * @param {number} [y_scale=0]
223
+ * @return {object}
224
+ * @method
225
+ * @private
226
+ */
227
+ _$generateFilterRect(bounds: BoundsImpl, x_scale?: number, y_scale?: number): BoundsImpl;
228
+ /**
229
+ /**
230
+ * @return {boolean}
231
+ * @method
232
+ * @private
233
+ */
234
+ _$canApply(): boolean;
235
+ /**
236
+ * @param {CanvasToWebGLContext} context
237
+ * @param {array} matrix
238
+ * @return {WebGLTexture}
239
+ * @method
240
+ * @private
241
+ */
242
+ _$applyFilter(context: CanvasToWebGLContext, matrix: Float32Array): WebGLTexture;
243
+ }