@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
53 lines (52 loc) • 1.24 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mainAxis = exports.TriggerType = exports.MouseEvent = void 0;
var env_1 = require("../../../utils/env");
var MouseEvent;
(function (MouseEvent) {
MouseEvent["MouseOver"] = "mouseover";
MouseEvent["MouseOut"] = "mouseout";
})(MouseEvent = exports.MouseEvent || (exports.MouseEvent = {}));
var TriggerType;
(function (TriggerType) {
TriggerType["Axis"] = "axis";
TriggerType["Item"] = "item";
TriggerType["None"] = "none";
})(TriggerType = exports.TriggerType || (exports.TriggerType = {}));
var config = {
dataZoom: !env_1.isMobileDevice() && [
{
type: 'inside',
filterMode: 'filter',
minValueSpan: 3
}
],
grid: {
containLabel: true,
top: 15,
bottom: 15,
left: 15,
right: 15
},
legend: {
itemWidth: 12,
itemHeight: 10
}
};
exports.mainAxis = {
type: 'category',
splitLine: {
show: false
},
axisLine: {
show: false
},
axisTick: {
show: false
},
nameLocation: 'center',
axisPointer: {
type: 'shadow'
}
};
exports.default = config;