zz-chart
Version:
Alauda Chart components by Alauda Frontend Team
46 lines • 1.63 kB
JavaScript
export var ChartEvent;
(function (ChartEvent) {
// theme
ChartEvent["THEME_CHANGE"] = "theme:change";
ChartEvent["HOOKS_REDRAW"] = "hooks:redraw";
// uPlot hooks
ChartEvent["U_PLOT_READY"] = "uPlot:ready";
ChartEvent["U_PLOT_SET_CURSOR"] = "uPlot:setCursor";
// plot
ChartEvent["PLOT_MOUSEMOVE"] = "plot:mousemove";
ChartEvent["PLOT_MOUSELEAVE"] = "plot:mouseleave";
ChartEvent["PLOT_CLICK"] = "plot:click";
ChartEvent["PLOT_MOUSEDOWN"] = "plot:mousedown";
ChartEvent["PLOT_MOUSEUP"] = "plot:mouseup";
// element
ChartEvent["ELEMENT_MOUSEMOVE"] = "element:mousemove";
ChartEvent["ELEMENT_MOUSELEAVE"] = "element:mouseleave";
// legend
ChartEvent["LEGEND_ITEM_CLICK"] = "legend-item:click";
ChartEvent["LEGEND_ITEM_HOVER"] = "legend-item:hover";
// shape
ChartEvent["SHAPE_CHANGE"] = "shape:change";
// data
ChartEvent["DATA_CHANGE"] = "data:change";
})(ChartEvent = ChartEvent || (ChartEvent = {}));
/**
* 布局方位
*/
export var DIRECTION;
(function (DIRECTION) {
DIRECTION["TOP"] = "top";
DIRECTION["TOP_LEFT"] = "top-left";
DIRECTION["TOP_RIGHT"] = "top-right";
// RIGHT = 'right',
// RIGHT_TOP = 'right-top',
// RIGHT_BOTTOM = 'right-bottom',
// LEFT = 'left',
// LEFT_TOP = 'left-top',
// LEFT_BOTTOM = 'left-bottom',
DIRECTION["BOTTOM"] = "bottom";
DIRECTION["BOTTOM_LEFT"] = "bottom-left";
DIRECTION["BOTTOM_RIGHT"] = "bottom-right";
// no direction information
DIRECTION["NONE"] = "none";
})(DIRECTION = DIRECTION || (DIRECTION = {}));
//# sourceMappingURL=chart.js.map