@visactor/vchart
Version:
charts lib based @visactor/VGrammar
111 lines (109 loc) • 2.28 kB
JavaScript
const getTitleLabelTheme = () => ({
fontSize: {
type: "token",
key: "l4FontSize"
},
lineHeight: {
type: "token",
key: "l4LineHeight"
},
fontColor: {
type: "palette",
key: "primaryFontColor"
},
fontWeight: "bold",
textBaseline: "middle",
spacing: 0
});
export const tooltip = {
offset: {
x: 10,
y: 10
},
panel: {
padding: {
top: 10,
left: 10,
right: 10,
bottom: 10
},
backgroundColor: {
type: "palette",
key: "popupBackgroundColor"
},
border: {
color: {
type: "palette",
key: "popupBackgroundColor"
},
width: 0,
radius: 3
},
shadow: {
x: 0,
y: 4,
blur: 12,
spread: 0,
color: {
type: "palette",
key: "shadowColor"
}
}
},
spaceRow: 6,
titleLabel: {
fontSize: {
type: "token",
key: "l4FontSize"
},
lineHeight: {
type: "token",
key: "l4LineHeight"
},
fontColor: {
type: "palette",
key: "primaryFontColor"
},
fontWeight: "bold",
textBaseline: "middle",
spacing: 0
},
shape: {
size: 8,
spacing: 6
},
keyLabel: {
fontSize: {
type: "token",
key: "l4FontSize"
},
lineHeight: {
type: "token",
key: "l4LineHeight"
},
fontColor: {
type: "palette",
key: "secondaryFontColor"
},
textBaseline: "middle",
spacing: 26
},
valueLabel: {
fontSize: {
type: "token",
key: "l4FontSize"
},
lineHeight: {
type: "token",
key: "l4LineHeight"
},
fontColor: {
type: "palette",
key: "primaryFontColor"
},
fontWeight: "bold",
textBaseline: "middle",
spacing: 0
}
};
//# sourceMappingURL=tooltip.js.map