提交 c256bcde 编写于 作者: L lang

Fix graph scaleLimit and default zoom

上级 d18d6470
......@@ -137,8 +137,10 @@ define(function (require) {
_updateController: function (seriesModel, coordSys, api) {
var controller = this._controller;
controller.rect = coordSys.getViewRect();
controller.enable(seriesModel.get('roam'));
controller.zoomLimit = seriesModel.get('scaleLimit');
// Update zoom from model
controller.zoom = coordSys.getZoom();
controller
.off('pan')
......
......@@ -49,6 +49,7 @@ define(function (require) {
var viewHeight = viewRect.height;
viewCoordSys = seriesModel.coordinateSystem = new View();
viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');
viewCoordSys.setBoundingRect(
min[0], min[1], bbWidth, bbHeight
......
......@@ -27,7 +27,7 @@ define(function (require) {
this.name = name;
/**
* @type {Array.<number>}
* @type {Object}
*/
this.zoomLimit;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册