@next2d/text 2.5.2 → 2.6.1
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 +6 -6
- package/src/TextUtil.d.ts +4 -4
- package/src/TextUtil.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next2d/text",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Next2D Text Package",
|
|
5
5
|
"author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"url": "git+https://github.com/Next2D/Player.git"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@next2d/display": "2.
|
|
28
|
-
"@next2d/geom": "2.
|
|
29
|
-
"@next2d/events": "2.
|
|
30
|
-
"@next2d/ui": "2.
|
|
31
|
-
"@next2d/cache": "2.
|
|
27
|
+
"@next2d/display": "2.6.1",
|
|
28
|
+
"@next2d/geom": "2.6.1",
|
|
29
|
+
"@next2d/events": "2.6.1",
|
|
30
|
+
"@next2d/ui": "2.6.1",
|
|
31
|
+
"@next2d/cache": "2.6.1"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/TextUtil.d.ts
CHANGED
|
@@ -91,19 +91,19 @@ export declare const $clamp: (value: number, min: number, max: number, default_v
|
|
|
91
91
|
* @description テキスト点滅のタイマーIDを返却
|
|
92
92
|
* Returns the timer ID for text blinking
|
|
93
93
|
*
|
|
94
|
-
* @return {
|
|
94
|
+
* @return {number}
|
|
95
95
|
* @protected
|
|
96
96
|
*/
|
|
97
|
-
export declare const $getBlinkingTimerId: () =>
|
|
97
|
+
export declare const $getBlinkingTimerId: () => number | void;
|
|
98
98
|
/**
|
|
99
99
|
* @description テキスト点滅のタイマーIDをセット
|
|
100
100
|
* Set the timer ID for text blinking
|
|
101
101
|
*
|
|
102
|
-
* @param {
|
|
102
|
+
* @param {number} timer_id
|
|
103
103
|
* @return {void}
|
|
104
104
|
* @protected
|
|
105
105
|
*/
|
|
106
|
-
export declare const $setBlinkingTimerId: (timer_id:
|
|
106
|
+
export declare const $setBlinkingTimerId: (timer_id: number | void) => void;
|
|
107
107
|
/**
|
|
108
108
|
* @description canvasの位置をセット
|
|
109
109
|
* Set the position of the canvas
|
package/src/TextUtil.js
CHANGED
|
@@ -146,7 +146,7 @@ export const $clamp = (value, min, max, default_value = null) => {
|
|
|
146
146
|
: Math.min(Math.max(min, isNaN(number) ? 0 : number), max);
|
|
147
147
|
};
|
|
148
148
|
/**
|
|
149
|
-
* @type {
|
|
149
|
+
* @type {number}
|
|
150
150
|
* @private
|
|
151
151
|
*/
|
|
152
152
|
let $timerId;
|
|
@@ -154,7 +154,7 @@ let $timerId;
|
|
|
154
154
|
* @description テキスト点滅のタイマーIDを返却
|
|
155
155
|
* Returns the timer ID for text blinking
|
|
156
156
|
*
|
|
157
|
-
* @return {
|
|
157
|
+
* @return {number}
|
|
158
158
|
* @protected
|
|
159
159
|
*/
|
|
160
160
|
export const $getBlinkingTimerId = () => {
|
|
@@ -164,7 +164,7 @@ export const $getBlinkingTimerId = () => {
|
|
|
164
164
|
* @description テキスト点滅のタイマーIDをセット
|
|
165
165
|
* Set the timer ID for text blinking
|
|
166
166
|
*
|
|
167
|
-
* @param {
|
|
167
|
+
* @param {number} timer_id
|
|
168
168
|
* @return {void}
|
|
169
169
|
* @protected
|
|
170
170
|
*/
|