Class: D3::ThresholdScale

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/d3/threshold_scale.rb

Instance Method Summary collapse

Methods included from Native

included, #initialize

Instance Method Details

#call(t) ⇒ Object



8
9
10
# File 'lib/opal/d3/threshold_scale.rb', line 8

def call(t)
  @native.call(t)
end

#invert_extent(t) ⇒ Object



12
13
14
15
# File 'lib/opal/d3/threshold_scale.rb', line 12

def invert_extent(t)
  a,b = @native.JS.invertExtent(t)
  [`a === undefined ? nil : a`, `b === undefined ? nil : b`]
end