@operato/scene-manufacturing 1.3.21 → 1.3.27
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/db.sqlite +0 -0
- package/dist/tact-timer.d.ts +3 -0
- package/dist/tact-timer.js +18 -4
- package/dist/tact-timer.js.map +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +9 -19
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +9 -49
- package/logs/{application-2024-07-12-16.log → application-2024-10-12-15.log} +8 -8
- package/logs/application-2024-10-12-16.log +105 -0
- package/logs/{application-2024-07-11-12.log → application-2024-10-13-01.log} +8 -8
- package/logs/connections-2024-10-12-15.log +50 -0
- package/logs/connections-2024-10-12-16.log +50 -0
- package/logs/connections-2024-10-13-01.log +47 -0
- package/package.json +2 -2
- package/src/tact-timer.ts +21 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/logs/application-2024-07-11-13.log +0 -23
- package/logs/application-2024-07-12-17.log +0 -210
- package/logs/application-2024-07-12-19.log +0 -46
- package/logs/connections-2024-07-05-08.log +0 -50
- package/logs/connections-2024-07-05-12.log +0 -50
- package/logs/connections-2024-07-06-01.log +0 -50
- package/logs/connections-2024-07-06-03.log +0 -50
- package/logs/connections-2024-07-06-11.log +0 -47
- package/logs/connections-2024-07-06-12.log +0 -50
- package/logs/connections-2024-07-11-12.log +0 -47
- package/logs/connections-2024-07-11-13.log +0 -47
- package/logs/connections-2024-07-12-16.log +0 -50
- package/logs/connections-2024-07-12-17.log +0 -100
- package/logs/connections-2024-07-12-19.log +0 -94
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operato/scene-manufacturing",
|
|
3
3
|
"description": "Things scene components for manufacturing industry",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.27",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"things-scene": true,
|
|
7
7
|
"author": "heartyoh",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"prettier --write"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "31288a647e34b6ddf9b9b18cf8d3c4ec6aee369d"
|
|
61
61
|
}
|
package/src/tact-timer.ts
CHANGED
|
@@ -107,9 +107,9 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
107
107
|
return
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
const { autoStart } = this.state
|
|
110
|
+
const { autoStart, started } = this.state
|
|
111
111
|
|
|
112
|
-
if (autoStart) {
|
|
112
|
+
if (autoStart || started) {
|
|
113
113
|
this.start()
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -126,6 +126,10 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
stop() {
|
|
130
|
+
this.started = false
|
|
131
|
+
}
|
|
132
|
+
|
|
129
133
|
onchange(after: Properties) {
|
|
130
134
|
if ('startTime' in after || 'endTime' in after || 'hidden' in after) {
|
|
131
135
|
this.start()
|
|
@@ -149,8 +153,8 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
counting() {
|
|
152
|
-
const { hidden } = this.state
|
|
153
|
-
if (this.disposed || hidden) {
|
|
156
|
+
const { hidden, started } = this.state
|
|
157
|
+
if (this.disposed || hidden || !started) {
|
|
154
158
|
return
|
|
155
159
|
}
|
|
156
160
|
|
|
@@ -298,6 +302,19 @@ export default class TactTimer extends RectPath(Shape) {
|
|
|
298
302
|
})
|
|
299
303
|
}
|
|
300
304
|
}
|
|
305
|
+
|
|
306
|
+
get started() {
|
|
307
|
+
return this.getState('started')
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
set started(started) {
|
|
311
|
+
if (this.started !== started) {
|
|
312
|
+
this.setState('started', started)
|
|
313
|
+
if (started) {
|
|
314
|
+
this.start()
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
301
318
|
}
|
|
302
319
|
|
|
303
320
|
Component.register('tact-timer', TactTimer)
|