@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
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Next2D
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ @next2d/filters
2
+ =============
3
+
4
+ ## Installation
5
+
6
+ ```
7
+ npm install @next2d/filters
8
+ ```
9
+
10
+ ## License
11
+ This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,254 @@
1
+ import { BitmapFilter } from "./BitmapFilter";
2
+ import type { BitmapFilterTypeImpl } from "./interface/BitmapFilterTypeImpl";
3
+ import type { FilterQualityImpl } from "./interface/FilterQualityImpl";
4
+ import type { BoundsImpl } from "./interface/BoundsImpl";
5
+ import type { CanvasToWebGLContext } from "@next2d/webgl";
6
+ /**
7
+ * BevelFilter クラスを使用すると、表示オブジェクトにベベル効果を追加できます。
8
+ * ボタンなどのオブジェクトにベベル効果を適用すると 3 次元的に表現されます。
9
+ * 異なるハイライトカラー、シャドウカラー、ベベルのぼかし量、ベベルの角度、ベベルの配置、
10
+ * ノックアウト効果を使用して、ベベルの外観をカスタマイズできます。
11
+ *
12
+ * The BevelFilter class lets you add a bevel effect to display objects.
13
+ * A bevel effect gives objects such as buttons a three-dimensional look.
14
+ * You can customize the look of the bevel with different highlight and shadow colors,
15
+ * the amount of blur on the bevel, the angle of the bevel, the placement of the bevel,
16
+ * and a knockout effect.
17
+ *
18
+ * @class
19
+ * @memberOf next2d.filters
20
+ * @extends BitmapFilter
21
+ */
22
+ export declare class BevelFilter extends BitmapFilter {
23
+ private _$blurFilter;
24
+ private _$distance;
25
+ private _$angle;
26
+ private _$highlightColor;
27
+ private _$highlightAlpha;
28
+ private _$shadowColor;
29
+ private _$shadowAlpha;
30
+ private _$strength;
31
+ private _$type;
32
+ private _$knockout;
33
+ /**
34
+ * @param {number} [distance=4]
35
+ * @param {number} [angle=45]
36
+ * @param {uint} [highlight_color=0xffffff]
37
+ * @param {number} [highlight_alpha=1]
38
+ * @param {uint} [shadow_color=0x000000]
39
+ * @param {number} [shadow_alpha=1]
40
+ * @param {number} [blur_x=4]
41
+ * @param {number} [blur_y=4]
42
+ * @param {number} [strength=1]
43
+ * @param {int} [quality=1]
44
+ * @param {string} [type=BitmapFilterType.INNER]
45
+ * @param {boolean} [knockout=false]
46
+ *
47
+ * @constructor
48
+ * @public
49
+ */
50
+ constructor(distance?: number, angle?: number, highlight_color?: number, highlight_alpha?: number, shadow_color?: number, shadow_alpha?: number, blur_x?: number, blur_y?: number, strength?: number, quality?: FilterQualityImpl, type?: BitmapFilterTypeImpl, knockout?: boolean);
51
+ /**
52
+ * @description 指定されたクラスのストリングを返します。
53
+ * Returns the string representation of the specified class.
54
+ *
55
+ * @return {string}
56
+ * @default [class BevelFilter]
57
+ * @method
58
+ * @static
59
+ */
60
+ static toString(): string;
61
+ /**
62
+ * @description 指定されたクラスの空間名を返します。
63
+ * Returns the space name of the specified class.
64
+ *
65
+ * @return {string}
66
+ * @default next2d.filters.BevelFilter
67
+ * @const
68
+ * @static
69
+ */
70
+ static get namespace(): string;
71
+ /**
72
+ * @description 指定されたオブジェクトのストリングを返します。
73
+ * Returns the string representation of the specified object.
74
+ *
75
+ * @return {string}
76
+ * @default [object BevelFilter]
77
+ * @method
78
+ * @public
79
+ */
80
+ toString(): string;
81
+ /**
82
+ * @description 指定されたオブジェクトの空間名を返します。
83
+ * Returns the space name of the specified object.
84
+ *
85
+ * @return {string}
86
+ * @default next2d.filters.BevelFilter
87
+ * @const
88
+ * @public
89
+ */
90
+ get namespace(): string;
91
+ /**
92
+ * @description シャドウの角度
93
+ * The angle of the shadow.
94
+ *
95
+ * @member {number}
96
+ * @default 45
97
+ * @public
98
+ */
99
+ get angle(): number;
100
+ set angle(angle: number);
101
+ /**
102
+ * @description 水平方向のぼかし量。
103
+ * The amount of horizontal blur.
104
+ *
105
+ * @member {number}
106
+ * @default 4
107
+ * @public
108
+ */
109
+ get blurX(): number;
110
+ set blurX(blur_x: number);
111
+ /**
112
+ * @description 垂直方向のぼかし量。
113
+ * The amount of vertical blur.
114
+ *
115
+ * @member {number}
116
+ * @default 4
117
+ * @public
118
+ */
119
+ get blurY(): number;
120
+ set blurY(blur_y: number);
121
+ /**
122
+ * @description シャドウのオフセット距離です。
123
+ * The offset distance for the shadow, in pixels.
124
+ *
125
+ * @member {number}
126
+ * @default 4
127
+ * @public
128
+ */
129
+ get distance(): number;
130
+ set distance(distance: number);
131
+ /**
132
+ * @description アルファ透明度の値です。
133
+ * The alpha transparency value for the color.
134
+ *
135
+ * @member {number}
136
+ * @default 1
137
+ * @public
138
+ */
139
+ get highlightAlpha(): number;
140
+ set highlightAlpha(highlight_alpha: number);
141
+ /**
142
+ * @description グローのカラー
143
+ * The color of the glow.
144
+ *
145
+ * @member {number}
146
+ * @default 0xffffff
147
+ * @public
148
+ */
149
+ get highlightColor(): number;
150
+ set highlightColor(highlight_color: number);
151
+ /**
152
+ * @description オブジェクトにノックアウト効果を適用するかどうか
153
+ * Specifies whether the object has a knockout effect.
154
+ *
155
+ * @member {boolean}
156
+ * @default false
157
+ * @public
158
+ */
159
+ get knockout(): boolean;
160
+ set knockout(knockout: boolean);
161
+ /**
162
+ * @description ぼかしの実行回数です。
163
+ * The number of times to perform the blur.
164
+ *
165
+ * @member {number}
166
+ * @default 1
167
+ * @public
168
+ */
169
+ get quality(): FilterQualityImpl;
170
+ set quality(quality: FilterQualityImpl);
171
+ /**
172
+ * @description アルファ透明度の値です。
173
+ * The alpha transparency value for the color.
174
+ *
175
+ * @member {number}
176
+ * @default 1
177
+ * @public
178
+ */
179
+ get shadowAlpha(): number;
180
+ set shadowAlpha(shadow_alpha: number);
181
+ /**
182
+ * @description グローのカラー
183
+ * The color of the glow.
184
+ *
185
+ * @member {number}
186
+ * @default 0
187
+ * @public
188
+ */
189
+ get shadowColor(): number;
190
+ set shadowColor(shadow_color: number);
191
+ /**
192
+ * @description インプリントの強さまたは広がりです。
193
+ * The strength of the imprint or spread.
194
+ *
195
+ * @member {number}
196
+ * @default 1
197
+ * @public
198
+ */
199
+ get strength(): number;
200
+ set strength(strength: number);
201
+ /**
202
+ * @description オブジェクトでのベベルの配置
203
+ * The placement of the bevel on the object.
204
+ *
205
+ * @member {string}
206
+ * @default BitmapFilterType.INNER
207
+ * @public
208
+ */
209
+ get type(): BitmapFilterTypeImpl;
210
+ set type(type: BitmapFilterTypeImpl);
211
+ /**
212
+ * @description オブジェクトのコピーを返します。
213
+ * Returns a copy of this filter object.
214
+ *
215
+ * @return {BevelFilter}
216
+ * @method
217
+ * @public
218
+ */
219
+ clone(): BevelFilter;
220
+ /**
221
+ * @return {array}
222
+ * @method
223
+ * @public
224
+ */
225
+ _$toArray(): any[];
226
+ /**
227
+ * @return {boolean}
228
+ * @method
229
+ * @private
230
+ */
231
+ _$isUpdated(): boolean;
232
+ /**
233
+ * @param {object} bounds
234
+ * @param {number} [x_scale=null]
235
+ * @param {number} [y_scale=null]
236
+ * @return {object}
237
+ * @method
238
+ * @private
239
+ */
240
+ _$generateFilterRect(bounds: BoundsImpl, x_scale?: number, y_scale?: number): BoundsImpl;
241
+ /**
242
+ * @return {boolean}
243
+ * @method
244
+ * @private
245
+ */
246
+ _$canApply(): boolean;
247
+ /**
248
+ * @param {CanvasToWebGLContext} context
249
+ * @param {Float32Array} matrix
250
+ * @return {WebGLTexture}
251
+ * @private
252
+ */
253
+ _$applyFilter(context: CanvasToWebGLContext, matrix: Float32Array): WebGLTexture;
254
+ }