From 8beaeff26752d270bc891dffc259be59b6cd8892 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Mon, 5 Mar 2018 16:25:05 -0800 Subject: [PATCH] Changed onRender to onRenderFrame --- springy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/springy.js b/springy.js index b96a2f1..0bf5ba4 100644 --- a/springy.js +++ b/springy.js @@ -645,16 +645,16 @@ * Renderer handles the layout rendering loop * @param onRenderStop optional callback function that gets executed whenever rendering stops. * @param onRenderStart optional callback function that gets executed whenever rendering starts. - * @param onRender optional callback function that gets executed after each frame is rendered. + * @param onRenderFrame optional callback function that gets executed after each frame is rendered. */ - var Renderer = Springy.Renderer = function(layout, clear, drawEdge, drawNode, onRenderStop, onRenderStart, onRender) { + var Renderer = Springy.Renderer = function(layout, clear, drawEdge, drawNode, onRenderStop, onRenderStart, onRenderFrame) { this.layout = layout; this.clear = clear; this.drawEdge = drawEdge; this.drawNode = drawNode; this.onRenderStop = onRenderStop; this.onRenderStart = onRenderStart; - this.onRender = onRender; + this.onRenderFrame = onRenderFrame; this.layout.graph.addGraphListener(this); } @@ -686,7 +686,7 @@ t.drawNode(node, point.p); }); - if (t.onRender !== undefined) { t.onRender(); } + if (t.onRenderFrame !== undefined) { t.onRenderFrame(); } }, this.onRenderStop, this.onRenderStart); };