@operato/scene-scichart 7.0.0-rc.1 → 7.0.0-rc.3
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.
- package/CHANGELOG.md +10 -0
- package/dist/scichart.d.ts +1 -0
- package/dist/scichart.js +3 -1
- package/dist/scichart.js.map +1 -1
- package/package.json +2 -2
- package/src/scichart.ts +4 -1
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [7.0.0-rc.3](https://github.com/things-scene/operato-scene/compare/v7.0.0-rc.2...v7.0.0-rc.3) (2024-06-28)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* remove eval(..) ([2b82b39](https://github.com/things-scene/operato-scene/commit/2b82b391258126bdecf682b086032e411b679e7a))
|
12
|
+
* update dependencies version ([8629d93](https://github.com/things-scene/operato-scene/commit/8629d9375c84bc7b44c8a3604106345d87c21db5))
|
13
|
+
|
14
|
+
|
15
|
+
|
6
16
|
## [7.0.0-rc.1](https://github.com/things-scene/operato-scene/compare/v7.0.0-rc.0...v7.0.0-rc.1) (2024-06-21)
|
7
17
|
|
8
18
|
|
package/dist/scichart.d.ts
CHANGED
package/dist/scichart.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright © HatioLab Inc. All rights reserved.
|
3
3
|
*/
|
4
|
+
import 'ses';
|
4
5
|
const NATURE = {
|
5
6
|
mutable: false,
|
6
7
|
resizable: true,
|
@@ -54,7 +55,8 @@ export default class Scichart extends HTMLOverlayContainer {
|
|
54
55
|
var { config, data } = this.state;
|
55
56
|
if (typeof config !== 'object') {
|
56
57
|
try {
|
57
|
-
|
58
|
+
const c = new Compartment();
|
59
|
+
return c.evaluate(`(${config})`);
|
58
60
|
}
|
59
61
|
catch (e) {
|
60
62
|
error(e);
|
package/dist/scichart.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scichart.js","sourceRoot":"","sources":["../src/scichart.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
1
|
+
{"version":3,"file":"scichart.js","sourceRoot":"","sources":["../src/scichart.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,CAAA;AAEZ,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAA+B,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAE5G,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAA;AAExE,eAAe,CAAC,mBAAmB,EAAE,CAAA;AACrC,eAAe,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,8CAA8C;IACvD,OAAO,EAAE,8CAA8C;CACxD,CAAC,CAAA;AAEF,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,oBAAoB;IACxD,MAAM,KAAK,MAAM;QACf,OAAO,MAAM,CAAA;IACf,CAAC;IAID,KAAK,CAAC,gBAAgB,CAAC,GAAmB;QACxC,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAE1E,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,WAAW,CAAC,CAAA;QAC1C,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,WAAW,CAAC,CAAA;QAE1C,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAChC,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAClC,CAAC;IAED,OAAO;QACL,KAAK,CAAC,OAAO,EAAE,CAAA;QAEf,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAAC,GAAmB,IAAG,CAAC;IAE5C;;;OAGG;IACH,UAAU;QACR,KAAK,CAAC,UAAU,EAAE,CAAA;IACpB,CAAC;IAED,IAAI,MAAM;QACR,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAEjC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,IAAI,CAAC;gBACH,MAAM,CAAC,GAAG,IAAI,WAAW,EAAE,CAAA;gBAE3B,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,MAAM,GAAG,CAAC,CAAA;YAClC,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,KAAK,CAAC,CAAC,CAAC,CAAA;YACV,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;IAED,IAAI,OAAO;QACT,OAAO,KAAK,CAAA;IACd,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\nimport 'ses'\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'textarea',\n label: 'config',\n name: 'config'\n }\n ]\n}\n\nimport { Component, HTMLOverlayContainer, Properties, ComponentNature, error } from '@hatiolab/things-scene'\n\nimport { SciChartSurface } from 'scichart/Charting/Visuals/SciChartSurface'\nimport { NumericAxis } from 'scichart/Charting/Visuals/Axis/NumericAxis'\n\nSciChartSurface.UseCommunityLicense()\nSciChartSurface.configure({\n dataUrl: `/node_modules/scichart/_wasm/scichart2d.data`,\n wasmUrl: `/node_modules/scichart/_wasm/scichart2d.wasm`\n})\n\nexport default class Scichart extends HTMLOverlayContainer {\n static get nature() {\n return NATURE\n }\n\n _anchor?: HTMLDivElement\n\n async oncreate_element(div: HTMLDivElement) {\n const { sciChartSurface, wasmContext } = await SciChartSurface.create(div)\n\n const xAxis = new NumericAxis(wasmContext)\n const yAxis = new NumericAxis(wasmContext)\n\n sciChartSurface.xAxes.add(xAxis)\n sciChartSurface.yAxes.add(yAxis)\n }\n\n dispose() {\n super.dispose()\n\n delete this._anchor\n }\n\n /*\n * 컴포넌트의 생성 또는 속성 변화 시에 호출되며,\n * 그에 따른 html element의 반영이 필요한 부분을 구현한다.\n *\n * ThingsComponent state => HTML element properties\n */\n setElementProperties(div: HTMLDivElement) {}\n\n /*\n * 컴포넌트가 ready 상태가 되거나, 컴포넌트의 속성이 변화될 시 setElementProperties 뒤에 호출된다.\n * 변화에 따른 기본적인 html 속성이 super.reposition()에서 진행되고, 그 밖의 작업이 필요할 때, 오버라이드 한다.\n */\n reposition() {\n super.reposition()\n }\n\n get config() {\n var { config, data } = this.state\n\n if (typeof config !== 'object') {\n try {\n const c = new Compartment()\n\n return c.evaluate(`(${config})`)\n } catch (e) {\n error(e)\n }\n }\n\n return config\n }\n\n get tagName() {\n return 'div'\n }\n}\n\nComponent.register('scichart', Scichart)\n"]}
|
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.0-rc.
|
4
|
+
"version": "7.0.0-rc.3",
|
5
5
|
"license": "MIT",
|
6
6
|
"things-scene": true,
|
7
7
|
"author": "heartyoh",
|
@@ -58,5 +58,5 @@
|
|
58
58
|
"prettier --write"
|
59
59
|
]
|
60
60
|
},
|
61
|
-
"gitHead": "
|
61
|
+
"gitHead": "1ff0d9a4c10ff41b2e97be5d28b3275604484fa9"
|
62
62
|
}
|
package/src/scichart.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Copyright © HatioLab Inc. All rights reserved.
|
3
3
|
*/
|
4
|
+
import 'ses'
|
4
5
|
|
5
6
|
const NATURE = {
|
6
7
|
mutable: false,
|
@@ -70,7 +71,9 @@ export default class Scichart extends HTMLOverlayContainer {
|
|
70
71
|
|
71
72
|
if (typeof config !== 'object') {
|
72
73
|
try {
|
73
|
-
|
74
|
+
const c = new Compartment()
|
75
|
+
|
76
|
+
return c.evaluate(`(${config})`)
|
74
77
|
} catch (e) {
|
75
78
|
error(e)
|
76
79
|
}
|