NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/esm/constant.d.ts

99 lines
2.7 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
/**
* view group key
*/
export declare enum LAYER {
/** 前景层 */
FORE = "fore",
/** 中间层 */
MID = "mid",
/** 背景层 */
BG = "bg"
}
/**
* 12
*/
export declare enum DIRECTION {
TOP = "top",
TOP_LEFT = "top-left",
TOP_RIGHT = "top-right",
RIGHT = "right",
RIGHT_TOP = "right-top",
RIGHT_BOTTOM = "right-bottom",
LEFT = "left",
LEFT_TOP = "left-top",
LEFT_BOTTOM = "left-bottom",
BOTTOM = "bottom",
BOTTOM_LEFT = "bottom-left",
BOTTOM_RIGHT = "bottom-right",
NONE = "none"
}
/**
*
*/
export declare enum COMPONENT_TYPE {
/** axis 组件 */
AXIS = "axis",
/** grid 组件 */
GRID = "grid",
/** legend 组件 */
LEGEND = "legend",
/** tooltip 组件 */
TOOLTIP = "tooltip",
/** annotation 组件 */
ANNOTATION = "annotation",
/** 其他组件,自定义组件 */
OTHER = "other"
}
/**
* group z index
*/
export declare const GROUP_Z_INDEX: {
FORE: number;
MID: number;
BG: number;
};
/**
* View 3.x
*
*/
export declare enum VIEW_LIFE_CIRCLE {
BEFORE_RENDER = "beforerender",
AFTER_RENDER = "afterrender",
BEFORE_PAINT = "beforepaint",
AFTER_PAINT = "afterpaint",
BEFORE_CHANGE_DATA = "beforechangedata",
AFTER_CHANGE_DATA = "afterchangedata",
BEFORE_CLEAR = "beforeclear",
AFTER_CLEAR = "afterclear",
BEFORE_DESTROY = "beforedestroy"
}
/**
*
*/
export declare enum PLOT_EVENTS {
MOUSE_ENTER = "plot:mouseenter",
MOUSE_DOWN = "plot:mousedown",
MOUSE_MOVE = "plot:mousemove",
MOUSE_UP = "plot:mouseup",
MOUSE_LEAVE = "plot:mouseleave",
TOUCH_START = "plot:touchstart",
TOUCH_MOVE = "plot:touchmove",
TOUCH_END = "plot:touchend",
TOUCH_CANCEL = "plot:touchcancel",
CLICK = "plot:click",
DBLCLICK = "plot:dblclick",
CONTEXTMENU = "plot:contextmenu",
LEAVE = "plot:leave",
ENTER = "plot:enter"
}
/** 参与分组的图形属性名 */
export declare const GROUP_ATTRS: string[];
/** 存储原始数据的字段名 */
export declare const FIELD_ORIGIN = "_origin";
/** 最小的图表宽度 */
export declare const MIN_CHART_WIDTH = 1;
/** 最小的图表高度 */
export declare const MIN_CHART_HEIGHT = 1;
/** 辅助组件占图表的尺寸的最大比例如图表上方的图例最多占图表高度的25% */
export declare const COMPONENT_MAX_VIEW_PERCENTAGE = 0.25;