Sha256: f18d0cab7f0edee05d503ed042430515ca536ba701abada97c011d697ba6bf65

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

# frozen_string_literal: true

# please note that whatever the atome resize will return the size of the view!
view = grab(:view)
view.on(:resize) do |event|
  puts "view size is #{event}"
end

b=box
b.touch(true) do
  view.on(:remove)
end


c=circle({ left: 333 })

c.touch(true) do
  view.on(:resize) do |event|
    puts "Now size is : #{event}"
  end
end

Version data entries

4 entries across 3 versions & 1 rubygems

Version Path
atome-0.5.7.6.5 vendor/assets/src/medias/utils/examples/particles/resize/example.rb
atome-0.5.7.6.5 vendor/assets/src/medias/utils/examples/particles/size/example.rb
atome-0.5.7.6.0 vendor/assets/application/examples/on_resize.rb
atome-0.5.7.5.9 vendor/assets/application/examples/on_resize.rb