@next2d/filters 1.18.11 → 2.0.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.
- package/package.json +8 -20
- package/src/BevelFilter/service/BevelFilterCanApplyFilterService.d.ts +11 -0
- package/src/BevelFilter/service/BevelFilterCanApplyFilterService.js +16 -0
- package/src/BevelFilter/service/BevelFilterToArrayService.d.ts +11 -0
- package/src/BevelFilter/service/BevelFilterToArrayService.js +26 -0
- package/src/BevelFilter/service/BevelFilterToNumberArrayService.d.ts +11 -0
- package/src/BevelFilter/service/BevelFilterToNumberArrayService.js +27 -0
- package/src/BevelFilter/usecase/BevelFilterGetBoundsUseCase.d.ts +10 -0
- package/src/BevelFilter/usecase/BevelFilterGetBoundsUseCase.js +29 -0
- package/{dist → src}/BevelFilter.d.ts +117 -84
- package/src/BevelFilter.js +513 -0
- package/src/BitmapFilter.d.ts +50 -0
- package/src/BitmapFilter.js +61 -0
- package/src/BlurFilter/service/BlurFilterCanApplyFilterService.d.ts +16 -0
- package/src/BlurFilter/service/BlurFilterCanApplyFilterService.js +12 -0
- package/src/BlurFilter/service/BlurFilterToArrayService.d.ts +11 -0
- package/src/BlurFilter/service/BlurFilterToArrayService.js +17 -0
- package/src/BlurFilter/service/BlurFilterToNumberArrayService.d.ts +11 -0
- package/src/BlurFilter/service/BlurFilterToNumberArrayService.js +17 -0
- package/src/BlurFilter/usecase/BlurFilterGetBoundsUseCase.d.ts +17 -0
- package/src/BlurFilter/usecase/BlurFilterGetBoundsUseCase.js +29 -0
- package/src/BlurFilter.d.ts +142 -0
- package/src/BlurFilter.js +213 -0
- package/src/ColorMatrixFilter/service/ColorMatrixFilterToArrayService.d.ts +11 -0
- package/src/ColorMatrixFilter/service/ColorMatrixFilterToArrayService.js +15 -0
- package/src/ColorMatrixFilter/service/ColorMatrixFilterToNumberArrayService.d.ts +11 -0
- package/src/ColorMatrixFilter/service/ColorMatrixFilterToNumberArrayService.js +15 -0
- package/src/ColorMatrixFilter.d.ts +78 -0
- package/src/ColorMatrixFilter.js +129 -0
- package/src/ConvolutionFilter/service/ConvolutionFilterCanApplyFilterService.d.ts +11 -0
- package/src/ConvolutionFilter/service/ConvolutionFilterCanApplyFilterService.js +13 -0
- package/src/ConvolutionFilter/service/ConvolutionFilterToArrayService.d.ts +11 -0
- package/src/ConvolutionFilter/service/ConvolutionFilterToArrayService.js +23 -0
- package/src/ConvolutionFilter/service/ConvolutionFilterToNumberArrayService.d.ts +11 -0
- package/src/ConvolutionFilter/service/ConvolutionFilterToNumberArrayService.js +24 -0
- package/{dist → src}/ConvolutionFilter.d.ts +75 -63
- package/{dist → src}/ConvolutionFilter.js +148 -126
- package/src/DisplacementMapFilter/service/DisplacementMapFilterCanApplyFilterService.d.ts +11 -0
- package/src/DisplacementMapFilter/service/DisplacementMapFilterCanApplyFilterService.js +16 -0
- package/src/DisplacementMapFilter/service/DisplacementMapFilterToArrayService.d.ts +11 -0
- package/src/DisplacementMapFilter/service/DisplacementMapFilterToArrayService.js +28 -0
- package/src/DisplacementMapFilter/service/DisplacementMapFilterToNumberArrayService.d.ts +11 -0
- package/src/DisplacementMapFilter/service/DisplacementMapFilterToNumberArrayService.js +36 -0
- package/src/DisplacementMapFilter.d.ts +274 -0
- package/src/DisplacementMapFilter.js +481 -0
- package/src/DropShadowFilter/service/DropShadowFilterCanApplyFilterService.d.ts +11 -0
- package/src/DropShadowFilter/service/DropShadowFilterCanApplyFilterService.js +16 -0
- package/src/DropShadowFilter/service/DropShadowFilterToArrayService.d.ts +11 -0
- package/src/DropShadowFilter/service/DropShadowFilterToArrayService.js +25 -0
- package/src/DropShadowFilter/service/DropShadowFilterToNumberArrayService.d.ts +11 -0
- package/src/DropShadowFilter/service/DropShadowFilterToNumberArrayService.js +25 -0
- package/src/DropShadowFilter/usecase/DropShadowFilterGetBoundsUseCase.d.ts +10 -0
- package/src/DropShadowFilter/usecase/DropShadowFilterGetBoundsUseCase.js +33 -0
- package/{dist → src}/DropShadowFilter.d.ts +98 -73
- package/src/DropShadowFilter.js +466 -0
- package/src/FilterUtil.d.ts +36 -0
- package/src/FilterUtil.js +60 -0
- package/src/GlowFilter/service/GlowFilterCanApplyFilterService.d.ts +11 -0
- package/src/GlowFilter/service/GlowFilterCanApplyFilterService.js +16 -0
- package/src/GlowFilter/service/GlowFilterToArrayService.d.ts +11 -0
- package/src/GlowFilter/service/GlowFilterToArrayService.js +22 -0
- package/src/GlowFilter/service/GlowFilterToNumberArrayService.d.ts +11 -0
- package/src/GlowFilter/service/GlowFilterToNumberArrayService.js +22 -0
- package/src/GlowFilter/usecase/GlowFilterGetBoundsUseCase.d.ts +10 -0
- package/src/GlowFilter/usecase/GlowFilterGetBoundsUseCase.js +19 -0
- package/{dist → src}/GlowFilter.d.ts +84 -74
- package/src/GlowFilter.js +367 -0
- package/src/GradientBevelFilter/service/GradientBevelFilterCanApplyFilterService.d.ts +11 -0
- package/src/GradientBevelFilter/service/GradientBevelFilterCanApplyFilterService.js +19 -0
- package/src/GradientBevelFilter/service/GradientBevelFilterToArrayService.d.ts +11 -0
- package/src/GradientBevelFilter/service/GradientBevelFilterToArrayService.js +25 -0
- package/src/GradientBevelFilter/service/GradientBevelFilterToNumberArrayService.d.ts +11 -0
- package/src/GradientBevelFilter/service/GradientBevelFilterToNumberArrayService.js +29 -0
- package/src/GradientBevelFilter/usecase/GradientBevelFilterGetBoundsUseCase.d.ts +10 -0
- package/src/GradientBevelFilter/usecase/GradientBevelFilterGetBoundsUseCase.js +29 -0
- package/{dist → src}/GradientBevelFilter.d.ts +102 -77
- package/src/GradientBevelFilter.js +482 -0
- package/src/GradientGlowFilter/service/GradientGlowFilterCanApplyFilterService.d.ts +11 -0
- package/src/GradientGlowFilter/service/GradientGlowFilterCanApplyFilterService.js +19 -0
- package/src/GradientGlowFilter/service/GradientGlowFilterToArrayService.d.ts +11 -0
- package/src/GradientGlowFilter/service/GradientGlowFilterToArrayService.js +25 -0
- package/src/GradientGlowFilter/service/GradientGlowFilterToNumberArrayService.d.ts +11 -0
- package/src/GradientGlowFilter/service/GradientGlowFilterToNumberArrayService.js +29 -0
- package/src/GradientGlowFilter/usecase/GradientGlowFilterGetBoundsUseCase.d.ts +10 -0
- package/src/GradientGlowFilter/usecase/GradientGlowFilterGetBoundsUseCase.js +19 -0
- package/{dist → src}/GradientGlowFilter.d.ts +102 -78
- package/src/GradientGlowFilter.js +480 -0
- package/src/interface/IBitmapDataChannel.d.ts +1 -0
- package/src/interface/IBitmapFilterType.d.ts +1 -0
- package/{dist/interface/BoundsImpl.d.ts → src/interface/IBounds.d.ts} +1 -1
- package/src/interface/IDisplacementMapFilterMode.d.ts +1 -0
- package/src/interface/IFilterQuality.d.ts +1 -0
- package/dist/BevelFilter.js +0 -504
- package/dist/BitmapFilter.d.ts +0 -75
- package/dist/BitmapFilter.js +0 -95
- package/dist/BlurFilter.d.ts +0 -150
- package/dist/BlurFilter.js +0 -375
- package/dist/ColorMatrixFilter.d.ts +0 -116
- package/dist/ColorMatrixFilter.js +0 -179
- package/dist/DisplacementMapFilter.d.ts +0 -211
- package/dist/DisplacementMapFilter.js +0 -368
- package/dist/DropShadowFilter.js +0 -475
- package/dist/GlowFilter.js +0 -356
- package/dist/GradientBevelFilter.js +0 -490
- package/dist/GradientGlowFilter.js +0 -480
- package/dist/interface/AttachmentImpl.d.ts +0 -11
- package/dist/interface/BitmapDataChannelImpl.d.ts +0 -1
- package/dist/interface/BitmapFilterTypeImpl.d.ts +0 -1
- package/dist/interface/DisplacementMapFilterModeImpl.d.ts +0 -1
- package/dist/interface/FilterQualityImpl.d.ts +0 -1
- package/dist/interface/FilterQualityImpl.js +0 -1
- /package/{dist → src}/index.d.ts +0 -0
- /package/{dist → src}/index.js +0 -0
- /package/{dist/interface/AttachmentImpl.js → src/interface/IBitmapDataChannel.js} +0 -0
- /package/{dist/interface/BitmapDataChannelImpl.js → src/interface/IBitmapFilterType.js} +0 -0
- /package/{dist/interface/BitmapFilterTypeImpl.js → src/interface/IBounds.js} +0 -0
- /package/{dist/interface/BoundsImpl.js → src/interface/IDisplacementMapFilterMode.js} +0 -0
- /package/{dist/interface/DisplacementMapFilterModeImpl.js → src/interface/IFilterQuality.js} +0 -0
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { BitmapFilter } from "./BitmapFilter";
|
|
2
|
-
import { $Array, $getArray } from "@next2d/share";
|
|
3
|
-
/**
|
|
4
|
-
* ColorMatrixFilter クラスを使用すると、表示オブジェクトにぼかし効果を適用できます。
|
|
5
|
-
* ぼかし効果は、イメージの細部をぼかします。ソフトフォーカスがかかっているように見えるぼかしから、
|
|
6
|
-
* 半透明ガラスを通してイメージを見るようにかすんで見えるガウスぼかしまで作成できます。
|
|
7
|
-
* このフィルターの quality プロパティを低く設定すると、ソフトフォーカスがかかっているように見えるぼかしになります。
|
|
8
|
-
* quality プロパティを高く設定すると、ガウスぼかしフィルターに似たものになります。
|
|
9
|
-
*
|
|
10
|
-
* The ColorMatrixFilter class lets you apply a blur visual effect to display objects.
|
|
11
|
-
* A blur effect softens the details of an image.
|
|
12
|
-
* You can produce blurs that range from a softly unfocused look to a Gaussian blur,
|
|
13
|
-
* a hazy appearance like viewing an image through semi-opaque glass.
|
|
14
|
-
* When the quality property of this filter is set to low, the result is a softly unfocused look.
|
|
15
|
-
* When the quality property is set to high, it approximates a Gaussian blur filter.
|
|
16
|
-
*
|
|
17
|
-
* @class
|
|
18
|
-
* @memberOf next2d.filters
|
|
19
|
-
* @extends BitmapFilter
|
|
20
|
-
*/
|
|
21
|
-
export class ColorMatrixFilter extends BitmapFilter {
|
|
22
|
-
/**
|
|
23
|
-
* @param {array} [matrix=null]
|
|
24
|
-
*
|
|
25
|
-
* @constructor
|
|
26
|
-
* @public
|
|
27
|
-
*/
|
|
28
|
-
constructor(matrix = null) {
|
|
29
|
-
super();
|
|
30
|
-
/**
|
|
31
|
-
* @type {array}
|
|
32
|
-
* @default {array}
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
this._$matrix = [
|
|
36
|
-
1, 0, 0, 0, 0,
|
|
37
|
-
0, 1, 0, 0, 0,
|
|
38
|
-
0, 0, 1, 0, 0,
|
|
39
|
-
0, 0, 0, 1, 0
|
|
40
|
-
];
|
|
41
|
-
// setup
|
|
42
|
-
this.matrix = matrix;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @description 指定されたクラスのストリングを返します。
|
|
46
|
-
* Returns the string representation of the specified class.
|
|
47
|
-
*
|
|
48
|
-
* @return {string}
|
|
49
|
-
* @default [class ColorMatrixFilter]
|
|
50
|
-
* @method
|
|
51
|
-
* @static
|
|
52
|
-
*/
|
|
53
|
-
static toString() {
|
|
54
|
-
return "[class ColorMatrixFilter]";
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @description 指定されたクラスの空間名を返します。
|
|
58
|
-
* Returns the space name of the specified class.
|
|
59
|
-
*
|
|
60
|
-
* @return {string}
|
|
61
|
-
* @default next2d.filters.ColorMatrixFilter
|
|
62
|
-
* @const
|
|
63
|
-
* @static
|
|
64
|
-
*/
|
|
65
|
-
static get namespace() {
|
|
66
|
-
return "next2d.filters.ColorMatrixFilter";
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @description 指定されたオブジェクトのストリングを返します。
|
|
70
|
-
* Returns the string representation of the specified object.
|
|
71
|
-
*
|
|
72
|
-
* @return {string}
|
|
73
|
-
* @default [object ColorMatrixFilter]
|
|
74
|
-
* @method
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
toString() {
|
|
78
|
-
return "[object ColorMatrixFilter]";
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @description 指定されたオブジェクトの空間名を返します。
|
|
82
|
-
* Returns the space name of the specified object.
|
|
83
|
-
*
|
|
84
|
-
* @return {string}
|
|
85
|
-
* @default next2d.filters.ColorMatrixFilter
|
|
86
|
-
* @const
|
|
87
|
-
* @public
|
|
88
|
-
*/
|
|
89
|
-
get namespace() {
|
|
90
|
-
return "next2d.filters.ColorMatrixFilter";
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* @description 4×5 カラー変換用の20個のアイテムの配列
|
|
94
|
-
* An array of 20 items for 4x5 color transform.
|
|
95
|
-
*
|
|
96
|
-
* @member {array}
|
|
97
|
-
* @default null
|
|
98
|
-
* @public
|
|
99
|
-
*/
|
|
100
|
-
get matrix() {
|
|
101
|
-
return this._$matrix;
|
|
102
|
-
}
|
|
103
|
-
set matrix(matrix) {
|
|
104
|
-
if (!matrix || !$Array.isArray(matrix) || matrix.length !== 20) {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
for (let idx = 0; idx < 20; ++idx) {
|
|
108
|
-
if (matrix[idx] === this._$matrix[idx]) {
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
this._$doChanged();
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
this._$matrix = matrix;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @description オブジェクトのコピーを返します。
|
|
118
|
-
* Returns a copy of this filter object.
|
|
119
|
-
*
|
|
120
|
-
* @return {ColorMatrixFilter}
|
|
121
|
-
* @method
|
|
122
|
-
* @public
|
|
123
|
-
*/
|
|
124
|
-
clone() {
|
|
125
|
-
return new ColorMatrixFilter(this._$matrix);
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* @return {array}
|
|
129
|
-
* @method
|
|
130
|
-
* @public
|
|
131
|
-
*/
|
|
132
|
-
_$toArray() {
|
|
133
|
-
return $getArray(2, this._$matrix);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* @param {object} bounds
|
|
137
|
-
* @return {object}
|
|
138
|
-
* @method
|
|
139
|
-
* @private
|
|
140
|
-
*/
|
|
141
|
-
_$generateFilterRect(bounds) {
|
|
142
|
-
return bounds;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* @return {boolean}
|
|
146
|
-
* @method
|
|
147
|
-
* @private
|
|
148
|
-
*/
|
|
149
|
-
_$canApply() {
|
|
150
|
-
return true;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* @param {CanvasToWebGLContext} context
|
|
154
|
-
* @return {WebGLTexture}
|
|
155
|
-
* @method
|
|
156
|
-
* @private
|
|
157
|
-
*/
|
|
158
|
-
_$applyFilter(context) {
|
|
159
|
-
this._$updated = false;
|
|
160
|
-
const manager = context.frameBuffer;
|
|
161
|
-
const currentAttachment = manager.currentAttachment;
|
|
162
|
-
// reset
|
|
163
|
-
context.setTransform(1, 0, 0, 1, 0, 0);
|
|
164
|
-
const texture = manager
|
|
165
|
-
.getTextureFromCurrentAttachment();
|
|
166
|
-
const width = texture.width;
|
|
167
|
-
const height = texture.height;
|
|
168
|
-
// new buffer
|
|
169
|
-
const targetTextureAttachment = manager
|
|
170
|
-
.createTextureAttachment(width, height);
|
|
171
|
-
context._$bind(targetTextureAttachment);
|
|
172
|
-
// apply
|
|
173
|
-
context.reset();
|
|
174
|
-
context._$applyColorMatrixFilter(texture, this._$matrix);
|
|
175
|
-
// reset
|
|
176
|
-
manager.releaseAttachment(currentAttachment, true);
|
|
177
|
-
return manager.getTextureFromCurrentAttachment();
|
|
178
|
-
}
|
|
179
|
-
}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { BitmapFilter } from "./BitmapFilter";
|
|
2
|
-
import type { CanvasToWebGLContext } from "@next2d/webgl";
|
|
3
|
-
import type { DisplacementMapFilterModeImpl } from "./interface/DisplacementMapFilterModeImpl";
|
|
4
|
-
import type { BitmapDataChannelImpl } from "./interface/BitmapDataChannelImpl";
|
|
5
|
-
import type { BoundsImpl } from "./interface/BoundsImpl";
|
|
6
|
-
import type { PointImpl } from "@next2d/interface";
|
|
7
|
-
/**
|
|
8
|
-
* DisplacementMapFilter クラスは、指定された BitmapData オブジェクト(置き換えマップイメージと言います)
|
|
9
|
-
* のピクセル値を使用して、オブジェクトの置き換え(変位)を実行します。
|
|
10
|
-
*
|
|
11
|
-
* The DisplacementMapFilter class uses the pixel values from the specified
|
|
12
|
-
* BitmapData object (called the displacement map image) to perform a displacement of an object.
|
|
13
|
-
*
|
|
14
|
-
* @class
|
|
15
|
-
* @memberOf next2d.filters
|
|
16
|
-
* @extends BitmapFilter
|
|
17
|
-
*/
|
|
18
|
-
export declare class DisplacementMapFilter extends BitmapFilter {
|
|
19
|
-
private _$mapBitmap;
|
|
20
|
-
private _$mapPoint;
|
|
21
|
-
private _$componentX;
|
|
22
|
-
private _$componentY;
|
|
23
|
-
private _$scaleX;
|
|
24
|
-
private _$scaleY;
|
|
25
|
-
private _$mode;
|
|
26
|
-
private _$color;
|
|
27
|
-
private _$alpha;
|
|
28
|
-
/**
|
|
29
|
-
* @param {HTMLImageElement} [map_bitmap = null]
|
|
30
|
-
* @param {object} [map_point = null]
|
|
31
|
-
* @param {number} [component_x = 0]
|
|
32
|
-
* @param {number} [component_y = 0]
|
|
33
|
-
* @param {number} [scale_x = 0.0]
|
|
34
|
-
* @param {number} [scale_y = 0.0]
|
|
35
|
-
* @param {string} [mode = DisplacementMapFilterMode.WRAP]
|
|
36
|
-
* @param {number} [color = 0]
|
|
37
|
-
* @param {number} [alpha = 0.0]
|
|
38
|
-
*
|
|
39
|
-
* @constructor
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
constructor(map_bitmap?: HTMLImageElement | null, map_point?: PointImpl | null, component_x?: BitmapDataChannelImpl, component_y?: BitmapDataChannelImpl, scale_x?: number, scale_y?: number, mode?: DisplacementMapFilterModeImpl, color?: number, alpha?: number);
|
|
43
|
-
/**
|
|
44
|
-
* @description 指定されたクラスのストリングを返します。
|
|
45
|
-
* Returns the string representation of the specified class.
|
|
46
|
-
*
|
|
47
|
-
* @return {string}
|
|
48
|
-
* @default [class DisplacementMapFilter]
|
|
49
|
-
* @method
|
|
50
|
-
* @static
|
|
51
|
-
*/
|
|
52
|
-
static toString(): string;
|
|
53
|
-
/**
|
|
54
|
-
* @description 指定されたクラスの空間名を返します。
|
|
55
|
-
* Returns the space name of the specified class.
|
|
56
|
-
*
|
|
57
|
-
* @return {string}
|
|
58
|
-
* @default next2d.filters.DisplacementMapFilter
|
|
59
|
-
* @const
|
|
60
|
-
* @static
|
|
61
|
-
*/
|
|
62
|
-
static get namespace(): string;
|
|
63
|
-
/**
|
|
64
|
-
* @description 指定されたオブジェクトのストリングを返します。
|
|
65
|
-
* Returns the string representation of the specified object.
|
|
66
|
-
*
|
|
67
|
-
* @return {string}
|
|
68
|
-
* @default [object DisplacementMapFilter]
|
|
69
|
-
* @method
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
toString(): string;
|
|
73
|
-
/**
|
|
74
|
-
* @description 指定されたオブジェクトの空間名を返します。
|
|
75
|
-
* Returns the space name of the specified object.
|
|
76
|
-
*
|
|
77
|
-
* @return {string}
|
|
78
|
-
* @default next2d.filters.DisplacementMapFilter
|
|
79
|
-
* @const
|
|
80
|
-
* @public
|
|
81
|
-
*/
|
|
82
|
-
get namespace(): string;
|
|
83
|
-
/**
|
|
84
|
-
* @description アルファ透明度の値です。
|
|
85
|
-
* The alpha transparency value for the color.
|
|
86
|
-
*
|
|
87
|
-
* @member {number}
|
|
88
|
-
* @default 0
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
91
|
-
get alpha(): number;
|
|
92
|
-
set alpha(alpha: number);
|
|
93
|
-
/**
|
|
94
|
-
* @description 範囲外置き換えの場合に使用する色を指定します。
|
|
95
|
-
* Specifies what color to use for out-of-bounds displacements.
|
|
96
|
-
*
|
|
97
|
-
* @member {number}
|
|
98
|
-
* @default 0
|
|
99
|
-
* @public
|
|
100
|
-
*/
|
|
101
|
-
get color(): number;
|
|
102
|
-
set color(color: number);
|
|
103
|
-
/**
|
|
104
|
-
* @description x の結果を変位させる場合にどのカラーチャンネルをマップイメージで使用するかを指定します。
|
|
105
|
-
* Describes which color channel to use in the map image to displace the x result.
|
|
106
|
-
*
|
|
107
|
-
* @member {number}
|
|
108
|
-
* @default 0
|
|
109
|
-
* @public
|
|
110
|
-
*/
|
|
111
|
-
get componentX(): BitmapDataChannelImpl;
|
|
112
|
-
set componentX(component_x: BitmapDataChannelImpl);
|
|
113
|
-
/**
|
|
114
|
-
* @description y の結果を変位させる場合にどのカラーチャンネルをマップイメージで使用するかを指定します。
|
|
115
|
-
* Describes which color channel to use in the map image to displace the y result.
|
|
116
|
-
*
|
|
117
|
-
* @member {number}
|
|
118
|
-
* @default 0
|
|
119
|
-
* @public
|
|
120
|
-
*/
|
|
121
|
-
get componentY(): BitmapDataChannelImpl;
|
|
122
|
-
set componentY(component_y: BitmapDataChannelImpl);
|
|
123
|
-
/**
|
|
124
|
-
* @description 置き換えマップデータが含まれる BitmapData オブジェクトです。
|
|
125
|
-
* A BitmapData object containing the displacement map data.
|
|
126
|
-
*
|
|
127
|
-
* @member {HTMLImageElement}
|
|
128
|
-
* @default null
|
|
129
|
-
* @public
|
|
130
|
-
*/
|
|
131
|
-
get mapBitmap(): HTMLImageElement | null;
|
|
132
|
-
set mapBitmap(map_bitmap: HTMLImageElement | null);
|
|
133
|
-
/**
|
|
134
|
-
* @description マップイメージの左上隅を基準としたターゲット表示オブジェクトの
|
|
135
|
-
* 左上隅のオフセットが含まれる値です。
|
|
136
|
-
* A value that contains the offset of the upper-left corner
|
|
137
|
-
* of the target display object from the upper-left corner of the map image.
|
|
138
|
-
*
|
|
139
|
-
* @member {object}
|
|
140
|
-
* @default null
|
|
141
|
-
* @public
|
|
142
|
-
*/
|
|
143
|
-
get mapPoint(): PointImpl | null;
|
|
144
|
-
set mapPoint(map_point: PointImpl | null);
|
|
145
|
-
/**
|
|
146
|
-
* @description フィルターのモードです。
|
|
147
|
-
* The mode for the filter.
|
|
148
|
-
*
|
|
149
|
-
* @member {string}
|
|
150
|
-
* @default DisplacementMapFilterMode.WRAP
|
|
151
|
-
* @public
|
|
152
|
-
*/
|
|
153
|
-
get mode(): DisplacementMapFilterModeImpl;
|
|
154
|
-
set mode(mode: DisplacementMapFilterModeImpl);
|
|
155
|
-
/**
|
|
156
|
-
* @description マップ計算の x 置き換え結果を拡大 / 縮小する場合に使用する乗数です。
|
|
157
|
-
* The multiplier to use to scale the x displacement result from the map calculation.
|
|
158
|
-
*
|
|
159
|
-
* @member {number}
|
|
160
|
-
* @default 0
|
|
161
|
-
* @public
|
|
162
|
-
*/
|
|
163
|
-
get scaleX(): number;
|
|
164
|
-
set scaleX(scale_x: number);
|
|
165
|
-
/**
|
|
166
|
-
* @description マップ計算の y 置き換え結果を拡大 / 縮小する場合に使用する乗数です。
|
|
167
|
-
* The multiplier to use to scale the y displacement result from the map calculation.
|
|
168
|
-
*
|
|
169
|
-
* @member {number}
|
|
170
|
-
* @default 0
|
|
171
|
-
* @public
|
|
172
|
-
*/
|
|
173
|
-
get scaleY(): number;
|
|
174
|
-
set scaleY(scale_y: number);
|
|
175
|
-
/**
|
|
176
|
-
* @description オブジェクトのコピーを返します。
|
|
177
|
-
* Returns a copy of this filter object.
|
|
178
|
-
*
|
|
179
|
-
* @return {DisplacementMapFilter}
|
|
180
|
-
* @method
|
|
181
|
-
* @public
|
|
182
|
-
*/
|
|
183
|
-
clone(): DisplacementMapFilter;
|
|
184
|
-
/**
|
|
185
|
-
* @return {array}
|
|
186
|
-
* @method
|
|
187
|
-
* @public
|
|
188
|
-
*/
|
|
189
|
-
_$toArray(): any[];
|
|
190
|
-
/**
|
|
191
|
-
* @param {object} bounds
|
|
192
|
-
* @return {object}
|
|
193
|
-
* @method
|
|
194
|
-
* @private
|
|
195
|
-
*/
|
|
196
|
-
_$generateFilterRect(bounds: BoundsImpl): BoundsImpl;
|
|
197
|
-
/**
|
|
198
|
-
* @return {boolean}
|
|
199
|
-
* @method
|
|
200
|
-
* @private
|
|
201
|
-
*/
|
|
202
|
-
_$canApply(): boolean;
|
|
203
|
-
/**
|
|
204
|
-
* @param {CanvasToWebGLContext} context
|
|
205
|
-
* @param {Float32Array} matrix
|
|
206
|
-
* @return {WebGLTexture}
|
|
207
|
-
* @method
|
|
208
|
-
* @private
|
|
209
|
-
*/
|
|
210
|
-
_$applyFilter(context: CanvasToWebGLContext, matrix: Float32Array): WebGLTexture;
|
|
211
|
-
}
|