Skip to main content

Home > @jsplumbtoolkit/browser-ui > SurfaceRenderOptions > refreshLayoutOnEdgeConnect

SurfaceRenderOptions.refreshLayoutOnEdgeConnect property

When true, the Surface will run a refresh of the underlying layout whenever a new edge is established. This defaults to false, but you might want to set this to true if you're using the Hierarchical or Hierarchy layouts, because it has a bearing on the way they paint. However, if your users are able to drag vertices around, you may not wish for the layout to move things that they have placed, which is why this defaults to false.


refreshLayoutOnEdgeConnect?: boolean;