@next2d/core 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.
@@ -0,0 +1,328 @@
1
+ import { CacheStore } from "@next2d/share";
2
+ import { Stage, MovieClip } from "@next2d/display";
3
+ import { Event as Next2DEvent } from "@next2d/events";
4
+ import { Video, Sound } from "@next2d/media";
5
+ import { CanvasToWebGLContext } from "@next2d/webgl";
6
+ import { PlayerOptionsImpl, PlayerModeImpl, AttachmentImpl, EventListenerImpl, EventDispatcherImpl } from "@next2d/interface";
7
+ /**
8
+ * 描画のイベントや設定やコントロールの管理クラス
9
+ * Management classes for drawing events, settings and controls
10
+ *
11
+ * @class
12
+ */
13
+ export declare class Player {
14
+ private readonly _$stage;
15
+ private readonly _$cacheStore;
16
+ private _$mode;
17
+ _$actionOffset: number;
18
+ _$actions: MovieClip[];
19
+ _$loaders: EventDispatcherImpl<any>[];
20
+ _$sounds: Map<any, MovieClip>;
21
+ private _$context;
22
+ private readonly _$hitObject;
23
+ private _$rollOverObject;
24
+ private _$mouseOverTarget;
25
+ private readonly _$ratio;
26
+ _$stopFlag: boolean;
27
+ private _$startTime;
28
+ private _$fps;
29
+ private _$isLoad;
30
+ _$loadStatus: number;
31
+ _$width: number;
32
+ _$height: number;
33
+ private _$baseWidth;
34
+ private _$baseHeight;
35
+ _$scale: number;
36
+ private readonly _$matrix;
37
+ private _$tx;
38
+ private _$ty;
39
+ _$state: "up" | "down";
40
+ private _$hitTestStart;
41
+ private _$stageX;
42
+ private _$stageY;
43
+ private readonly _$broadcastEvents;
44
+ private _$optionWidth;
45
+ private _$optionHeight;
46
+ private _$tagId;
47
+ private _$bgColor;
48
+ private _$base;
49
+ readonly _$videos: Video[];
50
+ readonly _$sources: Sound[];
51
+ private _$fullScreen;
52
+ private readonly _$quality;
53
+ private _$textField;
54
+ private _$touchY;
55
+ private _$timerId;
56
+ private _$loadId;
57
+ _$attachment: AttachmentImpl | null;
58
+ private readonly _$canvas;
59
+ private _$deltaX;
60
+ private _$deltaY;
61
+ private _$clickTarget;
62
+ private _$actionProcess;
63
+ /**
64
+ * @constructor
65
+ * @public
66
+ */
67
+ constructor();
68
+ /**
69
+ * @return {number}
70
+ * @default 1
71
+ * @const
72
+ * @static
73
+ */
74
+ static get LOAD_START(): number;
75
+ /**
76
+ * @return {number}
77
+ * @default 2
78
+ * @const
79
+ * @static
80
+ */
81
+ static get LOAD_END(): number;
82
+ /**
83
+ * @type {HTMLCanvasElement}
84
+ * @readonly
85
+ * @public
86
+ */
87
+ get canvas(): HTMLCanvasElement;
88
+ /**
89
+ * @return {Map}
90
+ * @readonly
91
+ * @public
92
+ */
93
+ get broadcastEvents(): Map<string, EventListenerImpl[]>;
94
+ /**
95
+ * @member {CacheStore}
96
+ * @return {CacheStore}
97
+ * @readonly
98
+ * @public
99
+ */
100
+ get cacheStore(): CacheStore;
101
+ /**
102
+ * @member {CanvasToWebGLContext|null}
103
+ * @default null
104
+ * @public
105
+ */
106
+ get context(): CanvasToWebGLContext | null;
107
+ set context(context: CanvasToWebGLContext | null);
108
+ /**
109
+ * @member {string}
110
+ * @default ""
111
+ * @public
112
+ */
113
+ get base(): string;
114
+ set base(base: string);
115
+ /**
116
+ * @return {Stage}
117
+ * @readonly
118
+ * @public
119
+ */
120
+ get stage(): Stage;
121
+ /**
122
+ * @member {number}
123
+ * @readonly
124
+ * @public
125
+ */
126
+ get x(): number;
127
+ /**
128
+ * @member {number}
129
+ * @readonly
130
+ * @public
131
+ */
132
+ get y(): number;
133
+ /**
134
+ * @member {number}
135
+ * @readonly
136
+ * @public
137
+ */
138
+ get scaleX(): number;
139
+ /**
140
+ * @member {number}
141
+ * @readonly
142
+ * @public
143
+ */
144
+ get scaleY(): number;
145
+ /**
146
+ * @member {string}
147
+ * @public
148
+ */
149
+ get mode(): PlayerModeImpl;
150
+ set mode(mode: PlayerModeImpl);
151
+ /**
152
+ * @return {string}
153
+ * @readonly
154
+ * @public
155
+ */
156
+ get contentElementId(): string;
157
+ /**
158
+ * @member {number}
159
+ * @public
160
+ */
161
+ get width(): number;
162
+ set width(width: number);
163
+ /**
164
+ * @member {number}
165
+ * @public
166
+ */
167
+ get height(): number;
168
+ set height(height: number);
169
+ /**
170
+ * @member {string}
171
+ * @public
172
+ */
173
+ get bgColor(): string;
174
+ set bgColor(bg_color: string);
175
+ /**
176
+ * @return {void}
177
+ * @method
178
+ * @public
179
+ */
180
+ play(): void;
181
+ /**
182
+ * @return {void}
183
+ * @method
184
+ * @public
185
+ */
186
+ stop(): void;
187
+ /**
188
+ * @param {string} id
189
+ * @return {void}
190
+ * @method
191
+ * @public
192
+ */
193
+ removeCache(id: string): void;
194
+ /**
195
+ * @param {object} [options=null]
196
+ * @return {void}
197
+ * @public
198
+ */
199
+ setOptions(options?: PlayerOptionsImpl | null): void;
200
+ /**
201
+ * @description NoCode Toolからのアクセスのみ
202
+ * Access from NoCode Tool only
203
+ *
204
+ * @param {MouseEvent} [event = null]
205
+ * @return {void}
206
+ * @method
207
+ * @private
208
+ */
209
+ _$loadWebAudio(event?: MouseEvent | null): void;
210
+ /**
211
+ * @return {void}
212
+ * @method
213
+ * @private
214
+ */
215
+ _$updateLoadStatus(): void;
216
+ /**
217
+ * @return {void}
218
+ * @method
219
+ * @private
220
+ */
221
+ _$loaded(): void;
222
+ /**
223
+ * @return {void}
224
+ * @method
225
+ * @private
226
+ */
227
+ _$initialize(): void;
228
+ /**
229
+ * @param {object} element
230
+ * @returns {void}
231
+ * @method
232
+ * @private
233
+ */
234
+ _$initStyle(element: HTMLElement): void;
235
+ /**
236
+ * @return {void}
237
+ * @method
238
+ * @private
239
+ */
240
+ _$buildWait(): void;
241
+ /**
242
+ * @returns {void}
243
+ * @method
244
+ * @private
245
+ */
246
+ _$deleteNode(): void;
247
+ /**
248
+ * @return {void}
249
+ * @private
250
+ */
251
+ _$initializeCanvas(): void;
252
+ /**
253
+ * @return {void}
254
+ * @method
255
+ * @private
256
+ */
257
+ _$resize(): void;
258
+ /**
259
+ * @description 表示用のcanvasを更新
260
+ * Update canvas for display
261
+ *
262
+ * @param {string} [background_color=transparent]
263
+ * @return {void}
264
+ * @method
265
+ * @public
266
+ */
267
+ _$setBackgroundColor(background_color?: string): void;
268
+ /**
269
+ * @param {number} width
270
+ * @param {number} height
271
+ * @param {number} scale
272
+ * @param {number} [tx = 0]
273
+ * @param {number} [ty = 0]
274
+ * @return {void}
275
+ * @method
276
+ * @private
277
+ */
278
+ _$resizeCanvas(width: number, height: number, scale: number, tx?: number, ty?: number): void;
279
+ /**
280
+ * @return {number}
281
+ * @method
282
+ * @private
283
+ */
284
+ _$getSamples(): number;
285
+ /**
286
+ * @param {Event} event
287
+ * @return {boolean}
288
+ * @method
289
+ * @private
290
+ */
291
+ _$dispatchEvent(event: Next2DEvent): boolean;
292
+ /**
293
+ * @param {number} timestamp
294
+ * @return {void}
295
+ * @method
296
+ * @private
297
+ */
298
+ _$run(timestamp?: number): void;
299
+ /**
300
+ * @return {void}
301
+ * @method
302
+ * @private
303
+ */
304
+ _$pointerCheck(): void;
305
+ /**
306
+ * @return {void}
307
+ * @method
308
+ * @private
309
+ */
310
+ _$action(): void;
311
+ /**
312
+ * @returns void
313
+ * @private
314
+ */
315
+ _$draw(): void;
316
+ /**
317
+ * @return {void}
318
+ * @method
319
+ * @private
320
+ */
321
+ _$doAction(): void;
322
+ /**
323
+ * @return {void}
324
+ * @method
325
+ * @private
326
+ */
327
+ _$hitTest(): void;
328
+ }