@operato/scene-manufacturing 1.3.21 → 1.3.28

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/db.sqlite +0 -0
  3. package/dist/tact-timer.d.ts +3 -0
  4. package/dist/tact-timer.js +19 -4
  5. package/dist/tact-timer.js.map +1 -1
  6. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +9 -19
  7. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +9 -49
  8. package/logs/{application-2024-07-12-16.log → application-2024-10-12-15.log} +8 -8
  9. package/logs/application-2024-10-12-16.log +105 -0
  10. package/logs/{application-2024-07-12-17.log → application-2024-10-13-01.log} +16 -98
  11. package/logs/connections-2024-10-12-15.log +50 -0
  12. package/logs/connections-2024-10-12-16.log +50 -0
  13. package/logs/connections-2024-10-13-01.log +97 -0
  14. package/package.json +2 -2
  15. package/schema.graphql +548 -59
  16. package/src/tact-timer.ts +23 -4
  17. package/tsconfig.tsbuildinfo +1 -1
  18. package/logs/application-2024-07-11-12.log +0 -23
  19. package/logs/application-2024-07-11-13.log +0 -23
  20. package/logs/application-2024-07-12-19.log +0 -46
  21. package/logs/connections-2024-07-05-08.log +0 -50
  22. package/logs/connections-2024-07-05-12.log +0 -50
  23. package/logs/connections-2024-07-06-01.log +0 -50
  24. package/logs/connections-2024-07-06-03.log +0 -50
  25. package/logs/connections-2024-07-06-11.log +0 -47
  26. package/logs/connections-2024-07-06-12.log +0 -50
  27. package/logs/connections-2024-07-11-12.log +0 -47
  28. package/logs/connections-2024-07-11-13.log +0 -47
  29. package/logs/connections-2024-07-12-16.log +0 -50
  30. package/logs/connections-2024-07-12-17.log +0 -100
  31. package/logs/connections-2024-07-12-19.log +0 -94
package/src/tact-timer.ts CHANGED
@@ -107,9 +107,11 @@ 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
+
112
+ if (autoStart || started) {
113
+ this.setState('started', started)
111
114
 
112
- if (autoStart) {
113
115
  this.start()
114
116
  }
115
117
  }
@@ -126,6 +128,10 @@ export default class TactTimer extends RectPath(Shape) {
126
128
  }
127
129
  }
128
130
 
131
+ stop() {
132
+ this.started = false
133
+ }
134
+
129
135
  onchange(after: Properties) {
130
136
  if ('startTime' in after || 'endTime' in after || 'hidden' in after) {
131
137
  this.start()
@@ -149,8 +155,8 @@ export default class TactTimer extends RectPath(Shape) {
149
155
  }
150
156
 
151
157
  counting() {
152
- const { hidden } = this.state
153
- if (this.disposed || hidden) {
158
+ const { hidden, started } = this.state
159
+ if (this.disposed || hidden || !started) {
154
160
  return
155
161
  }
156
162
 
@@ -298,6 +304,19 @@ export default class TactTimer extends RectPath(Shape) {
298
304
  })
299
305
  }
300
306
  }
307
+
308
+ get started() {
309
+ return this.getState('started')
310
+ }
311
+
312
+ set started(started) {
313
+ if (this.started !== started) {
314
+ this.setState('started', started)
315
+ if (started) {
316
+ this.start()
317
+ }
318
+ }
319
+ }
301
320
  }
302
321
 
303
322
  Component.register('tact-timer', TactTimer)