@operato/scene-scichart 7.0.7 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/db.sqlite +0 -0
  3. package/dist/charts/axis-synchronizer.d.ts +10 -0
  4. package/dist/charts/axis-synchronizer.js +32 -0
  5. package/dist/charts/axis-synchronizer.js.map +1 -0
  6. package/dist/charts/ox-scichart-multiple.d.ts +40 -0
  7. package/dist/charts/ox-scichart-multiple.js +272 -0
  8. package/dist/charts/ox-scichart-multiple.js.map +1 -0
  9. package/dist/charts/ox-scichart.d.ts +1 -1
  10. package/dist/charts/ox-scichart.js.map +1 -1
  11. package/dist/charts/scichart-builder.d.ts +10 -1
  12. package/dist/charts/scichart-builder.js +80 -8
  13. package/dist/charts/scichart-builder.js.map +1 -1
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +1 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/scichart-multiple-timeseries.d.ts +14 -0
  18. package/dist/scichart-multiple-timeseries.js +60 -0
  19. package/dist/scichart-multiple-timeseries.js.map +1 -0
  20. package/dist/scichart-timeseries.d.ts +2 -11
  21. package/dist/scichart-timeseries.js +2 -42
  22. package/dist/scichart-timeseries.js.map +1 -1
  23. package/dist/templates/index.js +2 -1
  24. package/dist/templates/index.js.map +1 -1
  25. package/dist/templates/scichart-multiple-timeseries.d.ts +53 -0
  26. package/dist/templates/scichart-multiple-timeseries.js +81 -0
  27. package/dist/templates/scichart-multiple-timeseries.js.map +1 -0
  28. package/helps/scene/component/scichart-multiple-timeseries.md +23 -0
  29. package/helps/scene/component/scichart-timeseries.md +18 -0
  30. package/icons/scichart-multiple-timeseries.png +0 -0
  31. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +11 -6
  32. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +18 -23
  33. package/logs/{application-2024-07-13-21.log → application-2024-07-28-03.log} +8 -8
  34. package/logs/{application-2024-07-13-20.log → application-2024-07-28-17.log} +32 -36
  35. package/logs/application-2024-07-28-18.log +210 -0
  36. package/logs/connections-2024-07-23-14.log +50 -0
  37. package/logs/connections-2024-07-25-23.log +50 -0
  38. package/logs/connections-2024-07-26-18.log +50 -0
  39. package/logs/connections-2024-07-28-03.log +50 -0
  40. package/logs/connections-2024-07-28-17.log +200 -0
  41. package/logs/connections-2024-07-28-18.log +100 -0
  42. package/package.json +2 -2
  43. package/schema.graphql +112 -0
  44. package/src/charts/axis-synchronizer.ts +37 -0
  45. package/src/charts/ox-scichart-multiple.ts +334 -0
  46. package/src/charts/ox-scichart.ts +1 -1
  47. package/src/charts/scichart-builder.ts +109 -8
  48. package/src/index.ts +1 -0
  49. package/src/scichart-multiple-timeseries.ts +74 -0
  50. package/src/scichart-timeseries.ts +3 -54
  51. package/src/templates/index.ts +2 -1
  52. package/src/templates/scichart-multiple-timeseries.ts +87 -0
  53. package/things-scene.config.js +0 -2
  54. package/translations/en.json +3 -1
  55. package/translations/ja.json +3 -1
  56. package/translations/ko.json +3 -1
  57. package/translations/ms.json +3 -1
  58. package/translations/zh.json +3 -1
  59. package/tsconfig.tsbuildinfo +1 -1
  60. package/cache/translations/system/en.json +0 -1
  61. package/cache/translations/system/ko.json +0 -1
  62. package/logs/connections-2024-07-08-22.log +0 -50
  63. package/logs/connections-2024-07-08-23.log +0 -100
  64. package/logs/connections-2024-07-09-15.log +0 -100
  65. package/logs/connections-2024-07-10-00.log +0 -50
  66. package/logs/connections-2024-07-10-10.log +0 -50
  67. package/logs/connections-2024-07-13-20.log +0 -200
  68. package/logs/connections-2024-07-13-21.log +0 -50
@@ -0,0 +1,87 @@
1
+ const icon = new URL('../../icons/scichart-multiple-timeseries.png', import.meta.url).href
2
+
3
+ function getRandomInRange(min: number, max: number) {
4
+ return Math.floor(Math.random() * (max - min + 1)) + min
5
+ }
6
+
7
+ // 랜덤 데이터를 생성하는 함수
8
+ function generateRandomData(count: number) {
9
+ const randomData = []
10
+ const startTimestamp = Math.floor(Date.now()) // 현재 시간을 Unix 타임스탬프로 설정
11
+
12
+ for (let i = 0; i < count; i++) {
13
+ const timestamp = startTimestamp + i * 360 * 30 * 1000 // 3초씩 증가하는 타임스탬프 설정
14
+ const randomCount = getRandomInRange(5, 35) // count 값을 5에서 35 사이로 랜덤 생성
15
+ const randomAverage = getRandomInRange(50, 150) // average 값을 50에서 150 사이로 랜덤 생성
16
+
17
+ randomData.push({
18
+ timestamp: timestamp,
19
+ count: randomCount,
20
+ average: randomAverage
21
+ })
22
+ }
23
+
24
+ return randomData
25
+ }
26
+
27
+ // 100개의 랜덤 데이터를 생성
28
+ const data = generateRandomData(100)
29
+
30
+ export default {
31
+ type: 'scichart-multiple-timeseries',
32
+ description: 'scichart-multiple-timeseries',
33
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
34
+ group: 'chartAndGauge',
35
+ icon,
36
+ model: {
37
+ type: 'scichart-multiple-timeseries',
38
+ left: 10,
39
+ top: 10,
40
+ width: 600,
41
+ height: 60,
42
+ data,
43
+ chart: {
44
+ type: 'timeseries',
45
+ data: {
46
+ datasets: [
47
+ {
48
+ dataKey: 'count',
49
+ label: '',
50
+ type: 'line',
51
+ borderWidth: 1,
52
+ color: 'green'
53
+ },
54
+ {
55
+ dataKey: 'average',
56
+ label: '',
57
+ type: 'line',
58
+ borderWidth: 1,
59
+ color: 'red'
60
+ }
61
+ ],
62
+ labelDataKey: 'timestamp'
63
+ },
64
+ options: {
65
+ scales: {
66
+ xAxes: [
67
+ {
68
+ ticks: { beginAtZero: true }
69
+ }
70
+ ],
71
+ yAxes: [
72
+ {
73
+ ticks: { beginAtZero: true }
74
+ }
75
+ ]
76
+ },
77
+ legend: {
78
+ display: false
79
+ },
80
+ annotations: [],
81
+ tooltip: true
82
+ }
83
+ },
84
+ showOverview: true,
85
+ visibleSeries: ['count', 'average']
86
+ }
87
+ }
@@ -1,9 +1,7 @@
1
1
  import editors from './dist/editors'
2
- // import groups from './dist/groups'
3
2
  import templates from './dist/templates'
4
3
 
5
4
  export default {
6
5
  templates,
7
6
  editors
8
- // groups
9
7
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component.scichart-timeseries": "timeseries scichart"
2
+ "component.scichart-timeseries": "timeseries",
3
+ "component.scichart-multiple-timeseries": "multiple timeseries",
4
+ "label.show-overview": "show overview"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component.scichart-timeseries": "タイムシリーズ scichart"
2
+ "component.scichart-timeseries": "タイムシリーズ",
3
+ "component.scichart-multiple-timeseries": "マルチチャート タイムシリーズ",
4
+ "label.show-overview": "概要 表示"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component.scichart-timeseries": "타임시리즈 scichart"
2
+ "component.scichart-timeseries": "타임시리즈",
3
+ "component.scichart-multiple-timeseries": "다중차트 타임시리즈",
4
+ "label.show-overview": "오버뷰 보이기"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component.scichart-timeseries": "timeseries scichart"
2
+ "component.scichart-timeseries": "siri masa",
3
+ "component.scichart-multiple-timeseries": "masa siri berbilang carta",
4
+ "label.show-overview": "tunjukkan gambaran keseluruhan"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component.scichart-timeseries": "时间序列 scichart"
2
+ "component.scichart-timeseries": "时间序列",
3
+ "component.scichart-multiple-timeseries": "多图表 时间序列",
4
+ "label.show-overview": "显示 概述"
3
5
  }