@operato/scene-scichart 7.0.2 → 7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. package/CHANGELOG.md +10 -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/index.d.ts +0 -2
  7. package/dist/index.js +0 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/templates/index.d.ts +51 -0
  10. package/dist/templates/index.js +1 -3
  11. package/dist/templates/index.js.map +1 -1
  12. package/icons/scichart-timeseries.png +0 -0
  13. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +35 -0
  14. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +15 -0
  15. package/logs/application-2024-07-05-16.log +106 -0
  16. package/logs/application-2024-07-05-19.log +1 -0
  17. package/logs/application-2024-07-05-20.log +5 -0
  18. package/logs/application-2024-07-05-21.log +1 -0
  19. package/logs/application-2024-07-05-22.log +105 -0
  20. package/logs/application-2024-07-05-23.log +1 -0
  21. package/logs/application-2024-07-06-00.log +105 -0
  22. package/logs/connections-2024-07-05-16.log +50 -0
  23. package/logs/connections-2024-07-05-22.log +50 -0
  24. package/logs/connections-2024-07-06-00.log +50 -0
  25. package/logs/system/.ff447eb42e255d0436b200b50a92dc6546166b36-audit.json +25 -0
  26. 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-05-16.log" +7 -0
  27. 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-05-19.log" +7 -0
  28. 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-05-20.log" +35 -0
  29. 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-05-21.log" +7 -0
  30. 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-05-23.log" +7 -0
  31. package/package.json +2 -2
  32. package/src/charts/ox-scichart.ts +18 -8
  33. package/src/index.ts +0 -2
  34. package/src/templates/index.ts +1 -3
  35. package/tsconfig.tsbuildinfo +1 -1
  36. package/dist/charts/sci-candle-stick-chart.d.ts +0 -19
  37. package/dist/charts/sci-candle-stick-chart.js +0 -249
  38. package/dist/charts/sci-candle-stick-chart.js.map +0 -1
  39. package/dist/charts/volume-pallette-provider.d.ts +0 -12
  40. package/dist/charts/volume-pallette-provider.js +0 -21
  41. package/dist/charts/volume-pallette-provider.js.map +0 -1
  42. package/dist/data/binance-rest-client.d.ts +0 -14
  43. package/dist/data/binance-rest-client.js +0 -53
  44. package/dist/data/binance-rest-client.js.map +0 -1
  45. package/dist/scichart-candle-stick.d.ts +0 -10
  46. package/dist/scichart-candle-stick.js +0 -50
  47. package/dist/scichart-candle-stick.js.map +0 -1
  48. package/dist/scichart.d.ts +0 -21
  49. package/dist/scichart.js +0 -72
  50. package/dist/scichart.js.map +0 -1
  51. package/dist/templates/scichart-candle-stick.d.ts +0 -14
  52. package/dist/templates/scichart-candle-stick.js +0 -16
  53. package/dist/templates/scichart-candle-stick.js.map +0 -1
  54. package/dist/templates/scichart.d.ts +0 -14
  55. package/dist/templates/scichart.js +0 -16
  56. package/dist/templates/scichart.js.map +0 -1
  57. package/dist/themes/app-theme.d.ts +0 -56
  58. package/dist/themes/app-theme.js +0 -35
  59. package/dist/themes/app-theme.js.map +0 -1
  60. package/icons/scichart-candle-stick.png +0 -0
  61. package/icons/scichart.png +0 -0
  62. package/src/charts/sci-candle-stick-chart.ts +0 -306
  63. package/src/charts/volume-pallette-provider.ts +0 -41
  64. package/src/data/binance-rest-client.ts +0 -74
  65. package/src/scichart-candle-stick.ts +0 -60
  66. package/src/scichart.ts +0 -90
  67. package/src/templates/scichart-candle-stick.ts +0 -16
  68. package/src/templates/scichart.ts +0 -16
  69. package/src/themes/app-theme.ts +0 -72
package/src/scichart.ts DELETED
@@ -1,90 +0,0 @@
1
- /*
2
- * Copyright © HatioLab Inc. All rights reserved.
3
- */
4
- import 'ses'
5
-
6
- const NATURE = {
7
- mutable: false,
8
- resizable: true,
9
- rotatable: true,
10
- properties: [
11
- {
12
- type: 'textarea',
13
- label: 'config',
14
- name: 'config'
15
- }
16
- ]
17
- }
18
-
19
- import { Component, HTMLOverlayContainer, Properties, ComponentNature, error } from '@hatiolab/things-scene'
20
-
21
- import { SciChartSurface } from 'scichart/Charting/Visuals/SciChartSurface'
22
- import { NumericAxis } from 'scichart/Charting/Visuals/Axis/NumericAxis'
23
-
24
- SciChartSurface.UseCommunityLicense()
25
- SciChartSurface.configure({
26
- dataUrl: `/node_modules/scichart/_wasm/scichart2d.data`,
27
- wasmUrl: `/node_modules/scichart/_wasm/scichart2d.wasm`
28
- })
29
-
30
- export default class Scichart extends HTMLOverlayContainer {
31
- static get nature() {
32
- return NATURE
33
- }
34
-
35
- _anchor?: HTMLDivElement
36
-
37
- async oncreate_element(div: HTMLDivElement) {
38
- const { sciChartSurface, wasmContext } = await SciChartSurface.create(div)
39
-
40
- const xAxis = new NumericAxis(wasmContext)
41
- const yAxis = new NumericAxis(wasmContext)
42
-
43
- sciChartSurface.xAxes.add(xAxis)
44
- sciChartSurface.yAxes.add(yAxis)
45
- }
46
-
47
- dispose() {
48
- super.dispose()
49
-
50
- delete this._anchor
51
- }
52
-
53
- /*
54
- * 컴포넌트의 생성 또는 속성 변화 시에 호출되며,
55
- * 그에 따른 html element의 반영이 필요한 부분을 구현한다.
56
- *
57
- * ThingsComponent state => HTML element properties
58
- */
59
- setElementProperties(div: HTMLDivElement) {}
60
-
61
- /*
62
- * 컴포넌트가 ready 상태가 되거나, 컴포넌트의 속성이 변화될 시 setElementProperties 뒤에 호출된다.
63
- * 변화에 따른 기본적인 html 속성이 super.reposition()에서 진행되고, 그 밖의 작업이 필요할 때, 오버라이드 한다.
64
- */
65
- reposition() {
66
- super.reposition()
67
- }
68
-
69
- get config() {
70
- var { config, data } = this.state
71
-
72
- if (typeof config !== 'object') {
73
- try {
74
- const c = new Compartment()
75
-
76
- return c.evaluate(`(${config})`)
77
- } catch (e) {
78
- error(e)
79
- }
80
- }
81
-
82
- return config
83
- }
84
-
85
- get tagName() {
86
- return 'div'
87
- }
88
- }
89
-
90
- Component.register('scichart', Scichart)
@@ -1,16 +0,0 @@
1
- const icon = new URL('../../icons/scichart-candle-stick.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'scichart-candle-stick',
5
- description: 'scichart-candle-stick',
6
- /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
7
- group: 'chartAndGauge',
8
- icon,
9
- model: {
10
- type: 'scichart-candle-stick',
11
- left: 10,
12
- top: 10,
13
- width: 400,
14
- height: 300
15
- }
16
- }
@@ -1,16 +0,0 @@
1
- const icon = new URL('../../icons/scichart.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'scichart',
5
- description: 'scichart',
6
- /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
7
- group: 'chartAndGauge',
8
- icon,
9
- model: {
10
- type: 'scichart',
11
- left: 10,
12
- top: 10,
13
- width: 400,
14
- height: 300
15
- }
16
- }
@@ -1,72 +0,0 @@
1
- import { IThemeProvider, SciChartJsNavyTheme } from 'scichart'
2
-
3
- export interface AppThemeBase {
4
- SciChartJsTheme: IThemeProvider
5
-
6
- // general colors
7
- ForegroundColor: string
8
- Background: string
9
-
10
- // Series colors
11
- VividSkyBlue: string
12
- VividPink: string
13
- VividTeal: string
14
- VividOrange: string
15
- VividBlue: string
16
- VividPurple: string
17
- VividGreen: string
18
- VividRed: string
19
-
20
- MutedSkyBlue: string
21
- MutedPink: string
22
- MutedTeal: string
23
- MutedOrange: string
24
- MutedBlue: string
25
- MutedPurple: string
26
- MutedRed: string
27
-
28
- PaleSkyBlue: string
29
- PalePink: string
30
- PaleTeal: string
31
- PaleOrange: string
32
- PaleBlue: string
33
- PalePurple: string
34
- }
35
-
36
- export class SciChartAppTheme implements AppThemeBase {
37
- SciChartJsTheme = new SciChartJsNavyTheme()
38
-
39
- // General colors
40
- ForegroundColor = '#FFFFFF'
41
- Background = this.SciChartJsTheme.sciChartBackground
42
-
43
- // Series colors
44
- VividSkyBlue = '#50C7E0'
45
- VividPink = '#EC0F6C'
46
- VividTeal = '#30BC9A'
47
- VividOrange = '#F48420'
48
- VividBlue = '#364BA0'
49
- VividPurple = '#882B91'
50
- VividGreen = '#67BDAF'
51
- VividRed = '#C52E60'
52
-
53
- DarkIndigo = '#14233C'
54
- Indigo = '#264B93'
55
-
56
- MutedSkyBlue = '#83D2F5'
57
- MutedPink = '#DF69A8'
58
- MutedTeal = '#7BCAAB'
59
- MutedOrange = '#E7C565'
60
- MutedBlue = '#537ABD'
61
- MutedPurple = '#A16DAE'
62
- MutedRed = '#DC7969'
63
-
64
- PaleSkyBlue = '#E4F5FC'
65
- PalePink = '#EEB3D2'
66
- PaleTeal = '#B9E0D4'
67
- PaleOrange = '#F1CFB5'
68
- PaleBlue = '#B5BEDF'
69
- PalePurple = '#CFB4D5'
70
- }
71
-
72
- export const appTheme = new SciChartAppTheme()