How to add a border to a Node

Hello I would like to add a border to Node

I don’t know how to do this.
In the Adobe language its called the “stroke” but when I add

   {
     stroke: "black"
   }

I get a GoJS error saying that there is no property stroke on a Node object

Thanks!

Search for “gojs border” and you’ll get these useful pages:
http://gojs.net/latest/intro/nodes.html
http://gojs.net/latest/intro/panels.html
http://gojs.net/latest/intro/shapes.html

The first link goes to a page about how Nodes can be designed.


    Surrounding Content

    It is common to surround interesting information with a border or other background.

    Simple borders

    Many of the simplest nodes just consist of a Panel of type Panel.Auto with a Shape surrounding a TextBlock.

But the content can be any arbitrarily complex Panel, not just a simple TextBlock.

My point is that you need to learn how to use Panels to organize the GraphObjects in your node template.