@operato/scene-manufacturing 7.0.7 → 7.3.16

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 +18 -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 +3 -3
  15. package/schema.graphql +548 -59
  16. package/src/tact-timer.ts +21 -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,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)