@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.
@@ -0,0 +1,108 @@
1
+ /**
2
+ * LoopConfig クラスで、MovieClipのフレームヘッダーの移動方法を指定できます。
3
+ * 一度限りの再生や逆再生、フレーム固定などのアニメーションのループバリエーションを設定できます。
4
+ *
5
+ * The LoopConfig class allows you to specify how the frame headers of a MovieClip are moved.
6
+ * You can set up looping variations of the animation, such as one-time playback,
7
+ * reverse playback, or fixed frame.
8
+ *
9
+ * @class
10
+ * @memberOf next2d.display
11
+ */
12
+ export declare class LoopConfig {
13
+ private _$type;
14
+ private _$start;
15
+ private _$end;
16
+ private _$frame;
17
+ /**
18
+ * @param {number} [type=0]
19
+ * @param {number} [start=1]
20
+ * @param {number} [end=0]
21
+ *
22
+ * @constructor
23
+ * @public
24
+ */
25
+ constructor(type?: number, start?: number, end?: number);
26
+ /**
27
+ * @description 指定されたクラスのストリングを返します。
28
+ * Returns the string representation of the specified class.
29
+ *
30
+ * @return {string}
31
+ * @default [class LoopConfig]
32
+ * @method
33
+ * @static
34
+ */
35
+ static toString(): string;
36
+ /**
37
+ * @description 指定されたクラスの空間名を返します。
38
+ * Returns the space name of the specified class.
39
+ *
40
+ * @return {string}
41
+ * @default next2d.display.LoopConfig
42
+ * @const
43
+ * @static
44
+ */
45
+ static get namespace(): string;
46
+ /**
47
+ * @description 指定されたオブジェクトのストリングを返します。
48
+ * Returns the string representation of the specified object.
49
+ *
50
+ * @return {string}
51
+ * @default [object LoopConfig]
52
+ * @method
53
+ * @public
54
+ */
55
+ toString(): string;
56
+ /**
57
+ * @description 指定されたオブジェクトの空間名を返します。
58
+ * Returns the space name of the specified object.
59
+ *
60
+ * @return {string}
61
+ * @default next2d.display.LoopConfig
62
+ * @const
63
+ * @public
64
+ */
65
+ get namespace(): string;
66
+ /**
67
+ * @description ループ設定の適用を開始するフレームの値、自動で設定されます。
68
+ * The value of the frame at which to start applying the loop setting, set automatically.
69
+ *
70
+ * @return {number}
71
+ * @default 1
72
+ * @readonly
73
+ * @public
74
+ */
75
+ get frame(): number;
76
+ /**
77
+ * @description LoopTypeクラスの固定値を利用して、ループのタイプを設定できます。
78
+ * You can set the type of loop by using a fixed value in the LoopType class.
79
+ *
80
+ * @return {number}
81
+ * @default 0
82
+ * @public
83
+ */
84
+ get type(): number;
85
+ set type(type: number);
86
+ /**
87
+ * @description フレーム移動の開始値を設定します。逆再生時はここで設定した値が終了フレームとなります。
88
+ * Sets the start value for frame shift. For reverse playback,
89
+ * the value set here is the end frame.
90
+ *
91
+ * @return {number}
92
+ * @default 1
93
+ * @public
94
+ */
95
+ get start(): number;
96
+ set start(start: number);
97
+ /**
98
+ * @description フレーム移動の終了値を設定します。逆再生時はここで設定した値が開始フレームとなります。
99
+ * Sets the end value of frame shift. For reverse playback,
100
+ * the value set here is the start frame.
101
+ *
102
+ * @return {number}
103
+ * @default 0
104
+ * @public
105
+ */
106
+ get end(): number;
107
+ set end(end: number);
108
+ }
@@ -0,0 +1,156 @@
1
+ import { $clamp } from "@next2d/share";
2
+ /**
3
+ * LoopConfig クラスで、MovieClipのフレームヘッダーの移動方法を指定できます。
4
+ * 一度限りの再生や逆再生、フレーム固定などのアニメーションのループバリエーションを設定できます。
5
+ *
6
+ * The LoopConfig class allows you to specify how the frame headers of a MovieClip are moved.
7
+ * You can set up looping variations of the animation, such as one-time playback,
8
+ * reverse playback, or fixed frame.
9
+ *
10
+ * @class
11
+ * @memberOf next2d.display
12
+ */
13
+ export class LoopConfig {
14
+ /**
15
+ * @param {number} [type=0]
16
+ * @param {number} [start=1]
17
+ * @param {number} [end=0]
18
+ *
19
+ * @constructor
20
+ * @public
21
+ */
22
+ constructor(type = 0, start = 1, end = 0) {
23
+ /**
24
+ * @type {number}
25
+ * @default 0
26
+ * @private
27
+ */
28
+ this._$type = 0;
29
+ /**
30
+ * @type {number}
31
+ * @default 0
32
+ * @private
33
+ */
34
+ this._$start = 1;
35
+ /**
36
+ * @type {number}
37
+ * @default 0
38
+ * @private
39
+ */
40
+ this._$end = 0;
41
+ /**
42
+ * @type {number}
43
+ * @default 1
44
+ * @private
45
+ */
46
+ this._$frame = 1;
47
+ // setup
48
+ this.type = type;
49
+ this.start = start;
50
+ this.end = end;
51
+ }
52
+ /**
53
+ * @description 指定されたクラスのストリングを返します。
54
+ * Returns the string representation of the specified class.
55
+ *
56
+ * @return {string}
57
+ * @default [class LoopConfig]
58
+ * @method
59
+ * @static
60
+ */
61
+ static toString() {
62
+ return "[class LoopConfig]";
63
+ }
64
+ /**
65
+ * @description 指定されたクラスの空間名を返します。
66
+ * Returns the space name of the specified class.
67
+ *
68
+ * @return {string}
69
+ * @default next2d.display.LoopConfig
70
+ * @const
71
+ * @static
72
+ */
73
+ static get namespace() {
74
+ return "next2d.display.LoopConfig";
75
+ }
76
+ /**
77
+ * @description 指定されたオブジェクトのストリングを返します。
78
+ * Returns the string representation of the specified object.
79
+ *
80
+ * @return {string}
81
+ * @default [object LoopConfig]
82
+ * @method
83
+ * @public
84
+ */
85
+ toString() {
86
+ return "[object LoopConfig]";
87
+ }
88
+ /**
89
+ * @description 指定されたオブジェクトの空間名を返します。
90
+ * Returns the space name of the specified object.
91
+ *
92
+ * @return {string}
93
+ * @default next2d.display.LoopConfig
94
+ * @const
95
+ * @public
96
+ */
97
+ get namespace() {
98
+ return "next2d.display.LoopConfig";
99
+ }
100
+ /**
101
+ * @description ループ設定の適用を開始するフレームの値、自動で設定されます。
102
+ * The value of the frame at which to start applying the loop setting, set automatically.
103
+ *
104
+ * @return {number}
105
+ * @default 1
106
+ * @readonly
107
+ * @public
108
+ */
109
+ get frame() {
110
+ return this._$frame;
111
+ }
112
+ /**
113
+ * @description LoopTypeクラスの固定値を利用して、ループのタイプを設定できます。
114
+ * You can set the type of loop by using a fixed value in the LoopType class.
115
+ *
116
+ * @return {number}
117
+ * @default 0
118
+ * @public
119
+ */
120
+ get type() {
121
+ return this._$type;
122
+ }
123
+ set type(type) {
124
+ this._$type = $clamp(type | 0, 0, 4);
125
+ }
126
+ /**
127
+ * @description フレーム移動の開始値を設定します。逆再生時はここで設定した値が終了フレームとなります。
128
+ * Sets the start value for frame shift. For reverse playback,
129
+ * the value set here is the end frame.
130
+ *
131
+ * @return {number}
132
+ * @default 1
133
+ * @public
134
+ */
135
+ get start() {
136
+ return this._$start;
137
+ }
138
+ set start(start) {
139
+ this._$start = $clamp(start | 0, 1, 0xffffff);
140
+ }
141
+ /**
142
+ * @description フレーム移動の終了値を設定します。逆再生時はここで設定した値が開始フレームとなります。
143
+ * Sets the end value of frame shift. For reverse playback,
144
+ * the value set here is the start frame.
145
+ *
146
+ * @return {number}
147
+ * @default 0
148
+ * @public
149
+ */
150
+ get end() {
151
+ return this._$end;
152
+ }
153
+ set end(end) {
154
+ this._$end = $clamp(end | 0, 0, 0xffffff);
155
+ }
156
+ }
@@ -0,0 +1,104 @@
1
+ /**
2
+ * LoopType クラスは、MovieClipのフレームヘッダーの移動方法を指定する定数値の列挙です。
3
+ * これらの定数は、LoopConfigで利用されます。
4
+ *
5
+ * The LoopType class is an enumeration of constant values
6
+ * that specify how to move the frame header of a MovieClip,
7
+ * These constants are used by LoopConfig.
8
+ *
9
+ * @class
10
+ * @memberOf next2d.display
11
+ */
12
+ export declare class LoopType {
13
+ /**
14
+ * @description 指定されたクラスのストリングを返します。
15
+ * Returns the string representation of the specified class.
16
+ *
17
+ * @return {string}
18
+ * @default [class LoopType]
19
+ * @method
20
+ * @static
21
+ */
22
+ static toString(): string;
23
+ /**
24
+ * @description 指定されたクラスの空間名を返します。
25
+ * Returns the space name of the specified class.
26
+ *
27
+ * @return {string}
28
+ * @default next2d.display.LoopType
29
+ * @const
30
+ * @static
31
+ */
32
+ static get namespace(): string;
33
+ /**
34
+ * @description 指定されたオブジェクトのストリングを返します。
35
+ * Returns the string representation of the specified object.
36
+ *
37
+ * @return {string}
38
+ * @default [object LoopType]
39
+ * @method
40
+ * @public
41
+ */
42
+ toString(): string;
43
+ /**
44
+ * @description 指定されたオブジェクトの空間名を返します。
45
+ * Returns the space name of the specified object.
46
+ *
47
+ * @return {string}
48
+ * @default next2d.display.LoopType
49
+ * @const
50
+ * @public
51
+ */
52
+ get namespace(): string;
53
+ /**
54
+ * @description ループ設定でリピート再生を使用することを指定します。
55
+ * Specifies that repeat playback should be used in the loop settings.
56
+ *
57
+ * @return {number}
58
+ * @default 0
59
+ * @const
60
+ * @static
61
+ */
62
+ static get REPEAT(): number;
63
+ /**
64
+ * @description ループ設定で再生ヘッダーが指定した最終フレームに到達するとフレームを固定する設定を指定します。
65
+ * Specifies the setting to fix frames when the playback header reaches the specified final frame in the loop settings.
66
+ *
67
+ * @return {number}
68
+ * @default 1
69
+ * @const
70
+ * @static
71
+ */
72
+ static get NO_REPEAT(): number;
73
+ /**
74
+ * @description ループ設定でフレームを固定する設定を指定します。
75
+ * Specifies the setting for fixing frames in the loop setting.
76
+ *
77
+ * @return {number}
78
+ * @default 2
79
+ * @const
80
+ * @static
81
+ */
82
+ static get FIXED(): number;
83
+ /**
84
+ * @description ループ設定で再生ヘッダーが逆再生し、指定した開始フレームに到達するとフレームを固定する設定を指定します。
85
+ * Specifies the setting where the playback header plays backwards in the loop setting
86
+ * and fixes the frame when the specified start frame is reached.
87
+ *
88
+ * @return {number}
89
+ * @default 3
90
+ * @const
91
+ * @static
92
+ */
93
+ static get NO_REPEAT_REVERSAL(): number;
94
+ /**
95
+ * @description ループ設定でリピート逆再生を使用することを指定します。
96
+ * Specifies the use of repeat reverse playback in the loop settings.
97
+ *
98
+ * @return {number}
99
+ * @default 4
100
+ * @const
101
+ * @static
102
+ */
103
+ static get REPEAT_REVERSAL(): number;
104
+ }
@@ -0,0 +1,122 @@
1
+ /**
2
+ * LoopType クラスは、MovieClipのフレームヘッダーの移動方法を指定する定数値の列挙です。
3
+ * これらの定数は、LoopConfigで利用されます。
4
+ *
5
+ * The LoopType class is an enumeration of constant values
6
+ * that specify how to move the frame header of a MovieClip,
7
+ * These constants are used by LoopConfig.
8
+ *
9
+ * @class
10
+ * @memberOf next2d.display
11
+ */
12
+ export class LoopType {
13
+ /**
14
+ * @description 指定されたクラスのストリングを返します。
15
+ * Returns the string representation of the specified class.
16
+ *
17
+ * @return {string}
18
+ * @default [class LoopType]
19
+ * @method
20
+ * @static
21
+ */
22
+ static toString() {
23
+ return "[class LoopType]";
24
+ }
25
+ /**
26
+ * @description 指定されたクラスの空間名を返します。
27
+ * Returns the space name of the specified class.
28
+ *
29
+ * @return {string}
30
+ * @default next2d.display.LoopType
31
+ * @const
32
+ * @static
33
+ */
34
+ static get namespace() {
35
+ return "next2d.display.LoopType";
36
+ }
37
+ /**
38
+ * @description 指定されたオブジェクトのストリングを返します。
39
+ * Returns the string representation of the specified object.
40
+ *
41
+ * @return {string}
42
+ * @default [object LoopType]
43
+ * @method
44
+ * @public
45
+ */
46
+ toString() {
47
+ return "[object LoopType]";
48
+ }
49
+ /**
50
+ * @description 指定されたオブジェクトの空間名を返します。
51
+ * Returns the space name of the specified object.
52
+ *
53
+ * @return {string}
54
+ * @default next2d.display.LoopType
55
+ * @const
56
+ * @public
57
+ */
58
+ get namespace() {
59
+ return "next2d.display.LoopType";
60
+ }
61
+ /**
62
+ * @description ループ設定でリピート再生を使用することを指定します。
63
+ * Specifies that repeat playback should be used in the loop settings.
64
+ *
65
+ * @return {number}
66
+ * @default 0
67
+ * @const
68
+ * @static
69
+ */
70
+ static get REPEAT() {
71
+ return 0;
72
+ }
73
+ /**
74
+ * @description ループ設定で再生ヘッダーが指定した最終フレームに到達するとフレームを固定する設定を指定します。
75
+ * Specifies the setting to fix frames when the playback header reaches the specified final frame in the loop settings.
76
+ *
77
+ * @return {number}
78
+ * @default 1
79
+ * @const
80
+ * @static
81
+ */
82
+ static get NO_REPEAT() {
83
+ return 1;
84
+ }
85
+ /**
86
+ * @description ループ設定でフレームを固定する設定を指定します。
87
+ * Specifies the setting for fixing frames in the loop setting.
88
+ *
89
+ * @return {number}
90
+ * @default 2
91
+ * @const
92
+ * @static
93
+ */
94
+ static get FIXED() {
95
+ return 2;
96
+ }
97
+ /**
98
+ * @description ループ設定で再生ヘッダーが逆再生し、指定した開始フレームに到達するとフレームを固定する設定を指定します。
99
+ * Specifies the setting where the playback header plays backwards in the loop setting
100
+ * and fixes the frame when the specified start frame is reached.
101
+ *
102
+ * @return {number}
103
+ * @default 3
104
+ * @const
105
+ * @static
106
+ */
107
+ static get NO_REPEAT_REVERSAL() {
108
+ return 3;
109
+ }
110
+ /**
111
+ * @description ループ設定でリピート逆再生を使用することを指定します。
112
+ * Specifies the use of repeat reverse playback in the loop settings.
113
+ *
114
+ * @return {number}
115
+ * @default 4
116
+ * @const
117
+ * @static
118
+ */
119
+ static get REPEAT_REVERSAL() {
120
+ return 4;
121
+ }
122
+ }