Replies: 2 comments
-
At the moment I don't think this is customizable, however, you can always just bind your own @injectable()
export class CustomGridSnapper extends GridSnapper {
override get gridX(): number {
return 20;
}
override get gridY(): number {
return 20;
}
}
// diagramModuel
bind(TYPES.ISnapper).to(CustomGridSnapper); |
Beta Was this translation helpful? Give feedback.
0 replies
-
FYI: I also opened a small PR that makes the grid size configurable without having to create a new subclass: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to use the GridSnapper which is part of the Workflow example. But I did not really understand how it works.
On the server side I have a class:
The server side GridSnapper seems to be only used on the create node operation handlers.
On the client side I found also a Snapper which is registered in the DiagramModule
But this snapper is fixed to 10x10 px
I wonder how can I change the snapp size on the client?
Beta Was this translation helpful? Give feedback.
All reactions