@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.
- package/build/es5/index.js +1 -1
- package/build/index.js +11 -11
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/stack.js +1 -2
- package/cjs/compile/grammar-item.js +2 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/plugin/components/tooltip-handler/utils/attribute.js +1 -1
- package/cjs/plugin/components/tooltip-handler/utils/attribute.js.map +1 -1
- package/cjs/theme/builtin/light/index.js +2 -2
- package/cjs/theme/builtin/light/index.js.map +1 -1
- package/cjs/theme/interface.d.ts +1 -1
- package/cjs/theme/interface.js.map +1 -1
- package/cjs/theme/token/builtin/default.d.ts +1 -1
- package/cjs/theme/token/builtin/default.js +3 -3
- package/cjs/theme/token/builtin/default.js.map +1 -1
- package/cjs/theme/token/builtin/interface.d.ts +2 -2
- package/cjs/theme/token/builtin/interface.js.map +1 -1
- package/cjs/util/text.js +2 -2
- package/cjs/util/text.js.map +1 -1
- package/cjs/util/theme/merge-theme.js +1 -1
- package/cjs/util/theme/merge-theme.js.map +1 -1
- package/cjs/util/theme/preprocess.js +1 -1
- package/cjs/util/theme/preprocess.js.map +1 -1
- package/esm/chart/stack.js +1 -2
- package/esm/compile/grammar-item.js +2 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/plugin/components/tooltip-handler/utils/attribute.js +2 -2
- package/esm/plugin/components/tooltip-handler/utils/attribute.js.map +1 -1
- package/esm/theme/builtin/light/index.js +3 -3
- package/esm/theme/builtin/light/index.js.map +1 -1
- package/esm/theme/interface.d.ts +1 -1
- package/esm/theme/interface.js.map +1 -1
- package/esm/theme/token/builtin/default.d.ts +1 -1
- package/esm/theme/token/builtin/default.js +3 -3
- package/esm/theme/token/builtin/default.js.map +1 -1
- package/esm/theme/token/builtin/interface.d.ts +2 -2
- package/esm/theme/token/builtin/interface.js.map +1 -1
- package/esm/util/text.js +3 -3
- package/esm/util/text.js.map +1 -1
- package/esm/util/theme/merge-theme.js +1 -1
- package/esm/util/theme/merge-theme.js.map +1 -1
- package/esm/util/theme/preprocess.js +1 -1
- package/esm/util/theme/preprocess.js.map +1 -1
- 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
|
-
|
|
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
|
|
50995
|
-
|
|
50996
|
-
|
|
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.
|
|
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:
|
|
51096
|
-
fontSize:
|
|
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: '
|
|
53061
|
+
fontFamily: { type: 'token', key: 'fontFamily' },
|
|
53062
53062
|
colorScheme: colorScheme$1,
|
|
53063
|
-
|
|
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:
|
|
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.
|
|
64011
|
+
const version = "1.10.0-alpha.7";
|
|
64012
64012
|
|
|
64013
64013
|
const addVChartProperty = (data, op) => {
|
|
64014
64014
|
const context = op.beforeCall();
|