UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

116 lines (115 loc) 2.92 kB
export const discreteLegend = { orient: "bottom", position: "middle", padding: [ 16, 24 ], title: { visible: !1, padding: 0, textStyle: { fontSize: { type: "token", key: "l5FontSize" }, lineHeight: { type: "token", key: "l5LineHeight" }, fill: { type: "palette", key: "primaryFontColor" }, fontWeight: "normal" }, space: 12 }, pager: { textStyle: { fill: { type: "palette", key: "discreteLegendPagerTextColor" } }, handler: { style: { fill: { type: "palette", key: "discreteLegendPagerHandlerColor" } }, state: { disable: { fill: { type: "palette", key: "discreteLegendPagerHandlerDisableColor" } } } } }, item: { visible: !0, spaceCol: 10, spaceRow: 6, padding: 2, background: { state: { selectedHover: { fill: { type: "palette", key: "hoverBackgroundColor" } }, unSelectedHover: { fill: { type: "palette", key: "hoverBackgroundColor" } } } }, shape: { space: 6, style: { lineWidth: 0, fillOpacity: 1, opacity: 1 }, state: { unSelected: { fillOpacity: .2, opacity: 1 } } }, label: { space: 6, style: { fill: { type: "palette", key: "secondaryFontColor", default: "#89909d" }, fontSize: { type: "token", key: "l5FontSize" }, lineHeight: { type: "token", key: "l5LineHeight" }, opacity: 1 }, state: { unSelected: { fill: { type: "palette", key: "disableFontColor" }, opacity: 1 } } } }, allowAllCanceled: !1 }; //# sourceMappingURL=discrete-legend.js.map