提交 1bb1f9ff 编写于 作者: S sushuang

Tweak for gl.

上级 364720ba
......@@ -160,7 +160,7 @@ Axis.prototype = {
getTicksCoords: function (opt) {
opt = opt || {};
var tickModel = opt.tickModel || this.model.getModel('axisTick');
var tickModel = opt.tickModel || this.getTickModel();
var result = createAxisTicks(this, tickModel);
var ticks = result.ticks;
......@@ -191,10 +191,25 @@ Axis.prototype = {
return createAxisLabels(this).labels;
},
/**
* @return {module:echarts/coord/model/Model}
*/
getLabelModel: function () {
return this.model.getModel('axisLabel');
},
/**
* Notice here we only get the default tick model. For splitLine
* or splitArea, we should pass the splitLineModel or splitAreaModel
* manually when calling `getTicksCoords`.
* In GL, this method may be overrided to:
* `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`
* @return {module:echarts/coord/model/Model}
*/
getTickModel: function () {
return this.model.getModel('axisTick');
},
/**
* Get width of band
* @return {number}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册