Class: D3::AreaGenerator

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

Instance Method Summary collapse

Methods included from Native

included, #initialize

Instance Method Details

#call(*args) ⇒ Object



5
6
7
8
# File 'lib/opal/d3/area.rb', line 5

def call(*args)
  result = @native.call(*args)
  `result === null ? nil : result`
end

#curve(new_value = `undefined`) ⇒ Object



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

def curve(new_value=`undefined`)
  if `new_value === undefined`
    D3::Curve.new @native.JS.curve
  else
    @native.JS.curve(new_value.to_n)
    self
  end
end

#line_x0Object



27
28
29
# File 'lib/opal/d3/area.rb', line 27

def line_x0
  D3::LineGenerator.new @native.JS.lineX0
end

#line_x1Object



31
32
33
# File 'lib/opal/d3/area.rb', line 31

def line_x1
  D3::LineGenerator.new @native.JS.lineX1
end

#line_y0Object



35
36
37
# File 'lib/opal/d3/area.rb', line 35

def line_y0
  D3::LineGenerator.new @native.JS.lineY0
end

#line_y1Object



39
40
41
# File 'lib/opal/d3/area.rb', line 39

def line_y1
  D3::LineGenerator.new @native.JS.lineY1
end