vendor/assets/build/medias/rubies/examples/delete.rb in atome-0.5.1.9 vs vendor/assets/build/medias/rubies/examples/delete.rb in atome-0.5.2.5

- old
+ new

@@ -1,7 +1,29 @@ # frozen_string_literal: true -b = box +b = box({left: 333}) -wait 1 do +b.circle({top: 66, id: :the_circle}) + +wait 4 do b.delete(true) -end \ No newline at end of file +end + +wait 3 do + b.attached.value.each do |attached_atome_id| + b.delete({id: attached_atome_id}) + b.shadow({ renderers: [:browser], id: :shadow2, type: :shadow, parents: [], children: [], + left: 3, top: 9, blur: 3, direction: '', + red: 0, green: 0, blue: 0, alpha: 1 + }) + end + +end + +wait 2 do + b.delete(:left) +end + + +wait 1 do + b.delete({id: :the_circle}) +end