@next2d/filters 1.18.12 → 2.0.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.
Files changed (118) hide show
  1. package/package.json +8 -20
  2. package/src/BevelFilter/service/BevelFilterCanApplyFilterService.d.ts +11 -0
  3. package/src/BevelFilter/service/BevelFilterCanApplyFilterService.js +16 -0
  4. package/src/BevelFilter/service/BevelFilterToArrayService.d.ts +11 -0
  5. package/src/BevelFilter/service/BevelFilterToArrayService.js +26 -0
  6. package/src/BevelFilter/service/BevelFilterToNumberArrayService.d.ts +11 -0
  7. package/src/BevelFilter/service/BevelFilterToNumberArrayService.js +27 -0
  8. package/src/BevelFilter/usecase/BevelFilterGetBoundsUseCase.d.ts +10 -0
  9. package/src/BevelFilter/usecase/BevelFilterGetBoundsUseCase.js +29 -0
  10. package/{dist → src}/BevelFilter.d.ts +117 -84
  11. package/src/BevelFilter.js +513 -0
  12. package/src/BitmapFilter.d.ts +50 -0
  13. package/src/BitmapFilter.js +61 -0
  14. package/src/BlurFilter/service/BlurFilterCanApplyFilterService.d.ts +16 -0
  15. package/src/BlurFilter/service/BlurFilterCanApplyFilterService.js +12 -0
  16. package/src/BlurFilter/service/BlurFilterToArrayService.d.ts +11 -0
  17. package/src/BlurFilter/service/BlurFilterToArrayService.js +17 -0
  18. package/src/BlurFilter/service/BlurFilterToNumberArrayService.d.ts +11 -0
  19. package/src/BlurFilter/service/BlurFilterToNumberArrayService.js +17 -0
  20. package/src/BlurFilter/usecase/BlurFilterGetBoundsUseCase.d.ts +17 -0
  21. package/src/BlurFilter/usecase/BlurFilterGetBoundsUseCase.js +29 -0
  22. package/src/BlurFilter.d.ts +142 -0
  23. package/src/BlurFilter.js +213 -0
  24. package/src/ColorMatrixFilter/service/ColorMatrixFilterToArrayService.d.ts +11 -0
  25. package/src/ColorMatrixFilter/service/ColorMatrixFilterToArrayService.js +15 -0
  26. package/src/ColorMatrixFilter/service/ColorMatrixFilterToNumberArrayService.d.ts +11 -0
  27. package/src/ColorMatrixFilter/service/ColorMatrixFilterToNumberArrayService.js +15 -0
  28. package/src/ColorMatrixFilter.d.ts +78 -0
  29. package/src/ColorMatrixFilter.js +129 -0
  30. package/src/ConvolutionFilter/service/ConvolutionFilterCanApplyFilterService.d.ts +11 -0
  31. package/src/ConvolutionFilter/service/ConvolutionFilterCanApplyFilterService.js +13 -0
  32. package/src/ConvolutionFilter/service/ConvolutionFilterToArrayService.d.ts +11 -0
  33. package/src/ConvolutionFilter/service/ConvolutionFilterToArrayService.js +23 -0
  34. package/src/ConvolutionFilter/service/ConvolutionFilterToNumberArrayService.d.ts +11 -0
  35. package/src/ConvolutionFilter/service/ConvolutionFilterToNumberArrayService.js +24 -0
  36. package/{dist → src}/ConvolutionFilter.d.ts +75 -63
  37. package/{dist → src}/ConvolutionFilter.js +148 -126
  38. package/src/DisplacementMapFilter/service/DisplacementMapFilterCanApplyFilterService.d.ts +11 -0
  39. package/src/DisplacementMapFilter/service/DisplacementMapFilterCanApplyFilterService.js +16 -0
  40. package/src/DisplacementMapFilter/service/DisplacementMapFilterToArrayService.d.ts +11 -0
  41. package/src/DisplacementMapFilter/service/DisplacementMapFilterToArrayService.js +28 -0
  42. package/src/DisplacementMapFilter/service/DisplacementMapFilterToNumberArrayService.d.ts +11 -0
  43. package/src/DisplacementMapFilter/service/DisplacementMapFilterToNumberArrayService.js +36 -0
  44. package/src/DisplacementMapFilter.d.ts +274 -0
  45. package/src/DisplacementMapFilter.js +481 -0
  46. package/src/DropShadowFilter/service/DropShadowFilterCanApplyFilterService.d.ts +11 -0
  47. package/src/DropShadowFilter/service/DropShadowFilterCanApplyFilterService.js +16 -0
  48. package/src/DropShadowFilter/service/DropShadowFilterToArrayService.d.ts +11 -0
  49. package/src/DropShadowFilter/service/DropShadowFilterToArrayService.js +25 -0
  50. package/src/DropShadowFilter/service/DropShadowFilterToNumberArrayService.d.ts +11 -0
  51. package/src/DropShadowFilter/service/DropShadowFilterToNumberArrayService.js +25 -0
  52. package/src/DropShadowFilter/usecase/DropShadowFilterGetBoundsUseCase.d.ts +10 -0
  53. package/src/DropShadowFilter/usecase/DropShadowFilterGetBoundsUseCase.js +33 -0
  54. package/{dist → src}/DropShadowFilter.d.ts +98 -73
  55. package/src/DropShadowFilter.js +466 -0
  56. package/src/FilterUtil.d.ts +36 -0
  57. package/src/FilterUtil.js +60 -0
  58. package/src/GlowFilter/service/GlowFilterCanApplyFilterService.d.ts +11 -0
  59. package/src/GlowFilter/service/GlowFilterCanApplyFilterService.js +16 -0
  60. package/src/GlowFilter/service/GlowFilterToArrayService.d.ts +11 -0
  61. package/src/GlowFilter/service/GlowFilterToArrayService.js +22 -0
  62. package/src/GlowFilter/service/GlowFilterToNumberArrayService.d.ts +11 -0
  63. package/src/GlowFilter/service/GlowFilterToNumberArrayService.js +22 -0
  64. package/src/GlowFilter/usecase/GlowFilterGetBoundsUseCase.d.ts +10 -0
  65. package/src/GlowFilter/usecase/GlowFilterGetBoundsUseCase.js +19 -0
  66. package/{dist → src}/GlowFilter.d.ts +84 -74
  67. package/src/GlowFilter.js +367 -0
  68. package/src/GradientBevelFilter/service/GradientBevelFilterCanApplyFilterService.d.ts +11 -0
  69. package/src/GradientBevelFilter/service/GradientBevelFilterCanApplyFilterService.js +19 -0
  70. package/src/GradientBevelFilter/service/GradientBevelFilterToArrayService.d.ts +11 -0
  71. package/src/GradientBevelFilter/service/GradientBevelFilterToArrayService.js +25 -0
  72. package/src/GradientBevelFilter/service/GradientBevelFilterToNumberArrayService.d.ts +11 -0
  73. package/src/GradientBevelFilter/service/GradientBevelFilterToNumberArrayService.js +29 -0
  74. package/src/GradientBevelFilter/usecase/GradientBevelFilterGetBoundsUseCase.d.ts +10 -0
  75. package/src/GradientBevelFilter/usecase/GradientBevelFilterGetBoundsUseCase.js +29 -0
  76. package/{dist → src}/GradientBevelFilter.d.ts +102 -77
  77. package/src/GradientBevelFilter.js +482 -0
  78. package/src/GradientGlowFilter/service/GradientGlowFilterCanApplyFilterService.d.ts +11 -0
  79. package/src/GradientGlowFilter/service/GradientGlowFilterCanApplyFilterService.js +19 -0
  80. package/src/GradientGlowFilter/service/GradientGlowFilterToArrayService.d.ts +11 -0
  81. package/src/GradientGlowFilter/service/GradientGlowFilterToArrayService.js +25 -0
  82. package/src/GradientGlowFilter/service/GradientGlowFilterToNumberArrayService.d.ts +11 -0
  83. package/src/GradientGlowFilter/service/GradientGlowFilterToNumberArrayService.js +29 -0
  84. package/src/GradientGlowFilter/usecase/GradientGlowFilterGetBoundsUseCase.d.ts +10 -0
  85. package/src/GradientGlowFilter/usecase/GradientGlowFilterGetBoundsUseCase.js +19 -0
  86. package/{dist → src}/GradientGlowFilter.d.ts +102 -78
  87. package/src/GradientGlowFilter.js +480 -0
  88. package/src/interface/IBitmapDataChannel.d.ts +1 -0
  89. package/src/interface/IBitmapFilterType.d.ts +1 -0
  90. package/{dist/interface/BoundsImpl.d.ts → src/interface/IBounds.d.ts} +1 -1
  91. package/src/interface/IDisplacementMapFilterMode.d.ts +1 -0
  92. package/src/interface/IFilterQuality.d.ts +1 -0
  93. package/dist/BevelFilter.js +0 -504
  94. package/dist/BitmapFilter.d.ts +0 -75
  95. package/dist/BitmapFilter.js +0 -95
  96. package/dist/BlurFilter.d.ts +0 -150
  97. package/dist/BlurFilter.js +0 -375
  98. package/dist/ColorMatrixFilter.d.ts +0 -116
  99. package/dist/ColorMatrixFilter.js +0 -179
  100. package/dist/DisplacementMapFilter.d.ts +0 -211
  101. package/dist/DisplacementMapFilter.js +0 -368
  102. package/dist/DropShadowFilter.js +0 -475
  103. package/dist/GlowFilter.js +0 -356
  104. package/dist/GradientBevelFilter.js +0 -490
  105. package/dist/GradientGlowFilter.js +0 -480
  106. package/dist/interface/AttachmentImpl.d.ts +0 -11
  107. package/dist/interface/BitmapDataChannelImpl.d.ts +0 -1
  108. package/dist/interface/BitmapFilterTypeImpl.d.ts +0 -1
  109. package/dist/interface/DisplacementMapFilterModeImpl.d.ts +0 -1
  110. package/dist/interface/FilterQualityImpl.d.ts +0 -1
  111. package/dist/interface/FilterQualityImpl.js +0 -1
  112. /package/{dist → src}/index.d.ts +0 -0
  113. /package/{dist → src}/index.js +0 -0
  114. /package/{dist/interface/AttachmentImpl.js → src/interface/IBitmapDataChannel.js} +0 -0
  115. /package/{dist/interface/BitmapDataChannelImpl.js → src/interface/IBitmapFilterType.js} +0 -0
  116. /package/{dist/interface/BitmapFilterTypeImpl.js → src/interface/IBounds.js} +0 -0
  117. /package/{dist/interface/BoundsImpl.js → src/interface/IDisplacementMapFilterMode.js} +0 -0
  118. /package/{dist/interface/DisplacementMapFilterModeImpl.js → src/interface/IFilterQuality.js} +0 -0
@@ -0,0 +1,480 @@
1
+ import { BitmapFilter } from "./BitmapFilter";
2
+ import { execute as gradientGlowFilterToArrayService } from "./GradientGlowFilter/service/GradientGlowFilterToArrayService";
3
+ import { execute as gradientGlowFilterCanApplyFilterService } from "./GradientGlowFilter/service/GradientGlowFilterCanApplyFilterService";
4
+ import { execute as gradientGlowFilterToNumberArrayService } from "./GradientGlowFilter/service/GradientGlowFilterToNumberArrayService";
5
+ import { execute as gradientGlowFilterGetBoundsUseCase } from "./GradientGlowFilter/usecase/GradientGlowFilterGetBoundsUseCase";
6
+ import { $clamp, $convertColorStringToNumber } from "./FilterUtil";
7
+ /**
8
+ * @description GradientGlowFilter クラスを使用すると、表示オブジェクトにグラデーショングロー効果を適用できます。
9
+ * グラデーショングローとは、制御可能なカラーグラデーションによるリアルな輝きです。
10
+ * グラデーショングローは、オブジェクトの内側エッジや外側エッジの周囲、またはオブジェクトの上に適用できます。
11
+ *
12
+ * The GradientGlowFilter class lets you apply a gradient glow effect to display objects.
13
+ * A gradient glow is a realistic-looking glow with a color gradient that you can control.
14
+ * You can apply a gradient glow around the inner or outer edge of an object or on top of an object.
15
+ *
16
+ * @class
17
+ * @memberOf next2d.filters
18
+ * @extends BitmapFilter
19
+ */
20
+ export class GradientGlowFilter extends BitmapFilter {
21
+ /**
22
+ * @param {number} [distance=4.0]
23
+ * @param {number} [angle=45]
24
+ * @param {array} [colors=null]
25
+ * @param {array} [alphas=null]
26
+ * @param {array} [ratios=null]
27
+ * @param {number} [blur_x=4.0]
28
+ * @param {number} [blur_y=4.0]
29
+ * @param {number} [strength=1]
30
+ * @param {number} [quality=1]
31
+ * @param {string} [type=BitmapFilterType.OUTER]
32
+ * @param {boolean} [knockout=false]
33
+ *
34
+ * @constructor
35
+ * @public
36
+ */
37
+ constructor(distance = 4, angle = 45, colors = null, alphas = null, ratios = null, blur_x = 4, blur_y = 4, strength = 1, quality = 1, type = "outer", knockout = false) {
38
+ super();
39
+ /**
40
+ * @description フィルター認識番号
41
+ * Filter Recognition Number
42
+ *
43
+ * @member {number}
44
+ * @public
45
+ */
46
+ Object.defineProperty(this, "$filterType", {
47
+ enumerable: true,
48
+ configurable: true,
49
+ writable: true,
50
+ value: 8
51
+ });
52
+ /**
53
+ * @type {number}
54
+ * @default 4
55
+ * @private
56
+ */
57
+ Object.defineProperty(this, "_$blurX", {
58
+ enumerable: true,
59
+ configurable: true,
60
+ writable: true,
61
+ value: void 0
62
+ });
63
+ /**
64
+ * @type {number}
65
+ * @default 4
66
+ * @private
67
+ */
68
+ Object.defineProperty(this, "_$blurY", {
69
+ enumerable: true,
70
+ configurable: true,
71
+ writable: true,
72
+ value: void 0
73
+ });
74
+ /**
75
+ * @type {IFilterQuality}
76
+ * @default 1
77
+ * @private
78
+ */
79
+ Object.defineProperty(this, "_$quality", {
80
+ enumerable: true,
81
+ configurable: true,
82
+ writable: true,
83
+ value: void 0
84
+ });
85
+ /**
86
+ * @type {number}
87
+ * @default 4
88
+ * @private
89
+ */
90
+ Object.defineProperty(this, "_$distance", {
91
+ enumerable: true,
92
+ configurable: true,
93
+ writable: true,
94
+ value: void 0
95
+ });
96
+ /**
97
+ * @type {number}
98
+ * @default 45
99
+ * @private
100
+ */
101
+ Object.defineProperty(this, "_$angle", {
102
+ enumerable: true,
103
+ configurable: true,
104
+ writable: true,
105
+ value: void 0
106
+ });
107
+ /**
108
+ * @type {array}
109
+ * @default null
110
+ * @private
111
+ */
112
+ Object.defineProperty(this, "_$colors", {
113
+ enumerable: true,
114
+ configurable: true,
115
+ writable: true,
116
+ value: void 0
117
+ });
118
+ /**
119
+ * @type {array}
120
+ * @default null
121
+ * @private
122
+ */
123
+ Object.defineProperty(this, "_$alphas", {
124
+ enumerable: true,
125
+ configurable: true,
126
+ writable: true,
127
+ value: void 0
128
+ });
129
+ /**
130
+ * @type {array}
131
+ * @default null
132
+ * @private
133
+ */
134
+ Object.defineProperty(this, "_$ratios", {
135
+ enumerable: true,
136
+ configurable: true,
137
+ writable: true,
138
+ value: void 0
139
+ });
140
+ /**
141
+ * @type {number}
142
+ * @default 1
143
+ * @private
144
+ */
145
+ Object.defineProperty(this, "_$strength", {
146
+ enumerable: true,
147
+ configurable: true,
148
+ writable: true,
149
+ value: void 0
150
+ });
151
+ /**
152
+ * @type {string}
153
+ * @default "outer"
154
+ * @private
155
+ */
156
+ Object.defineProperty(this, "_$type", {
157
+ enumerable: true,
158
+ configurable: true,
159
+ writable: true,
160
+ value: void 0
161
+ });
162
+ /**
163
+ * @type {boolean}
164
+ * @default false
165
+ * @private
166
+ */
167
+ Object.defineProperty(this, "_$knockout", {
168
+ enumerable: true,
169
+ configurable: true,
170
+ writable: true,
171
+ value: void 0
172
+ });
173
+ // default
174
+ this._$blurX = 4;
175
+ this._$blurY = 4;
176
+ this._$quality = 1;
177
+ this._$distance = 4;
178
+ this._$angle = 45;
179
+ this._$colors = null;
180
+ this._$alphas = null;
181
+ this._$ratios = null;
182
+ this._$strength = 1;
183
+ this._$type = "outer";
184
+ this._$knockout = false;
185
+ // setup
186
+ this.blurX = blur_x;
187
+ this.blurY = blur_y;
188
+ this.quality = quality;
189
+ this.distance = distance;
190
+ this.angle = angle;
191
+ this.colors = colors;
192
+ this.alphas = alphas;
193
+ this.ratios = ratios;
194
+ this.strength = strength;
195
+ this.type = type;
196
+ this.knockout = knockout;
197
+ }
198
+ /**
199
+ * @description カラー配列内の各色に対応するアルファ透明度の値の配列です。
200
+ * An array of alpha transparency values
201
+ * for the corresponding colors in the colors array.
202
+ *
203
+ * @member {array}
204
+ * @default null
205
+ * @public
206
+ */
207
+ get alphas() {
208
+ return this._$alphas;
209
+ }
210
+ set alphas(alphas) {
211
+ if (alphas === this._$alphas) {
212
+ return;
213
+ }
214
+ if (Array.isArray(alphas)) {
215
+ for (let idx = 0; idx < alphas.length; ++idx) {
216
+ const alpha = alphas[idx];
217
+ alphas[idx] = $clamp(+alpha, 0, 1, 0);
218
+ }
219
+ }
220
+ this._$alphas = alphas;
221
+ this.$updated = true;
222
+ }
223
+ /**
224
+ * @description シャドウの角度
225
+ * The angle of the shadow.
226
+ *
227
+ * @member {number}
228
+ * @default 45
229
+ * @public
230
+ */
231
+ get angle() {
232
+ return this._$angle;
233
+ }
234
+ set angle(angle) {
235
+ angle = $clamp(angle % 360, -360, 360, 45);
236
+ if (angle === this._$angle) {
237
+ return;
238
+ }
239
+ this._$angle = angle;
240
+ this.$updated = true;
241
+ }
242
+ /**
243
+ * @description 水平方向のぼかし量。
244
+ * The amount of horizontal blur.
245
+ *
246
+ * @member {number}
247
+ * @default 4
248
+ * @public
249
+ */
250
+ get blurX() {
251
+ return this._$blurX;
252
+ }
253
+ set blurX(blur_x) {
254
+ blur_x = $clamp(+blur_x, 0, 255, 0);
255
+ if (blur_x === this._$blurX) {
256
+ return;
257
+ }
258
+ this._$blurX = blur_x;
259
+ this.$updated = true;
260
+ }
261
+ /**
262
+ * @description 垂直方向のぼかし量。
263
+ * The amount of vertical blur.
264
+ *
265
+ * @member {number}
266
+ * @default 4
267
+ * @public
268
+ */
269
+ get blurY() {
270
+ return this._$blurY;
271
+ }
272
+ set blurY(blur_y) {
273
+ blur_y = $clamp(+blur_y, 0, 255, 0);
274
+ if (blur_y === this._$blurY) {
275
+ return;
276
+ }
277
+ this._$blurY = blur_y;
278
+ this.$updated = true;
279
+ }
280
+ /**
281
+ * @description グラデーションで使用する RGB 16 進数カラー値の配列です。
282
+ * An array of RGB hexadecimal color values to use in the gradient.
283
+ *
284
+ * @member {array}
285
+ * @default null
286
+ * @public
287
+ */
288
+ get colors() {
289
+ return this._$colors;
290
+ }
291
+ set colors(colors) {
292
+ if (this._$colors === colors) {
293
+ return;
294
+ }
295
+ if (Array.isArray(colors)) {
296
+ for (let idx = 0; idx < colors.length; ++idx) {
297
+ const color = colors[idx];
298
+ colors[idx] = $clamp(typeof color === "string"
299
+ ? $convertColorStringToNumber(color)
300
+ : color, 0, 0xffffff, 0);
301
+ }
302
+ }
303
+ this._$colors = colors;
304
+ this.$updated = true;
305
+ }
306
+ /**
307
+ * @description シャドウのオフセット距離です。
308
+ * The offset distance for the shadow, in pixels.
309
+ *
310
+ * @member {number}
311
+ * @default 4
312
+ * @public
313
+ */
314
+ get distance() {
315
+ return this._$distance;
316
+ }
317
+ set distance(distance) {
318
+ distance = $clamp(+distance, -255, 255, 4);
319
+ if (distance === this._$distance) {
320
+ return;
321
+ }
322
+ this._$distance = distance;
323
+ this.$updated = true;
324
+ }
325
+ /**
326
+ * @description オブジェクトにノックアウト効果を適用するかどうか
327
+ * Specifies whether the object has a knockout effect.
328
+ *
329
+ * @member {boolean}
330
+ * @default false
331
+ * @public
332
+ */
333
+ get knockout() {
334
+ return this._$knockout;
335
+ }
336
+ set knockout(knockout) {
337
+ knockout = !!knockout;
338
+ if (knockout === this._$knockout) {
339
+ return;
340
+ }
341
+ this._$knockout = knockout;
342
+ this.$updated = true;
343
+ }
344
+ /**
345
+ * @description ぼかしの実行回数です。
346
+ * The number of times to perform the blur.
347
+ *
348
+ * @member {number}
349
+ * @default 1
350
+ * @public
351
+ */
352
+ get quality() {
353
+ return this._$quality;
354
+ }
355
+ set quality(quality) {
356
+ quality = $clamp(quality | 0, 0, 15, 1);
357
+ if (quality === this._$quality) {
358
+ return;
359
+ }
360
+ this._$quality = quality;
361
+ this.$updated = true;
362
+ }
363
+ /**
364
+ * @description カラー配列内の対応するカラーの色分布比率の配列です。
365
+ * An array of color distribution ratios
366
+ * for the corresponding colors in the colors array.
367
+ *
368
+ * @member {array}
369
+ * @default null
370
+ * @public
371
+ */
372
+ get ratios() {
373
+ return this._$ratios;
374
+ }
375
+ set ratios(ratios) {
376
+ if (this._$ratios === ratios) {
377
+ return;
378
+ }
379
+ if (Array.isArray(ratios)) {
380
+ for (let idx = 0; idx < ratios.length; ++idx) {
381
+ ratios[idx] = $clamp(+ratios[idx], 0, 255, 0);
382
+ }
383
+ }
384
+ this._$ratios = ratios;
385
+ this.$updated = true;
386
+ }
387
+ /**
388
+ * @description インプリントの強さまたは広がりです。
389
+ * The strength of the imprint or spread.
390
+ *
391
+ * @member {number}
392
+ * @default 1
393
+ * @public
394
+ */
395
+ get strength() {
396
+ return this._$strength;
397
+ }
398
+ set strength(strength) {
399
+ strength = $clamp(strength | 0, 0, 255, 0);
400
+ if (strength === this._$strength) {
401
+ return;
402
+ }
403
+ this._$strength = strength;
404
+ this.$updated = true;
405
+ }
406
+ /**
407
+ * @description オブジェクトでのベベルの配置
408
+ * The placement of the bevel on the object.
409
+ *
410
+ * @member {string}
411
+ * @default BitmapFilterType.INNER
412
+ * @public
413
+ */
414
+ get type() {
415
+ return this._$type;
416
+ }
417
+ set type(type) {
418
+ if (type === this._$type) {
419
+ return;
420
+ }
421
+ this._$type = type;
422
+ this.$updated = true;
423
+ }
424
+ /**
425
+ * @description オブジェクトのコピーを返します。
426
+ * Returns a copy of this filter object.
427
+ *
428
+ * @return {GradientGlowFilter}
429
+ * @method
430
+ * @public
431
+ */
432
+ clone() {
433
+ return new GradientGlowFilter(this._$distance, this._$angle, this._$colors, this._$alphas, this._$ratios, this._$blurX, this._$blurY, this._$strength, this._$quality, this._$type, this._$knockout);
434
+ }
435
+ /**
436
+ * @description 設定されたフィルターの値を配列で返します。
437
+ * Returns the value of the specified filter as an array.
438
+ *
439
+ * @return {array}
440
+ * @method
441
+ * @public
442
+ */
443
+ toArray() {
444
+ return gradientGlowFilterToArrayService(this);
445
+ }
446
+ /**
447
+ * @description 設定されたフィルターの値を数値配列で返します。
448
+ * Returns the value of the specified filter as a number array.
449
+ *
450
+ * @return {Float32Array}
451
+ * @method
452
+ * @public
453
+ */
454
+ toNumberArray() {
455
+ return gradientGlowFilterToNumberArrayService(this);
456
+ }
457
+ /**
458
+ * @description フィルターを適用できるかどうかを返します。
459
+ * Returns whether the filter can be applied.
460
+ *
461
+ * @return {boolean}
462
+ * @method
463
+ * @public
464
+ */
465
+ canApplyFilter() {
466
+ return gradientGlowFilterCanApplyFilterService(this);
467
+ }
468
+ /**
469
+ * @description フィルターの描画範囲のバウンディングボックスを返します。
470
+ * Returns the bounding box of the filter drawing area.
471
+ *
472
+ * @param {Float32Array} bounds
473
+ * @return {Float32Array}
474
+ * @method
475
+ * @public
476
+ */
477
+ getBounds(bounds) {
478
+ return gradientGlowFilterGetBoundsUseCase(this, bounds);
479
+ }
480
+ }
@@ -0,0 +1 @@
1
+ export type IBitmapDataChannel = 8 | 4 | 2 | 1 | 0;
@@ -0,0 +1 @@
1
+ export type IBitmapFilterType = "full" | "inner" | "outer";
@@ -1,4 +1,4 @@
1
- export interface BoundsImpl {
1
+ export interface IBounds {
2
2
  xMin: number;
3
3
  xMax: number;
4
4
  yMin: number;
@@ -0,0 +1 @@
1
+ export type IDisplacementMapFilterMode = "clamp" | "color" | "ignore" | "wrap";
@@ -0,0 +1 @@
1
+ export type IFilterQuality = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;