@operato/scene-scichart 7.0.2 → 7.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/db.sqlite +0 -0
  3. package/dist/charts/ox-scichart.d.ts +2 -1
  4. package/dist/charts/ox-scichart.js +20 -9
  5. package/dist/charts/ox-scichart.js.map +1 -1
  6. package/dist/charts/scichart-builder.js +7 -2
  7. package/dist/charts/scichart-builder.js.map +1 -1
  8. package/dist/index.d.ts +0 -2
  9. package/dist/index.js +0 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/templates/index.d.ts +51 -0
  12. package/dist/templates/index.js +1 -3
  13. package/dist/templates/index.js.map +1 -1
  14. package/icons/scichart-timeseries.png +0 -0
  15. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +6 -16
  16. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +6 -16
  17. package/logs/{application-2024-07-04-13.log → application-2024-07-08-22.log} +8 -8
  18. package/logs/{application-2024-07-04-00.log → application-2024-07-08-23.log} +36 -22
  19. package/logs/connections-2024-07-08-22.log +50 -0
  20. package/logs/connections-2024-07-08-23.log +100 -0
  21. package/package.json +2 -2
  22. package/src/charts/ox-scichart.ts +18 -8
  23. package/src/charts/scichart-builder.ts +10 -3
  24. package/src/index.ts +0 -2
  25. package/src/templates/index.ts +1 -3
  26. package/tsconfig.tsbuildinfo +1 -1
  27. package/cache/translations/system/en.json +0 -1
  28. package/cache/translations/system/ko.json +0 -1
  29. package/dist/charts/sci-candle-stick-chart.d.ts +0 -19
  30. package/dist/charts/sci-candle-stick-chart.js +0 -249
  31. package/dist/charts/sci-candle-stick-chart.js.map +0 -1
  32. package/dist/charts/volume-pallette-provider.d.ts +0 -12
  33. package/dist/charts/volume-pallette-provider.js +0 -21
  34. package/dist/charts/volume-pallette-provider.js.map +0 -1
  35. package/dist/data/binance-rest-client.d.ts +0 -14
  36. package/dist/data/binance-rest-client.js +0 -53
  37. package/dist/data/binance-rest-client.js.map +0 -1
  38. package/dist/scichart-candle-stick.d.ts +0 -10
  39. package/dist/scichart-candle-stick.js +0 -50
  40. package/dist/scichart-candle-stick.js.map +0 -1
  41. package/dist/scichart.d.ts +0 -21
  42. package/dist/scichart.js +0 -72
  43. package/dist/scichart.js.map +0 -1
  44. package/dist/templates/scichart-candle-stick.d.ts +0 -14
  45. package/dist/templates/scichart-candle-stick.js +0 -16
  46. package/dist/templates/scichart-candle-stick.js.map +0 -1
  47. package/dist/templates/scichart.d.ts +0 -14
  48. package/dist/templates/scichart.js +0 -16
  49. package/dist/templates/scichart.js.map +0 -1
  50. package/dist/themes/app-theme.d.ts +0 -56
  51. package/dist/themes/app-theme.js +0 -35
  52. package/dist/themes/app-theme.js.map +0 -1
  53. package/icons/scichart-candle-stick.png +0 -0
  54. package/icons/scichart.png +0 -0
  55. package/logs/application-2024-07-04-12.log +0 -107
  56. package/logs/application-2024-07-04-14.log +0 -210
  57. package/logs/connections-2024-07-04-00.log +0 -100
  58. package/logs/connections-2024-07-04-12.log +0 -50
  59. package/logs/connections-2024-07-04-13.log +0 -50
  60. package/logs/connections-2024-07-04-14.log +0 -100
  61. package/logs/system/.ff447eb42e255d0436b200b50a92dc6546166b36-audit.json +0 -20
  62. package/logs/system/scenario-/353/251/224/354/235/270 /354/247/221/354/247/204/352/270/260 /354/204/274/354/213/261 /353/215/260/354/235/264/355/204/260 /354/241/260/355/232/214 - /354/213/244/354/213/234/352/260/204-2024-07-04-00.log" +0 -7
  63. package/logs/system/scenario-/353/251/224/354/235/270 /354/247/221/354/247/204/352/270/260 /354/204/274/354/213/261 /353/215/260/354/235/264/355/204/260 /354/241/260/355/232/214 - /354/213/244/354/213/234/352/260/204-2024-07-04-12.log" +0 -14
  64. package/src/charts/sci-candle-stick-chart.ts +0 -306
  65. package/src/charts/volume-pallette-provider.ts +0 -41
  66. package/src/data/binance-rest-client.ts +0 -74
  67. package/src/scichart-candle-stick.ts +0 -60
  68. package/src/scichart.ts +0 -90
  69. package/src/templates/scichart-candle-stick.ts +0 -16
  70. package/src/templates/scichart.ts +0 -16
  71. package/src/themes/app-theme.ts +0 -72
@@ -0,0 +1,50 @@
1
+ 2024-07-08T22:49:10+09:00 info: Initializing ConnectionManager...
2
+ 2024-07-08T22:49:10+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2024-07-08T22:49:10+09:00 info: Connector 'echo-back' started to ready
4
+ 2024-07-08T22:49:10+09:00 info: Connector 'http-connector' started to ready
5
+ 2024-07-08T22:49:10+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2024-07-08T22:49:10+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2024-07-08T22:49:10+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2024-07-08T22:49:10+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2024-07-08T22:49:10+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2024-07-08T22:49:10+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2024-07-08T22:49:10+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2024-07-08T22:49:10+09:00 info: Connector 'socket-server' started to ready
13
+ 2024-07-08T22:49:10+09:00 info: Connector 'operato-connector' started to ready
14
+ 2024-07-08T22:49:10+09:00 info: Connector 'email-connector' started to ready
15
+ 2024-07-08T22:49:10+09:00 info: Connector 'influxdb-connector' started to ready
16
+ 2024-07-08T22:49:10+09:00 info: Connector 'msgraph-connector' started to ready
17
+ 2024-07-08T22:49:10+09:00 info: Connector 'proxy-connector' started to ready
18
+ 2024-07-08T22:49:10+09:00 info: echo-back-servers are ready
19
+ 2024-07-08T22:49:10+09:00 info: echo-back connections are ready
20
+ 2024-07-08T22:49:10+09:00 info: http-connector connections are ready
21
+ 2024-07-08T22:49:10+09:00 info: graphql-connector connections are ready
22
+ 2024-07-08T22:49:10+09:00 info: sqlite-connector connections are ready
23
+ 2024-07-08T22:49:10+09:00 info: postgresql-connector connections are ready
24
+ 2024-07-08T22:49:10+09:00 info: mqtt-connector connections are ready
25
+ 2024-07-08T22:49:10+09:00 info: mssql-connector connections are ready
26
+ 2024-07-08T22:49:10+09:00 info: oracle-connector connections are ready
27
+ 2024-07-08T22:49:10+09:00 info: mysql-connector connections are ready
28
+ 2024-07-08T22:49:10+09:00 info: socket servers are ready
29
+ 2024-07-08T22:49:10+09:00 info: operato-connector connections are ready
30
+ 2024-07-08T22:49:10+09:00 info: email connections are ready
31
+ 2024-07-08T22:49:10+09:00 info: influxdb connections are ready
32
+ 2024-07-08T22:49:10+09:00 info: msgraph-connector connections are ready
33
+ 2024-07-08T22:49:10+09:00 info: proxy-connector connections are ready
34
+ 2024-07-08T22:49:10+09:00 info: All connector for 'echo-back-server' ready
35
+ 2024-07-08T22:49:10+09:00 info: All connector for 'echo-back' ready
36
+ 2024-07-08T22:49:10+09:00 info: All connector for 'http-connector' ready
37
+ 2024-07-08T22:49:10+09:00 info: All connector for 'graphql-connector' ready
38
+ 2024-07-08T22:49:10+09:00 info: All connector for 'sqlite-connector' ready
39
+ 2024-07-08T22:49:10+09:00 info: All connector for 'postgresql-connector' ready
40
+ 2024-07-08T22:49:10+09:00 info: All connector for 'mqtt-connector' ready
41
+ 2024-07-08T22:49:10+09:00 info: All connector for 'mssql-connector' ready
42
+ 2024-07-08T22:49:10+09:00 info: All connector for 'oracle-connector' ready
43
+ 2024-07-08T22:49:10+09:00 info: All connector for 'mysql-connector' ready
44
+ 2024-07-08T22:49:10+09:00 info: All connector for 'socket-server' ready
45
+ 2024-07-08T22:49:10+09:00 info: All connector for 'operato-connector' ready
46
+ 2024-07-08T22:49:10+09:00 info: All connector for 'email-connector' ready
47
+ 2024-07-08T22:49:10+09:00 info: All connector for 'influxdb-connector' ready
48
+ 2024-07-08T22:49:10+09:00 info: All connector for 'msgraph-connector' ready
49
+ 2024-07-08T22:49:10+09:00 info: All connector for 'proxy-connector' ready
50
+ 2024-07-08T22:49:10+09:00 info: ConnectionManager initialization done:
@@ -0,0 +1,100 @@
1
+ 2024-07-08T23:04:31+09:00 info: Initializing ConnectionManager...
2
+ 2024-07-08T23:04:31+09:00 info: Connector 'echo-back-server' started to ready
3
+ 2024-07-08T23:04:31+09:00 info: Connector 'echo-back' started to ready
4
+ 2024-07-08T23:04:31+09:00 info: Connector 'http-connector' started to ready
5
+ 2024-07-08T23:04:31+09:00 info: Connector 'graphql-connector' started to ready
6
+ 2024-07-08T23:04:31+09:00 info: Connector 'sqlite-connector' started to ready
7
+ 2024-07-08T23:04:31+09:00 info: Connector 'postgresql-connector' started to ready
8
+ 2024-07-08T23:04:31+09:00 info: Connector 'mqtt-connector' started to ready
9
+ 2024-07-08T23:04:31+09:00 info: Connector 'mssql-connector' started to ready
10
+ 2024-07-08T23:04:31+09:00 info: Connector 'oracle-connector' started to ready
11
+ 2024-07-08T23:04:31+09:00 info: Connector 'mysql-connector' started to ready
12
+ 2024-07-08T23:04:31+09:00 info: Connector 'socket-server' started to ready
13
+ 2024-07-08T23:04:31+09:00 info: Connector 'operato-connector' started to ready
14
+ 2024-07-08T23:04:31+09:00 info: Connector 'email-connector' started to ready
15
+ 2024-07-08T23:04:31+09:00 info: Connector 'influxdb-connector' started to ready
16
+ 2024-07-08T23:04:31+09:00 info: Connector 'msgraph-connector' started to ready
17
+ 2024-07-08T23:04:31+09:00 info: Connector 'proxy-connector' started to ready
18
+ 2024-07-08T23:04:31+09:00 info: echo-back-servers are ready
19
+ 2024-07-08T23:04:31+09:00 info: echo-back connections are ready
20
+ 2024-07-08T23:04:31+09:00 info: http-connector connections are ready
21
+ 2024-07-08T23:04:31+09:00 info: graphql-connector connections are ready
22
+ 2024-07-08T23:04:31+09:00 info: sqlite-connector connections are ready
23
+ 2024-07-08T23:04:31+09:00 info: postgresql-connector connections are ready
24
+ 2024-07-08T23:04:31+09:00 info: mqtt-connector connections are ready
25
+ 2024-07-08T23:04:31+09:00 info: mssql-connector connections are ready
26
+ 2024-07-08T23:04:31+09:00 info: oracle-connector connections are ready
27
+ 2024-07-08T23:04:31+09:00 info: mysql-connector connections are ready
28
+ 2024-07-08T23:04:31+09:00 info: socket servers are ready
29
+ 2024-07-08T23:04:31+09:00 info: operato-connector connections are ready
30
+ 2024-07-08T23:04:31+09:00 info: email connections are ready
31
+ 2024-07-08T23:04:31+09:00 info: influxdb connections are ready
32
+ 2024-07-08T23:04:31+09:00 info: msgraph-connector connections are ready
33
+ 2024-07-08T23:04:31+09:00 info: proxy-connector connections are ready
34
+ 2024-07-08T23:04:31+09:00 info: All connector for 'echo-back-server' ready
35
+ 2024-07-08T23:04:31+09:00 info: All connector for 'echo-back' ready
36
+ 2024-07-08T23:04:31+09:00 info: All connector for 'http-connector' ready
37
+ 2024-07-08T23:04:31+09:00 info: All connector for 'graphql-connector' ready
38
+ 2024-07-08T23:04:31+09:00 info: All connector for 'sqlite-connector' ready
39
+ 2024-07-08T23:04:31+09:00 info: All connector for 'postgresql-connector' ready
40
+ 2024-07-08T23:04:31+09:00 info: All connector for 'mqtt-connector' ready
41
+ 2024-07-08T23:04:31+09:00 info: All connector for 'mssql-connector' ready
42
+ 2024-07-08T23:04:31+09:00 info: All connector for 'oracle-connector' ready
43
+ 2024-07-08T23:04:31+09:00 info: All connector for 'mysql-connector' ready
44
+ 2024-07-08T23:04:31+09:00 info: All connector for 'socket-server' ready
45
+ 2024-07-08T23:04:31+09:00 info: All connector for 'operato-connector' ready
46
+ 2024-07-08T23:04:31+09:00 info: All connector for 'email-connector' ready
47
+ 2024-07-08T23:04:31+09:00 info: All connector for 'influxdb-connector' ready
48
+ 2024-07-08T23:04:31+09:00 info: All connector for 'msgraph-connector' ready
49
+ 2024-07-08T23:04:31+09:00 info: All connector for 'proxy-connector' ready
50
+ 2024-07-08T23:04:31+09:00 info: ConnectionManager initialization done:
51
+ 2024-07-08T23:05:33+09:00 info: Initializing ConnectionManager...
52
+ 2024-07-08T23:05:33+09:00 info: Connector 'echo-back-server' started to ready
53
+ 2024-07-08T23:05:33+09:00 info: Connector 'echo-back' started to ready
54
+ 2024-07-08T23:05:33+09:00 info: Connector 'http-connector' started to ready
55
+ 2024-07-08T23:05:33+09:00 info: Connector 'graphql-connector' started to ready
56
+ 2024-07-08T23:05:33+09:00 info: Connector 'sqlite-connector' started to ready
57
+ 2024-07-08T23:05:33+09:00 info: Connector 'postgresql-connector' started to ready
58
+ 2024-07-08T23:05:33+09:00 info: Connector 'mqtt-connector' started to ready
59
+ 2024-07-08T23:05:33+09:00 info: Connector 'mssql-connector' started to ready
60
+ 2024-07-08T23:05:33+09:00 info: Connector 'oracle-connector' started to ready
61
+ 2024-07-08T23:05:33+09:00 info: Connector 'mysql-connector' started to ready
62
+ 2024-07-08T23:05:33+09:00 info: Connector 'socket-server' started to ready
63
+ 2024-07-08T23:05:33+09:00 info: Connector 'operato-connector' started to ready
64
+ 2024-07-08T23:05:33+09:00 info: Connector 'email-connector' started to ready
65
+ 2024-07-08T23:05:33+09:00 info: Connector 'influxdb-connector' started to ready
66
+ 2024-07-08T23:05:33+09:00 info: Connector 'msgraph-connector' started to ready
67
+ 2024-07-08T23:05:33+09:00 info: Connector 'proxy-connector' started to ready
68
+ 2024-07-08T23:05:33+09:00 info: echo-back-servers are ready
69
+ 2024-07-08T23:05:33+09:00 info: echo-back connections are ready
70
+ 2024-07-08T23:05:33+09:00 info: http-connector connections are ready
71
+ 2024-07-08T23:05:33+09:00 info: graphql-connector connections are ready
72
+ 2024-07-08T23:05:33+09:00 info: sqlite-connector connections are ready
73
+ 2024-07-08T23:05:33+09:00 info: postgresql-connector connections are ready
74
+ 2024-07-08T23:05:33+09:00 info: mqtt-connector connections are ready
75
+ 2024-07-08T23:05:33+09:00 info: mssql-connector connections are ready
76
+ 2024-07-08T23:05:33+09:00 info: oracle-connector connections are ready
77
+ 2024-07-08T23:05:33+09:00 info: mysql-connector connections are ready
78
+ 2024-07-08T23:05:33+09:00 info: socket servers are ready
79
+ 2024-07-08T23:05:33+09:00 info: operato-connector connections are ready
80
+ 2024-07-08T23:05:33+09:00 info: email connections are ready
81
+ 2024-07-08T23:05:33+09:00 info: influxdb connections are ready
82
+ 2024-07-08T23:05:33+09:00 info: msgraph-connector connections are ready
83
+ 2024-07-08T23:05:33+09:00 info: proxy-connector connections are ready
84
+ 2024-07-08T23:05:33+09:00 info: All connector for 'echo-back-server' ready
85
+ 2024-07-08T23:05:33+09:00 info: All connector for 'echo-back' ready
86
+ 2024-07-08T23:05:33+09:00 info: All connector for 'http-connector' ready
87
+ 2024-07-08T23:05:33+09:00 info: All connector for 'graphql-connector' ready
88
+ 2024-07-08T23:05:33+09:00 info: All connector for 'sqlite-connector' ready
89
+ 2024-07-08T23:05:33+09:00 info: All connector for 'postgresql-connector' ready
90
+ 2024-07-08T23:05:33+09:00 info: All connector for 'mqtt-connector' ready
91
+ 2024-07-08T23:05:33+09:00 info: All connector for 'mssql-connector' ready
92
+ 2024-07-08T23:05:33+09:00 info: All connector for 'oracle-connector' ready
93
+ 2024-07-08T23:05:33+09:00 info: All connector for 'mysql-connector' ready
94
+ 2024-07-08T23:05:33+09:00 info: All connector for 'socket-server' ready
95
+ 2024-07-08T23:05:33+09:00 info: All connector for 'operato-connector' ready
96
+ 2024-07-08T23:05:33+09:00 info: All connector for 'email-connector' ready
97
+ 2024-07-08T23:05:33+09:00 info: All connector for 'influxdb-connector' ready
98
+ 2024-07-08T23:05:33+09:00 info: All connector for 'msgraph-connector' ready
99
+ 2024-07-08T23:05:33+09:00 info: All connector for 'proxy-connector' ready
100
+ 2024-07-08T23:05:33+09:00 info: ConnectionManager initialization done:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@operato/scene-scichart",
3
3
  "description": "scichart wrapping component",
4
- "version": "7.0.2",
4
+ "version": "7.0.4",
5
5
  "license": "MIT",
6
6
  "things-scene": true,
7
7
  "author": "heartyoh",
@@ -59,5 +59,5 @@
59
59
  "prettier --write"
60
60
  ]
61
61
  },
62
- "gitHead": "0e1e722291ee035a03a8ede4e51147412f1a88d8"
62
+ "gitHead": "653d9c4eb1e79b3607ba16fdce17577fd6eb7895"
63
63
  }
@@ -9,8 +9,18 @@ export class OxSciChart extends LitElement {
9
9
 
10
10
  private chart: any = null
11
11
  private dataSeries: any[] = []
12
+ /*
13
+ [주의]
14
+ ox-scichart container의 id를 글로벌 유니크하게 해야한다.
15
+ SciChart가 특별히 container의 id를 기반으로 하위 컴포넌트를 구성하고 있기 때문이다.
16
+ shadowDom 안에 있는 container 이더라도, 글로벌 유니크한 id를 제공해야 한다.
17
+ 그렇지 않으면, 단 하나의 차트만 제대로 렌더링된다.
18
+ */
19
+ private containerId: string = 'ox-sci-chart' + ++OxSciChart.idx
12
20
 
13
- @query('div#container') container!: HTMLDivElement
21
+ @query('.chart-container') container!: HTMLDivElement
22
+
23
+ static idx: number = 0
14
24
 
15
25
  static styles = css`
16
26
  :host {
@@ -31,12 +41,12 @@ export class OxSciChart extends LitElement {
31
41
  }
32
42
  `
33
43
 
34
- firstUpdated() {
35
- this.initializeSciChart()
36
- this.updateDataSeries()
37
- }
38
-
39
44
  async initializeSciChart() {
45
+ if (this.chart) {
46
+ this.chart.sciChartSurface?.delete()
47
+ this.chart = null
48
+ }
49
+
40
50
  const { chart, dataSeries } = (await buildSciChart(this.config, this.container, {})) || {}
41
51
 
42
52
  this.chart = chart
@@ -56,7 +66,7 @@ export class OxSciChart extends LitElement {
56
66
  }
57
67
 
58
68
  if (needDataUpdate) {
59
- this.updateDataSeries()
69
+ await this.updateDataSeries()
60
70
  }
61
71
  }
62
72
 
@@ -108,7 +118,7 @@ export class OxSciChart extends LitElement {
108
118
  }
109
119
 
110
120
  render() {
111
- return html` <div id="container" class="chart-container"></div> `
121
+ return html` <div id=${this.containerId} class="chart-container"></div> `
112
122
  }
113
123
  }
114
124
 
@@ -19,6 +19,7 @@ import {
19
19
  NumberRange,
20
20
  MouseWheelZoomModifier,
21
21
  RubberBandXyZoomModifier,
22
+ ZoomPanModifier,
22
23
  ZoomExtentsModifier,
23
24
  RolloverModifier,
24
25
  SmartDateLabelProvider,
@@ -29,7 +30,8 @@ import {
29
30
  XPointMarker,
30
31
  WaveAnimation,
31
32
  LegendModifier,
32
- ELegendPlacement
33
+ ELegendPlacement,
34
+ EXyDirection
33
35
  } from 'scichart'
34
36
 
35
37
  SciChartSurface.UseCommunityLicense()
@@ -54,6 +56,10 @@ function getThemeFromBrowser() {
54
56
  }
55
57
 
56
58
  function createPointMarker(wasmContext: any, pointStyle?: string, color: string = DEFAULT_COLOR) {
59
+ if (!pointStyle) {
60
+ return
61
+ }
62
+
57
63
  const pointMarkerOptions = {
58
64
  width: POINT_MARKER_SIZE,
59
65
  height: POINT_MARKER_SIZE,
@@ -140,7 +146,7 @@ function createSeries(
140
146
  const borderWidth = dataset.borderWidth || STROKE_THICKNESS
141
147
  const pointMarker = createPointMarker(wasmContext, dataset.pointStyle, strokeColor)
142
148
 
143
- let series: any
149
+ let series
144
150
  if (dataset.type === 'bar') {
145
151
  series = stacked
146
152
  ? new StackedColumnRenderableSeries(wasmContext, {
@@ -278,7 +284,8 @@ export async function buildSciChart(
278
284
  // 줌인/줌아웃 모디파이어 추가
279
285
  sciChartSurface.chartModifiers.add(
280
286
  new RubberBandXyZoomModifier(),
281
- new MouseWheelZoomModifier(),
287
+ // new ZoomPanModifier({ xyDirection: EXyDirection.XDirection }),
288
+ new MouseWheelZoomModifier({ xyDirection: EXyDirection.XDirection }),
282
289
  new ZoomExtentsModifier()
283
290
  )
284
291
 
package/src/index.ts CHANGED
@@ -1,3 +1 @@
1
- export { default as Scichart } from './scichart'
2
- export { default as ScichartCandleStick } from './scichart-candle-stick'
3
1
  export { default as scichartTimeseries } from './scichart-timeseries'
@@ -1,5 +1,3 @@
1
- import scichart from './scichart'
2
1
  import scichartTimeseries from './scichart-timeseries'
3
- import scichartCandleStick from './scichart-candle-stick'
4
2
 
5
- export default [scichart, scichartCandleStick, scichartTimeseries]
3
+ export default [scichartTimeseries]