mdt-charts 1.18.2 → 1.18.4

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.
Files changed (47) hide show
  1. package/lib/config/config.d.ts +30 -3
  2. package/lib/engine/contentManager/contentManagerFactory.js +0 -2
  3. package/lib/engine/features/axis/axis.d.ts +1 -0
  4. package/lib/engine/features/axis/axis.js +19 -2
  5. package/lib/engine/features/axis/axisHelper.js +3 -1
  6. package/lib/engine/features/legend/legend.d.ts +2 -2
  7. package/lib/engine/features/legend/legendHelper.d.ts +2 -2
  8. package/lib/engine/features/legend/legendHelper.js +0 -3
  9. package/lib/engine/features/scale/scale.d.ts +4 -0
  10. package/lib/engine/features/scale/scale.js +4 -0
  11. package/lib/engine/features/title/title.d.ts +1 -1
  12. package/lib/engine/features/title/title.js +2 -3
  13. package/lib/engine/features/tolltip/tooltip.d.ts +0 -1
  14. package/lib/engine/features/tolltip/tooltip.js +2 -21
  15. package/lib/engine/features/tolltip/tooltipDomHelper.d.ts +6 -3
  16. package/lib/engine/features/tolltip/tooltipDomHelper.js +64 -27
  17. package/lib/engine/filterManager/filterEventManager.d.ts +6 -0
  18. package/lib/engine/filterManager/filterEventManager.js +8 -0
  19. package/lib/engine/polarNotation/polarManager.js +1 -1
  20. package/lib/engine/twoDimensionalNotation/line/line.d.ts +6 -0
  21. package/lib/engine/twoDimensionalNotation/line/line.js +7 -8
  22. package/lib/engine/twoDimensionalNotation/line/lineHelper.d.ts +4 -1
  23. package/lib/engine/twoDimensionalNotation/line/lineHelper.js +18 -6
  24. package/lib/engine/twoDimensionalNotation/twoDimensionalManager.js +11 -9
  25. package/lib/model/EventEmitter.d.ts +10 -0
  26. package/lib/model/EventEmitter.js +26 -0
  27. package/lib/model/dataManagerModel/dataManagerModel.d.ts +0 -1
  28. package/lib/model/dataManagerModel/dataManagerModel.js +0 -13
  29. package/lib/model/featuresModel/axisModel.d.ts +1 -0
  30. package/lib/model/featuresModel/axisModel.js +13 -2
  31. package/lib/model/featuresModel/scaleModel/scaleDomainService.d.ts +3 -2
  32. package/lib/model/featuresModel/scaleModel/scaleDomainService.js +16 -6
  33. package/lib/model/featuresModel/scaleModel/scaleModel.d.ts +1 -0
  34. package/lib/model/featuresModel/scaleModel/scaleModel.js +12 -0
  35. package/lib/model/helpers/modelHelper.d.ts +2 -2
  36. package/lib/model/helpers/modelHelper.js +11 -22
  37. package/lib/model/margin/twoDim/twoDimMarginModel.d.ts +1 -1
  38. package/lib/model/margin/twoDim/twoDimMarginModel.js +3 -3
  39. package/lib/model/model.d.ts +6 -2
  40. package/lib/model/modelBuilder.js +0 -13
  41. package/lib/model/modelInstance/configReader.d.ts +2 -0
  42. package/lib/model/modelInstance/configReader.js +11 -1
  43. package/lib/model/notations/twoDimensionalModel.js +9 -2
  44. package/lib/style/charts-main.css +9 -7
  45. package/lib/style/charts-main.less +9 -7
  46. package/lib/style/css-vars.css +3 -0
  47. package/package.json +3 -3
@@ -1,3 +1,5 @@
1
+ @import (inline) './css-vars.css';
2
+
1
3
  .wrapper {
2
4
  margin: 0 auto;
3
5
  position: relative;
@@ -18,8 +20,8 @@
18
20
  .data-label {
19
21
  font-family: "Roboto";
20
22
  font-style: normal;
21
- font-weight: 300;
22
- font-size: 12px;
23
+ font-weight: 400;
24
+ font-size: var(--chart-base-font-size);
23
25
  line-height: 140.62%;
24
26
  color: #444444;
25
27
  cursor: default;
@@ -85,9 +87,9 @@
85
87
  }
86
88
 
87
89
  .legend-label {
88
- font-size: 12px;
90
+ font-size: var(--chart-base-font-size);
89
91
  font-family: "Roboto", sans-serif;
90
- font-weight: 300;
92
+ font-weight: 400;
91
93
  color: #444444;
92
94
  width: calc(100% - 19px);
93
95
  overflow: hidden;
@@ -130,7 +132,7 @@
130
132
  z-index: 102;
131
133
  max-width: 500px;
132
134
  background: rgba(0, 0, 0, 0.82);
133
- font-size: 11px;
135
+ font-size: var(--chart-base-font-size);
134
136
  }
135
137
  .mdt-charts-tooltip-arrow {
136
138
  width: 0;
@@ -169,7 +171,7 @@
169
171
  stroke-linecap: round;
170
172
  }
171
173
  .mdt-charts-tooltip-content .tooltip-head {
172
- font-size: 12px;
174
+ font-size: var(--chart-base-font-size);
173
175
  margin-bottom: 10px;
174
176
  }
175
177
  .mdt-charts-tooltip-content .tooltip-texts {
@@ -250,7 +252,7 @@
250
252
  font-family: "Roboto", sans-serif;
251
253
  font-style: normal;
252
254
  font-weight: 500;
253
- font-size: 12px;
255
+ font-size: var(--chart-base-font-size);
254
256
  line-height: 140.62%;
255
257
  }
256
258
 
@@ -0,0 +1,3 @@
1
+ :root {
2
+ --chart-base-font-size: 13px;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdt-charts",
3
- "version": "1.18.2",
3
+ "version": "1.18.4",
4
4
  "description": "",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -8,9 +8,9 @@
8
8
  "build": "npx webpack --mode production",
9
9
  "watch": "npx webpack --mode development --watch",
10
10
  "test": "jest",
11
- "build-lib": "npm run build-ts && npm run build-style",
11
+ "build-lib": "shx rm -rf lib && npm run build-ts && npm run build-style",
12
12
  "build-ts": "npx tsc -p tsconfig.production.json",
13
- "build-style": "shx mkdir lib/style && shx cp src/style/charts-main.css lib/style && shx cp src/style/charts-main.less lib/style"
13
+ "build-style": "shx mkdir lib/style && shx cp src/style/css-vars.css lib/style && shx cp src/style/charts-main.css lib/style && shx cp src/style/charts-main.less lib/style"
14
14
  },
15
15
  "homepage": "https://github.com/VishulaKnow/charts",
16
16
  "author": "",