@operato/scene-timer 1.2.49 → 1.2.53
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/CHANGELOG.md +9 -0
- package/assets/favicon.ico +0 -0
- package/assets/images/spinner.png +0 -0
- package/dist/duetimer.d.ts +2 -0
- package/dist/duetimer.js +37 -11
- package/dist/duetimer.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/templates/duetimer.d.ts +0 -1
- package/dist/templates/duetimer.js +0 -1
- package/dist/templates/duetimer.js.map +1 -1
- package/dist/templates/index.d.ts +0 -1
- package/dist/templates/timer.d.ts +0 -1
- package/dist/templates/timer.js +0 -1
- package/dist/templates/timer.js.map +1 -1
- package/dist/timer.d.ts +2 -0
- package/dist/timer.js +45 -10
- package/dist/timer.js.map +1 -1
- package/helps/scene/component/duetimer.ko.md +16 -6
- package/helps/scene/component/duetimer.md +16 -4
- package/helps/scene/component/duetimer.zh.md +20 -6
- package/helps/scene/component/timer.ko.md +22 -9
- package/helps/scene/component/timer.md +19 -4
- package/helps/scene/component/timer.zh.md +20 -5
- package/package.json +2 -2
- package/schema.gql +1064 -42
- package/src/duetimer.ts +41 -11
- package/src/templates/duetimer.ts +0 -1
- package/src/templates/timer.ts +0 -1
- package/src/timer.ts +48 -11
- package/translations/en.json +4 -2
- package/translations/ja.json +13 -0
- package/translations/ko.json +6 -4
- package/translations/ms.json +11 -9
- package/translations/zh.json +4 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -5,7 +5,7 @@ this component that counts down the set timeout value every second.
|
|
|
5
5
|
- To set statically, you can set during modeling, options in days, hours, minutes, and seconds.
|
|
6
6
|
- To set it dynamically, set the timeout(seconds) value in the value property during execution.
|
|
7
7
|
- The result value by format-run and format-stop of the countdown process is set in the data property.
|
|
8
|
-
- In addition, the timer component provides a simple horizontal progress bar expression function, you can set
|
|
8
|
+
- In addition, the timer component provides a simple horizontal progress bar expression function, you can set progress-color on color setting.
|
|
9
9
|
|
|
10
10
|
![fill-color]
|
|
11
11
|
|
|
@@ -33,9 +33,18 @@ this component that counts down the set timeout value every second.
|
|
|
33
33
|
- string
|
|
34
34
|
- format : --:--:--
|
|
35
35
|
- count down format on stop
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
-
|
|
36
|
+
- progress color
|
|
37
|
+
|
|
38
|
+
- Type: string, RGB color
|
|
39
|
+
- Description: Color of the progress in countdown.
|
|
40
|
+
|
|
41
|
+
- data reflection
|
|
42
|
+
|
|
43
|
+
- Countdown: Every second during the countdown, the remaining time is reflected in the data according to the format set in 'Countdown Format' or 'Stop Format'.
|
|
44
|
+
- Round: After each countdown round is completed, the round number is reflected in the data. (In this case, the data value remains unchanged during countdown.)
|
|
45
|
+
|
|
46
|
+
- Repeat
|
|
47
|
+
- Description: When this option is checked, the countdown will automatically restart after each completion.
|
|
39
48
|
|
|
40
49
|
## hidden properties
|
|
41
50
|
|
|
@@ -57,6 +66,12 @@ this component that counts down the set timeout value every second.
|
|
|
57
66
|
[databind]: ../images/timer-data-bind.png
|
|
58
67
|
|
|
59
68
|
- countdown
|
|
69
|
+
|
|
60
70
|
- readonly
|
|
61
71
|
- number (seconds)
|
|
62
72
|
- when timer set, count down will start automatically
|
|
73
|
+
|
|
74
|
+
- round
|
|
75
|
+
- readonly
|
|
76
|
+
- number
|
|
77
|
+
- number of rounds in countdown
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- 动态 : 在运行时在 value 属性中设置时间(seconds)值。
|
|
7
7
|
- 在数据属性中设置倒计时过程的按格式运行和按格式停止的结果值。
|
|
8
8
|
- 时间格式, 停止格式在运行和结束时以对应的格式设置为 data
|
|
9
|
-
-
|
|
9
|
+
- 另外,计时器组件还提供了简单的水平进度条显示功能。进度颜色的设置将随着倒计时的进行而显示。
|
|
10
10
|
|
|
11
11
|
![fill-color]
|
|
12
12
|
|
|
@@ -34,9 +34,18 @@
|
|
|
34
34
|
- string
|
|
35
35
|
- format : --:--:--
|
|
36
36
|
- 计时结束后显示的时间格式
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
-
|
|
37
|
+
- 进度颜色(Progress Color)
|
|
38
|
+
|
|
39
|
+
- 类型:字符串,RGB 颜色
|
|
40
|
+
- 描述:倒计时中进度的颜色。
|
|
41
|
+
|
|
42
|
+
- 数据反映(Data Reflection)
|
|
43
|
+
|
|
44
|
+
- 倒计时:在倒计时期间的每一秒,剩余时间都会按照“倒计时格式”或“停止格式”中设置的格式反映在数据中。
|
|
45
|
+
- 圆形:在每个倒计时循环完成后,循环数会反映在数据中。(在此情况下,在倒计时期间数据值保持不变。)
|
|
46
|
+
|
|
47
|
+
- 重复(Repeat)
|
|
48
|
+
- 描述:选中此选项后,每次倒计时完成后,倒计时会自动重新开始。
|
|
40
49
|
|
|
41
50
|
## 隐藏属性
|
|
42
51
|
|
|
@@ -58,6 +67,12 @@
|
|
|
58
67
|
[databind]: ../images/timer-data-bind.png
|
|
59
68
|
|
|
60
69
|
- countdown
|
|
70
|
+
|
|
61
71
|
- readonly: 只读属性
|
|
62
|
-
- number (seconds)
|
|
72
|
+
- number (seconds)
|
|
63
73
|
- 从设置定时器设置值开始,它就将当前值递减计数。
|
|
74
|
+
|
|
75
|
+
- round
|
|
76
|
+
- 只读
|
|
77
|
+
- 数字
|
|
78
|
+
- 倒计时的回合数
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/scene-timer",
|
|
3
3
|
"description": "Timer component for things-scene",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.53",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"license": "MIT",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"prettier --write"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "3b37899b013be126b622b5619df125bc60f4b866"
|
|
61
61
|
}
|