yPalette.nodeTemplateMap = myDiagram.nodeTemplateMap;
    myPalette.model = new go.GraphLinksModel([
      { text: 'Lake', fill: fill1, stroke: brush1, figure: 'Hexagon' },
      { text: 'Ocean', fill: fill2, stroke: brush2, figure: 'Rectangle' },
      { text: 'Sand', fill: fill3, stroke: brush3, figure: 'Diamond' },
      { text: 'Goldfish', fill: fill4, stroke: brush4, figure: 'Octagon' }
    ]);

    myPalette.addDiagramListener('InitialLayoutCompleted', (diagramEvent) => {
      var pdrag = document.ge