Class: D3::AreaGenerator
Instance Method Summary collapse
- #call(*args) ⇒ Object
- #curve(new_value = `undefined`) ⇒ Object
- #line_x0 ⇒ Object
- #line_x1 ⇒ Object
- #line_y0 ⇒ Object
- #line_y1 ⇒ Object
Methods included from Native
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_x0 ⇒ Object
27 28 29 |
# File 'lib/opal/d3/area.rb', line 27 def line_x0 D3::LineGenerator.new @native.JS.lineX0 end |
#line_x1 ⇒ Object
31 32 33 |
# File 'lib/opal/d3/area.rb', line 31 def line_x1 D3::LineGenerator.new @native.JS.lineX1 end |
#line_y0 ⇒ Object
35 36 37 |
# File 'lib/opal/d3/area.rb', line 35 def line_y0 D3::LineGenerator.new @native.JS.lineY0 end |
#line_y1 ⇒ Object
39 40 41 |
# File 'lib/opal/d3/area.rb', line 39 def line_y1 D3::LineGenerator.new @native.JS.lineY1 end |