Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/time.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# rendering text, glyphs, etc.
class Epoch.Time.Plot extends Epoch.Chart.Canvas
defaults =
domain: null
range: null
fps: 24
historySize: 120
Expand Down Expand Up @@ -46,7 +47,9 @@ class Epoch.Time.Plot extends Epoch.Chart.Canvas
'option:tickFormats.right': 'tickFormatsChanged'
'option:tickFormats.bottom': 'tickFormatsChanged'
'option:tickFormats.left': 'tickFormatsChanged'

'option:domain': 'domainChanged'
'option:range': 'rangeChanged'

# Creates a new real-time plot.
#
# @param [Object] options Options for the plot.
Expand Down Expand Up @@ -598,3 +601,8 @@ class Epoch.Time.Stack extends Epoch.Time.Plot
@_stackLayers()
@_prepareLayers(layers) for layers in @_queue
super()

domainChanged: -> @draw()

rangeChanged: -> @draw()