/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
class t{constructor(t,e,i,c){this._helper=t,this.dx=e,this.dy=i,this.dz=c}_move(t,i,c,s){this._helper.addDelta(t.pos,i,c,s),e(t.leftSegment,i,c)}apply(t){this._move(t,this.dx,this.dy,this.dz)}undo(t){this._move(t,-this.dx,-this.dy,-this.dz)}canAccumulate(e){return e instanceof t}accumulate(t,e){this._move(t,e.dx,e.dy,e.dz)}accumulateParams(t){this.dx+=t.dx,this.dy+=t.dy,this.dz+=t.dz}}function e(t,e,i){switch(t?.type){case null:case void 0:case"line":return;case"bezier":{const{controlPoint1:c,controlPoint2:s}=t.curveDefinition;c[0]+=e,c[1]+=i,s[0]+=e,s[1]+=i;break}case"circular-arc":{const{interiorPoint:c}=t.curveDefinition;c[0]+=e,c[1]+=i;break}case"elliptic-arc-4":case"elliptic-arc-7":{const{centerPoint:c}=t.curveDefinition;c[0]+=e,c[1]+=i}}}export{t as MoveVertex};
