123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- var echarts = require("../echarts");
- var zrUtil = require("zrender/lib/core/util");
- var axisPointerModelHelper = require("./axisPointer/modelHelper");
- var axisTrigger = require("./axisPointer/axisTrigger");
- require("./axisPointer/AxisPointerModel");
- require("./axisPointer/AxisPointerView");
- require("./axisPointer/CartesianAxisPointer");
- echarts.registerPreprocessor(function (option) {
-
- if (option) {
- (!option.axisPointer || option.axisPointer.length === 0) && (option.axisPointer = {});
- var link = option.axisPointer.link;
-
-
- if (link && !zrUtil.isArray(link)) {
- option.axisPointer.link = [link];
- }
- }
- });
- echarts.registerProcessor(echarts.PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) {
-
-
- ecModel.getComponent('axisPointer').coordSysAxesInfo = axisPointerModelHelper.collect(ecModel, api);
- });
- echarts.registerAction({
- type: 'updateAxisPointer',
- event: 'updateAxisPointer',
- update: ':updateAxisPointer'
- }, axisTrigger);
|