Defines the Shadow appearance of the objects
<div id='diagram'></div>
let nodes: NodeModel[] = [{ id: 'node2', width: 100, height: 100,
constraints: NodeConstraints.Default | NodeConstraints.Shadow,
shadow: { angle: 45, distance: 5, opacity: 0.7, color: 'grey'}
}];
let diagram: Diagram = new Diagram({
...
nodes: nodes,
...
});
diagram.appendTo('#diagram');
number
Defines the angle of Shadow
Defaults to 45
string
Defines the color of Shadow
Defaults to ”
number
Defines the distance of Shadow
Defaults to 5
number
Defines the opacity of Shadow
Defaults to 0.7