{"size": 1355, "ext": "js", "max_stars_repo_path": "arcgis_js_api/library/4.11/esri/views/2d/navigation/actions/Rotate.js", "max_stars_repo_name": "mozenberger/data-management-tools", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "arcgis_js_api/library/4.11/esri/views/2d/navigation/actions/Rotate.js", "max_issues_repo_name": "mozenberger/data-management-tools", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "arcgis_js_api/library/4.11/esri/views/2d/navigation/actions/Rotate.js", "max_forks_repo_name": "mozenberger/data-management-tools", "max_forks_repo_forks_event_min_datetime": "2019-05-23T17:30:34.000Z", "max_forks_repo_forks_event_max_datetime": "2019-05-23T17:30:34.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 225.8333333333, "max_line_length": 512, "alphanum_fraction": 0.7033210332}
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.11/esri/copyright.txt for details.
//>>built
define("require exports ../../../../core/tsSupport/declareExtendsHelper ../../../../core/tsSupport/decorateHelper ../../../../geometry ../../../../Viewpoint ../../../../core/Accessor ../../../../core/accessorSupport/decorators ../../../../core/libs/gl-matrix-2/vec2 ../../../../core/libs/gl-matrix-2/vec2f64 ../../viewpointUtils".split(" "),function(r,t,m,d,n,p,q,c,e,f,g){var h=f.vec2f64.create(),k=f.vec2f64.create();return function(l){function a(b){b=l.call(this,b)||this;b._previousCenter=f.vec2f64.create();
b.viewpoint=new p({targetGeometry:new n.Point,scale:0,rotation:0});return b}m(a,l);a.prototype.begin=function(b,a){this.navigation.begin();e.vec2.set(this._previousCenter,a.center.x,a.center.y)};a.prototype.update=function(a,c){var b=a.state,d=b.size,b=b.padding;e.vec2.set(h,c.center.x,c.center.y);g.getAnchor(k,d,b);a.viewpoint=g.rotateBy(this.viewpoint,a.content.viewpoint,g.angleBetween(k,this._previousCenter,h));e.vec2.copy(this._previousCenter,h)};a.prototype.end=function(a,c){this.navigation.end()};
d([c.property()],a.prototype,"viewpoint",void 0);d([c.property()],a.prototype,"navigation",void 0);return a=d([c.subclass("esri.views.2d.actions.Rotate")],a)}(c.declared(q))});