Interface for a class Gridlines
number[]
A pattern of gaps that defines a set of horizontal/vertical grid dots
string
Sets the line color of gridlines
string
Defines the pattern of dashes and gaps used to stroke horizontal grid lines
number[]
A pattern of lines and gaps that defines a set of horizontal/vertical gridlines
number[]
Specifies a set of intervals to snap the objects
<div id='diagram'></div>
let diagram: Diagram = new Diagram({
...
snapSettings: {
horizontalGridlines: { lineIntervals: [0.95, 9.05, 0.2, 9.75], snapIntervals: [10] },
verticalGridlines: { lineIntervals: [0.95, 9.05, 0.2, 9.75], snapIntervals: [10] }
},
...
});
diagram.appendTo('#diagram');