@next2d/display 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.
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/dist/BitmapData.d.ts +142 -0
- package/dist/BitmapData.js +386 -0
- package/dist/BlendMode.d.ts +204 -0
- package/dist/BlendMode.js +240 -0
- package/dist/DisplayObject.d.ts +556 -0
- package/dist/DisplayObject.js +1671 -0
- package/dist/DisplayObjectContainer.d.ts +346 -0
- package/dist/DisplayObjectContainer.js +1775 -0
- package/dist/FrameLabel.d.ts +98 -0
- package/dist/FrameLabel.js +120 -0
- package/dist/Graphics.d.ts +571 -0
- package/dist/Graphics.js +2164 -0
- package/dist/GraphicsBitmapFill.d.ts +49 -0
- package/dist/GraphicsBitmapFill.js +86 -0
- package/dist/GraphicsGradientFill.d.ts +65 -0
- package/dist/GraphicsGradientFill.js +157 -0
- package/dist/InteractiveObject.d.ts +32 -0
- package/dist/InteractiveObject.js +43 -0
- package/dist/Loader.d.ts +130 -0
- package/dist/Loader.js +318 -0
- package/dist/LoaderInfo.d.ts +120 -0
- package/dist/LoaderInfo.js +184 -0
- package/dist/LoopConfig.d.ts +108 -0
- package/dist/LoopConfig.js +156 -0
- package/dist/LoopType.d.ts +104 -0
- package/dist/LoopType.js +122 -0
- package/dist/MovieClip.d.ts +310 -0
- package/dist/MovieClip.js +940 -0
- package/dist/Shape.d.ts +164 -0
- package/dist/Shape.js +509 -0
- package/dist/Sprite.d.ts +170 -0
- package/dist/Sprite.js +280 -0
- package/dist/Stage.d.ts +164 -0
- package/dist/Stage.js +251 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +17 -0
- package/package.json +45 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ブレンドモードの視覚効果のために定数値を提供するクラスです。
|
|
3
|
+
* 全てのDisplayObjectに設定が可能です。
|
|
4
|
+
* A class that provides constant values for visual blend mode effects.
|
|
5
|
+
* It can be set for all DisplayObjects.
|
|
6
|
+
*
|
|
7
|
+
* @example <caption>usage of BlendMode.</caption>
|
|
8
|
+
* // static BlendMode
|
|
9
|
+
* const {BlendMode, MovieClip} = next2d.display;
|
|
10
|
+
* const movieClip = new MovieClip();
|
|
11
|
+
* movieClip.blendMode = BlendMode.ADD;
|
|
12
|
+
*
|
|
13
|
+
* @class
|
|
14
|
+
* @memberOf next2d.display
|
|
15
|
+
*/
|
|
16
|
+
export declare class BlendMode {
|
|
17
|
+
/**
|
|
18
|
+
* @description 指定されたクラスのストリングを返します。
|
|
19
|
+
* Returns the string representation of the specified class.
|
|
20
|
+
*
|
|
21
|
+
* @return {string}
|
|
22
|
+
* @default [class BlendMode]
|
|
23
|
+
* @method
|
|
24
|
+
* @static
|
|
25
|
+
*/
|
|
26
|
+
static toString(): string;
|
|
27
|
+
/**
|
|
28
|
+
* @description 指定されたクラスの空間名を返します。
|
|
29
|
+
* Returns the space name of the specified class.
|
|
30
|
+
*
|
|
31
|
+
* @return {string}
|
|
32
|
+
* @default next2d.display.BlendMode
|
|
33
|
+
* @const
|
|
34
|
+
* @static
|
|
35
|
+
*/
|
|
36
|
+
static get namespace(): string;
|
|
37
|
+
/**
|
|
38
|
+
* @description 指定されたオブジェクトのストリングを返します。
|
|
39
|
+
* Returns the string representation of the specified object.
|
|
40
|
+
*
|
|
41
|
+
* @return {string}
|
|
42
|
+
* @default [object BlendMode]
|
|
43
|
+
* @method
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
toString(): string;
|
|
47
|
+
/**
|
|
48
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
49
|
+
* Returns the space name of the specified object.
|
|
50
|
+
*
|
|
51
|
+
* @return {string}
|
|
52
|
+
* @default next2d.display.BlendMode
|
|
53
|
+
* @const
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
get namespace(): string;
|
|
57
|
+
/**
|
|
58
|
+
* @description 表示オブジェクトの要素カラーの値を背景色に加算し、その際に上限 0xFF を適用します。
|
|
59
|
+
* Adds the values of the constituent colors of the display object
|
|
60
|
+
* to the colors of its background, applying a ceiling of 0xFF.
|
|
61
|
+
*
|
|
62
|
+
* @return {string}
|
|
63
|
+
* @default add
|
|
64
|
+
* @const
|
|
65
|
+
* @static
|
|
66
|
+
*/
|
|
67
|
+
static get ADD(): string;
|
|
68
|
+
/**
|
|
69
|
+
* @description 表示オブジェクトの各ピクセルのアルファ値を背景に適用します。
|
|
70
|
+
* Applies the alpha value of each pixel of the display object to the background.
|
|
71
|
+
*
|
|
72
|
+
* @return {string}
|
|
73
|
+
* @default alpha
|
|
74
|
+
* @const
|
|
75
|
+
* @static
|
|
76
|
+
*/
|
|
77
|
+
static get ALPHA(): string;
|
|
78
|
+
/**
|
|
79
|
+
* @description 表示オブジェクトの要素カラーと背景色のうち暗い方(値が小さい方)の色を選択します。
|
|
80
|
+
* Selects the darker of the constituent colors of the display object
|
|
81
|
+
* and the colors of the background (the colors with the smaller values).
|
|
82
|
+
*
|
|
83
|
+
* @return {string}
|
|
84
|
+
* @default darken
|
|
85
|
+
* @const
|
|
86
|
+
* @static
|
|
87
|
+
*/
|
|
88
|
+
static get DARKEN(): string;
|
|
89
|
+
/**
|
|
90
|
+
* @description 表示オブジェクトの要素カラーと背景色を比較し、2 つの要素カラーのうち明るい方の値から暗い方の値を差し引きます。
|
|
91
|
+
* Compares the constituent colors of the display object with the colors of its background,
|
|
92
|
+
* and subtracts the darker of the values of the two constituent colors from the lighter value.
|
|
93
|
+
*
|
|
94
|
+
* @return {string}
|
|
95
|
+
* @default difference
|
|
96
|
+
* @const
|
|
97
|
+
* @static
|
|
98
|
+
*/
|
|
99
|
+
static get DIFFERENCE(): string;
|
|
100
|
+
/**
|
|
101
|
+
* @description 表示オブジェクトのアルファ値に基づいて背景を消去します。
|
|
102
|
+
* Erases the background based on the alpha value of the display object.
|
|
103
|
+
*
|
|
104
|
+
* @return {string}
|
|
105
|
+
* @default erase
|
|
106
|
+
* @const
|
|
107
|
+
* @static
|
|
108
|
+
*/
|
|
109
|
+
static get ERASE(): string;
|
|
110
|
+
/**
|
|
111
|
+
* @description 表示オブジェクトの暗さに基づいて、各ピクセルの色を調整します。
|
|
112
|
+
* Adjusts the color of each pixel based on the darkness of the display object.
|
|
113
|
+
*
|
|
114
|
+
* @return {string}
|
|
115
|
+
* @default hardlight
|
|
116
|
+
* @const
|
|
117
|
+
* @static
|
|
118
|
+
*/
|
|
119
|
+
static get HARDLIGHT(): string;
|
|
120
|
+
/**
|
|
121
|
+
* @description 背景を反転します。
|
|
122
|
+
* Inverts the background.
|
|
123
|
+
*
|
|
124
|
+
* @return {string}
|
|
125
|
+
* @default invert
|
|
126
|
+
* @const
|
|
127
|
+
* @static
|
|
128
|
+
*/
|
|
129
|
+
static get INVERT(): string;
|
|
130
|
+
/**
|
|
131
|
+
* @description 表示オブジェクトに関する透明度グループを強制的に作成します。
|
|
132
|
+
* Forces the creation of a transparency group for the display object.
|
|
133
|
+
*
|
|
134
|
+
* @return {string}
|
|
135
|
+
* @default layer
|
|
136
|
+
* @const
|
|
137
|
+
* @static
|
|
138
|
+
*/
|
|
139
|
+
static get LAYER(): string;
|
|
140
|
+
/**
|
|
141
|
+
* @description 表示オブジェクトの要素カラーと背景色のうち明るい方(値が大きい方)の色を選択します。
|
|
142
|
+
* Selects the lighter of the constituent colors of the display object
|
|
143
|
+
* and the colors of the background (the colors with the larger values).
|
|
144
|
+
*
|
|
145
|
+
* @return {string}
|
|
146
|
+
* @default lighten
|
|
147
|
+
* @const
|
|
148
|
+
* @static
|
|
149
|
+
*/
|
|
150
|
+
static get LIGHTEN(): string;
|
|
151
|
+
/**
|
|
152
|
+
* @description 表示オブジェクトの要素カラーの値と背景色の要素カラーの値を乗算した後、0xFF で割って正規化し、色を暗くします。
|
|
153
|
+
* Multiplies the values of the display object constituent colors by the constituent colors
|
|
154
|
+
* of the background color, and normalizes by dividing by 0xFF, resulting in darker colors.
|
|
155
|
+
*
|
|
156
|
+
* @return {string}
|
|
157
|
+
* @default multiply
|
|
158
|
+
* @const
|
|
159
|
+
* @static
|
|
160
|
+
*/
|
|
161
|
+
static get MULTIPLY(): string;
|
|
162
|
+
/**
|
|
163
|
+
* @description 表示オブジェクトは、背景の前に表示されます。
|
|
164
|
+
* The display object appears in front of the background.
|
|
165
|
+
*
|
|
166
|
+
* @return {string}
|
|
167
|
+
* @default normal
|
|
168
|
+
* @const
|
|
169
|
+
* @static
|
|
170
|
+
*/
|
|
171
|
+
static get NORMAL(): string;
|
|
172
|
+
/**
|
|
173
|
+
* @description 背景の暗さに基づいて、各ピクセルの色を調整します。
|
|
174
|
+
* Adjusts the color of each pixel based on the darkness of the background.
|
|
175
|
+
*
|
|
176
|
+
* @return {string}
|
|
177
|
+
* @default overlay
|
|
178
|
+
* @const
|
|
179
|
+
* @static
|
|
180
|
+
*/
|
|
181
|
+
static get OVERLAY(): string;
|
|
182
|
+
/**
|
|
183
|
+
* @description 表示オブジェクトの色の補数(逆)と背景色の補数を乗算して、ブリーチ効果を得ます。
|
|
184
|
+
* Multiplies the complement (inverse) of the display object color by the complement
|
|
185
|
+
* of the background color, resulting in a bleaching effect.
|
|
186
|
+
*
|
|
187
|
+
* @return {string}
|
|
188
|
+
* @default screen
|
|
189
|
+
* @const
|
|
190
|
+
* @static
|
|
191
|
+
*/
|
|
192
|
+
static get SCREEN(): string;
|
|
193
|
+
/**
|
|
194
|
+
* @description 結果の下限を 0 として、表示オブジェクトの要素カラーの値をその背景色の値から減算します。
|
|
195
|
+
* Subtracts the values of the constituent colors in the display object
|
|
196
|
+
* from the values of the background color, applying a floor of 0.
|
|
197
|
+
*
|
|
198
|
+
* @return {string}
|
|
199
|
+
* @default subtract
|
|
200
|
+
* @const
|
|
201
|
+
* @static
|
|
202
|
+
*/
|
|
203
|
+
static get SUBTRACT(): string;
|
|
204
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ブレンドモードの視覚効果のために定数値を提供するクラスです。
|
|
3
|
+
* 全てのDisplayObjectに設定が可能です。
|
|
4
|
+
* A class that provides constant values for visual blend mode effects.
|
|
5
|
+
* It can be set for all DisplayObjects.
|
|
6
|
+
*
|
|
7
|
+
* @example <caption>usage of BlendMode.</caption>
|
|
8
|
+
* // static BlendMode
|
|
9
|
+
* const {BlendMode, MovieClip} = next2d.display;
|
|
10
|
+
* const movieClip = new MovieClip();
|
|
11
|
+
* movieClip.blendMode = BlendMode.ADD;
|
|
12
|
+
*
|
|
13
|
+
* @class
|
|
14
|
+
* @memberOf next2d.display
|
|
15
|
+
*/
|
|
16
|
+
export class BlendMode {
|
|
17
|
+
/**
|
|
18
|
+
* @description 指定されたクラスのストリングを返します。
|
|
19
|
+
* Returns the string representation of the specified class.
|
|
20
|
+
*
|
|
21
|
+
* @return {string}
|
|
22
|
+
* @default [class BlendMode]
|
|
23
|
+
* @method
|
|
24
|
+
* @static
|
|
25
|
+
*/
|
|
26
|
+
static toString() {
|
|
27
|
+
return "[class BlendMode]";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @description 指定されたクラスの空間名を返します。
|
|
31
|
+
* Returns the space name of the specified class.
|
|
32
|
+
*
|
|
33
|
+
* @return {string}
|
|
34
|
+
* @default next2d.display.BlendMode
|
|
35
|
+
* @const
|
|
36
|
+
* @static
|
|
37
|
+
*/
|
|
38
|
+
static get namespace() {
|
|
39
|
+
return "next2d.display.BlendMode";
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @description 指定されたオブジェクトのストリングを返します。
|
|
43
|
+
* Returns the string representation of the specified object.
|
|
44
|
+
*
|
|
45
|
+
* @return {string}
|
|
46
|
+
* @default [object BlendMode]
|
|
47
|
+
* @method
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
toString() {
|
|
51
|
+
return "[object BlendMode]";
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @description 指定されたオブジェクトの空間名を返します。
|
|
55
|
+
* Returns the space name of the specified object.
|
|
56
|
+
*
|
|
57
|
+
* @return {string}
|
|
58
|
+
* @default next2d.display.BlendMode
|
|
59
|
+
* @const
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
get namespace() {
|
|
63
|
+
return "next2d.display.BlendMode";
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @description 表示オブジェクトの要素カラーの値を背景色に加算し、その際に上限 0xFF を適用します。
|
|
67
|
+
* Adds the values of the constituent colors of the display object
|
|
68
|
+
* to the colors of its background, applying a ceiling of 0xFF.
|
|
69
|
+
*
|
|
70
|
+
* @return {string}
|
|
71
|
+
* @default add
|
|
72
|
+
* @const
|
|
73
|
+
* @static
|
|
74
|
+
*/
|
|
75
|
+
static get ADD() {
|
|
76
|
+
return "add";
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @description 表示オブジェクトの各ピクセルのアルファ値を背景に適用します。
|
|
80
|
+
* Applies the alpha value of each pixel of the display object to the background.
|
|
81
|
+
*
|
|
82
|
+
* @return {string}
|
|
83
|
+
* @default alpha
|
|
84
|
+
* @const
|
|
85
|
+
* @static
|
|
86
|
+
*/
|
|
87
|
+
static get ALPHA() {
|
|
88
|
+
return "alpha";
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @description 表示オブジェクトの要素カラーと背景色のうち暗い方(値が小さい方)の色を選択します。
|
|
92
|
+
* Selects the darker of the constituent colors of the display object
|
|
93
|
+
* and the colors of the background (the colors with the smaller values).
|
|
94
|
+
*
|
|
95
|
+
* @return {string}
|
|
96
|
+
* @default darken
|
|
97
|
+
* @const
|
|
98
|
+
* @static
|
|
99
|
+
*/
|
|
100
|
+
static get DARKEN() {
|
|
101
|
+
return "darken";
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @description 表示オブジェクトの要素カラーと背景色を比較し、2 つの要素カラーのうち明るい方の値から暗い方の値を差し引きます。
|
|
105
|
+
* Compares the constituent colors of the display object with the colors of its background,
|
|
106
|
+
* and subtracts the darker of the values of the two constituent colors from the lighter value.
|
|
107
|
+
*
|
|
108
|
+
* @return {string}
|
|
109
|
+
* @default difference
|
|
110
|
+
* @const
|
|
111
|
+
* @static
|
|
112
|
+
*/
|
|
113
|
+
static get DIFFERENCE() {
|
|
114
|
+
return "difference";
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @description 表示オブジェクトのアルファ値に基づいて背景を消去します。
|
|
118
|
+
* Erases the background based on the alpha value of the display object.
|
|
119
|
+
*
|
|
120
|
+
* @return {string}
|
|
121
|
+
* @default erase
|
|
122
|
+
* @const
|
|
123
|
+
* @static
|
|
124
|
+
*/
|
|
125
|
+
static get ERASE() {
|
|
126
|
+
return "erase";
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @description 表示オブジェクトの暗さに基づいて、各ピクセルの色を調整します。
|
|
130
|
+
* Adjusts the color of each pixel based on the darkness of the display object.
|
|
131
|
+
*
|
|
132
|
+
* @return {string}
|
|
133
|
+
* @default hardlight
|
|
134
|
+
* @const
|
|
135
|
+
* @static
|
|
136
|
+
*/
|
|
137
|
+
static get HARDLIGHT() {
|
|
138
|
+
return "hardlight";
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @description 背景を反転します。
|
|
142
|
+
* Inverts the background.
|
|
143
|
+
*
|
|
144
|
+
* @return {string}
|
|
145
|
+
* @default invert
|
|
146
|
+
* @const
|
|
147
|
+
* @static
|
|
148
|
+
*/
|
|
149
|
+
static get INVERT() {
|
|
150
|
+
return "invert";
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @description 表示オブジェクトに関する透明度グループを強制的に作成します。
|
|
154
|
+
* Forces the creation of a transparency group for the display object.
|
|
155
|
+
*
|
|
156
|
+
* @return {string}
|
|
157
|
+
* @default layer
|
|
158
|
+
* @const
|
|
159
|
+
* @static
|
|
160
|
+
*/
|
|
161
|
+
static get LAYER() {
|
|
162
|
+
return "layer";
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @description 表示オブジェクトの要素カラーと背景色のうち明るい方(値が大きい方)の色を選択します。
|
|
166
|
+
* Selects the lighter of the constituent colors of the display object
|
|
167
|
+
* and the colors of the background (the colors with the larger values).
|
|
168
|
+
*
|
|
169
|
+
* @return {string}
|
|
170
|
+
* @default lighten
|
|
171
|
+
* @const
|
|
172
|
+
* @static
|
|
173
|
+
*/
|
|
174
|
+
static get LIGHTEN() {
|
|
175
|
+
return "lighten";
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @description 表示オブジェクトの要素カラーの値と背景色の要素カラーの値を乗算した後、0xFF で割って正規化し、色を暗くします。
|
|
179
|
+
* Multiplies the values of the display object constituent colors by the constituent colors
|
|
180
|
+
* of the background color, and normalizes by dividing by 0xFF, resulting in darker colors.
|
|
181
|
+
*
|
|
182
|
+
* @return {string}
|
|
183
|
+
* @default multiply
|
|
184
|
+
* @const
|
|
185
|
+
* @static
|
|
186
|
+
*/
|
|
187
|
+
static get MULTIPLY() {
|
|
188
|
+
return "multiply";
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @description 表示オブジェクトは、背景の前に表示されます。
|
|
192
|
+
* The display object appears in front of the background.
|
|
193
|
+
*
|
|
194
|
+
* @return {string}
|
|
195
|
+
* @default normal
|
|
196
|
+
* @const
|
|
197
|
+
* @static
|
|
198
|
+
*/
|
|
199
|
+
static get NORMAL() {
|
|
200
|
+
return "normal";
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @description 背景の暗さに基づいて、各ピクセルの色を調整します。
|
|
204
|
+
* Adjusts the color of each pixel based on the darkness of the background.
|
|
205
|
+
*
|
|
206
|
+
* @return {string}
|
|
207
|
+
* @default overlay
|
|
208
|
+
* @const
|
|
209
|
+
* @static
|
|
210
|
+
*/
|
|
211
|
+
static get OVERLAY() {
|
|
212
|
+
return "overlay";
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @description 表示オブジェクトの色の補数(逆)と背景色の補数を乗算して、ブリーチ効果を得ます。
|
|
216
|
+
* Multiplies the complement (inverse) of the display object color by the complement
|
|
217
|
+
* of the background color, resulting in a bleaching effect.
|
|
218
|
+
*
|
|
219
|
+
* @return {string}
|
|
220
|
+
* @default screen
|
|
221
|
+
* @const
|
|
222
|
+
* @static
|
|
223
|
+
*/
|
|
224
|
+
static get SCREEN() {
|
|
225
|
+
return "screen";
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @description 結果の下限を 0 として、表示オブジェクトの要素カラーの値をその背景色の値から減算します。
|
|
229
|
+
* Subtracts the values of the constituent colors in the display object
|
|
230
|
+
* from the values of the background color, applying a floor of 0.
|
|
231
|
+
*
|
|
232
|
+
* @return {string}
|
|
233
|
+
* @default subtract
|
|
234
|
+
* @const
|
|
235
|
+
* @static
|
|
236
|
+
*/
|
|
237
|
+
static get SUBTRACT() {
|
|
238
|
+
return "subtract";
|
|
239
|
+
}
|
|
240
|
+
}
|