Sha256: 0ac44ee631d34e39644d6000d5f6796f75025cb15f2821a881b9a4e43ff40168

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

module D3
  class Path
    include D3::Native

    # D3 methods aren't chainable, but there's no reason why they shouldn't be
    aliases_native_chainable %i[
      moveTo
      closePath
      lineTo
      quadraticCurveTo
      bezierCurveTo
      arcTo
      arc
      rect
    ]
    alias_native :to_s, :toString
  end

  class << self
    def path
      D3::Path.new @d3.JS.path
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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