Skip to main content

Render Paylines

Draws payline overlays for a win as an SVG, and reports which cells are part of it.

Give it the win breakdown from the maths and the grid geometry, and it returns an SVG string you can render over the reels, plus the list of winning cells for highlighting individual symbols.

Show All Paylines draws every configured line rather than only the winning ones, which is what a paytable screen wants.

Inputs

Data

DataDescription
Winning Lines Details (array)Per-win breakdown, from the winnings calculation.
Paylines (array)The payline definitions.

Grid

DataDescription
Number of Columns (number)Columns in the grid.
Number of Rows (number)Rows in the grid.
Grid Width (px) (number)Grid width in pixels.
Grid Height (px) (number)Grid height in pixels.

Style

DataDescription
Line Width (number)Stroke width of a payline.
Line Opacity (number)Stroke opacity.
Show All Paylines (boolean)Draw every payline rather than only the winning ones.
Animate Lines (boolean)Animate the lines in.

Actions

SignalDescription
DoRenders.

Outputs

Results

DataDescription
Payline SVG (string)The overlay, as an SVG string.
Winning Cells (array)Cells that form part of a win, for highlighting.
Total Win Lines (number)How many lines won.
Has Win (boolean)True when there is anything to draw.

Events

SignalDescription
DoneSent when the node has finished, on success and on failure alike.