@next2d/display 3.15.0 → 3.16.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 +9 -9
- package/src/BitmapData.js +0 -38
- package/src/DisplayObject/service/DisplayObjectGenerateHashService.d.ts +13 -0
- package/src/DisplayObject/service/DisplayObjectGenerateHashService.js +33 -50
- package/src/DisplayObject.js +1 -544
- package/src/DisplayObjectContainer.js +0 -99
- package/src/FrameLabel.js +0 -28
- package/src/Graphics/GraphicsCommand.d.ts +22 -0
- package/src/Graphics/GraphicsCommand.js +22 -0
- package/src/Graphics/service/GraphicsCalcFillBoundsService.js +13 -4
- package/src/Graphics/service/GraphicsCalcLineBoundsService.js +82 -20
- package/src/Graphics/service/GraphicsToNumberArrayService.js +16 -16
- package/src/Graphics.js +152 -327
- package/src/GraphicsBitmapFill.js +0 -24
- package/src/GraphicsGradientFill.js +0 -54
- package/src/InteractiveObject.js +0 -28
- package/src/Loader/worker/unzip.worker.inline.js +1 -1
- package/src/Loader.js +0 -25
- package/src/LoaderInfo.js +0 -69
- package/src/LoopConfig.js +0 -59
- package/src/MovieClip.js +0 -156
- package/src/Shape/usecase/ShapeLoadSrcUseCase.js +4 -1
- package/src/Shape.js +0 -91
- package/src/Sprite.js +4 -92
- package/src/Stage.js +0 -122
package/src/Sprite.js
CHANGED
|
@@ -16,74 +16,6 @@ export class Sprite extends DisplayObjectContainer {
|
|
|
16
16
|
*/
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
19
|
-
/**
|
|
20
|
-
* @description このスプライトのボタンモードを指定します。
|
|
21
|
-
* Specifies the button mode of this sprite.
|
|
22
|
-
*
|
|
23
|
-
* @member {boolean}
|
|
24
|
-
* @default false
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
Object.defineProperty(this, "buttonMode", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true,
|
|
31
|
-
value: void 0
|
|
32
|
-
});
|
|
33
|
-
/**
|
|
34
|
-
* @description buttonMode プロパティが true に設定されたスプライト上にポインターが移動したときに、
|
|
35
|
-
* 指差しハンドポインター(ハンドカーソル)を表示するかどうかを示すブール値です。
|
|
36
|
-
* A Boolean value that indicates whether the pointing hand (hand cursor)
|
|
37
|
-
* appears when the pointer rolls over a sprite
|
|
38
|
-
* in which the buttonMode property is set to true.
|
|
39
|
-
*
|
|
40
|
-
* @member {boolean}
|
|
41
|
-
* @default true
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
Object.defineProperty(this, "useHandCursor", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true,
|
|
48
|
-
value: void 0
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* @description Spriteの機能を所持しているかを返却
|
|
52
|
-
* Returns whether Sprite functions are possessed.
|
|
53
|
-
*
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @readonly
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
Object.defineProperty(this, "isSprite", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true,
|
|
61
|
-
writable: true,
|
|
62
|
-
value: void 0
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* @description スプライトのヒット領域となる別のスプライトを指定します。
|
|
66
|
-
* Designates another sprite to serve as the hit area for a sprite.
|
|
67
|
-
*
|
|
68
|
-
* @type {Sprite|null}
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
|
-
Object.defineProperty(this, "hitArea", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
configurable: true,
|
|
74
|
-
writable: true,
|
|
75
|
-
value: void 0
|
|
76
|
-
});
|
|
77
|
-
/**
|
|
78
|
-
* @type {SoundTransform|null}
|
|
79
|
-
* @private
|
|
80
|
-
*/
|
|
81
|
-
Object.defineProperty(this, "_$soundTransform", {
|
|
82
|
-
enumerable: true,
|
|
83
|
-
configurable: true,
|
|
84
|
-
writable: true,
|
|
85
|
-
value: void 0
|
|
86
|
-
});
|
|
87
19
|
/**
|
|
88
20
|
* @description ドラッグ時のオフセットX
|
|
89
21
|
* Offset X during drag
|
|
@@ -91,12 +23,7 @@ export class Sprite extends DisplayObjectContainer {
|
|
|
91
23
|
* @type {number}
|
|
92
24
|
* @public
|
|
93
25
|
*/
|
|
94
|
-
|
|
95
|
-
enumerable: true,
|
|
96
|
-
configurable: true,
|
|
97
|
-
writable: true,
|
|
98
|
-
value: 0
|
|
99
|
-
});
|
|
26
|
+
this.$offsetX = 0;
|
|
100
27
|
/**
|
|
101
28
|
* @description ドラッグ時のオフセットY
|
|
102
29
|
* Offset Y during drag
|
|
@@ -104,12 +31,7 @@ export class Sprite extends DisplayObjectContainer {
|
|
|
104
31
|
* @type {number}
|
|
105
32
|
* @public
|
|
106
33
|
*/
|
|
107
|
-
|
|
108
|
-
enumerable: true,
|
|
109
|
-
configurable: true,
|
|
110
|
-
writable: true,
|
|
111
|
-
value: 0
|
|
112
|
-
});
|
|
34
|
+
this.$offsetY = 0;
|
|
113
35
|
/**
|
|
114
36
|
* @description 中心をロックするかどうか
|
|
115
37
|
* Whether to lock the center
|
|
@@ -117,12 +39,7 @@ export class Sprite extends DisplayObjectContainer {
|
|
|
117
39
|
* @type {boolean}
|
|
118
40
|
* @public
|
|
119
41
|
*/
|
|
120
|
-
|
|
121
|
-
enumerable: true,
|
|
122
|
-
configurable: true,
|
|
123
|
-
writable: true,
|
|
124
|
-
value: false
|
|
125
|
-
});
|
|
42
|
+
this.$lockCenter = false;
|
|
126
43
|
/**
|
|
127
44
|
* @description バウンドされた矩形
|
|
128
45
|
* Bounded rectangle
|
|
@@ -130,12 +47,7 @@ export class Sprite extends DisplayObjectContainer {
|
|
|
130
47
|
* @type {Rectangle|null}
|
|
131
48
|
* @public
|
|
132
49
|
*/
|
|
133
|
-
|
|
134
|
-
enumerable: true,
|
|
135
|
-
configurable: true,
|
|
136
|
-
writable: true,
|
|
137
|
-
value: null
|
|
138
|
-
});
|
|
50
|
+
this.$boundedRect = null;
|
|
139
51
|
// public
|
|
140
52
|
this.isSprite = true;
|
|
141
53
|
this.buttonMode = false;
|
package/src/Stage.js
CHANGED
|
@@ -19,128 +19,6 @@ export class Stage extends DisplayObjectContainer {
|
|
|
19
19
|
*/
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
-
/**
|
|
23
|
-
* @description 初期起動の準備完了したかどうか
|
|
24
|
-
* Whether the initial startup is ready
|
|
25
|
-
*
|
|
26
|
-
* @type {boolean}
|
|
27
|
-
* @default false
|
|
28
|
-
* @private
|
|
29
|
-
*/
|
|
30
|
-
Object.defineProperty(this, "_$ready", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true,
|
|
34
|
-
value: void 0
|
|
35
|
-
});
|
|
36
|
-
/**
|
|
37
|
-
* @description ステージ幅
|
|
38
|
-
* Stage width
|
|
39
|
-
*
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
Object.defineProperty(this, "stageWidth", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
configurable: true,
|
|
46
|
-
writable: true,
|
|
47
|
-
value: void 0
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* @description ステージ高さ
|
|
51
|
-
* Stage height
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @public
|
|
55
|
-
*/
|
|
56
|
-
Object.defineProperty(this, "stageHeight", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true,
|
|
59
|
-
writable: true,
|
|
60
|
-
value: void 0
|
|
61
|
-
});
|
|
62
|
-
/**
|
|
63
|
-
* @description フレームレート
|
|
64
|
-
* Frame rate
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @public
|
|
68
|
-
*/
|
|
69
|
-
Object.defineProperty(this, "frameRate", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true,
|
|
72
|
-
writable: true,
|
|
73
|
-
value: void 0
|
|
74
|
-
});
|
|
75
|
-
/**
|
|
76
|
-
* @description devicePixelRatioを含んだcanvasの描画領域の拡大率
|
|
77
|
-
* The magnification of the drawing area of the canvas including devicePixelRatio
|
|
78
|
-
*
|
|
79
|
-
* @member {number}
|
|
80
|
-
* @default 1
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
Object.defineProperty(this, "rendererScale", {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true,
|
|
86
|
-
writable: true,
|
|
87
|
-
value: void 0
|
|
88
|
-
});
|
|
89
|
-
/**
|
|
90
|
-
* @description devicePixelRatioを含んだcanvasの描画領域の幅
|
|
91
|
-
* The width of the drawing area of the canvas including devicePixelRatio
|
|
92
|
-
*
|
|
93
|
-
* @member {number}
|
|
94
|
-
* @default 0
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
Object.defineProperty(this, "rendererWidth", {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
configurable: true,
|
|
100
|
-
writable: true,
|
|
101
|
-
value: void 0
|
|
102
|
-
});
|
|
103
|
-
/**
|
|
104
|
-
* @description devicePixelRatioを含んだcanvasの描画領域の高さ
|
|
105
|
-
* The height of the drawing area of the canvas including devicePixelRatio
|
|
106
|
-
*
|
|
107
|
-
* @member {number}
|
|
108
|
-
* @default 0
|
|
109
|
-
* @public
|
|
110
|
-
*/
|
|
111
|
-
Object.defineProperty(this, "rendererHeight", {
|
|
112
|
-
enumerable: true,
|
|
113
|
-
configurable: true,
|
|
114
|
-
writable: true,
|
|
115
|
-
value: void 0
|
|
116
|
-
});
|
|
117
|
-
/**
|
|
118
|
-
* @description 背景色
|
|
119
|
-
* Background color
|
|
120
|
-
*
|
|
121
|
-
* @type {number}
|
|
122
|
-
* @public
|
|
123
|
-
*/
|
|
124
|
-
Object.defineProperty(this, "_$backgroundColor", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
configurable: true,
|
|
127
|
-
writable: true,
|
|
128
|
-
value: void 0
|
|
129
|
-
});
|
|
130
|
-
/**
|
|
131
|
-
* @description Stageの機能を所持しているかを返却
|
|
132
|
-
* Returns whether Stage functions are possessed.
|
|
133
|
-
*
|
|
134
|
-
* @type {boolean}
|
|
135
|
-
* @readonly
|
|
136
|
-
* @public
|
|
137
|
-
*/
|
|
138
|
-
Object.defineProperty(this, "isStage", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
configurable: true,
|
|
141
|
-
writable: true,
|
|
142
|
-
value: void 0
|
|
143
|
-
});
|
|
144
22
|
this.stageWidth = 0;
|
|
145
23
|
this.stageHeight = 0;
|
|
146
24
|
this.frameRate = 1;
|