Sha256: dc3ec1369c87de5f3ac7f880069ca3c58e06455e3a7b28b274f84015bca60445

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

module D3
  class PointScale
    include D3::Native

    def call(t)
      v = @native.call(t)
      `v === undefined ? nil : v`
    end
    attributes_d3 %i[
      domain
      range
      rangeRound
      padding
      align
      round
    ]
    alias_native_new :copy
    alias_native :bandwidth
    alias_native :step
  end

  class << self
    def scale_point
      D3::PointScale.new @d3.JS.scalePoint
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyper-d3-1.0.0.lap28 lib/d3/point_scale.rb
hyper-d3-1.0.0.lap27 lib/d3/point_scale.rb
hyper-d3-1.0.0.lap26 lib/d3/point_scale.rb
hyper-d3-1.0.0.lap25 lib/d3/point_scale.rb
hyper-d3-1.0.0.lap24 lib/d3/point_scale.rb
hyper-d3-1.0.0.lap23 lib/d3/point_scale.rb