atome 0.5.1.9 → 0.5.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +22 -5
- data/lib/atome/atome.rb +46 -21
- data/lib/atome/extensions/atome.rb +5 -26
- data/lib/atome/extensions/geolocation.rb +0 -1
- data/lib/atome/extensions/matrix.rb +171 -0
- data/lib/atome/extensions/ping.rb +9 -11
- data/lib/atome/genesis/generators/atome.rb +14 -2
- data/lib/atome/genesis/generators/communication.rb +1 -1
- data/lib/atome/genesis/generators/event.rb +32 -3
- data/lib/atome/genesis/generators/identity.rb +32 -0
- data/lib/atome/genesis/generators/material.rb +21 -0
- data/lib/atome/genesis/generators/spatial.rb +1 -0
- data/lib/atome/genesis/generators/time.rb +5 -0
- data/lib/atome/genesis/generators/utility.rb +20 -2
- data/lib/atome/genesis/genesis.rb +4 -4
- data/lib/atome/genesis/sparkle.rb +1 -1
- data/lib/atome/helpers/callbacks.rb +36 -29
- data/lib/atome/helpers/essentials.rb +5 -2
- data/lib/atome/helpers/utilities.rb +59 -10
- data/lib/atome/kernel/universe.rb +3 -7
- data/lib/atome/presets/atome.rb +11 -7
- data/lib/atome/renderers/browser/atome.rb +7 -7
- data/lib/atome/renderers/browser/browser.rb +6 -2
- data/lib/atome/renderers/browser/effect.rb +2 -2
- data/lib/atome/renderers/browser/event.rb +25 -19
- data/lib/atome/renderers/browser/geometry.rb +2 -2
- data/lib/atome/renderers/browser/helpers/animation_helper.rb +69 -0
- data/lib/atome/renderers/browser/helpers/browser_helper.rb +0 -1
- data/lib/atome/renderers/browser/helpers/color_helper.rb +0 -2
- data/lib/atome/renderers/browser/helpers/drag_helper.rb +6 -6
- data/lib/atome/renderers/browser/helpers/effect_helper.rb +1 -0
- data/lib/atome/renderers/browser/helpers/event_helper.rb +59 -0
- data/lib/atome/renderers/browser/helpers/video_helper.rb +10 -3
- data/lib/atome/renderers/browser/identity.rb +10 -3
- data/lib/atome/renderers/browser/material.rb +28 -5
- data/lib/atome/renderers/browser/spatial.rb +36 -5
- data/lib/atome/renderers/browser/time.rb +3 -0
- data/lib/atome/renderers/browser/utility.rb +20 -11
- data/lib/atome/renderers/headless/utility.rb +2 -2
- data/lib/atome/renderers/html/atome.rb +5 -5
- data/lib/atome/renderers/html/effect.rb +1 -1
- data/lib/atome/renderers/html/event.rb +1 -1
- data/lib/atome/renderers/html/geometry.rb +2 -2
- data/lib/atome/renderers/html/html.rb +1 -1
- data/lib/atome/renderers/html/identity.rb +2 -2
- data/lib/atome/renderers/html/spatial.rb +5 -5
- data/lib/atome/renderers/html/utility.rb +7 -7
- data/lib/atome/renderers/server/utility.rb +2 -2
- data/lib/atome/version.rb +1 -1
- data/lib/atome.rb +7 -3
- data/sig/atome.rbs +6 -0
- data/sig/atome_js.rbs +1 -0
- data/vendor/assets/build/css/style.css +23 -16
- data/vendor/assets/build/index.html +4 -2
- data/vendor/assets/build/js/third_parties/wad.min.js +9 -0
- data/vendor/assets/build/medias/audios/Binrpilot.mp3 +0 -0
- data/vendor/assets/build/medias/rubies/examples/_2_solve.rb +24 -2
- data/vendor/assets/build/medias/rubies/examples/_audio.rb +178 -0
- data/vendor/assets/build/medias/rubies/examples/_dataset.rb +80 -0
- data/vendor/assets/build/medias/rubies/examples/_os.rb +29 -0
- data/vendor/assets/build/medias/rubies/examples/_test.rb +1 -0
- data/vendor/assets/build/medias/rubies/examples/_vie.rb +211 -0
- data/vendor/assets/build/medias/rubies/examples/add.rb +25 -0
- data/vendor/assets/build/medias/rubies/examples/animation.rb +81 -0
- data/vendor/assets/build/medias/rubies/examples/{atome.new.rb → atome_new.rb} +5 -5
- data/vendor/assets/build/medias/rubies/examples/bottom.rb +1 -1
- data/vendor/assets/build/medias/rubies/examples/center.rb +21 -0
- data/vendor/assets/build/medias/rubies/examples/clone.rb +35 -0
- data/vendor/assets/build/medias/rubies/examples/color.rb +20 -15
- data/vendor/assets/build/medias/rubies/examples/cursor.rb +7 -0
- data/vendor/assets/build/medias/rubies/examples/delete.rb +25 -3
- data/vendor/assets/build/medias/rubies/examples/drag.rb +3 -2
- data/vendor/assets/build/medias/rubies/examples/edit.rb +12 -0
- data/vendor/assets/build/medias/rubies/examples/empty_atome.rb +12 -0
- data/vendor/assets/build/medias/rubies/examples/hide.rb +7 -0
- data/vendor/assets/build/medias/rubies/examples/markers.rb +48 -0
- data/vendor/assets/build/medias/rubies/examples/matrix.rb +58 -0
- data/vendor/assets/build/medias/rubies/examples/monitoring.rb +22 -11
- data/vendor/assets/build/medias/rubies/examples/play.rb +1 -1
- data/vendor/assets/build/medias/rubies/examples/read.rb +7 -4
- data/vendor/assets/build/medias/rubies/examples/remove.rb +16 -0
- data/vendor/assets/build/medias/rubies/examples/right.rb +1 -1
- data/vendor/assets/build/medias/rubies/examples/shadow.rb +8 -1
- data/vendor/assets/build/medias/rubies/examples/sort.rb +7 -4
- data/vendor/assets/build/medias/rubies/examples/style.rb +4 -0
- data/vendor/assets/build/medias/rubies/examples/touch.rb +50 -7
- data/vendor/assets/build/medias/texts/lorem.txt +1 -0
- metadata +28 -5
- data/vendor/assets/build/medias/rubies/examples/_animation.rb +0 -46
- data/vendor/assets/build/medias/rubies/examples/at.rb +0 -17
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
my_video = Atome.new(
|
4
|
+
video: { renderers: [:browser], id: :video1, type: :video, parents: [:view], clones: [],
|
5
|
+
path: './medias/videos/avengers.mp4', left: 333, top: 33, width: 777
|
6
|
+
}
|
7
|
+
)
|
8
|
+
|
9
|
+
my_video.touch(true) do
|
10
|
+
my_video.play(10)
|
11
|
+
puts "play : #{my_video.play}, pause : #{my_video.pause}"
|
12
|
+
end
|
13
|
+
|
14
|
+
m_code1 = lambda do |val|
|
15
|
+
puts "hello : #{val}"
|
16
|
+
end
|
17
|
+
m_code2 = lambda do |val|
|
18
|
+
puts "hi there : #{val}"
|
19
|
+
end
|
20
|
+
|
21
|
+
m_code22 = lambda do |val|
|
22
|
+
puts "Super!! : #{val}"
|
23
|
+
end
|
24
|
+
|
25
|
+
stoper = lambda do
|
26
|
+
my_video.pause(true)
|
27
|
+
end
|
28
|
+
|
29
|
+
looper=lambda do
|
30
|
+
my_video.add({ markers: { my_stop: { begin: 6, code: stoper } } })
|
31
|
+
my_video.play(4)
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
# the marker below wont be executed because m2 will override it
|
36
|
+
my_video.markers({ m1: { begin: 13, code: m_code1 } }) do |_params|
|
37
|
+
puts 'stop'
|
38
|
+
end
|
39
|
+
# the marker will replace marker m1
|
40
|
+
my_video.markers({ m2: { begin: 12.876, code: m_code2 } }) do |_params|
|
41
|
+
puts'good'
|
42
|
+
end
|
43
|
+
|
44
|
+
# The markers below will be executed because they're added
|
45
|
+
|
46
|
+
my_video.add({ markers: { my_marker: { begin: 22.87576, code: looper } } })
|
47
|
+
my_video.add({ markers: { m3: { begin: 16.87576, code: m_code2 } } })
|
48
|
+
my_video.add({ markers: { m4: { begin: 14.87576,end: 16, code: m_code22 } } })
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
a = Matrix.new({ col: 1, row: 8, width: 120, height: 333, id: :vie_playground, name: :matrix_2, margin: 9,
|
4
|
+
matrix_style: { color: { red: 0.3, green: 0.3, blue: 0.6, alpha: 1 }, smooth: 20 },
|
5
|
+
cell_style: { color: { red: 0.333, green: 0.333, blue: 0.6, alpha: 1 }, smooth: 300, shadow: { blur: 6 }
|
6
|
+
#border: { color: :black, thickness: 0, pattern: :solid }
|
7
|
+
}
|
8
|
+
})
|
9
|
+
|
10
|
+
######## tests
|
11
|
+
|
12
|
+
a.assign(2) do
|
13
|
+
curent_cell = self
|
14
|
+
curent_cell.image({ path: "./medias/images/moto.png", width: 33, height: 33})
|
15
|
+
curent_cell.active(:inactive)
|
16
|
+
touch(:long) do
|
17
|
+
if curent_cell.active.value ==:inactive
|
18
|
+
curent_cell.color(:yellow)
|
19
|
+
curent_cell.active(:active)
|
20
|
+
else
|
21
|
+
curent_cell.color(:red)
|
22
|
+
curent_cell.active(:inactive)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
a.assign(3) do
|
28
|
+
color({ red: 0.6, green: 0.333, blue: 0.6, alpha: 1 })
|
29
|
+
grab(:vie_playground_3).shadow({ blur: 12 })
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
wait 2 do
|
34
|
+
a.add({ columns: 3 })
|
35
|
+
end
|
36
|
+
|
37
|
+
# add row
|
38
|
+
# wait 4 do
|
39
|
+
# a.add({ rows: 2 })
|
40
|
+
# end
|
41
|
+
|
42
|
+
# examples:
|
43
|
+
|
44
|
+
# add columns
|
45
|
+
# a.add({ columns: 3 })
|
46
|
+
|
47
|
+
# add row
|
48
|
+
# a.add({ rows: 2 })
|
49
|
+
|
50
|
+
# reformat
|
51
|
+
# a.reformat({rows: 4, cols: 2})
|
52
|
+
|
53
|
+
# resize matrix
|
54
|
+
# a.resize_matrix({ width: 666, height: 333 })
|
55
|
+
|
56
|
+
# crop matrix
|
57
|
+
# a.matrix.height(150)
|
58
|
+
|
@@ -1,17 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
a = text({data: "open the console!"})
|
3
|
+
a = text({ data: "open the console!" })
|
4
4
|
a.right(44).left(66)
|
5
5
|
|
6
|
-
b = Atome.new(shape: { type: :shape, id: :my_shape, children: [],parents: [:view], renderers: [:browser],
|
6
|
+
b = Atome.new(shape: { type: :shape, id: :my_shape, children: [], parents: [:view], renderers: [:browser],
|
7
7
|
left: 0, right: 33
|
8
8
|
})
|
9
9
|
|
10
|
-
c = Atome.new(shape: { type: :shape, id: :my_pix,children: [], parents: [:view], renderers: [:browser],
|
10
|
+
c = Atome.new(shape: { type: :shape, id: :my_pix, children: [], parents: [:view], renderers: [:browser],
|
11
11
|
left: 50, right: 78
|
12
12
|
})
|
13
13
|
|
14
|
-
a.monitor({ atomes: grab(:view).children.value, particles: [:left] }) do |atome,element, value|
|
14
|
+
a.monitor({ atomes: grab(:view).children.value, particles: [:left] }) do |atome, element, value|
|
15
15
|
puts "monitoring: #{atome.id}, #{element}, #{value}"
|
16
16
|
end
|
17
17
|
|
@@ -19,15 +19,26 @@ b.left(936)
|
|
19
19
|
b.left(777)
|
20
20
|
c.left(888)
|
21
21
|
|
22
|
-
#test 2
|
23
|
-
|
22
|
+
# test 2
|
23
|
+
aa = text({ data: 'touch me and look in the console', top: 99, width: 399, left: 120 })
|
24
|
+
aa.touch(true) do
|
25
|
+
aa.color(:red)
|
26
|
+
aa.left(333)
|
27
|
+
aa.width(555)
|
28
|
+
aa.right(4)
|
29
|
+
aa.height(199)
|
30
|
+
end
|
31
|
+
|
32
|
+
aa.box({ id: :theboxy })
|
24
33
|
|
25
|
-
|
26
|
-
|
27
|
-
a.left(333)
|
34
|
+
aa.monitor({ atomes: grab(:view).children.value, particles: [:left] }) do |_atome, _element, value|
|
35
|
+
puts "the left value was change to : #{value}"
|
28
36
|
end
|
29
37
|
|
30
|
-
|
31
|
-
puts
|
38
|
+
aa.monitor({ atomes: grab(:view).children.value, particles: [:width] }) do |_atome, _element, value|
|
39
|
+
puts "the width's value was change to : #{value}"
|
40
|
+
end
|
32
41
|
|
42
|
+
aa.monitor({ atomes: grab(:view).children.value, particles: [:left], id: :my_monitorer }) do |_atome, _element, value|
|
43
|
+
puts "the second monitor left value was log to : #{value}"
|
33
44
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
my_video = Atome.new(
|
4
|
-
video: { renderers: [:browser], id: :video1, type: :video, parents: [:view],
|
4
|
+
video: { renderers: [:browser], id: :video1, type: :video, parents: [:view],clones: [],
|
5
5
|
time: 33, path: './medias/videos/avengers.mp4', left: 333, top: 33, width: 777
|
6
6
|
}
|
7
7
|
) do |params|
|
@@ -1,7 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
puts "Attention this method only work with a server due to security restriction "
|
4
|
-
a
|
5
|
-
a.
|
6
|
-
|
7
|
-
|
4
|
+
a=box
|
5
|
+
a.touch(true) do
|
6
|
+
a.read('rubies/examples/image.rb') do |params|
|
7
|
+
text({data: params, visual:{size: 9}})
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# TODO : some atomes and particles may need have extra code to be removed (eg: color)
|
4
|
+
|
5
|
+
b = box({ left: 666, smooth: 12, blur: 3, color: :red})
|
6
|
+
|
7
|
+
wait 1 do
|
8
|
+
b.remove(:blur)
|
9
|
+
b.remove(:left)
|
10
|
+
wait 1 do
|
11
|
+
b.remove(:color)
|
12
|
+
wait 1 do
|
13
|
+
b.remove(:smooth)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
b = box({ id: :the_box, left: 99, top: 99 })
|
4
4
|
|
5
|
+
|
6
|
+
|
7
|
+
|
5
8
|
s = b.shadow({ renderers: [:browser], id: :shadow2, type: :shadow, parents: [], children: [],
|
6
9
|
left: 3, top: 9, blur: 3, direction: :inset,
|
7
10
|
red: 0, green: 0, blue: 0, alpha: 1
|
@@ -9,7 +12,7 @@ s = b.shadow({ renderers: [:browser], id: :shadow2, type: :shadow, parents: [],
|
|
9
12
|
|
10
13
|
|
11
14
|
wait 1 do
|
12
|
-
s.
|
15
|
+
s.attach([:the_box])
|
13
16
|
# or
|
14
17
|
# b.children([:shadow2])
|
15
18
|
wait 1 do
|
@@ -27,4 +30,8 @@ wait 1 do
|
|
27
30
|
s.green(0.7)
|
28
31
|
end
|
29
32
|
end
|
33
|
+
end
|
34
|
+
|
35
|
+
wait 3 do
|
36
|
+
b.shadow({ blur: 33 })
|
30
37
|
end
|
@@ -3,14 +3,17 @@
|
|
3
3
|
a = box({ width: 333, height: 333, id: :the_grid })
|
4
4
|
i = 0
|
5
5
|
while i < 16
|
6
|
-
b=Atome.new(
|
7
|
-
shape: { renderers: [:browser],
|
6
|
+
b = Atome.new(
|
7
|
+
shape: { renderers: [:browser],id: "the_shape#{i}", type: :shape, parents: [:the_grid], children: [],
|
8
8
|
width: 50, height: 50,
|
9
9
|
color: { renderers: [:browser], id: :c31, type: :color, parents: ["the_shape#{i}"], children: [],
|
10
10
|
red: 1, green: 0.15, blue: 0.15, alpha: 0.6 } }
|
11
11
|
)
|
12
|
-
b.text({data: "item#{i+1}", visual: { size: 12 }})
|
12
|
+
b.text({ data: "item#{i + 1}", visual: { size: 12 } })
|
13
13
|
i += 1
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
|
+
a.sort(true) do |el|
|
17
|
+
puts "just sorted : #{el}"
|
18
|
+
end
|
16
19
|
|
@@ -1,13 +1,56 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
separator=120
|
4
|
+
b=box({ left: separator, id: :test_box })
|
5
|
+
c=box({ left: b.left.value+separator })
|
6
|
+
d=box({ left: c.left.value+separator })
|
7
|
+
e=box({ left: d.left.value+separator })
|
4
8
|
|
5
|
-
b.touch(
|
6
|
-
color(
|
7
|
-
|
9
|
+
b.touch(:down) do
|
10
|
+
b.color(:red)
|
11
|
+
c.color(:red)
|
12
|
+
d.color(:red)
|
13
|
+
e.color(:red)
|
8
14
|
end
|
15
|
+
b.text({data: :down})
|
9
16
|
|
10
|
-
|
11
|
-
color(:
|
12
|
-
|
17
|
+
c.touch(:long) do
|
18
|
+
b.color(:blue)
|
19
|
+
c.color(:blue)
|
20
|
+
d.color(:blue)
|
21
|
+
e.color(:blue)
|
22
|
+
end
|
23
|
+
c.text({data: :long})
|
24
|
+
|
25
|
+
d.touch(:up) do
|
26
|
+
b.color(:yellow)
|
27
|
+
c.color(:yellow)
|
28
|
+
d.color(:yellow)
|
29
|
+
e.color(:yellow)
|
30
|
+
end
|
31
|
+
d.text({data: :up})
|
32
|
+
e.touch(:double) do
|
33
|
+
b.color(:black)
|
34
|
+
c.color(:black)
|
35
|
+
d.color(:black)
|
36
|
+
e.color(:black)
|
37
|
+
end
|
38
|
+
e.text({data: :double})
|
39
|
+
|
40
|
+
ccc=circle
|
41
|
+
ccc.top(199)
|
42
|
+
|
43
|
+
# def unbind(val=nil)
|
44
|
+
# id_found=self.atome[:id]
|
45
|
+
# `
|
46
|
+
# const el = document.getElementById(#{id_found});
|
47
|
+
# interact('#'+#{id_found}).unset(#{val});
|
48
|
+
# `
|
49
|
+
# end
|
50
|
+
b.touch(:long) do
|
51
|
+
b.color(:cyan)
|
52
|
+
end
|
53
|
+
|
54
|
+
ccc.touch(true) do
|
55
|
+
b.unbind(:tap)
|
13
56
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
lorem ipsum...
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Eric Godard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arduino_firmata
|
@@ -380,6 +380,7 @@ files:
|
|
380
380
|
- lib/atome/atome.rb
|
381
381
|
- lib/atome/extensions/atome.rb
|
382
382
|
- lib/atome/extensions/geolocation.rb
|
383
|
+
- lib/atome/extensions/matrix.rb
|
383
384
|
- lib/atome/extensions/ping.rb
|
384
385
|
- lib/atome/extensions/sha.rb
|
385
386
|
- lib/atome/genesis/generators/atome.rb
|
@@ -390,6 +391,7 @@ files:
|
|
390
391
|
- lib/atome/genesis/generators/identity.rb
|
391
392
|
- lib/atome/genesis/generators/material.rb
|
392
393
|
- lib/atome/genesis/generators/spatial.rb
|
394
|
+
- lib/atome/genesis/generators/time.rb
|
393
395
|
- lib/atome/genesis/generators/utility.rb
|
394
396
|
- lib/atome/genesis/genesis.rb
|
395
397
|
- lib/atome/genesis/sparkle.rb
|
@@ -424,6 +426,7 @@ files:
|
|
424
426
|
- lib/atome/renderers/browser/helpers/color_helper.rb
|
425
427
|
- lib/atome/renderers/browser/helpers/drag_helper.rb
|
426
428
|
- lib/atome/renderers/browser/helpers/effect_helper.rb
|
429
|
+
- lib/atome/renderers/browser/helpers/event_helper.rb
|
427
430
|
- lib/atome/renderers/browser/helpers/image_helper.rb
|
428
431
|
- lib/atome/renderers/browser/helpers/shadow_helper.rb
|
429
432
|
- lib/atome/renderers/browser/helpers/shape_helper.rb
|
@@ -434,6 +437,7 @@ files:
|
|
434
437
|
- lib/atome/renderers/browser/material.rb
|
435
438
|
- lib/atome/renderers/browser/opal_browser.rb
|
436
439
|
- lib/atome/renderers/browser/spatial.rb
|
440
|
+
- lib/atome/renderers/browser/time.rb
|
437
441
|
- lib/atome/renderers/browser/utility.rb
|
438
442
|
- lib/atome/renderers/headless/headless.rb
|
439
443
|
- lib/atome/renderers/headless/utility.rb
|
@@ -459,6 +463,7 @@ files:
|
|
459
463
|
- lib/atome/renderers/server/utility.rb
|
460
464
|
- lib/atome/version.rb
|
461
465
|
- sig/atome.rbs
|
466
|
+
- sig/atome_js.rbs
|
462
467
|
- vendor/assets/Guardfile
|
463
468
|
- vendor/assets/Rakefile
|
464
469
|
- vendor/assets/application/index.rb
|
@@ -483,7 +488,9 @@ files:
|
|
483
488
|
- vendor/assets/build/js/third_parties/sortable.min.js
|
484
489
|
- vendor/assets/build/js/third_parties/three.min.js
|
485
490
|
- vendor/assets/build/js/third_parties/w3color.js
|
491
|
+
- vendor/assets/build/js/third_parties/wad.min.js
|
486
492
|
- vendor/assets/build/js/third_parties/zim.min.js
|
493
|
+
- vendor/assets/build/medias/audios/Binrpilot.mp3
|
487
494
|
- vendor/assets/build/medias/audios/audio_missing.wav
|
488
495
|
- vendor/assets/build/medias/audios/clap.wav
|
489
496
|
- vendor/assets/build/medias/audios/cowbell.wav
|
@@ -596,30 +603,43 @@ files:
|
|
596
603
|
- vendor/assets/build/medias/javascripts/test.js
|
597
604
|
- vendor/assets/build/medias/rubies/examples/!run.rb
|
598
605
|
- vendor/assets/build/medias/rubies/examples/_2_solve.rb
|
599
|
-
- vendor/assets/build/medias/rubies/examples/
|
600
|
-
- vendor/assets/build/medias/rubies/examples/
|
601
|
-
- vendor/assets/build/medias/rubies/examples/
|
606
|
+
- vendor/assets/build/medias/rubies/examples/_audio.rb
|
607
|
+
- vendor/assets/build/medias/rubies/examples/_dataset.rb
|
608
|
+
- vendor/assets/build/medias/rubies/examples/_os.rb
|
609
|
+
- vendor/assets/build/medias/rubies/examples/_test.rb
|
610
|
+
- vendor/assets/build/medias/rubies/examples/_vie.rb
|
611
|
+
- vendor/assets/build/medias/rubies/examples/add.rb
|
612
|
+
- vendor/assets/build/medias/rubies/examples/animation.rb
|
613
|
+
- vendor/assets/build/medias/rubies/examples/atome_new.rb
|
602
614
|
- vendor/assets/build/medias/rubies/examples/auto_height.rb
|
603
615
|
- vendor/assets/build/medias/rubies/examples/auto_width.rb
|
604
616
|
- vendor/assets/build/medias/rubies/examples/blur.rb
|
605
617
|
- vendor/assets/build/medias/rubies/examples/bottom.rb
|
606
618
|
- vendor/assets/build/medias/rubies/examples/box.rb
|
619
|
+
- vendor/assets/build/medias/rubies/examples/center.rb
|
607
620
|
- vendor/assets/build/medias/rubies/examples/circle.rb
|
608
621
|
- vendor/assets/build/medias/rubies/examples/clear.rb
|
622
|
+
- vendor/assets/build/medias/rubies/examples/clone.rb
|
609
623
|
- vendor/assets/build/medias/rubies/examples/code.rb
|
610
624
|
- vendor/assets/build/medias/rubies/examples/color.rb
|
611
625
|
- vendor/assets/build/medias/rubies/examples/create_atome_in_atome.rb
|
626
|
+
- vendor/assets/build/medias/rubies/examples/cursor.rb
|
612
627
|
- vendor/assets/build/medias/rubies/examples/delete.rb
|
613
628
|
- vendor/assets/build/medias/rubies/examples/drag.rb
|
629
|
+
- vendor/assets/build/medias/rubies/examples/edit.rb
|
614
630
|
- vendor/assets/build/medias/rubies/examples/element.rb
|
631
|
+
- vendor/assets/build/medias/rubies/examples/empty_atome.rb
|
615
632
|
- vendor/assets/build/medias/rubies/examples/fullscreen.rb
|
616
633
|
- vendor/assets/build/medias/rubies/examples/get_renderer_list.rb
|
617
634
|
- vendor/assets/build/medias/rubies/examples/grab.rb
|
618
635
|
- vendor/assets/build/medias/rubies/examples/height.rb
|
636
|
+
- vendor/assets/build/medias/rubies/examples/hide.rb
|
619
637
|
- vendor/assets/build/medias/rubies/examples/id.rb
|
620
638
|
- vendor/assets/build/medias/rubies/examples/image.rb
|
621
639
|
- vendor/assets/build/medias/rubies/examples/left.rb
|
622
640
|
- vendor/assets/build/medias/rubies/examples/link.rb
|
641
|
+
- vendor/assets/build/medias/rubies/examples/markers.rb
|
642
|
+
- vendor/assets/build/medias/rubies/examples/matrix.rb
|
623
643
|
- vendor/assets/build/medias/rubies/examples/monitoring.rb
|
624
644
|
- vendor/assets/build/medias/rubies/examples/mute.rb
|
625
645
|
- vendor/assets/build/medias/rubies/examples/on.rb
|
@@ -628,6 +648,7 @@ files:
|
|
628
648
|
- vendor/assets/build/medias/rubies/examples/play.rb
|
629
649
|
- vendor/assets/build/medias/rubies/examples/read.rb
|
630
650
|
- vendor/assets/build/medias/rubies/examples/refresh.rb
|
651
|
+
- vendor/assets/build/medias/rubies/examples/remove.rb
|
631
652
|
- vendor/assets/build/medias/rubies/examples/repeat.rb
|
632
653
|
- vendor/assets/build/medias/rubies/examples/right.rb
|
633
654
|
- vendor/assets/build/medias/rubies/examples/rotate.rb
|
@@ -635,6 +656,7 @@ files:
|
|
635
656
|
- vendor/assets/build/medias/rubies/examples/shadow.rb
|
636
657
|
- vendor/assets/build/medias/rubies/examples/smooth.rb
|
637
658
|
- vendor/assets/build/medias/rubies/examples/sort.rb
|
659
|
+
- vendor/assets/build/medias/rubies/examples/style.rb
|
638
660
|
- vendor/assets/build/medias/rubies/examples/text.rb
|
639
661
|
- vendor/assets/build/medias/rubies/examples/time.rb
|
640
662
|
- vendor/assets/build/medias/rubies/examples/top.rb
|
@@ -646,6 +668,7 @@ files:
|
|
646
668
|
- vendor/assets/build/medias/rubies/test.rb
|
647
669
|
- vendor/assets/build/medias/rubies/text_read.rb
|
648
670
|
- vendor/assets/build/medias/rubies/users/code.rb
|
671
|
+
- vendor/assets/build/medias/texts/lorem.txt
|
649
672
|
- vendor/assets/build/medias/utils/infos/color.rb
|
650
673
|
- vendor/assets/build/medias/utils/infos/width.rb
|
651
674
|
- vendor/assets/build/medias/videos/avengers.mp4
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
generator = Genesis.generator
|
4
|
-
|
5
|
-
generator.build_atome(:animation)
|
6
|
-
|
7
|
-
generator.build_render_method(:browser_animation) do |_value, _user_proc|
|
8
|
-
@browser_type = :web
|
9
|
-
end
|
10
|
-
|
11
|
-
generator.build_particle(:start)
|
12
|
-
generator.build_particle(:end)
|
13
|
-
|
14
|
-
class Atome
|
15
|
-
|
16
|
-
def animation(params = {}, &bloc)
|
17
|
-
default_renderer = Essentials.default_params[:render_engines]
|
18
|
-
atome_type = :animation
|
19
|
-
generated_render = params[:renderers] || default_renderer
|
20
|
-
generated_id = params[:id] || "#{atome_type}_#{Universe.atomes.length}"
|
21
|
-
generated_parents = params[:parents] || []
|
22
|
-
params = atome_common(atome_type, generated_id, generated_render, generated_parents, params)
|
23
|
-
Atome.new({ atome_type => params }, &bloc)
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
def animation(params = {}, &proc)
|
29
|
-
grab(:view).animation(params, &proc)
|
30
|
-
end
|
31
|
-
|
32
|
-
# b = box({ id: :my_box })
|
33
|
-
# a = Atome.new(animation: { renderers: [:browser], id: :the_animation1, type: :animation, children: [] })
|
34
|
-
a = animation({
|
35
|
-
children: [:my_box],
|
36
|
-
start: {
|
37
|
-
left: 33,
|
38
|
-
|
39
|
-
|
40
|
-
},
|
41
|
-
end: {
|
42
|
-
|
43
|
-
}
|
44
|
-
})
|
45
|
-
|
46
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
my_video = Atome.new(
|
4
|
-
video: { renderers: [:browser], id: :video1, type: :video, parents: [:view],
|
5
|
-
path: './medias/videos/avengers.mp4', left: 333, top: 33, width: 777
|
6
|
-
}
|
7
|
-
) do |params|
|
8
|
-
puts "video callback here #{params}"
|
9
|
-
end
|
10
|
-
|
11
|
-
my_video.touch(true) do
|
12
|
-
my_video.play(1)
|
13
|
-
end
|
14
|
-
|
15
|
-
my_video.at({ time: 2.6 }) do |value|
|
16
|
-
my_video.pause(true)
|
17
|
-
end
|