/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{toZIndex as e}from"./DrawToolRenderer2D.js";class r{constructor(e){this._renderer=e,this._ids=new Map}add(r){const s=Symbol(),{geometry:t,symbol:d}=r;this._renderer.addOrUpdateGraphic(s,{geometry:t,symbol:d,zIndex:e("guide","active")}),this._ids.set(r,s)}remove(e){const r=this._ids.get(e);r&&(this._renderer.removeGraphic(r),this._ids.delete(e))}}export{r as SnappingVisualizer2DAdapter};
