Search code examples
javascriptgojs

How to remove border of diagram when clicking it?


I searched the documentation of GoJS, but nothing was found. Is it possible?


Solution

  • Remove the outline from all HTML Canvas elements inside your Diagram div. Add this to your CSS:

    #myDiagram canvas {
      outline: none;
    }
    

    Live example in GoJS:

    http://codepen.io/simonsarris/pen/FviEw