@next2d/display 3.15.1 → 3.17.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.
@@ -53,544 +53,6 @@ export class DisplayObject extends EventDispatcher {
53
53
  */
54
54
  constructor() {
55
55
  super();
56
- /**
57
- * @description DisplayObject のユニークなインスタンスID
58
- * Unique instance ID of DisplayObject
59
- *
60
- * @type {number}
61
- * @readonly
62
- * @public
63
- */
64
- Object.defineProperty(this, "instanceId", {
65
- enumerable: true,
66
- configurable: true,
67
- writable: true,
68
- value: void 0
69
- });
70
- /**
71
- * @description instanceId の文字列キャッシュ(cacheStoreキー用、遅延生成)。
72
- * uniqueKey とは別物(uniqueKey はフィルターキャッシュ判定に使われるため流用不可)。
73
- * Lazily built string cache of instanceId for cacheStore keys.
74
- * Distinct from uniqueKey (which drives filter-cache decisions).
75
- *
76
- * @type {string}
77
- * @default ""
78
- * @public
79
- */
80
- Object.defineProperty(this, "$instanceIdString", {
81
- enumerable: true,
82
- configurable: true,
83
- writable: true,
84
- value: void 0
85
- });
86
- /**
87
- * @description DisplayObject の生成元ID
88
- * Source ID of DisplayObject
89
- *
90
- * @type {number}
91
- * @default -1
92
- * @public
93
- */
94
- Object.defineProperty(this, "dictionaryId", {
95
- enumerable: true,
96
- configurable: true,
97
- writable: true,
98
- value: void 0
99
- });
100
- /**
101
- * @description Spriteの機能を所持しているかを返却
102
- * Returns whether Sprite functions are possessed.
103
- *
104
- * @type {boolean}
105
- * @readonly
106
- * @public
107
- */
108
- Object.defineProperty(this, "isSprite", {
109
- enumerable: true,
110
- configurable: true,
111
- writable: true,
112
- value: void 0
113
- });
114
- /**
115
- * @description InteractiveObject の機能を所持しているかを返却
116
- * Returns whether InteractiveObject functions are possessed.
117
- *
118
- * @type {boolean}
119
- * @readonly
120
- * @public
121
- */
122
- Object.defineProperty(this, "isInteractive", {
123
- enumerable: true,
124
- configurable: true,
125
- writable: true,
126
- value: void 0
127
- });
128
- /**
129
- * @description コンテナの機能を所持しているかを返却
130
- * Returns whether the display object has container functionality.
131
- *
132
- * @type {boolean}
133
- * @readonly
134
- * @public
135
- */
136
- Object.defineProperty(this, "isContainerEnabled", {
137
- enumerable: true,
138
- configurable: true,
139
- writable: true,
140
- value: void 0
141
- });
142
- /**
143
- * @description MovieClipの機能を所持しているかを返却
144
- * Returns whether the display object has MovieClip functionality.
145
- *
146
- * @type {boolean}
147
- * @readonly
148
- * @public
149
- */
150
- Object.defineProperty(this, "isTimelineEnabled", {
151
- enumerable: true,
152
- configurable: true,
153
- writable: true,
154
- value: void 0
155
- });
156
- /**
157
- * @description Shapeの機能を所持しているかを返却
158
- * Returns whether the display object has Shape functionality.
159
- *
160
- * @type {boolean}
161
- * @readonly
162
- * @public
163
- */
164
- Object.defineProperty(this, "isShape", {
165
- enumerable: true,
166
- configurable: true,
167
- writable: true,
168
- value: void 0
169
- });
170
- /**
171
- * @description Videoの機能を所持しているかを返却
172
- * Returns whether the display object has Video functionality.
173
- *
174
- * @type {boolean}
175
- * @readonly
176
- * @public
177
- */
178
- Object.defineProperty(this, "isVideo", {
179
- enumerable: true,
180
- configurable: true,
181
- writable: true,
182
- value: void 0
183
- });
184
- /**
185
- * @description Textの機能を所持しているかを返却
186
- * Returns whether the display object has Text functionality.
187
- *
188
- * @type {boolean}
189
- * @readonly
190
- * @public
191
- */
192
- Object.defineProperty(this, "isText", {
193
- enumerable: true,
194
- configurable: true,
195
- writable: true,
196
- value: void 0
197
- });
198
- /**
199
- * @description 表示オブジェクトのPlaceObjectのIDを返却します。
200
- * Returns the ID of the PlaceObject of the display object.
201
- *
202
- * @type {number}
203
- * @default -1
204
- * @public
205
- */
206
- Object.defineProperty(this, "placeId", {
207
- enumerable: true,
208
- configurable: true,
209
- writable: true,
210
- value: void 0
211
- });
212
- /**
213
- * @description 現在のフレームの表示オブジェクトのPlaceObjectを返却します。
214
- * Returns the PlaceObject of the current frame of the display object.
215
- *
216
- * @type {IPlaceObject|null}
217
- * @default null
218
- * @public
219
- */
220
- Object.defineProperty(this, "placeObject", {
221
- enumerable: true,
222
- configurable: true,
223
- writable: true,
224
- value: void 0
225
- });
226
- /**
227
- * @description 構築に利用したキャラクターIDを返却します。
228
- * Returns the character ID used for construction.
229
- *
230
- * @type {number}
231
- * @default -1
232
- * @public
233
- */
234
- Object.defineProperty(this, "characterId", {
235
- enumerable: true,
236
- configurable: true,
237
- writable: true,
238
- value: void 0
239
- });
240
- /**
241
- * @description マスク対象の深度を返却します。
242
- * Returns the depth of the mask target.
243
- *
244
- * @type {number}
245
- * @default 0
246
- * @public
247
- */
248
- Object.defineProperty(this, "clipDepth", {
249
- enumerable: true,
250
- configurable: true,
251
- writable: true,
252
- value: void 0
253
- });
254
- /**
255
- * @description 名前を返却します。 getChildByName() で使用されます。
256
- * Returns the name. Used by getChildByName().
257
- *
258
- * @see {DisplayObjectContainer.getChildByName}
259
- * @type {string}
260
- * @default ""
261
- * @public
262
- */
263
- Object.defineProperty(this, "name", {
264
- enumerable: true,
265
- configurable: true,
266
- writable: true,
267
- value: void 0
268
- });
269
- /**
270
- * @description 開始フレームを返却します。
271
- * Returns the start frame.
272
- *
273
- * @type {number}
274
- * @default 1
275
- * @public
276
- */
277
- Object.defineProperty(this, "startFrame", {
278
- enumerable: true,
279
- configurable: true,
280
- writable: true,
281
- value: void 0
282
- });
283
- /**
284
- * @description 終了フレームを返却します。
285
- * Returns the end frame.
286
- *
287
- * @type {number}
288
- * @default 0
289
- * @public
290
- */
291
- Object.defineProperty(this, "endFrame", {
292
- enumerable: true,
293
- configurable: true,
294
- writable: true,
295
- value: void 0
296
- });
297
- /**
298
- * @description 描画に関連する何らかの変更が加えられたかを示します。
299
- * Indicates whether any changes related to drawing have been made.
300
- *
301
- * @type {boolean}
302
- * @default true
303
- * @public
304
- */
305
- Object.defineProperty(this, "changed", {
306
- enumerable: true,
307
- configurable: true,
308
- writable: true,
309
- value: void 0
310
- });
311
- /**
312
- * @description DisplayObjectの追加イベントが発火したかを示します。
313
- * Indicates whether the DisplayObject addition event has been fired.
314
- *
315
- * @type {boolean}
316
- * @default false
317
- * @public
318
- */
319
- Object.defineProperty(this, "$added", {
320
- enumerable: true,
321
- configurable: true,
322
- writable: true,
323
- value: void 0
324
- });
325
- /**
326
- * @description DisplayObjectのステージ追加イベントが発火したかを示します。
327
- * Indicates whether the DisplayObject stage addition event has been fired.
328
- *
329
- * @type {boolean}
330
- * @default false
331
- * @public
332
- */
333
- Object.defineProperty(this, "$addedToStage", {
334
- enumerable: true,
335
- configurable: true,
336
- writable: true,
337
- value: void 0
338
- });
339
- /**
340
- * @description キャッシュで利用するユニークキー
341
- * Unique key used for caching
342
- *
343
- * @type {string}
344
- * @public
345
- */
346
- Object.defineProperty(this, "uniqueKey", {
347
- enumerable: true,
348
- configurable: true,
349
- writable: true,
350
- value: void 0
351
- });
352
- /**
353
- * @description 固定された変換行列、nullの場合はPlaceObjectの変換行列を検索します。
354
- * Fixed transformation matrix, if null, search for PlaceObject transformation matrix.
355
- *
356
- * @type {Matrix}
357
- * @default null
358
- * @protected
359
- */
360
- Object.defineProperty(this, "$matrix", {
361
- enumerable: true,
362
- configurable: true,
363
- writable: true,
364
- value: void 0
365
- });
366
- /**
367
- * @description 固定されたカラートランスフォーム、nullの場合はPlaceObjectのカラートランスフォームを検索します。
368
- * Fixed color transform, if null, search for PlaceObject color transform.
369
- *
370
- * @type {ColorTransform}
371
- * @default null
372
- * @protected
373
- */
374
- Object.defineProperty(this, "$colorTransform", {
375
- enumerable: true,
376
- configurable: true,
377
- writable: true,
378
- value: void 0
379
- });
380
- /**
381
- * @description 表示オブジェクトに現在関連付けられている各フィルターオブジェクトの配列です。
382
- * An array of filter objects currently associated with the display object.
383
- *
384
- * @type {array}
385
- * @default null
386
- * @protected
387
- */
388
- Object.defineProperty(this, "$filters", {
389
- enumerable: true,
390
- configurable: true,
391
- writable: true,
392
- value: void 0
393
- });
394
- /**
395
- * @description 使用するブレンドモードを指定する BlendMode クラスの値です。
396
- * A value from the BlendMode class that specifies which blend mode to use.
397
- *
398
- * @type {string}
399
- * @default BlendMode.NORMAL
400
- * @protected
401
- */
402
- Object.defineProperty(this, "$blendMode", {
403
- enumerable: true,
404
- configurable: true,
405
- writable: true,
406
- value: void 0
407
- });
408
- /**
409
- * @description キャッシュした scaleX の値を返却します。
410
- * Returns the cached scaleX value.
411
- *
412
- * @type {number}
413
- * @default null
414
- * @protected
415
- */
416
- Object.defineProperty(this, "$scaleX", {
417
- enumerable: true,
418
- configurable: true,
419
- writable: true,
420
- value: void 0
421
- });
422
- /**
423
- * @description キャッシュした scaleY の値を返却します。
424
- * Returns the cached scaleY value.
425
- *
426
- * @type {number}
427
- * @default null
428
- * @protected
429
- */
430
- Object.defineProperty(this, "$scaleY", {
431
- enumerable: true,
432
- configurable: true,
433
- writable: true,
434
- value: void 0
435
- });
436
- /**
437
- * @description キャッシュした rotation の値を返却します。
438
- * Returns the cached rotation value.
439
- *
440
- * @type {number}
441
- * @default null
442
- * @protected
443
- */
444
- Object.defineProperty(this, "$rotation", {
445
- enumerable: true,
446
- configurable: true,
447
- writable: true,
448
- value: void 0
449
- });
450
- /**
451
- * @description キャッシュした x の値を返却します。
452
- * Returns the cached x value.
453
- *
454
- * @type {number}
455
- * @default null
456
- * @protected
457
- */
458
- Object.defineProperty(this, "$x", {
459
- enumerable: true,
460
- configurable: true,
461
- writable: true,
462
- value: void 0
463
- });
464
- /**
465
- * @description キャッシュした y の値を返却します。
466
- * Returns the cached y value.
467
- *
468
- * @type {number}
469
- * @default null
470
- * @protected
471
- */
472
- Object.defineProperty(this, "$y", {
473
- enumerable: true,
474
- configurable: true,
475
- writable: true,
476
- value: void 0
477
- });
478
- /**
479
- * @description キャッシュした alpha の値を返却します。
480
- * Returns the cached alpha value.
481
- *
482
- * @type {number}
483
- * @default null
484
- * @protected
485
- */
486
- Object.defineProperty(this, "$alpha", {
487
- enumerable: true,
488
- configurable: true,
489
- writable: true,
490
- value: void 0
491
- });
492
- /**
493
- * @description 描画情報を保持するキャッシュ
494
- * Cache that holds drawing information
495
- *
496
- * @type {Map<any, any> | null}
497
- * @default null
498
- * @protected
499
- */
500
- Object.defineProperty(this, "$cache", {
501
- enumerable: true,
502
- configurable: true,
503
- writable: true,
504
- value: void 0
505
- });
506
- /**
507
- * @description 表示オブジェクトのスケール9グリッドを示します。
508
- * Indicates the scale9 grid of the display object.
509
- *
510
- * @type {Rectangle}
511
- * @private
512
- */
513
- Object.defineProperty(this, "_$scale9Grid", {
514
- enumerable: true,
515
- configurable: true,
516
- writable: true,
517
- value: void 0
518
- });
519
- /**
520
- * @description 表示オブジェクトの可視性を示します。
521
- * Indicates the visibility of the display object.
522
- *
523
- * @type {boolean}
524
- * @private
525
- */
526
- Object.defineProperty(this, "_$visible", {
527
- enumerable: true,
528
- configurable: true,
529
- writable: true,
530
- value: void 0
531
- });
532
- /**
533
- * @description ビットマップキャッシュ用のMatrix。nullでない場合、指定Matrix × stageのrendererScaleで
534
- * Shape/TextFieldのベクター描画をキャッシュし、ステージのリサイズがあるまで再利用します。
535
- * 先祖のMatrixの影響を受けず、キャッシュの品質は指定Matrixとstageスケールのみで決定されます。
536
- * Matrix for bitmap caching. When not null, caches Shape/TextField vector rendering
537
- * at the specified Matrix × stage rendererScale, reusing until stage resize.
538
- * Cache quality is determined only by the specified Matrix and stage scale,
539
- * independent of ancestor transforms.
540
- *
541
- * @type {Matrix | null}
542
- * @default null
543
- * @private
544
- */
545
- Object.defineProperty(this, "_$cacheAsBitmap", {
546
- enumerable: true,
547
- configurable: true,
548
- writable: true,
549
- value: void 0
550
- });
551
- /**
552
- * @description 表示オブジェクト単位の変数を保持するマップ
553
- * Map that holds variables for display objects
554
- *
555
- * @type {Map<any, any>}
556
- * @default null
557
- * @private
558
- */
559
- Object.defineProperty(this, "_$variables", {
560
- enumerable: true,
561
- configurable: true,
562
- writable: true,
563
- value: void 0
564
- });
565
- /**
566
- * @description マスクとしてDisplayObjectにセットされているかを示します。
567
- * Indicates whether the DisplayObject is set as a mask.
568
- *
569
- * @type {boolean}
570
- * @default false
571
- * @private
572
- */
573
- Object.defineProperty(this, "isMask", {
574
- enumerable: true,
575
- configurable: true,
576
- writable: true,
577
- value: void 0
578
- });
579
- /**
580
- * @description このDisplayObjectの親のDisplayObjectContainerを返却します。
581
- * 通常であれば、親のDisplayObjectContainerを継承しているのは、Sprite、または MovieClip となります。
582
- * Returns the DisplayObjectContainer of this DisplayObject's parent.
583
- * Under normal circumstances, the parent DisplayObjectContainer would inherit from Sprite or MovieClip.
584
- *
585
- * @member {Sprite | MovieClip | null}
586
- * @public
587
- */
588
- Object.defineProperty(this, "parent", {
589
- enumerable: true,
590
- configurable: true,
591
- writable: true,
592
- value: void 0
593
- });
594
56
  /**
595
57
  * @description キャッシュする際の指定Matrix、nullの場合は通常のMatrixで描画
596
58
  * Specified Matrix for caching, if null, draw with the normal Matrix
@@ -599,12 +61,7 @@ export class DisplayObject extends EventDispatcher {
599
61
  * @default null
600
62
  * @public
601
63
  */
602
- Object.defineProperty(this, "cacheTransform", {
603
- enumerable: true,
604
- configurable: true,
605
- writable: true,
606
- value: null
607
- });
64
+ this.cacheTransform = null;
608
65
  this.instanceId = $getInstanceId();
609
66
  this.dictionaryId = -1;
610
67
  this.uniqueKey = "";
@@ -35,105 +35,6 @@ export class DisplayObjectContainer extends InteractiveObject {
35
35
  */
36
36
  constructor() {
37
37
  super();
38
- /**
39
- * @description 描画対象となるDisplayObjectの配列です。
40
- * An array of DisplayObjects to be drawn.
41
- *
42
- * @type {array}
43
- * @readonly
44
- * @private
45
- */
46
- Object.defineProperty(this, "_$children", {
47
- enumerable: true,
48
- configurable: true,
49
- writable: true,
50
- value: void 0
51
- });
52
- /**
53
- * @description セットされてるDisplayObjectがマスクとして使用されます。
54
- * The DisplayObject set is used as a mask.
55
- *
56
- * @type {IDisplayObject<any>|null}
57
- * @default null
58
- * @private
59
- */
60
- Object.defineProperty(this, "_$mask", {
61
- enumerable: true,
62
- configurable: true,
63
- writable: true,
64
- value: void 0
65
- });
66
- /**
67
- * @description オブジェクトの子がマウスまたはユーザー入力デバイスに対応しているかどうかを判断します。
68
- * Determine if the object's children are compatible with mouse or user input devices.
69
- *
70
- * @type {boolean}
71
- * @default true
72
- * @public
73
- */
74
- Object.defineProperty(this, "mouseChildren", {
75
- enumerable: true,
76
- configurable: true,
77
- writable: true,
78
- value: void 0
79
- });
80
- /**
81
- * @description このコンテナ何にセットされているコンテナだけの配列
82
- * An array of containers set in this container
83
- *
84
- * @type {IParent<any>[] | null}
85
- * @public
86
- */
87
- Object.defineProperty(this, "$container", {
88
- enumerable: true,
89
- configurable: true,
90
- writable: true,
91
- value: void 0
92
- });
93
- /**
94
- * @description filterレイヤーのサブツリースケールのキャッシュ(x)。-1は未計算。
95
- * サブツリーのscale/構造変化は必ずchangedを立てるため、
96
- * フィルターキャッシュHIT時(未更新時)は前フレーム値を再利用できる。
97
- * Cached filter-layer subtree scale (x). -1 means not computed.
98
- *
99
- * @type {number}
100
- * @default -1
101
- * @public
102
- */
103
- Object.defineProperty(this, "$layerScaleX", {
104
- enumerable: true,
105
- configurable: true,
106
- writable: true,
107
- value: void 0
108
- });
109
- /**
110
- * @description filterレイヤーのサブツリースケールのキャッシュ(y)。-1は未計算。
111
- * Cached filter-layer subtree scale (y). -1 means not computed.
112
- *
113
- * @type {number}
114
- * @default -1
115
- * @public
116
- */
117
- Object.defineProperty(this, "$layerScaleY", {
118
- enumerable: true,
119
- configurable: true,
120
- writable: true,
121
- value: void 0
122
- });
123
- /**
124
- * @description コンテナの機能を所持しているかを返却
125
- * Returns whether the display object has container functionality.
126
- *
127
- * @type {boolean}
128
- * @readonly
129
- * @public
130
- */
131
- Object.defineProperty(this, "isContainerEnabled", {
132
- enumerable: true,
133
- configurable: true,
134
- writable: true,
135
- value: void 0
136
- });
137
38
  // public
138
39
  this.isContainerEnabled = true;
139
40
  this.mouseChildren = true;
package/src/FrameLabel.js CHANGED
@@ -25,34 +25,6 @@ export class FrameLabel extends EventDispatcher {
25
25
  */
26
26
  constructor(name, frame) {
27
27
  super();
28
- /**
29
- * @description ラベルの名前。
30
- * The name of the label.
31
- *
32
- * @type {string}
33
- * @readonly
34
- * @public
35
- */
36
- Object.defineProperty(this, "name", {
37
- enumerable: true,
38
- configurable: true,
39
- writable: true,
40
- value: void 0
41
- });
42
- /**
43
- * @description ラベルを含むフレームの番号。
44
- * The frame number containing the label.
45
- *
46
- * @type {number}
47
- * @readonly
48
- * @public
49
- */
50
- Object.defineProperty(this, "frame", {
51
- enumerable: true,
52
- configurable: true,
53
- writable: true,
54
- value: void 0
55
- });
56
28
  this.name = `${name}`;
57
29
  this.frame = frame | 0;
58
30
  }