123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- import { __extends } from "tslib";
- import ComponentModel from '../../model/Component.js';
- var TooltipModel = function (_super) {
- __extends(TooltipModel, _super);
- function TooltipModel() {
- var _this = _super !== null && _super.apply(this, arguments) || this;
- _this.type = TooltipModel.type;
- return _this;
- }
- TooltipModel.type = 'tooltip';
- TooltipModel.dependencies = ['axisPointer'];
- TooltipModel.defaultOption = {
-
- z: 60,
- show: true,
-
- showContent: true,
-
-
- trigger: 'item',
-
- triggerOn: 'mousemove|click',
- alwaysShowContent: false,
- displayMode: 'single',
- renderMode: 'auto',
-
-
-
- confine: null,
- showDelay: 0,
- hideDelay: 100,
-
- transitionDuration: 0.4,
- enterable: false,
- backgroundColor: '#fff',
-
- shadowBlur: 10,
- shadowColor: 'rgba(0, 0, 0, .2)',
- shadowOffsetX: 1,
- shadowOffsetY: 2,
-
- borderRadius: 4,
-
- borderWidth: 1,
-
-
-
- padding: null,
-
- extraCssText: '',
-
- axisPointer: {
-
-
- type: 'line',
-
-
-
-
- axis: 'auto',
- animation: 'auto',
- animationDurationUpdate: 200,
- animationEasingUpdate: 'exponentialOut',
- crossStyle: {
- color: '#999',
- width: 1,
- type: 'dashed',
-
- textStyle: {}
- }
-
-
- },
- textStyle: {
- color: '#666',
- fontSize: 14
- }
- };
- return TooltipModel;
- }(ComponentModel);
- export default TooltipModel;
|