gridStep

defines a drag step for blocks

number gridStep;

Example

webix.ui({
  view: "diagram-editor",
  data: [/* block objects*/],
  links: [/* link objects */],
  gridStep: 15,
});

Related samples

Details

The property defines number of pixels the block is moved at one go when being dragged.

As it is a reactive property you can access and alter it dynamically via the editor state:

$$("editor").getState().gridStep = 100;
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.