Skip to content
Discussion options

You must be logged in to vote

Hi @david-pa,

the error is telling you that there is already another OperationHandler registered for the same operation kind ("changeBounds").
The problem is in your diagram module:

@injectable()
export class CustomDiagramModule extends GModelDiagramModule {
    ...
    protected override configureOperationHandlers(binding: InstanceMultiBinding<OperationHandlerConstructor>): void {
      binding.add(CustomChangeBoundsHandler);
      super.configureOperationHandlers(binding);
    }
}

The super.configureOperationHandlers also adds a ChangeBoundsOperationHandler implementation.
You have to use binding.rebind instead of add:

@injectable()
export class CustomDiagramModule extends GModelDiagram…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by david-pa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants