@eclipse-scout/chart 23.1.0-beta.4 → 23.1.2
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/LICENSE +277 -210
- package/README.md +4 -8
- package/dist/d.ts/chart/AbstractChartRenderer.d.ts.map +1 -1
- package/dist/d.ts/chart/AbstractSvgChartRenderer.d.ts.map +1 -1
- package/dist/d.ts/chart/Chart.d.ts +2 -1
- package/dist/d.ts/chart/Chart.d.ts.map +1 -1
- package/dist/d.ts/chart/ChartAdapter.d.ts.map +1 -1
- package/dist/d.ts/chart/ChartEventMap.d.ts.map +1 -1
- package/dist/d.ts/chart/ChartJsRenderer.d.ts +19 -20
- package/dist/d.ts/chart/ChartJsRenderer.d.ts.map +1 -1
- package/dist/d.ts/chart/ChartLayout.d.ts.map +1 -1
- package/dist/d.ts/chart/ChartModel.d.ts.map +1 -1
- package/dist/d.ts/chart/FulfillmentChartRenderer.d.ts.map +1 -1
- package/dist/d.ts/chart/SalesfunnelChartRenderer.d.ts.map +1 -1
- package/dist/d.ts/chart/SpeedoChartRenderer.d.ts.map +1 -1
- package/dist/d.ts/chart/VennAsync3Calculator.d.ts.map +1 -1
- package/dist/d.ts/chart/VennChartRenderer.d.ts.map +1 -1
- package/dist/d.ts/chart/VennCircle.d.ts.map +1 -1
- package/dist/d.ts/chart/VennCircleHelper.d.ts.map +1 -1
- package/dist/d.ts/form/fields/chartfield/ChartField.d.ts.map +1 -1
- package/dist/d.ts/form/fields/chartfield/ChartFieldAdapter.d.ts.map +1 -1
- package/dist/d.ts/form/fields/chartfield/ChartFieldModel.d.ts.map +1 -1
- package/dist/d.ts/index.d.ts.map +1 -1
- package/dist/d.ts/table/controls/ChartTableControl.d.ts.map +1 -1
- package/dist/d.ts/table/controls/ChartTableControlAdapter.d.ts.map +1 -1
- package/dist/d.ts/table/controls/ChartTableControlEventMap.d.ts.map +1 -1
- package/dist/d.ts/table/controls/ChartTableControlLayout.d.ts.map +1 -1
- package/dist/d.ts/table/controls/ChartTableControlModel.d.ts.map +1 -1
- package/dist/d.ts/table/controls/ChartTableUserFilter.d.ts +1 -2
- package/dist/d.ts/table/controls/ChartTableUserFilter.d.ts.map +1 -1
- package/dist/d.ts/table/controls/ChartTableUserFilterModel.d.ts.map +1 -1
- package/dist/d.ts/tile/ChartFieldTile.d.ts.map +1 -1
- package/dist/d.ts/tile/ChartFieldTileAdapter.d.ts.map +1 -1
- package/dist/d.ts/tile/ChartFieldTileModel.d.ts.map +1 -1
- package/dist/eclipse-scout-chart-dee874ed46aaa3d247de.min.js +3 -0
- package/dist/eclipse-scout-chart-dee874ed46aaa3d247de.min.js.map +1 -0
- package/dist/eclipse-scout-chart-theme-56ba6667e592ef147869.min.css +1 -0
- package/dist/eclipse-scout-chart-theme-dark-593955eea95984c5aa62.min.css +1 -0
- package/dist/eclipse-scout-chart-theme-dark.css +52 -58
- package/dist/eclipse-scout-chart-theme-dark.css.map +1 -1
- package/dist/eclipse-scout-chart-theme.css +40 -44
- package/dist/eclipse-scout-chart-theme.css.map +1 -1
- package/dist/eclipse-scout-chart.esm-558d382efe651ca2215b.min.js +3 -0
- package/dist/eclipse-scout-chart.esm-558d382efe651ca2215b.min.js.map +1 -0
- package/dist/eclipse-scout-chart.esm.js +142 -150
- package/dist/eclipse-scout-chart.esm.js.map +1 -1
- package/dist/eclipse-scout-chart.js +142 -150
- package/dist/eclipse-scout-chart.js.map +1 -1
- package/dist/file-list +6 -6
- package/package.json +4 -4
- package/src/chart/AbstractChartRenderer.ts +6 -7
- package/src/chart/AbstractSvgChartRenderer.ts +6 -7
- package/src/chart/Chart.less +8 -8
- package/src/chart/Chart.ts +16 -8
- package/src/chart/ChartAdapter.ts +6 -7
- package/src/chart/ChartEventMap.ts +6 -7
- package/src/chart/ChartJsRenderer.ts +26 -27
- package/src/chart/ChartLayout.ts +6 -7
- package/src/chart/ChartModel.ts +6 -7
- package/src/chart/FulfillmentChartRenderer.ts +6 -7
- package/src/chart/SalesfunnelChartRenderer.ts +6 -7
- package/src/chart/SpeedoChartRenderer.ts +6 -7
- package/src/chart/VennAsync3Calculator.ts +6 -7
- package/src/chart/VennChartRenderer.ts +6 -7
- package/src/chart/VennCircle.ts +6 -7
- package/src/chart/VennCircleHelper.ts +6 -7
- package/src/eclipse-scout-chart-theme-dark.less +7 -8
- package/src/eclipse-scout-chart-theme.less +7 -8
- package/src/form/fields/chartfield/ChartField.ts +6 -7
- package/src/form/fields/chartfield/ChartFieldAdapter.ts +6 -7
- package/src/form/fields/chartfield/ChartFieldModel.ts +6 -7
- package/src/index-dark.less +6 -7
- package/src/index.less +6 -7
- package/src/index.ts +6 -7
- package/src/style/colors-dark.less +7 -8
- package/src/style/colors.less +6 -7
- package/src/table/controls/ChartTableControl.less +6 -7
- package/src/table/controls/ChartTableControl.ts +6 -7
- package/src/table/controls/ChartTableControlAdapter.ts +6 -7
- package/src/table/controls/ChartTableControlEventMap.ts +6 -7
- package/src/table/controls/ChartTableControlLayout.ts +6 -7
- package/src/table/controls/ChartTableControlModel.ts +6 -7
- package/src/table/controls/ChartTableUserFilter.ts +7 -8
- package/src/table/controls/ChartTableUserFilterModel.ts +6 -7
- package/src/tile/ChartFieldTile.less +6 -7
- package/src/tile/ChartFieldTile.ts +6 -7
- package/src/tile/ChartFieldTileAdapter.ts +6 -7
- package/src/tile/ChartFieldTileModel.ts +6 -7
- package/dist/eclipse-scout-chart-fae6f958a044232e659c.min.js +0 -3
- package/dist/eclipse-scout-chart-fae6f958a044232e659c.min.js.map +0 -1
- package/dist/eclipse-scout-chart-theme-dark-89bcf2022056cbf8e371.min.css +0 -1
- package/dist/eclipse-scout-chart-theme-e25b5923d4dba5f5ca7e.min.css +0 -1
- package/dist/eclipse-scout-chart.esm-2119cfea86a9d6f34a35.min.js +0 -3
- package/dist/eclipse-scout-chart.esm-2119cfea86a9d6f34a35.min.js.map +0 -1
package/dist/file-list
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
eclipse-scout-chart-
|
|
2
|
-
eclipse-scout-chart-
|
|
3
|
-
eclipse-scout-chart-theme-
|
|
1
|
+
eclipse-scout-chart-dee874ed46aaa3d247de.min.js
|
|
2
|
+
eclipse-scout-chart-dee874ed46aaa3d247de.min.js.map
|
|
3
|
+
eclipse-scout-chart-theme-56ba6667e592ef147869.min.css
|
|
4
|
+
eclipse-scout-chart-theme-dark-593955eea95984c5aa62.min.css
|
|
4
5
|
eclipse-scout-chart-theme-dark.css
|
|
5
6
|
eclipse-scout-chart-theme-dark.css.map
|
|
6
|
-
eclipse-scout-chart-theme-e25b5923d4dba5f5ca7e.min.css
|
|
7
7
|
eclipse-scout-chart-theme.css
|
|
8
8
|
eclipse-scout-chart-theme.css.map
|
|
9
|
-
eclipse-scout-chart.esm-
|
|
10
|
-
eclipse-scout-chart.esm-
|
|
9
|
+
eclipse-scout-chart.esm-558d382efe651ca2215b.min.js
|
|
10
|
+
eclipse-scout-chart.esm-558d382efe651ca2215b.min.js.map
|
|
11
11
|
eclipse-scout-chart.esm.js
|
|
12
12
|
eclipse-scout-chart.esm.js.map
|
|
13
13
|
eclipse-scout-chart.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-scout/chart",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.2",
|
|
4
4
|
"description": "Eclipse Scout chart",
|
|
5
5
|
"author": "BSI Business Systems Integration AG",
|
|
6
6
|
"homepage": "https://www.eclipse.org/scout",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/eclipse-scout/scout.rt.git"
|
|
10
10
|
},
|
|
11
|
-
"license": "EPL-
|
|
11
|
+
"license": "EPL-2.0",
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=18.12.1",
|
|
14
14
|
"npm": ">=9.1.1",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"src"
|
|
27
27
|
],
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@eclipse-scout/cli": "23.1.
|
|
29
|
+
"@eclipse-scout/cli": "23.1.2",
|
|
30
30
|
"@eclipse-scout/releng": "^22.0.0",
|
|
31
31
|
"jasmine-core": "4.5.0",
|
|
32
32
|
"jasmine-jquery": "2.1.1",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/jasmine-jquery": "1.5.34"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eclipse-scout/core": "23.1.
|
|
39
|
+
"@eclipse-scout/core": "23.1.2",
|
|
40
40
|
"jquery": "3.6.0",
|
|
41
41
|
"chart.js": "3.9.1",
|
|
42
42
|
"chartjs-plugin-datalabels": "2.1.0"
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
import {Chart} from '../index';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {ObjectFactory, strings, styles} from '@eclipse-scout/core';
|
|
12
11
|
import $ from 'jquery';
|
package/src/chart/Chart.less
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
#scout {
|
|
12
11
|
/* Mixin to use the correct tile background color for the given attribute (use 'fill' or 'stroke') */
|
|
@@ -467,7 +466,8 @@
|
|
|
467
466
|
& > .elements {
|
|
468
467
|
#scout.chart-label-grid-colors();
|
|
469
468
|
|
|
470
|
-
& > .grid
|
|
469
|
+
& > .grid,
|
|
470
|
+
& > .scale-ticks {
|
|
471
471
|
fill: darken(@chart-axis-line-color, 15);
|
|
472
472
|
|
|
473
473
|
.inverted > & {
|
package/src/chart/Chart.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {AbstractChartRenderer, ChartEventMap, ChartJsRenderer, ChartLayout, ChartModel, FulfillmentChartRenderer, SalesfunnelChartRenderer, SpeedoChartRenderer, VennChartRenderer} from '../index';
|
|
12
11
|
import {arrays, ColorScheme, colorSchemes, EnumObject, HtmlComponent, InitModelOf, objects, Widget} from '@eclipse-scout/core';
|
|
13
12
|
import {GreenAreaPosition} from './SpeedoChartRenderer';
|
|
14
13
|
import {ChartConfiguration, LinearScaleOptions, RadialLinearScaleOptions} from 'chart.js';
|
|
14
|
+
import $ from 'jquery';
|
|
15
15
|
|
|
16
16
|
export class Chart extends Widget implements ChartModel {
|
|
17
17
|
declare model: ChartModel;
|
|
@@ -78,6 +78,7 @@ export class Chart extends Widget implements ChartModel {
|
|
|
78
78
|
protected override _init(model: InitModelOf<this>) {
|
|
79
79
|
super._init(model);
|
|
80
80
|
this.setConfig(this.config);
|
|
81
|
+
this._setData(this.data);
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
protected override _render() {
|
|
@@ -121,6 +122,13 @@ export class Chart extends Widget implements ChartModel {
|
|
|
121
122
|
this.setCheckedItems(this.checkedItems);
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
protected _setData(data: ChartData) {
|
|
126
|
+
if (data) {
|
|
127
|
+
data = $.extend({axes: []}, data);
|
|
128
|
+
}
|
|
129
|
+
this._setProperty('data', data);
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
protected _renderData() {
|
|
125
133
|
this.updateChart({
|
|
126
134
|
requestAnimation: true,
|
|
@@ -392,7 +400,7 @@ export type ChartAxis = {
|
|
|
392
400
|
};
|
|
393
401
|
export type ChartValueGroup = {
|
|
394
402
|
type?: string;
|
|
395
|
-
groupName
|
|
403
|
+
groupName?: string;
|
|
396
404
|
values: number[] | Record<string, number>[];
|
|
397
405
|
colorHexValue?: string;
|
|
398
406
|
cssClass?: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {Event, ModelAdapter} from '@eclipse-scout/core';
|
|
12
11
|
import {Chart} from '../index';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {Event as ScoutEvent, PropertyChangeEvent, WidgetEventMap} from '@eclipse-scout/core';
|
|
12
11
|
import {AbstractChartRenderer, Chart} from '../index';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {AbstractChartRenderer, Chart} from '../index';
|
|
12
11
|
import {
|
|
@@ -2757,24 +2756,24 @@ export class ChartJsRenderer extends AbstractChartRenderer {
|
|
|
2757
2756
|
}
|
|
2758
2757
|
}
|
|
2759
2758
|
|
|
2760
|
-
type LabelFormatter = (label: number | string) => string;
|
|
2761
|
-
type AxisFitter = (axis: Scale<CartesianScaleOptions>) => void;
|
|
2762
|
-
type DatalabelsDisplayHandler = (context: Context) => boolean;
|
|
2763
|
-
type DatalabelsFormatter = (value: number | ScatterDataPoint | BubbleDataPoint, context: Context) => string;
|
|
2764
|
-
type DatalabelBackgroundColorHandler = (context: Context) => Color;
|
|
2765
|
-
type RadialChartDatalabelsFormatter = (value: number, context: Context) => string;
|
|
2766
|
-
type LegendLabelGenerator = (chart: ChartJsChart) => LegendItem[];
|
|
2767
|
-
type ChartEventHandler = (event: ChartEvent, items: ActiveElement[]) => void;
|
|
2768
|
-
type LegendEventHandler = (e: ChartEvent, legendItem: LegendItem, legend: LegendElement<any>) => void;
|
|
2769
|
-
type ResizeHandler = (chart: ChartJsChart | ChartJs, size: { width: number; height: number }) => void;
|
|
2770
|
-
type TooltipTitleGenerator = (tooltipItems: TooltipItem<any>[]) => string | string[];
|
|
2771
|
-
type TooltipItemsGenerator = (tooltipItems: TooltipItem<any>[], tooltipLabel: TooltipLabelGenerator, tooltipLabelValue: TooltipLabelValueGenerator, tooltipColor: TooltipLabelColorGenerator) => string;
|
|
2772
|
-
type TooltipLabelGenerator = (tooltipItem: TooltipItem<any>) => string | string[];
|
|
2773
|
-
type TooltipLabelValueGenerator = (tooltipItem: TooltipItem<any>) => string | { x: string; y: string };
|
|
2774
|
-
type TooltipLabelColorGenerator = (tooltipItem: TooltipItem<any>) => TooltipLabelStyle;
|
|
2775
|
-
type TooltipRenderer = (context: { chart: ChartJs; tooltip: TooltipModel<any> }) => void;
|
|
2776
|
-
|
|
2777
|
-
type DatasetColors = {
|
|
2759
|
+
export type LabelFormatter = (label: number | string) => string;
|
|
2760
|
+
export type AxisFitter = (axis: Scale<CartesianScaleOptions>) => void;
|
|
2761
|
+
export type DatalabelsDisplayHandler = (context: Context) => boolean;
|
|
2762
|
+
export type DatalabelsFormatter = (value: number | ScatterDataPoint | BubbleDataPoint, context: Context) => string;
|
|
2763
|
+
export type DatalabelBackgroundColorHandler = (context: Context) => Color;
|
|
2764
|
+
export type RadialChartDatalabelsFormatter = (value: number, context: Context) => string;
|
|
2765
|
+
export type LegendLabelGenerator = (chart: ChartJsChart) => LegendItem[];
|
|
2766
|
+
export type ChartEventHandler = (event: ChartEvent, items: ActiveElement[]) => void;
|
|
2767
|
+
export type LegendEventHandler = (e: ChartEvent, legendItem: LegendItem, legend: LegendElement<any>) => void;
|
|
2768
|
+
export type ResizeHandler = (chart: ChartJsChart | ChartJs, size: { width: number; height: number }) => void;
|
|
2769
|
+
export type TooltipTitleGenerator = (tooltipItems: TooltipItem<any>[]) => string | string[];
|
|
2770
|
+
export type TooltipItemsGenerator = (tooltipItems: TooltipItem<any>[], tooltipLabel: TooltipLabelGenerator, tooltipLabelValue: TooltipLabelValueGenerator, tooltipColor: TooltipLabelColorGenerator) => string;
|
|
2771
|
+
export type TooltipLabelGenerator = (tooltipItem: TooltipItem<any>) => string | string[];
|
|
2772
|
+
export type TooltipLabelValueGenerator = (tooltipItem: TooltipItem<any>) => string | { x: string; y: string };
|
|
2773
|
+
export type TooltipLabelColorGenerator = (tooltipItem: TooltipItem<any>) => TooltipLabelStyle;
|
|
2774
|
+
export type TooltipRenderer = (context: { chart: ChartJs; tooltip: TooltipModel<any> }) => void;
|
|
2775
|
+
|
|
2776
|
+
export type DatasetColors = {
|
|
2778
2777
|
backgroundColors?: string[];
|
|
2779
2778
|
borderColors?: string[];
|
|
2780
2779
|
hoverBackgroundColors?: string[];
|
|
@@ -2786,11 +2785,11 @@ type DatasetColors = {
|
|
|
2786
2785
|
datalabelColor?: string;
|
|
2787
2786
|
};
|
|
2788
2787
|
|
|
2789
|
-
type Boundary = { maxValue: number; minValue: number };
|
|
2788
|
+
export type Boundary = { maxValue: number; minValue: number };
|
|
2790
2789
|
|
|
2791
2790
|
// extend chart.js
|
|
2792
2791
|
|
|
2793
|
-
type ChartJsChart = Omit<ChartJs, 'config'> & {
|
|
2792
|
+
export type ChartJsChart = Omit<ChartJs, 'config'> & {
|
|
2794
2793
|
config: ChartConfig;
|
|
2795
2794
|
legend?: LegendElement<any>;
|
|
2796
2795
|
};
|
package/src/chart/ChartLayout.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {AbstractLayout} from '@eclipse-scout/core';
|
|
12
11
|
import {UpdateChartOptions, Chart} from '../index';
|
package/src/chart/ChartModel.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {WidgetModel} from '@eclipse-scout/core';
|
|
12
11
|
import {ChartConfig, ChartData, ClickObject} from './Chart';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {objects, scout} from '@eclipse-scout/core';
|
|
12
11
|
import {AbstractSvgChartRenderer, Chart} from '../index';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {objects, strings} from '@eclipse-scout/core';
|
|
12
11
|
import {AbstractSvgChartRenderer, Chart} from '../index';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {EnumObject, numbers, RoundingMode} from '@eclipse-scout/core';
|
|
12
11
|
import {AbstractSvgChartRenderer, Chart} from '../index';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
// place venn 3 by simulation
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {AbstractSvgChartRenderer, Chart, VennAsync3Calculator, VennCircle, VennCircleHelper} from '../index';
|
|
12
11
|
import $ from 'jquery';
|
package/src/chart/VennCircle.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
export class VennCircle {
|
|
12
11
|
labels: Label[];
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {VennCircle} from '../index';
|
|
12
11
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
@import (reference) "~@eclipse-scout/core/src/index-dark";
|
|
12
|
-
@import "index-dark";
|
|
11
|
+
@import "index-dark";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
@import (reference) "~@eclipse-scout/core/src/index";
|
|
12
|
-
@import "index";
|
|
11
|
+
@import "index";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {FormField} from '@eclipse-scout/core';
|
|
12
11
|
import {Chart, ChartFieldModel} from '../../../index';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {FormFieldAdapter} from '@eclipse-scout/core';
|
|
12
11
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* https://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
import {FormFieldModel, ObjectOrChildModel} from '@eclipse-scout/core';
|
|
12
11
|
import {Chart} from '../../../index';
|
package/src/index-dark.less
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
@import "index";
|
|
12
11
|
@import "style/colors-dark";
|
package/src/index.less
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010
|
|
3
|
-
* All rights reserved. This program and the accompanying materials
|
|
4
|
-
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
|
-
* which accompanies this distribution, and is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-v10.html
|
|
2
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
7
3
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
9
|
*/
|
|
11
10
|
@import "style/colors";
|
|
12
11
|
@import "chart/Chart";
|