@operato/scene-scichart 9.0.0-beta.12 → 9.0.0-beta.15

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.
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  * Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
+ import { __decorate } from "tslib";
4
5
  const NATURE = {
5
6
  mutable: false,
6
7
  resizable: true,
@@ -21,8 +22,8 @@ const NATURE = {
21
22
  help: 'scene/component/scichart-multiple-timeseries'
22
23
  };
23
24
  import './charts/ox-scichart-multiple.js';
24
- import { Component, HTMLOverlayContainer } from '@hatiolab/things-scene';
25
- export default class ScichartMultipleTimeseries extends HTMLOverlayContainer {
25
+ import { HTMLOverlayContainer, sceneComponent } from '@hatiolab/things-scene';
26
+ let ScichartMultipleTimeseries = class ScichartMultipleTimeseries extends HTMLOverlayContainer {
26
27
  static get nature() {
27
28
  return NATURE;
28
29
  }
@@ -53,6 +54,9 @@ export default class ScichartMultipleTimeseries extends HTMLOverlayContainer {
53
54
  ;
54
55
  this.element.data = this.data;
55
56
  }
56
- }
57
- Component.register('scichart-multiple-timeseries', ScichartMultipleTimeseries);
57
+ };
58
+ ScichartMultipleTimeseries = __decorate([
59
+ sceneComponent('scichart-multiple-timeseries')
60
+ ], ScichartMultipleTimeseries);
61
+ export default ScichartMultipleTimeseries;
58
62
  //# sourceMappingURL=scichart-multiple-timeseries.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scichart-multiple-timeseries.js","sourceRoot":"","sources":["../src/scichart-multiple-timeseries.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,cAAc;SACrB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KA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CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,8BAA8B,EAAE,0BAA0B,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'boolean',\n label: 'show-overview',\n name: 'showOverview'\n },\n {\n type: 'scichart',\n label: '',\n name: 'chart'\n }\n ],\n 'value-property': 'visibleSeries',\n help: 'scene/component/scichart-multiple-timeseries'\n}\n\nimport './charts/ox-scichart-multiple.js'\n\nimport { Component, HTMLOverlayContainer, Properties, ComponentNature, error } from '@hatiolab/things-scene'\n\nimport { OxSciChartMultiple } from './charts/ox-scichart-multiple.js'\n\nexport default class ScichartMultipleTimeseries extends HTMLOverlayContainer {\n static get nature() {\n return NATURE\n }\n\n dispose() {\n super.dispose()\n ;(this.element as OxSciChartMultiple)?.dispose()\n }\n\n setElementProperties(scichart: OxSciChartMultiple) {\n const { data, chart, showOverview, visibleSeries } = this.state\n\n scichart.config = chart\n scichart.data = data\n scichart.showOverview = showOverview\n scichart.visibleSeries = visibleSeries || []\n }\n\n get tagName() {\n return 'ox-scichart-multiple'\n }\n\n get visibleSeries() {\n const { visibleSeries } = this.state\n return visibleSeries || []\n }\n\n set visibleSeries(visibleSeries: string[]) {\n this.setState('visibleSeries', visibleSeries)\n ;(this.element as OxSciChartMultiple).visibleSeries = visibleSeries\n }\n\n async onchangeData(after: Properties, before: Properties): Promise<void> {\n ;(this.element as OxSciChartMultiple).data = this.data\n }\n}\n\nComponent.register('scichart-multiple-timeseries', ScichartMultipleTimeseries)\n"]}
1
+ {"version":3,"file":"scichart-multiple-timeseries.js","sourceRoot":"","sources":["../src/scichart-multiple-timeseries.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV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AY,CAAC,KAAiB,EAAE,MAAkB;QACtD,CAAC;QAAC,IAAI,CAAC,OAA8B,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;IACxD,CAAC;CACF,CAAA;AApCoB,0BAA0B;IAD9C,cAAc,CAAC,8BAA8B,CAAC;GAC1B,0BAA0B,CAoC9C;eApCoB,0BAA0B","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'boolean',\n label: 'show-overview',\n name: 'showOverview'\n },\n {\n type: 'scichart',\n label: '',\n name: 'chart'\n }\n ],\n 'value-property': 'visibleSeries',\n help: 'scene/component/scichart-multiple-timeseries'\n}\n\nimport './charts/ox-scichart-multiple.js'\n\nimport {\n Component,\n HTMLOverlayContainer,\n Properties,\n ComponentNature,\n error,\n sceneComponent\n} from '@hatiolab/things-scene'\n\nimport { OxSciChartMultiple } from './charts/ox-scichart-multiple.js'\n\n@sceneComponent('scichart-multiple-timeseries')\nexport default class ScichartMultipleTimeseries extends HTMLOverlayContainer {\n static get nature() {\n return NATURE\n }\n\n dispose() {\n super.dispose()\n ;(this.element as OxSciChartMultiple)?.dispose()\n }\n\n setElementProperties(scichart: OxSciChartMultiple) {\n const { data, chart, showOverview, visibleSeries } = this.state\n\n scichart.config = chart\n scichart.data = data\n scichart.showOverview = showOverview\n scichart.visibleSeries = visibleSeries || []\n }\n\n get tagName() {\n return 'ox-scichart-multiple'\n }\n\n get visibleSeries() {\n const { visibleSeries } = this.state\n return visibleSeries || []\n }\n\n set visibleSeries(visibleSeries: string[]) {\n this.setState('visibleSeries', visibleSeries)\n ;(this.element as OxSciChartMultiple).visibleSeries = visibleSeries\n }\n\n async onchangeData(after: Properties, before: Properties): Promise<void> {\n ;(this.element as OxSciChartMultiple).data = this.data\n }\n}\n"]}
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  * Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
+ import { __decorate } from "tslib";
4
5
  const NATURE = {
5
6
  mutable: false,
6
7
  resizable: true,
@@ -15,8 +16,8 @@ const NATURE = {
15
16
  help: 'scene/component/scichart-timeseries'
16
17
  };
17
18
  import './charts/ox-scichart.js';
18
- import { Component, HTMLOverlayContainer } from '@hatiolab/things-scene';
19
- export default class ScichartTimeSeries extends HTMLOverlayContainer {
19
+ import { HTMLOverlayContainer, sceneComponent } from '@hatiolab/things-scene';
20
+ let ScichartTimeSeries = class ScichartTimeSeries extends HTMLOverlayContainer {
20
21
  static get nature() {
21
22
  return NATURE;
22
23
  }
@@ -37,6 +38,9 @@ export default class ScichartTimeSeries extends HTMLOverlayContainer {
37
38
  ;
38
39
  this.element.data = this.data;
39
40
  }
40
- }
41
- Component.register('scichart-timeseries', ScichartTimeSeries);
41
+ };
42
+ ScichartTimeSeries = __decorate([
43
+ sceneComponent('scichart-timeseries')
44
+ ], ScichartTimeSeries);
45
+ export default ScichartTimeSeries;
42
46
  //# sourceMappingURL=scichart-timeseries.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scichart-timeseries.js","sourceRoot":"","sources":["../src/scichart-timeseries.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,OAAO;SACd;KACF;IACD,IAAI,EAAE,qCAAqC;CAC5C,CAAA;AAED,OAAO,yBAAyB,CAAA;AAEhC,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAsC,MAAM,wBAAwB,CAAA;AAI5G,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,oBAAoB;IAClE,MAAM,KAAK,MAAM;QACf,OAAO,MAAM,CAAA;IACf,CAAC;IAED,oBAAoB,CAAC,QAAoB;QACvC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAElC,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAA;QACvB,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAA;IACtB,CAAC;IAED,OAAO;;QACL,KAAK,CAAC,OAAO,EAAE,CACd;QAAA,MAAC,IAAI,CAAC,OAAsB,0CAAE,OAAO,EAAE,CAAA;IAC1C,CAAC;IAED,IAAI,OAAO;QACT,OAAO,aAAa,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAiB,EAAE,MAAkB;QACtD,CAAC;QAAC,IAAI,CAAC,OAAsB,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;IAChD,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'scichart',\n label: '',\n name: 'chart'\n }\n ],\n help: 'scene/component/scichart-timeseries'\n}\n\nimport './charts/ox-scichart.js'\n\nimport { Component, HTMLOverlayContainer, Properties, ComponentNature, error } from '@hatiolab/things-scene'\n\nimport { OxSciChart } from './charts/ox-scichart.js'\n\nexport default class ScichartTimeSeries extends HTMLOverlayContainer {\n static get nature() {\n return NATURE\n }\n\n setElementProperties(scichart: OxSciChart) {\n const { data, chart } = this.state\n\n scichart.config = chart\n scichart.data = data\n }\n\n dispose() {\n super.dispose()\n ;(this.element as OxSciChart)?.dispose()\n }\n\n get tagName() {\n return 'ox-scichart'\n }\n\n async onchangeData(after: Properties, before: Properties): Promise<void> {\n ;(this.element as OxSciChart).data = this.data\n }\n}\n\nComponent.register('scichart-timeseries', ScichartTimeSeries)\n"]}
1
+ {"version":3,"file":"scichart-timeseries.js","sourceRoot":"","sources":["../src/scichart-timeseries.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,OAAO;SACd;KACF;IACD,IAAI,EAAE,qCAAqC;CAC5C,CAAA;AAED,OAAO,yBAAyB,CAAA;AAEhC,OAAO,EAEL,oBAAoB,EAIpB,cAAc,EACf,MAAM,wBAAwB,CAAA;AAKhB,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oBAAoB;IAClE,MAAM,KAAK,MAAM;QACf,OAAO,MAAM,CAAA;IACf,CAAC;IAED,oBAAoB,CAAC,QAAoB;QACvC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAElC,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAA;QACvB,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAA;IACtB,CAAC;IAED,OAAO;;QACL,KAAK,CAAC,OAAO,EAAE,CACd;QAAA,MAAC,IAAI,CAAC,OAAsB,0CAAE,OAAO,EAAE,CAAA;IAC1C,CAAC;IAED,IAAI,OAAO;QACT,OAAO,aAAa,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAiB,EAAE,MAAkB;QACtD,CAAC;QAAC,IAAI,CAAC,OAAsB,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;IAChD,CAAC;CACF,CAAA;AAxBoB,kBAAkB;IADtC,cAAc,CAAC,qBAAqB,CAAC;GACjB,kBAAkB,CAwBtC;eAxBoB,kBAAkB","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'scichart',\n label: '',\n name: 'chart'\n }\n ],\n help: 'scene/component/scichart-timeseries'\n}\n\nimport './charts/ox-scichart.js'\n\nimport {\n Component,\n HTMLOverlayContainer,\n Properties,\n ComponentNature,\n error,\n sceneComponent\n} from '@hatiolab/things-scene'\n\nimport { OxSciChart } from './charts/ox-scichart.js'\n\n@sceneComponent('scichart-timeseries')\nexport default class ScichartTimeSeries extends HTMLOverlayContainer {\n static get nature() {\n return NATURE\n }\n\n setElementProperties(scichart: OxSciChart) {\n const { data, chart } = this.state\n\n scichart.config = chart\n scichart.data = data\n }\n\n dispose() {\n super.dispose()\n ;(this.element as OxSciChart)?.dispose()\n }\n\n get tagName() {\n return 'ox-scichart'\n }\n\n async onchangeData(after: Properties, before: Properties): Promise<void> {\n ;(this.element as OxSciChart).data = this.data\n }\n}\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": "9.0.0-beta.12",
4
+ "version": "9.0.0-beta.15",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "things-scene": true,
@@ -60,5 +60,5 @@
60
60
  "prettier --write"
61
61
  ]
62
62
  },
63
- "gitHead": "4e5088777eb5187e7f8d3c5d5ffeb633a3802341"
63
+ "gitHead": "3a94a8a9ee8cb8de82ad331cb08b9e48d6625d31"
64
64
  }