create a new link
relink style
how to keep line in a same style when create a new link and relink
Are you asking about https://gojs.net/latest/api/symbols/LinkingBaseTool.html#temporaryLink ?
You can certainly set its properties the way that you want.
I cannot tell what you want to do.