@eclipse-scout/chart 22.0.29 → 22.0.34

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/dist/file-list CHANGED
@@ -1,8 +1,8 @@
1
- eclipse-scout-chart-4ad3082843cacd9fd867.min.js
2
- eclipse-scout-chart-4ad3082843cacd9fd867.min.js.LICENSE.txt
3
- eclipse-scout-chart-4ad3082843cacd9fd867.min.js.map
4
- eclipse-scout-chart-theme-4801a2aff3179586b17c.min.css
5
- eclipse-scout-chart-theme-dark-7429dc23c823152027f3.min.css
1
+ eclipse-scout-chart-bc08151d11e1909eff6c.min.js
2
+ eclipse-scout-chart-bc08151d11e1909eff6c.min.js.LICENSE.txt
3
+ eclipse-scout-chart-bc08151d11e1909eff6c.min.js.map
4
+ eclipse-scout-chart-theme-79622289bda68b525e3e.min.css
5
+ eclipse-scout-chart-theme-dark-1de09c03e3dc40a9529a.min.css
6
6
  eclipse-scout-chart-theme-dark.css
7
7
  eclipse-scout-chart-theme-dark.css.map
8
8
  eclipse-scout-chart-theme.css
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-scout/chart",
3
- "version": "22.0.29",
3
+ "version": "22.0.34",
4
4
  "description": "Eclipse Scout chart",
5
5
  "author": "BSI Business Systems Integration AG",
6
6
  "homepage": "https://www.eclipse.org/scout",
@@ -25,13 +25,13 @@
25
25
  "src"
26
26
  ],
27
27
  "devDependencies": {
28
- "@eclipse-scout/cli": "22.0.29",
28
+ "@eclipse-scout/cli": "22.0.34",
29
29
  "@eclipse-scout/releng": "^22.0.0",
30
30
  "jasmine-core": "3.10.1",
31
31
  "karma": "6.3.20"
32
32
  },
33
33
  "dependencies": {
34
- "@eclipse-scout/core": "22.0.29",
34
+ "@eclipse-scout/core": "22.0.34",
35
35
  "jquery": "3.6.0",
36
36
  "chart.js": "3.7.0",
37
37
  "chartjs-plugin-datalabels": "2.0.0"
@@ -3,7 +3,7 @@
3
3
  * All rights reserved. This program and the accompanying materials
4
4
  * are made available under the terms of the Eclipse Public License v1.0
5
5
  * which accompanies this distribution, and is available at
6
- * http://www.eclipse.org/legal/epl-v10.html
6
+ * https://www.eclipse.org/legal/epl-v10.html
7
7
  *
8
8
  * Contributors:
9
9
  * BSI Business Systems Integration AG - initial API and implementation
@@ -62,7 +62,8 @@ export default class Chart extends Widget {
62
62
  DOUGHNUT: 'doughnut',
63
63
  POLAR_AREA: 'polarArea',
64
64
  RADAR: 'radar',
65
- BUBBLE: 'bubble'
65
+ BUBBLE: 'bubble',
66
+ SCATTER: 'scatter'
66
67
  };
67
68
 
68
69
  static Position = {
@@ -364,6 +365,7 @@ export default class Chart extends Widget {
364
365
  case Chart.Type.POLAR_AREA:
365
366
  case Chart.Type.RADAR:
366
367
  case Chart.Type.BUBBLE:
368
+ case Chart.Type.SCATTER:
367
369
  return new ChartJsRenderer(this);
368
370
  }
369
371
  return null;
@@ -1,9 +1,9 @@
1
1
  /*
2
- * Copyright (c) 2010-2021 BSI Business Systems Integration AG.
2
+ * Copyright (c) 2010-2022 BSI Business Systems Integration AG.
3
3
  * All rights reserved. This program and the accompanying materials
4
4
  * are made available under the terms of the Eclipse Public License v1.0
5
5
  * which accompanies this distribution, and is available at
6
- * http://www.eclipse.org/legal/epl-v10.html
6
+ * https://www.eclipse.org/legal/epl-v10.html
7
7
  *
8
8
  * Contributors:
9
9
  * BSI Business Systems Integration AG - initial API and implementation
@@ -510,7 +510,8 @@
510
510
  }
511
511
  }
512
512
 
513
- .bubble-chart {
513
+ .bubble-chart,
514
+ .scatter-chart {
514
515
  min-width: @chart-min-width;
515
516
 
516
517
  & > .elements {
@@ -822,6 +823,8 @@ text.venn-legend {
822
823
 
823
824
  /*** chart tooltip ***/
824
825
  .tooltip.chart-tooltip {
826
+ max-width: 400px;
827
+
825
828
  --chart-tooltip-font-family: @font-default-family;
826
829
  --chart-tooltip-label-width: 70px;
827
830
 
@@ -886,4 +889,57 @@ text.venn-legend {
886
889
  text-align: left;
887
890
  }
888
891
  }
889
- }
892
+
893
+ & > .tooltip-content > table > tbody > .attribute {
894
+ padding-top: 2px;
895
+ padding-bottom: 2px;
896
+
897
+ &:first-child {
898
+ padding-top: 0;
899
+ }
900
+
901
+ &:last-child {
902
+ padding-bottom: 0;
903
+ }
904
+
905
+ & .color-cell {
906
+ & > .color {
907
+ height: 10px;
908
+ width: 10px;
909
+ border-radius: 50%;
910
+ margin-right: 5px;
911
+ }
912
+ }
913
+
914
+ & > .label {
915
+ max-width: 120px;
916
+ overflow: hidden;
917
+ text-overflow: ellipsis;
918
+ padding-right: 10px;
919
+ white-space: nowrap;
920
+ font-size: @field-label-font-size;
921
+ padding-top: @font-size-normal - @field-label-font-size;
922
+ }
923
+
924
+ & > .value {
925
+ white-space: nowrap;
926
+ text-align: right;
927
+ font-size: @font-size-normal;
928
+ font-weight: @font-weight-normal;
929
+ font-family: var(--chart-tooltip-font-family);
930
+ padding-right: 10px;
931
+
932
+ &:last-child {
933
+ padding-right: 0;
934
+ }
935
+ }
936
+
937
+ &.title > .value {
938
+ text-align: left;
939
+ max-width: 120px;
940
+ white-space: nowrap;
941
+ overflow: hidden;
942
+ text-overflow: ellipsis;
943
+ }
944
+ }
945
+ }