Class: D3::ContinuousScale

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

Direct Known Subclasses

LogScale, PowScale

Instance Method Summary collapse

Methods included from Native

included, #initialize

Instance Method Details

#call(t) ⇒ Object



4
5
6
# File 'lib/opal/d3/continuous_scale.rb', line 4

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

#interpolate(&block) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/opal/d3/continuous_scale.rb', line 17

def interpolate(&block)
  if block
    @native.JS.interpolate(block)
    self
  else
    @native.JS.interpolate
  end
end