 
   # Drawing methods
   # -------------------
+
+  redraw: ->
+    if @force.alpha() < @force.alphaMin()
+      @onTick()
 
   # Tick Function
   onTick: =>

  rescale: ->
    @viewport.translate.x = @viewport.origin.x + @viewport.x - @viewport.offsetx - @viewport.offsetnode.x
    @viewport.translate.y = @viewport.origin.y + @viewport.y - @viewport.offsety - @viewport.offsetnode.y
    if @force.alpha() < @force.alphaMin()
      @onTick()

  rescaleTransition: ->
    # implement transition here

    # that's make some weird effects in force layout during animation
    #@data_relations_visibles.sort @sortRelations
    # update canvas if force layout stoped
    @redraw()


module.exports = VisualizationCanvas