 portId names in the link template(s)
  (i.e. <a>Link.fromPortId</a> and <a>Link.toPortId</a>),
  in order for the user to be able to link with those ports.
</p>
<pre class="lang-js" id="ports"><code>
  diagram.nodeTemplate =
    new go.Node("Auto")
      .add(
        new go.Shape("Rectangle", { fill: "lightgray" }),
        new go.Panel("Table")
          .addColumnDefinition(0, { alignment: go.Spot.Left })
          .addColumnDefinition(2, { alignment: go.Spot.Right })
          .add(
            new go.