DANG Fan
DANG Fan

Reputation: 864

How to remove border of diagram when clicking it?

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

Upvotes: 3

Views: 1930

Answers (2)

Ehsan Ahmadvand
Ehsan Ahmadvand

Reputation: 1

go to page that your Diagram is drawing and after draw diagram write this code:

$myDiagramDiv = $page.find("#myDiagramDiv");
$myDiagramDiv[0].childNodes[0].style.outline = "none";

Upvotes: 0

Simon Sarris
Simon Sarris

Reputation: 63872

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

Upvotes: 6

Related Questions