@visactor/vchart 1.10.0-alpha.6 → 1.10.0-alpha.7

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 (49) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +11 -11
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/stack.js +1 -2
  6. package/cjs/compile/grammar-item.js +2 -1
  7. package/cjs/core/index.d.ts +1 -1
  8. package/cjs/core/index.js +1 -1
  9. package/cjs/core/index.js.map +1 -1
  10. package/cjs/plugin/components/tooltip-handler/utils/attribute.js +1 -1
  11. package/cjs/plugin/components/tooltip-handler/utils/attribute.js.map +1 -1
  12. package/cjs/theme/builtin/light/index.js +2 -2
  13. package/cjs/theme/builtin/light/index.js.map +1 -1
  14. package/cjs/theme/interface.d.ts +1 -1
  15. package/cjs/theme/interface.js.map +1 -1
  16. package/cjs/theme/token/builtin/default.d.ts +1 -1
  17. package/cjs/theme/token/builtin/default.js +3 -3
  18. package/cjs/theme/token/builtin/default.js.map +1 -1
  19. package/cjs/theme/token/builtin/interface.d.ts +2 -2
  20. package/cjs/theme/token/builtin/interface.js.map +1 -1
  21. package/cjs/util/text.js +2 -2
  22. package/cjs/util/text.js.map +1 -1
  23. package/cjs/util/theme/merge-theme.js +1 -1
  24. package/cjs/util/theme/merge-theme.js.map +1 -1
  25. package/cjs/util/theme/preprocess.js +1 -1
  26. package/cjs/util/theme/preprocess.js.map +1 -1
  27. package/esm/chart/stack.js +1 -2
  28. package/esm/compile/grammar-item.js +2 -1
  29. package/esm/core/index.d.ts +1 -1
  30. package/esm/core/index.js +1 -1
  31. package/esm/core/index.js.map +1 -1
  32. package/esm/plugin/components/tooltip-handler/utils/attribute.js +2 -2
  33. package/esm/plugin/components/tooltip-handler/utils/attribute.js.map +1 -1
  34. package/esm/theme/builtin/light/index.js +3 -3
  35. package/esm/theme/builtin/light/index.js.map +1 -1
  36. package/esm/theme/interface.d.ts +1 -1
  37. package/esm/theme/interface.js.map +1 -1
  38. package/esm/theme/token/builtin/default.d.ts +1 -1
  39. package/esm/theme/token/builtin/default.js +3 -3
  40. package/esm/theme/token/builtin/default.js.map +1 -1
  41. package/esm/theme/token/builtin/interface.d.ts +2 -2
  42. package/esm/theme/token/builtin/interface.js.map +1 -1
  43. package/esm/util/text.js +3 -3
  44. package/esm/util/text.js.map +1 -1
  45. package/esm/util/theme/merge-theme.js +1 -1
  46. package/esm/util/theme/merge-theme.js.map +1 -1
  47. package/esm/util/theme/preprocess.js +1 -1
  48. package/esm/util/theme/preprocess.js.map +1 -1
  49. package/package.json +4 -4
package/build/index.js CHANGED
@@ -50956,7 +50956,7 @@
50956
50956
  }
50957
50957
  return Object.assign({}, theme, {
50958
50958
  colorScheme,
50959
- tokenMap: (_a = theme.tokenMap) !== null && _a !== void 0 ? _a : {},
50959
+ token: (_a = theme.token) !== null && _a !== void 0 ? _a : {},
50960
50960
  series: Object.assign({}, theme.series, newSeriesTheme)
50961
50961
  });
50962
50962
  }
@@ -50991,9 +50991,9 @@
50991
50991
  return obj && obj.type === 'token' && !!obj.key;
50992
50992
  }
50993
50993
 
50994
- const tokenMap = {
50995
- defaultFontFamily: 'PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol',
50996
- defaultFontSize: 14,
50994
+ const token = {
50995
+ fontFamily: 'PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol',
50996
+ fontSize: 14,
50997
50997
  l1FontSize: 32,
50998
50998
  l1LineHeight: '150%',
50999
50999
  l2FontSize: 20,
@@ -51017,7 +51017,7 @@
51017
51017
  colorScheme = obj.colorScheme;
51018
51018
  }
51019
51019
  if (!tokenMap) {
51020
- tokenMap = obj.tokenMap;
51020
+ tokenMap = obj.token;
51021
51021
  }
51022
51022
  const newObj = {};
51023
51023
  Object.keys(obj).forEach(key => {
@@ -51092,8 +51092,8 @@
51092
51092
 
51093
51093
  const initTextMeasure = (textSpec, option, useNaiveCanvas) => {
51094
51094
  return initTextMeasure$2(textSpec, option, useNaiveCanvas, {
51095
- fontFamily: tokenMap.defaultFontFamily,
51096
- fontSize: tokenMap.defaultFontSize
51095
+ fontFamily: token.fontFamily,
51096
+ fontSize: token.fontSize
51097
51097
  });
51098
51098
  };
51099
51099
  const measureText = (text, textSpec, option, useNaiveCanvas) => {
@@ -53058,9 +53058,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
53058
53058
  name: 'light',
53059
53059
  background: { type: 'palette', key: 'backgroundColor' },
53060
53060
  padding: 20,
53061
- fontFamily: { type: 'token', key: 'defaultFontFamily' },
53061
+ fontFamily: { type: 'token', key: 'fontFamily' },
53062
53062
  colorScheme: colorScheme$1,
53063
- tokenMap,
53063
+ token,
53064
53064
  mark: markByType,
53065
53065
  markByName,
53066
53066
  series,
@@ -62110,7 +62110,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
62110
62110
  };
62111
62111
 
62112
62112
  const DEFAULT_TEXT_ATTRIBUTES = {
62113
- fontFamily: tokenMap.defaultFontFamily,
62113
+ fontFamily: token.fontFamily,
62114
62114
  spacing: 10,
62115
62115
  wordBreak: 'break-word'
62116
62116
  };
@@ -64008,7 +64008,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64008
64008
  registerComponentPlugin(CanvasTooltipHandler);
64009
64009
  };
64010
64010
 
64011
- const version = "1.10.0-alpha.6";
64011
+ const version = "1.10.0-alpha.7";
64012
64012
 
64013
64013
  const addVChartProperty = (data, op) => {
64014
64014
  const context = op.beforeCall();