Customize default template map link

Hello,

In my project the user is able to draw new links between two nodes. I want to customize the link displayed during the drawing (the link which is following the mouse) and the adornment around the starting node.
By default I have a purple square adornment and a blue link ending by a purple point.

I guess I have to change the default template somewhere inside diagram.linkTemplateMap ?

Thank you,
Paul

The Diagram’s templates are copied when creating the actual Nodes and Links corresponding to the model data.

During a linking operation the LinkingTool uses a temporary Link and temporary ports defined by and customized by the LinkingTool.

Search the samples for examples where the LinkingTool.temporaryLink is replaced or modified, and the same for “temporaryFromPort” or “temporaryToPort”.

Thank you walter,
I found what I needed in the file: https://github.com/NorthwoodsSoftware/GoJS/blob/5221caa128ddf6d872d468fd62624b8f0ceb7b09/samples/flowBuilder.html