@operato/scene-scichart 7.0.4 → 7.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/cache/translations/system/en.json +1 -0
- package/cache/translations/system/ko.json +1 -0
- package/db.sqlite +0 -0
- package/dist/charts/scichart-builder.js +17 -11
- package/dist/charts/scichart-builder.js.map +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +5 -0
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +5 -0
- package/logs/application-2024-07-09-15.log +210 -0
- package/logs/connections-2024-07-09-15.log +100 -0
- package/package.json +2 -2
- package/src/charts/scichart-builder.ts +24 -12
- package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scichart-builder.js","sourceRoot":"","sources":["../../src/charts/scichart-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,EACvB,yBAAyB,EACzB,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,wBAAwB,EAExB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACb,MAAM,UAAU,CAAA;AAEjB,eAAe,CAAC,mBAAmB,EAAE,CAAA;AAErC,eAAe,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,8CAA8C;IACvD,OAAO,EAAE,8CAA8C;CACxD,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,SAAS,CAAA;AAC/B,MAAM,cAAc,GAAG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js'\nimport {\n SciChartSurface,\n SciChartJSLightTheme,\n SciChartJSDarkv2Theme,\n XyDataSeries,\n FastLineRenderableSeries,\n SplineLineRenderableSeries,\n FastColumnRenderableSeries,\n StackedColumnRenderableSeries,\n StackedMountainRenderableSeries,\n StackedColumnCollection,\n StackedMountainCollection,\n NumericAxis,\n DateTimeNumericAxis,\n EAutoRange,\n EAxisAlignment,\n NumberRange,\n MouseWheelZoomModifier,\n RubberBandXyZoomModifier,\n ZoomPanModifier,\n ZoomExtentsModifier,\n RolloverModifier,\n SmartDateLabelProvider,\n EllipsePointMarker,\n SquarePointMarker,\n TrianglePointMarker,\n CrossPointMarker,\n XPointMarker,\n WaveAnimation,\n LegendModifier,\n ELegendPlacement,\n EXyDirection\n} from 'scichart'\n\nSciChartSurface.UseCommunityLicense()\n\nSciChartSurface.configure({\n dataUrl: `/node_modules/scichart/_wasm/scichart2d.data`,\n wasmUrl: `/node_modules/scichart/_wasm/scichart2d.wasm`\n})\n\nconst DEFAULT_COLOR = '#FF6600'\nconst DEFAULT_STROKE = '#000000'\nconst POINT_MARKER_SIZE = 10\nconst STROKE_THICKNESS = 2\nconst ANIMATION_DURATION = 1000\n\nfunction getBaseColorFromTheme(theme?: 'light' | 'dark' | 'auto') {\n return new TinyColor(theme == 'dark' ? '#fff' : '#000')\n}\n\nfunction getThemeFromBrowser() {\n return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'\n}\n\nfunction createPointMarker(wasmContext: any, pointStyle?: string, color: string = DEFAULT_COLOR) {\n if (!pointStyle) {\n return\n }\n\n const pointMarkerOptions = {\n width: POINT_MARKER_SIZE,\n height: POINT_MARKER_SIZE,\n strokeThickness: STROKE_THICKNESS,\n fill: color,\n stroke: DEFAULT_STROKE\n }\n\n switch (pointStyle) {\n case 'triangle':\n return new TrianglePointMarker(wasmContext, pointMarkerOptions)\n case 'rect':\n return new SquarePointMarker(wasmContext, pointMarkerOptions)\n case 'cross':\n return new CrossPointMarker(wasmContext, pointMarkerOptions)\n case 'crossRot':\n return new XPointMarker(wasmContext, pointMarkerOptions)\n default:\n return new EllipsePointMarker(wasmContext, pointMarkerOptions)\n }\n}\n\nfunction createAxis(\n wasmContext: any,\n axis: any,\n index: number,\n isXAxis: boolean,\n fontColor: string,\n fontFamily?: string,\n fontSize?: number\n) {\n const { axisTitle, ticks } = axis\n const {\n autoMax,\n autoMin,\n min,\n max,\n stepSize,\n beginAtZero,\n color = fontColor,\n textStrokeColor = fontColor\n } = ticks || {}\n\n const axisOptions = {\n axisTitle,\n autoRange: autoMin || autoMax ? EAutoRange.Always : undefined,\n axisAlignment: isXAxis ? EAxisAlignment.Bottom : index === 0 ? EAxisAlignment.Left : EAxisAlignment.Right,\n visibleRange: min !== undefined && max !== undefined ? new NumberRange(min, max) : undefined,\n majorDelta: stepSize,\n growBy: beginAtZero ? new NumberRange(0.1, 0.1) : undefined,\n labelStyle: {\n fontFamily,\n fontSize,\n color\n },\n axisTitleStyle: {\n fontFamily,\n fontSize,\n color: textStrokeColor\n }\n }\n\n return isXAxis\n ? new DateTimeNumericAxis(wasmContext, { ...axisOptions, labelProvider: new SmartDateLabelProvider() })\n : new NumericAxis(wasmContext, { ...axisOptions, id: `yAxis${index}` })\n}\n\nfunction createSeries(\n wasmContext: any,\n dataset: any,\n index: number,\n stacked: boolean,\n animation: boolean,\n yAxisId: string\n) {\n const dataSeries = new XyDataSeries(wasmContext, {\n dataSeriesName: dataset.label,\n containsNaN: false\n })\n\n const stackGroupId = dataset.stack || `__stack${index}__`\n const color = (dataset.backgroundColor as string) || DEFAULT_COLOR\n const strokeColor = (dataset.color as string) || DEFAULT_COLOR\n const borderWidth = dataset.borderWidth || STROKE_THICKNESS\n const pointMarker = createPointMarker(wasmContext, dataset.pointStyle, strokeColor)\n\n let series\n if (dataset.type === 'bar') {\n series = stacked\n ? new StackedColumnRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n fill: color,\n stackedGroupId: stackGroupId\n })\n : new FastColumnRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n fill: color,\n animation: animation ? new WaveAnimation({ duration: ANIMATION_DURATION, fadeEffect: true }) : undefined,\n yAxisId\n })\n } else {\n series = stacked\n ? new StackedMountainRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n stroke: strokeColor,\n fill: color\n })\n : dataset.lineTension && dataset.lineTension > 0\n ? new SplineLineRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n stroke: strokeColor,\n pointMarker,\n animation: animation ? new WaveAnimation({ duration: ANIMATION_DURATION, fadeEffect: true }) : undefined,\n yAxisId\n })\n : new FastLineRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n stroke: strokeColor,\n pointMarker,\n animation: animation ? new WaveAnimation({ duration: ANIMATION_DURATION, fadeEffect: true }) : undefined,\n yAxisId\n })\n }\n\n return { series, dataSeries }\n}\n\nexport async function buildSciChart(\n config: OperatoChart.ChartConfig | undefined | null,\n container: any,\n { fontSize, fontFamily, fontColor }: { fontSize?: number; fontFamily?: string; fontColor?: string }\n): Promise<{ chart: any; dataSeries: any[] } | undefined> {\n if (!config) return\n\n const { type: chartType, options, data: fromData } = config\n const { datasets = [] } = fromData || {}\n var {\n theme,\n tooltip,\n animation,\n legend,\n scales: fromScales,\n xGridLine,\n yGridLine,\n y2ndGridLine,\n stacked\n } = options || {}\n\n var baseColor = getBaseColorFromTheme(theme)\n\n if (theme === 'auto') {\n theme = getThemeFromBrowser()\n }\n\n fontColor = fontColor || baseColor.clone().toString()\n\n const { xAxes = [], yAxes = [] } = fromScales || {}\n\n const chart = await SciChartSurface.create(container, {\n theme: theme == 'dark' ? new SciChartJSDarkv2Theme() : new SciChartJSLightTheme()\n })\n const { sciChartSurface, wasmContext } = chart\n\n // X 축 설정\n xAxes.forEach((axis, index) => {\n const xAxis = createAxis(wasmContext, axis, index, true, fontColor, fontFamily, fontSize)\n sciChartSurface.xAxes.add(xAxis)\n })\n\n // Y 축 설정\n yAxes.forEach((axis, index) => {\n const yAxis = createAxis(wasmContext, axis, index, false, fontColor, fontFamily, fontSize)\n sciChartSurface.yAxes.add(yAxis)\n })\n\n // 시리즈 설정\n const dataSeriesArray = datasets.map((dataset, index) => {\n const yAxisId = dataset.yAxisID || 'yAxis0'\n const { series, dataSeries } = createSeries(wasmContext, dataset, index, !!stacked, !!animation, yAxisId)\n\n sciChartSurface.renderableSeries.add(series)\n\n if (tooltip) {\n const rolloverModifier = new RolloverModifier({\n showTooltip: true,\n showAxisLabel: true\n })\n\n sciChartSurface.chartModifiers.add(rolloverModifier)\n }\n\n return dataSeries\n })\n\n // Stacked collections 추가\n if (stacked) {\n const stackedColumnCollection = new StackedColumnCollection(wasmContext)\n const stackedMountainCollection = new StackedMountainCollection(wasmContext)\n\n sciChartSurface.renderableSeries.asArray().forEach((series: any) => {\n if (series instanceof StackedColumnRenderableSeries) {\n stackedColumnCollection.add(series)\n } else if (series instanceof StackedMountainRenderableSeries) {\n stackedMountainCollection.add(series)\n }\n })\n\n if (stackedColumnCollection.size() > 0) {\n sciChartSurface.renderableSeries.add(stackedColumnCollection)\n }\n\n if (stackedMountainCollection.size() > 0) {\n sciChartSurface.renderableSeries.add(stackedMountainCollection)\n }\n }\n\n // 줌인/줌아웃 모디파이어 추가\n sciChartSurface.chartModifiers.add(\n new RubberBandXyZoomModifier(),\n // new ZoomPanModifier({ xyDirection: EXyDirection.XDirection }),\n new MouseWheelZoomModifier({ xyDirection: EXyDirection.XDirection }),\n new ZoomExtentsModifier()\n )\n\n if (legend?.display) {\n const legendModifier = new LegendModifier({\n showCheckboxes: true,\n showSeriesMarkers: true,\n showLegend: true,\n placement:\n legend.position == 'top'\n ? ELegendPlacement.TopLeft\n : legend.position == 'left'\n ? ELegendPlacement.BottomLeft\n : legend.position == 'bottom'\n ? ELegendPlacement.BottomRight\n : ELegendPlacement.TopRight\n })\n\n sciChartSurface.chartModifiers.add(legendModifier)\n }\n\n return { chart, dataSeries: dataSeriesArray }\n}\n"]}
|
1
|
+
{"version":3,"file":"scichart-builder.js","sourceRoot":"","sources":["../../src/charts/scichart-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,EACvB,yBAAyB,EACzB,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,WAAW,EACX,sBAAsB,EAEtB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAA;AAEjB,eAAe,CAAC,mBAAmB,EAAE,CAAA;AAErC,eAAe,CAAC,SAAS,CAAC;IACxB,OAAO,EAAE,8CAA8C;IACvD,OAAO,EAAE,8CAA8C;CACxD,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,SAAS,CAAA;AAC/B,MAAM,cAAc,GAAG,SAAS,CAAA;AAChC,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAC5B,MAAM,gBAAgB,GAAG,CAAC,CAAA;AAC1B,MAAM,kBAAkB,GAAG,IAAI,CAAA;AAE/B,SAAS,qBAAqB,CAAC,KAAiC;IAC9D,OAAO,IAAI,SAAS,CAAC,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;AACzD,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,OAA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inyColor } from '@ctrl/tinycolor'\nimport { format as formatText } from '@operato/utils/format.js'\nimport {\n SciChartSurface,\n SciChartJSLightTheme,\n SciChartJSDarkv2Theme,\n XyDataSeries,\n FastLineRenderableSeries,\n SplineLineRenderableSeries,\n FastColumnRenderableSeries,\n StackedColumnRenderableSeries,\n StackedMountainRenderableSeries,\n StackedColumnCollection,\n StackedMountainCollection,\n NumericAxis,\n DateTimeNumericAxis,\n EAutoRange,\n EAxisAlignment,\n NumberRange,\n MouseWheelZoomModifier,\n RubberBandXyZoomModifier,\n ZoomPanModifier,\n ZoomExtentsModifier,\n RolloverModifier,\n SmartDateLabelProvider,\n EllipsePointMarker,\n SquarePointMarker,\n TrianglePointMarker,\n CrossPointMarker,\n XPointMarker,\n WaveAnimation,\n LegendModifier,\n ELegendPlacement,\n EXyDirection,\n XAxisDragModifier,\n YAxisDragModifier\n} from 'scichart'\n\nSciChartSurface.UseCommunityLicense()\n\nSciChartSurface.configure({\n dataUrl: `/node_modules/scichart/_wasm/scichart2d.data`,\n wasmUrl: `/node_modules/scichart/_wasm/scichart2d.wasm`\n})\n\nconst DEFAULT_COLOR = '#FF6600'\nconst DEFAULT_STROKE = '#000000'\nconst POINT_MARKER_SIZE = 10\nconst STROKE_THICKNESS = 2\nconst ANIMATION_DURATION = 1000\n\nfunction getBaseColorFromTheme(theme?: 'light' | 'dark' | 'auto') {\n return new TinyColor(theme == 'dark' ? '#fff' : '#000')\n}\n\nfunction getThemeFromBrowser() {\n return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'\n}\n\nfunction convertColor(color: string | string[] | undefined, defaultColor?: string) {\n const tinyColor = new TinyColor(color as string)\n return tinyColor.toHex8String() || defaultColor\n}\n\nfunction createPointMarker(wasmContext: any, dataset: any, color: string = DEFAULT_COLOR) {\n const { pointStyle, pointRadius = POINT_MARKER_SIZE } = dataset || {}\n\n if (!pointStyle) {\n return\n }\n\n const pointMarkerOptions = {\n width: pointRadius,\n height: pointRadius,\n strokeThickness: STROKE_THICKNESS,\n fill: color,\n stroke: DEFAULT_STROKE\n }\n\n switch (pointStyle) {\n case 'triangle':\n return new TrianglePointMarker(wasmContext, pointMarkerOptions)\n case 'rect':\n return new SquarePointMarker(wasmContext, pointMarkerOptions)\n case 'cross':\n return new CrossPointMarker(wasmContext, pointMarkerOptions)\n case 'crossRot':\n return new XPointMarker(wasmContext, pointMarkerOptions)\n default:\n return new EllipsePointMarker(wasmContext, pointMarkerOptions)\n }\n}\n\nfunction createAxis(\n wasmContext: any,\n axis: any,\n index: number,\n isXAxis: boolean,\n fontColor: string,\n fontFamily?: string,\n fontSize?: number\n) {\n const { axisTitle, ticks } = axis\n const {\n autoMax,\n autoMin,\n min,\n max,\n stepSize,\n beginAtZero,\n color = fontColor,\n textStrokeColor = fontColor\n } = ticks || {}\n\n const axisOptions = {\n axisTitle,\n autoRange: autoMin || autoMax ? EAutoRange.Always : undefined,\n axisAlignment: isXAxis ? EAxisAlignment.Bottom : index === 0 ? EAxisAlignment.Left : EAxisAlignment.Right,\n visibleRange: min !== undefined && max !== undefined ? new NumberRange(min, max) : undefined,\n majorDelta: stepSize,\n growBy: beginAtZero ? new NumberRange(0.1, 0.1) : undefined,\n labelStyle: {\n fontFamily,\n fontSize,\n color\n },\n axisTitleStyle: {\n fontFamily,\n fontSize,\n color: textStrokeColor\n }\n }\n\n return isXAxis\n ? new DateTimeNumericAxis(wasmContext, { ...axisOptions, labelProvider: new SmartDateLabelProvider() })\n : new NumericAxis(wasmContext, { ...axisOptions, id: index !== 0 ? `yAxis${index}` : undefined })\n}\n\nfunction createSeries(\n wasmContext: any,\n dataset: any,\n index: number,\n stacked: boolean,\n animation: boolean,\n yAxisId: string | undefined\n) {\n const dataSeries = new XyDataSeries(wasmContext, {\n dataSeriesName: dataset.label,\n containsNaN: false\n })\n\n const stackGroupId = dataset.stack || `__stack${index}__`\n const color = convertColor(dataset.backgroundColor, DEFAULT_COLOR)\n const strokeColor = convertColor(dataset.color, DEFAULT_COLOR)\n const borderWidth = dataset.borderWidth || STROKE_THICKNESS\n const pointMarker = createPointMarker(wasmContext, dataset, strokeColor)\n\n let series\n if (dataset.type === 'bar') {\n series = stacked\n ? new StackedColumnRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n fill: color,\n stackedGroupId: stackGroupId\n })\n : new FastColumnRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n fill: color,\n animation: animation ? new WaveAnimation({ duration: ANIMATION_DURATION, fadeEffect: true }) : undefined,\n yAxisId\n })\n } else {\n series = stacked\n ? new StackedMountainRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n stroke: strokeColor,\n fill: color\n })\n : dataset.lineTension && dataset.lineTension > 0\n ? new SplineLineRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n stroke: strokeColor,\n pointMarker,\n animation: animation ? new WaveAnimation({ duration: ANIMATION_DURATION, fadeEffect: true }) : undefined,\n yAxisId\n })\n : new FastLineRenderableSeries(wasmContext, {\n dataSeries,\n strokeThickness: borderWidth,\n stroke: strokeColor,\n pointMarker,\n animation: animation ? new WaveAnimation({ duration: ANIMATION_DURATION, fadeEffect: true }) : undefined,\n yAxisId\n })\n }\n\n return { series, dataSeries }\n}\n\nexport async function buildSciChart(\n config: OperatoChart.ChartConfig | undefined | null,\n container: any,\n { fontSize, fontFamily, fontColor }: { fontSize?: number; fontFamily?: string; fontColor?: string }\n): Promise<{ chart: any; dataSeries: any[] } | undefined> {\n if (!config) return\n\n const { type: chartType, options, data: fromData } = config\n const { datasets = [] } = fromData || {}\n var {\n theme,\n tooltip,\n animation,\n legend,\n scales: fromScales,\n xGridLine,\n yGridLine,\n y2ndGridLine,\n stacked\n } = options || {}\n\n var baseColor = getBaseColorFromTheme(theme)\n\n if (theme === 'auto') {\n theme = getThemeFromBrowser()\n }\n\n fontColor = fontColor || baseColor.clone().toString()\n\n const { xAxes = [], yAxes = [] } = fromScales || {}\n\n const chart = await SciChartSurface.create(container, {\n theme: theme == 'dark' ? new SciChartJSDarkv2Theme() : new SciChartJSLightTheme()\n })\n const { sciChartSurface, wasmContext } = chart\n\n // X 축 설정\n xAxes.forEach((axis, index) => {\n const xAxis = createAxis(wasmContext, axis, index, true, fontColor, fontFamily, fontSize)\n sciChartSurface.xAxes.add(xAxis)\n })\n\n // Y 축 설정\n yAxes.forEach((axis, index) => {\n const yAxis = createAxis(wasmContext, axis, index, false, fontColor, fontFamily, fontSize)\n sciChartSurface.yAxes.add(yAxis)\n })\n\n // 시리즈 설정\n const dataSeriesArray = datasets.map((dataset, index) => {\n const yAxisId = dataset.yAxisID == 'right' ? 'yAxis1' : undefined\n const { series, dataSeries } = createSeries(wasmContext, dataset, index, !!stacked, !!animation, yAxisId)\n\n sciChartSurface.renderableSeries.add(series)\n\n if (tooltip) {\n const rolloverModifier = new RolloverModifier({\n showTooltip: true,\n showAxisLabel: true\n })\n\n sciChartSurface.chartModifiers.add(rolloverModifier)\n }\n\n return dataSeries\n })\n\n // Stacked collections 추가\n if (stacked) {\n const stackedColumnCollection = new StackedColumnCollection(wasmContext)\n const stackedMountainCollection = new StackedMountainCollection(wasmContext)\n\n sciChartSurface.renderableSeries.asArray().forEach((series: any) => {\n if (series instanceof StackedColumnRenderableSeries) {\n stackedColumnCollection.add(series)\n } else if (series instanceof StackedMountainRenderableSeries) {\n stackedMountainCollection.add(series)\n }\n })\n\n if (stackedColumnCollection.size() > 0) {\n sciChartSurface.renderableSeries.add(stackedColumnCollection)\n }\n\n if (stackedMountainCollection.size() > 0) {\n sciChartSurface.renderableSeries.add(stackedMountainCollection)\n }\n }\n\n // 줌인/줌아웃 모디파이어 추가\n sciChartSurface.chartModifiers.add(\n // new RubberBandXyZoomModifier(),\n // new ZoomPanModifier({ xyDirection: EXyDirection.XDirection }),\n new ZoomPanModifier(),\n new MouseWheelZoomModifier({ xyDirection: EXyDirection.XDirection }),\n new ZoomExtentsModifier(),\n new XAxisDragModifier(),\n new YAxisDragModifier()\n )\n\n if (legend?.display) {\n const legendModifier = new LegendModifier({\n showCheckboxes: true,\n showSeriesMarkers: true,\n showLegend: true,\n placement:\n legend.position == 'top'\n ? ELegendPlacement.TopLeft\n : legend.position == 'left'\n ? ELegendPlacement.BottomLeft\n : legend.position == 'bottom'\n ? ELegendPlacement.BottomRight\n : ELegendPlacement.TopRight\n })\n\n sciChartSurface.chartModifiers.add(legendModifier)\n }\n\n return { chart, dataSeries: dataSeriesArray }\n}\n"]}
|
@@ -14,6 +14,11 @@
|
|
14
14
|
"date": 1720447467137,
|
15
15
|
"name": "logs/application-2024-07-08-23.log",
|
16
16
|
"hash": "985c4351af94b888a6eab9b1da33b24ff2fb9ddddbb8d199b9ac3e5d3c7e9424"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"date": 1720506139667,
|
20
|
+
"name": "logs/application-2024-07-09-15.log",
|
21
|
+
"hash": "a2aab5f434630a405dd0b9035b0496dc9b973a5f7f9108b6a8678c1f050f1e51"
|
17
22
|
}
|
18
23
|
],
|
19
24
|
"hashType": "sha256"
|
@@ -14,6 +14,11 @@
|
|
14
14
|
"date": 1720447469016,
|
15
15
|
"name": "logs/connections-2024-07-08-23.log",
|
16
16
|
"hash": "e4fe93e478639b437c486609da51f524b2ee8459e461302bcc9ba12c6f44efa9"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"date": 1720506141428,
|
20
|
+
"name": "logs/connections-2024-07-09-15.log",
|
21
|
+
"hash": "6b95c7e3c0c7447dec6b30b0ee67964fb9df9bea8da42d26cd31863b833d42fa"
|
17
22
|
}
|
18
23
|
],
|
19
24
|
"hashType": "sha256"
|
@@ -0,0 +1,210 @@
|
|
1
|
+
2024-07-09T15:22:20+09:00 info: File Storage is Ready.
|
2
|
+
2024-07-09T15:22:21+09:00 error: Error: Cannot find module 'oracledb'
|
3
|
+
Require stack:
|
4
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/oracle-connector.js
|
5
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/index.js
|
6
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/index.js
|
7
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/index.js
|
8
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
9
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
10
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
11
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
12
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
13
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
14
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
15
|
+
at require (node:internal/modules/helpers:179:18)
|
16
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/oracle-connector.js:7:20)
|
17
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
18
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
19
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
20
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
21
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
22
|
+
at require (node:internal/modules/helpers:179:18)
|
23
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/index.js:11:1)
|
24
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
25
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
26
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
27
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
28
|
+
2024-07-09T15:22:21+09:00 error: Error: Cannot find module 'oracledb'
|
29
|
+
Require stack:
|
30
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/oracle-procedure.js
|
31
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/index.js
|
32
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/index.js
|
33
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/index.js
|
34
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
35
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
36
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
37
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
38
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
39
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
40
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
41
|
+
at require (node:internal/modules/helpers:179:18)
|
42
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/oracle-procedure.js:9:20)
|
43
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
44
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
45
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
46
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
47
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
48
|
+
at require (node:internal/modules/helpers:179:18)
|
49
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/index.js:42:1)
|
50
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
51
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
52
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
53
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
54
|
+
2024-07-09T15:22:21+09:00 error: Error: Cannot find module '@thiagoelg/node-printer'
|
55
|
+
Require stack:
|
56
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/print.js
|
57
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/index.js
|
58
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/index.js
|
59
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
60
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
61
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
62
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
63
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
64
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
65
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
66
|
+
at require (node:internal/modules/helpers:179:18)
|
67
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/print.js:10:17)
|
68
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
69
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
70
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
71
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
72
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
73
|
+
at require (node:internal/modules/helpers:179:18)
|
74
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/index.js:4:17)
|
75
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
76
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
77
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
78
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
79
|
+
2024-07-09T15:22:22+09:00 error: Error: Cannot find module '@thiagoelg/node-printer'
|
80
|
+
Require stack:
|
81
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/middlewares/index.js
|
82
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/index.js
|
83
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
84
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
85
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
86
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
87
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
88
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
89
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
90
|
+
at require (node:internal/modules/helpers:179:18)
|
91
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/middlewares/index.js:8:19)
|
92
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
93
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
94
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
95
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
96
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
97
|
+
at require (node:internal/modules/helpers:179:18)
|
98
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/index.js:4:22)
|
99
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
100
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
101
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
102
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
103
|
+
2024-07-09T15:22:22+09:00 info: Default DataSource established
|
104
|
+
2024-07-09T15:22:23+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
105
|
+
2024-07-09T15:22:23+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
106
|
+
2024-07-09T15:28:12+09:00 info: File Storage is Ready.
|
107
|
+
2024-07-09T15:28:13+09:00 error: Error: Cannot find module 'oracledb'
|
108
|
+
Require stack:
|
109
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/oracle-connector.js
|
110
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/index.js
|
111
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/index.js
|
112
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/index.js
|
113
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
114
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
115
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
116
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
117
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
118
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
119
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
120
|
+
at require (node:internal/modules/helpers:179:18)
|
121
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/oracle-connector.js:7:20)
|
122
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
123
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
124
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
125
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
126
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
127
|
+
at require (node:internal/modules/helpers:179:18)
|
128
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/connector/index.js:11:1)
|
129
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
130
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
131
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
132
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
133
|
+
2024-07-09T15:28:13+09:00 error: Error: Cannot find module 'oracledb'
|
134
|
+
Require stack:
|
135
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/oracle-procedure.js
|
136
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/index.js
|
137
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/index.js
|
138
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/index.js
|
139
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
140
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
141
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
142
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
143
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
144
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
145
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
146
|
+
at require (node:internal/modules/helpers:179:18)
|
147
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/oracle-procedure.js:9:20)
|
148
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
149
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
150
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
151
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
152
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
153
|
+
at require (node:internal/modules/helpers:179:18)
|
154
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/integration-base/dist-server/engine/task/index.js:42:1)
|
155
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
156
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
157
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
158
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
159
|
+
2024-07-09T15:28:13+09:00 error: Error: Cannot find module '@thiagoelg/node-printer'
|
160
|
+
Require stack:
|
161
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/print.js
|
162
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/index.js
|
163
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/index.js
|
164
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
165
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
166
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
167
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
168
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
169
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
170
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
171
|
+
at require (node:internal/modules/helpers:179:18)
|
172
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/print.js:10:17)
|
173
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
174
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
175
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
176
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
177
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
178
|
+
at require (node:internal/modules/helpers:179:18)
|
179
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/board-service/dist-server/controllers/index.js:4:17)
|
180
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
181
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
182
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
183
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
184
|
+
2024-07-09T15:28:13+09:00 error: Error: Cannot find module '@thiagoelg/node-printer'
|
185
|
+
Require stack:
|
186
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/middlewares/index.js
|
187
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/index.js
|
188
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/lib/module-loader.js
|
189
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/env/index.js
|
190
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/dist-server/server-dev.js
|
191
|
+
- /Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/shell/bin/things-factory-dev
|
192
|
+
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
|
193
|
+
at Module._load (node:internal/modules/cjs/loader:986:27)
|
194
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
195
|
+
at require (node:internal/modules/helpers:179:18)
|
196
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/middlewares/index.js:8:19)
|
197
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
198
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
199
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
200
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
201
|
+
at Module.require (node:internal/modules/cjs/loader:1233:19)
|
202
|
+
at require (node:internal/modules/helpers:179:18)
|
203
|
+
at Object.<anonymous> (/Users/super/Documents/GitHub/operato-scene/node_modules/@things-factory/print-service/dist-server/index.js:4:22)
|
204
|
+
at Module._compile (node:internal/modules/cjs/loader:1358:14)
|
205
|
+
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
|
206
|
+
at Module.load (node:internal/modules/cjs/loader:1208:32)
|
207
|
+
at Module._load (node:internal/modules/cjs/loader:1024:12)
|
208
|
+
2024-07-09T15:28:14+09:00 info: Default DataSource established
|
209
|
+
2024-07-09T15:28:15+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
210
|
+
2024-07-09T15:28:15+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
@@ -0,0 +1,100 @@
|
|
1
|
+
2024-07-09T15:22:23+09:00 info: Initializing ConnectionManager...
|
2
|
+
2024-07-09T15:22:23+09:00 info: Connector 'echo-back-server' started to ready
|
3
|
+
2024-07-09T15:22:23+09:00 info: Connector 'echo-back' started to ready
|
4
|
+
2024-07-09T15:22:23+09:00 info: Connector 'http-connector' started to ready
|
5
|
+
2024-07-09T15:22:23+09:00 info: Connector 'graphql-connector' started to ready
|
6
|
+
2024-07-09T15:22:23+09:00 info: Connector 'sqlite-connector' started to ready
|
7
|
+
2024-07-09T15:22:23+09:00 info: Connector 'postgresql-connector' started to ready
|
8
|
+
2024-07-09T15:22:23+09:00 info: Connector 'mqtt-connector' started to ready
|
9
|
+
2024-07-09T15:22:23+09:00 info: Connector 'mssql-connector' started to ready
|
10
|
+
2024-07-09T15:22:23+09:00 info: Connector 'oracle-connector' started to ready
|
11
|
+
2024-07-09T15:22:23+09:00 info: Connector 'mysql-connector' started to ready
|
12
|
+
2024-07-09T15:22:23+09:00 info: Connector 'socket-server' started to ready
|
13
|
+
2024-07-09T15:22:23+09:00 info: Connector 'operato-connector' started to ready
|
14
|
+
2024-07-09T15:22:23+09:00 info: Connector 'email-connector' started to ready
|
15
|
+
2024-07-09T15:22:23+09:00 info: Connector 'influxdb-connector' started to ready
|
16
|
+
2024-07-09T15:22:23+09:00 info: Connector 'msgraph-connector' started to ready
|
17
|
+
2024-07-09T15:22:23+09:00 info: Connector 'proxy-connector' started to ready
|
18
|
+
2024-07-09T15:22:23+09:00 info: echo-back-servers are ready
|
19
|
+
2024-07-09T15:22:23+09:00 info: echo-back connections are ready
|
20
|
+
2024-07-09T15:22:23+09:00 info: http-connector connections are ready
|
21
|
+
2024-07-09T15:22:23+09:00 info: graphql-connector connections are ready
|
22
|
+
2024-07-09T15:22:23+09:00 info: sqlite-connector connections are ready
|
23
|
+
2024-07-09T15:22:23+09:00 info: postgresql-connector connections are ready
|
24
|
+
2024-07-09T15:22:23+09:00 info: mqtt-connector connections are ready
|
25
|
+
2024-07-09T15:22:23+09:00 info: mssql-connector connections are ready
|
26
|
+
2024-07-09T15:22:23+09:00 info: oracle-connector connections are ready
|
27
|
+
2024-07-09T15:22:23+09:00 info: mysql-connector connections are ready
|
28
|
+
2024-07-09T15:22:23+09:00 info: socket servers are ready
|
29
|
+
2024-07-09T15:22:23+09:00 info: operato-connector connections are ready
|
30
|
+
2024-07-09T15:22:23+09:00 info: email connections are ready
|
31
|
+
2024-07-09T15:22:23+09:00 info: influxdb connections are ready
|
32
|
+
2024-07-09T15:22:23+09:00 info: msgraph-connector connections are ready
|
33
|
+
2024-07-09T15:22:23+09:00 info: proxy-connector connections are ready
|
34
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'echo-back-server' ready
|
35
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'echo-back' ready
|
36
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'http-connector' ready
|
37
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'graphql-connector' ready
|
38
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'sqlite-connector' ready
|
39
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'postgresql-connector' ready
|
40
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'mqtt-connector' ready
|
41
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'mssql-connector' ready
|
42
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'oracle-connector' ready
|
43
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'mysql-connector' ready
|
44
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'socket-server' ready
|
45
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'operato-connector' ready
|
46
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'email-connector' ready
|
47
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'influxdb-connector' ready
|
48
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'msgraph-connector' ready
|
49
|
+
2024-07-09T15:22:23+09:00 info: All connector for 'proxy-connector' ready
|
50
|
+
2024-07-09T15:22:23+09:00 info: ConnectionManager initialization done:
|
51
|
+
2024-07-09T15:28:15+09:00 info: Initializing ConnectionManager...
|
52
|
+
2024-07-09T15:28:15+09:00 info: Connector 'echo-back-server' started to ready
|
53
|
+
2024-07-09T15:28:15+09:00 info: Connector 'echo-back' started to ready
|
54
|
+
2024-07-09T15:28:15+09:00 info: Connector 'http-connector' started to ready
|
55
|
+
2024-07-09T15:28:15+09:00 info: Connector 'graphql-connector' started to ready
|
56
|
+
2024-07-09T15:28:15+09:00 info: Connector 'sqlite-connector' started to ready
|
57
|
+
2024-07-09T15:28:15+09:00 info: Connector 'postgresql-connector' started to ready
|
58
|
+
2024-07-09T15:28:15+09:00 info: Connector 'mqtt-connector' started to ready
|
59
|
+
2024-07-09T15:28:15+09:00 info: Connector 'mssql-connector' started to ready
|
60
|
+
2024-07-09T15:28:15+09:00 info: Connector 'oracle-connector' started to ready
|
61
|
+
2024-07-09T15:28:15+09:00 info: Connector 'mysql-connector' started to ready
|
62
|
+
2024-07-09T15:28:15+09:00 info: Connector 'socket-server' started to ready
|
63
|
+
2024-07-09T15:28:15+09:00 info: Connector 'operato-connector' started to ready
|
64
|
+
2024-07-09T15:28:15+09:00 info: Connector 'email-connector' started to ready
|
65
|
+
2024-07-09T15:28:15+09:00 info: Connector 'influxdb-connector' started to ready
|
66
|
+
2024-07-09T15:28:15+09:00 info: Connector 'msgraph-connector' started to ready
|
67
|
+
2024-07-09T15:28:15+09:00 info: Connector 'proxy-connector' started to ready
|
68
|
+
2024-07-09T15:28:15+09:00 info: echo-back-servers are ready
|
69
|
+
2024-07-09T15:28:15+09:00 info: echo-back connections are ready
|
70
|
+
2024-07-09T15:28:15+09:00 info: http-connector connections are ready
|
71
|
+
2024-07-09T15:28:15+09:00 info: graphql-connector connections are ready
|
72
|
+
2024-07-09T15:28:15+09:00 info: sqlite-connector connections are ready
|
73
|
+
2024-07-09T15:28:15+09:00 info: postgresql-connector connections are ready
|
74
|
+
2024-07-09T15:28:15+09:00 info: mqtt-connector connections are ready
|
75
|
+
2024-07-09T15:28:15+09:00 info: mssql-connector connections are ready
|
76
|
+
2024-07-09T15:28:15+09:00 info: oracle-connector connections are ready
|
77
|
+
2024-07-09T15:28:15+09:00 info: mysql-connector connections are ready
|
78
|
+
2024-07-09T15:28:15+09:00 info: socket servers are ready
|
79
|
+
2024-07-09T15:28:15+09:00 info: operato-connector connections are ready
|
80
|
+
2024-07-09T15:28:15+09:00 info: email connections are ready
|
81
|
+
2024-07-09T15:28:15+09:00 info: influxdb connections are ready
|
82
|
+
2024-07-09T15:28:15+09:00 info: msgraph-connector connections are ready
|
83
|
+
2024-07-09T15:28:15+09:00 info: proxy-connector connections are ready
|
84
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'echo-back-server' ready
|
85
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'echo-back' ready
|
86
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'http-connector' ready
|
87
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'graphql-connector' ready
|
88
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'sqlite-connector' ready
|
89
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'postgresql-connector' ready
|
90
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'mqtt-connector' ready
|
91
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'mssql-connector' ready
|
92
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'oracle-connector' ready
|
93
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'mysql-connector' ready
|
94
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'socket-server' ready
|
95
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'operato-connector' ready
|
96
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'email-connector' ready
|
97
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'influxdb-connector' ready
|
98
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'msgraph-connector' ready
|
99
|
+
2024-07-09T15:28:15+09:00 info: All connector for 'proxy-connector' ready
|
100
|
+
2024-07-09T15:28:15+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.
|
4
|
+
"version": "7.0.5",
|
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": "
|
62
|
+
"gitHead": "25e5f2c596ab66824c102dbaf0c0d429f372cb3a"
|
63
63
|
}
|
@@ -31,7 +31,9 @@ import {
|
|
31
31
|
WaveAnimation,
|
32
32
|
LegendModifier,
|
33
33
|
ELegendPlacement,
|
34
|
-
EXyDirection
|
34
|
+
EXyDirection,
|
35
|
+
XAxisDragModifier,
|
36
|
+
YAxisDragModifier
|
35
37
|
} from 'scichart'
|
36
38
|
|
37
39
|
SciChartSurface.UseCommunityLicense()
|
@@ -55,14 +57,21 @@ function getThemeFromBrowser() {
|
|
55
57
|
return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
56
58
|
}
|
57
59
|
|
58
|
-
function
|
60
|
+
function convertColor(color: string | string[] | undefined, defaultColor?: string) {
|
61
|
+
const tinyColor = new TinyColor(color as string)
|
62
|
+
return tinyColor.toHex8String() || defaultColor
|
63
|
+
}
|
64
|
+
|
65
|
+
function createPointMarker(wasmContext: any, dataset: any, color: string = DEFAULT_COLOR) {
|
66
|
+
const { pointStyle, pointRadius = POINT_MARKER_SIZE } = dataset || {}
|
67
|
+
|
59
68
|
if (!pointStyle) {
|
60
69
|
return
|
61
70
|
}
|
62
71
|
|
63
72
|
const pointMarkerOptions = {
|
64
|
-
width:
|
65
|
-
height:
|
73
|
+
width: pointRadius,
|
74
|
+
height: pointRadius,
|
66
75
|
strokeThickness: STROKE_THICKNESS,
|
67
76
|
fill: color,
|
68
77
|
stroke: DEFAULT_STROKE
|
@@ -124,7 +133,7 @@ function createAxis(
|
|
124
133
|
|
125
134
|
return isXAxis
|
126
135
|
? new DateTimeNumericAxis(wasmContext, { ...axisOptions, labelProvider: new SmartDateLabelProvider() })
|
127
|
-
: new NumericAxis(wasmContext, { ...axisOptions, id: `yAxis${index}` })
|
136
|
+
: new NumericAxis(wasmContext, { ...axisOptions, id: index !== 0 ? `yAxis${index}` : undefined })
|
128
137
|
}
|
129
138
|
|
130
139
|
function createSeries(
|
@@ -133,7 +142,7 @@ function createSeries(
|
|
133
142
|
index: number,
|
134
143
|
stacked: boolean,
|
135
144
|
animation: boolean,
|
136
|
-
yAxisId: string
|
145
|
+
yAxisId: string | undefined
|
137
146
|
) {
|
138
147
|
const dataSeries = new XyDataSeries(wasmContext, {
|
139
148
|
dataSeriesName: dataset.label,
|
@@ -141,10 +150,10 @@ function createSeries(
|
|
141
150
|
})
|
142
151
|
|
143
152
|
const stackGroupId = dataset.stack || `__stack${index}__`
|
144
|
-
const color = (dataset.backgroundColor
|
145
|
-
const strokeColor = (dataset.color
|
153
|
+
const color = convertColor(dataset.backgroundColor, DEFAULT_COLOR)
|
154
|
+
const strokeColor = convertColor(dataset.color, DEFAULT_COLOR)
|
146
155
|
const borderWidth = dataset.borderWidth || STROKE_THICKNESS
|
147
|
-
const pointMarker = createPointMarker(wasmContext, dataset
|
156
|
+
const pointMarker = createPointMarker(wasmContext, dataset, strokeColor)
|
148
157
|
|
149
158
|
let series
|
150
159
|
if (dataset.type === 'bar') {
|
@@ -242,7 +251,7 @@ export async function buildSciChart(
|
|
242
251
|
|
243
252
|
// 시리즈 설정
|
244
253
|
const dataSeriesArray = datasets.map((dataset, index) => {
|
245
|
-
const yAxisId = dataset.yAxisID
|
254
|
+
const yAxisId = dataset.yAxisID == 'right' ? 'yAxis1' : undefined
|
246
255
|
const { series, dataSeries } = createSeries(wasmContext, dataset, index, !!stacked, !!animation, yAxisId)
|
247
256
|
|
248
257
|
sciChartSurface.renderableSeries.add(series)
|
@@ -283,10 +292,13 @@ export async function buildSciChart(
|
|
283
292
|
|
284
293
|
// 줌인/줌아웃 모디파이어 추가
|
285
294
|
sciChartSurface.chartModifiers.add(
|
286
|
-
new RubberBandXyZoomModifier(),
|
295
|
+
// new RubberBandXyZoomModifier(),
|
287
296
|
// new ZoomPanModifier({ xyDirection: EXyDirection.XDirection }),
|
297
|
+
new ZoomPanModifier(),
|
288
298
|
new MouseWheelZoomModifier({ xyDirection: EXyDirection.XDirection }),
|
289
|
-
new ZoomExtentsModifier()
|
299
|
+
new ZoomExtentsModifier(),
|
300
|
+
new XAxisDragModifier(),
|
301
|
+
new YAxisDragModifier()
|
290
302
|
)
|
291
303
|
|
292
304
|
if (legend?.display) {
|