     options.fakeLineColor    or= "green"
     options.fakeLineDashes    ?= []
     options.curveDistance     ?= 50
+    options.updateEvery       ?= 10
 
     super
 

    @activeDias      = []
    @activeJoints    = []
    @fakeConnections = []

  diaAdded: (container, diaObj) ->


    @fakeConnections = []
    @updateScene()


  updateScene: do (queued = no) -> ->

    return  if @_paused

    return unless @parentIsInDom
      if not queued
        @once 'viewAppended', @bound 'updateScene'
        queued = yes

      return

    needsUpdate = !!@_forceUpdate
    @cleanup @realCanvas

    for connection in @connections

      if connection.options.transfers.length > 0
        needsUpdate = yes
        KD.utils.defer =>
          @_autoUpdate ?= KD.utils.repeat @updateEvery, @bound 'updateScene'

      @drawConnectionLine connection

    for connection in @fakeConnections
      @drawConnectionLine connection

    unless needsUpdate
      @_autoUpdate = KD.utils.killRepeat @_autoUpdate


  pause: ->
    @_paused = yes


  play: ->
    @_paused = no
    @updateScene()


  startAutoUpdate: do (autoKill = null) -> (duration) ->

    @_forceUpdate = yes
    @_autoUpdate ?= KD.utils.repeat @updateEvery, @bound 'updateScene'

    return  unless duration
    KD.utils.killWait autoKill
    autoKill = KD.utils.wait duration, @bound 'stopAutoUpdate'


  stopAutoUpdate: ->
    @_forceUpdate = no
    @_autoUpdate = KD.utils.killRepeat @_autoUpdate


  getBezierCurves = (t, pos) ->

