Sha256: 249171808d54a783f51a6bc58eee14e88e82cb9d851a2e563e7c3510aa75904f

Contents?: true

Size: 343 Bytes

Versions: 15

Compression:

Stored size: 343 Bytes

Contents

# backtick_javascript: true

module Browser
  class Element
    element :canvas do
      def context(type='2d')
        Context.new(`#@native.getContext(#{type})`)
      end

      class Context
        include DelegateNative

        def initialize native
          @native = native
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
isomorfeus-preact-23.9.0.rc12 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc11 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc10 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc9 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc8 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc7 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc6 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc5 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc4 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc3 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc2 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.9.0.rc1 lib/browser_auto/browser/element/canvas.rb
isomorfeus-preact-23.8.0.rc3 lib/browser/element/canvas.rb
isomorfeus-preact-23.8.0.rc2 lib/browser/element/canvas.rb
isomorfeus-preact-23.8.0.rc1 lib/browser/element/canvas.rb