I am using the sketch widget for ArcGIS JavaScript: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html

I am building a custom toolbar with additional tools and would like to emulate the behavior of the "reshape" and "transform" buttons in the default toolbar. I don't see a way to do this through the Sketch Widget API.

Is this possible?

1 Answer 1


Yes, you want to use the SketchViewModel. When the user clicks your button, call the update method.

var sketchViewModel = new SketchViewModel({
  view: view,
  layer: graphicsLayer
sketchViewModel.update([currentGraphic], {
  tool: "transform"

Full demo here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.