/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{Manipulator3D as t}from"../Manipulator3D.js";class i{constructor(){this.grabbingState=0,this.zManipulator=null,this.firstSelected=null,this.numSelected=0,this.firstGrabbedXY=null}update(i){this.grabbingState=0,this.zManipulator=null,this.numSelected=0,this.firstSelected=null,this.firstGrabbedXY=null,i.forEachManipulator((i,e)=>{if(0===e&&(this.zManipulator=i),i instanceof t&&(i.selected&&(0===this.numSelected&&(this.firstSelected=i),this.numSelected++),null==this.firstGrabbedXY&&i.grabbing&&1===e&&(this.firstGrabbedXY=i)),i.grabbing)switch(this.grabbingState|=1,e){case 0:this.grabbingState|=2;break;case 1:this.grabbingState|=4}})}}export{i as ManipulatorState};
