Class: D3::RadialAreaGenerator
- Inherits:
-
Object
- Object
- D3::RadialAreaGenerator
- Includes:
- Native
- Defined in:
- lib/opal/d3/radial_area.rb
Instance Method Summary collapse
- #call(*args) ⇒ Object
- #curve(new_value = `undefined`) ⇒ Object
- #line_end_angle ⇒ Object
- #line_inner_radius ⇒ Object
- #line_outer_radius ⇒ Object
- #line_start_angle ⇒ Object
Methods included from Native
Instance Method Details
#call(*args) ⇒ Object
5 6 7 8 |
# File 'lib/opal/d3/radial_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/radial_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_end_angle ⇒ Object
31 32 33 |
# File 'lib/opal/d3/radial_area.rb', line 31 def line_end_angle D3::RadialLineGenerator.new @native.JS.lineEndAngle end |
#line_inner_radius ⇒ Object
35 36 37 |
# File 'lib/opal/d3/radial_area.rb', line 35 def line_inner_radius D3::RadialLineGenerator.new @native.JS.lineInnerRadius end |
#line_outer_radius ⇒ Object
39 40 41 |
# File 'lib/opal/d3/radial_area.rb', line 39 def line_outer_radius D3::RadialLineGenerator.new @native.JS.lineOuterRadius end |
#line_start_angle ⇒ Object
27 28 29 |
# File 'lib/opal/d3/radial_area.rb', line 27 def line_start_angle D3::RadialLineGenerator.new @native.JS.lineStartAngle end |