[core] add setMaxZoom, setMinZoom

also change the default maxZoom to 20 to match -js.
This commit is contained in:
Ansis Brammanis
2016-01-26 18:50:37 -08:00
parent 94731a9ef0
commit 1644234179
6 changed files with 38 additions and 1 deletions

View File

@@ -465,6 +465,14 @@ void Transform::setScale(double scale, const EdgeInsets& padding, const Duration
setScale(scale, center, duration);
}
void Transform::setMinZoom(const double minZoom) {
state.setMinZoom(minZoom);
}
void Transform::setMaxZoom(const double maxZoom) {
state.setMaxZoom(maxZoom);
}
#pragma mark - Angle
void Transform::rotateBy(const PrecisionPoint& first, const PrecisionPoint& second, const Duration& duration) {