xStepnumber — distance between vertical lines in grid from
left - use this instead of xNum. This will override step.
yStepnumber — distance between horizontal lines in grid from
bottom - use this instead of yNum. This will override step.
xNumnumber — number of vertical lines in grid including top and
bottom lines - overrides num and xStep.
yNumnumber — number of horizontal lines in grid including left
and right lines - overrides num and yStep.
lineOBJ_LineStyleSimple — line style options - do not use any corner
options
drawBorderBuffer(number | TypeParsableBorder) & TypeParsableBorder — override OBJ_Generic drawBorderBuffer with number to make the
drawBorderBuffer the same as the grid outline with additional number
buffer each side (0)
Grid shape options object that extends OBJ_Generic (without
drawType) and OBJ_FigurePrimitiveA grid is a rectangle divided into a series of vertical and horizontal lines.
The rectangle is defined by
bounds.xNumandyNumcan be used to defined a number of equally spaced lines in the rectangle (including the edges).Alternatively
xStepandyStepcan be used to define the spacing between lines from the bottom left corner.The line width and style is defined with
line.boundsTypeParsableRect — rectangle definitionxStepnumber— distance between vertical lines in grid from left - use this instead ofxNum. This will overridestep.yStepnumber— distance between horizontal lines in grid from bottom - use this instead ofyNum. This will overridestep.xNumnumber— number of vertical lines in grid including top and bottom lines - overridesnumandxStep.yNumnumber— number of horizontal lines in grid including left and right lines - overridesnumandyStep.lineOBJ_LineStyleSimple — line style options - do not use any corner optionsdrawBorderBuffer(number | TypeParsableBorder) & TypeParsableBorder— override OBJ_GenericdrawBorderBufferwithnumberto make the drawBorderBuffer the same as the grid outline with additionalnumberbuffer each side (0)See
To test examples, append them to the boilerplate
Example
Example
Example