@easyv/config 1.1.9 → 1.1.11

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 (59) hide show
  1. package/.babelrc +9 -9
  2. package/CHANGELOG.md +17 -17
  3. package/index.js +3 -3
  4. package/lib/animation.js +37 -51
  5. package/lib/axes.js +31 -47
  6. package/lib/axisLine.js +6 -9
  7. package/lib/baseLine.js +31 -40
  8. package/lib/brush.js +12 -15
  9. package/lib/dimension.js +8 -11
  10. package/lib/extent.js +4 -7
  11. package/lib/font.js +12 -15
  12. package/lib/gridLine.js +8 -11
  13. package/lib/imageGroup.js +48 -0
  14. package/lib/index.js +95 -117
  15. package/lib/interaction.js +4 -9
  16. package/lib/label.js +103 -124
  17. package/lib/legend.js +165 -184
  18. package/lib/mapping.js +4 -7
  19. package/lib/margin.js +8 -11
  20. package/lib/multiColor.js +10 -13
  21. package/lib/mutiColor.js +51 -51
  22. package/lib/pie.js +163 -221
  23. package/lib/sc.js +4 -7
  24. package/lib/series.js +174 -163
  25. package/lib/shadow.js +8 -11
  26. package/lib/show.js +0 -4
  27. package/lib/textOverflow.js +4 -7
  28. package/lib/tickLine.js +8 -11
  29. package/lib/tooltip.js +68 -65
  30. package/lib/translate.js +0 -2
  31. package/lib/unit.js +21 -30
  32. package/package.json +30 -30
  33. package/src/animation.js +256 -256
  34. package/src/axes.js +162 -162
  35. package/src/axisLine.js +39 -39
  36. package/src/baseLine.js +216 -216
  37. package/src/brush.js +90 -90
  38. package/src/dimension.js +49 -49
  39. package/src/extent.js +29 -29
  40. package/src/font.js +23 -23
  41. package/src/gridLine.js +49 -49
  42. package/src/imageGroup.js +37 -0
  43. package/src/index.js +101 -99
  44. package/src/interaction.js +121 -121
  45. package/src/label.js +722 -722
  46. package/src/legend.js +982 -982
  47. package/src/mapping.js +26 -26
  48. package/src/margin.js +58 -58
  49. package/src/multiColor.js +30 -30
  50. package/src/pie.js +1035 -1035
  51. package/src/sc.js +11 -8
  52. package/src/series.js +867 -824
  53. package/src/shadow.js +17 -17
  54. package/src/show.js +11 -11
  55. package/src/textOverflow.js +34 -34
  56. package/src/tickLine.js +51 -51
  57. package/src/tooltip.js +433 -425
  58. package/src/translate.js +27 -27
  59. package/src/unit.js +67 -67
package/src/sc.js CHANGED
@@ -1,9 +1,12 @@
1
-
2
- export default (name,displayName,type="",value,config="",rule="")=>{
3
- let res={name,displayName,value};
4
- if(type) res["type"]=type;
5
- if(config) res['config']=config;
6
- if(rule) res={...rule,...res}
7
-
8
- return res;
1
+
2
+ export default (name,displayName,type="",value,config="",rule="")=>{
3
+ let res={name,displayName,value};
4
+ if(type) res["type"]=type;
5
+ if(config){
6
+ if(config.other) res={...res,...config.other};
7
+ res['config']=config;
8
+ }
9
+ if(rule) res={...rule,...res}
10
+
11
+ return res;
9
12
  }