Class: D3::RadialAreaGenerator

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/d3/radial_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/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_angleObject



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_radiusObject



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_radiusObject



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_angleObject



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

def line_start_angle
  D3::RadialLineGenerator.new @native.JS.lineStartAngle
end