atome 0.5.2.5 → 0.5.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +25 -15
- data/app_builder_helpers/Rakefile +18 -18
- data/exe/atome +10 -2
- data/lib/atome/atome.rb +18 -14
- data/lib/atome/genesis/generators/event.rb +7 -3
- data/lib/atome/genesis/generators/geometry.rb +12 -0
- data/lib/atome/genesis/generators/identity.rb +6 -2
- data/lib/atome/genesis/generators/time.rb +5 -0
- data/lib/atome/genesis/genesis.rb +2 -2
- data/lib/atome/genesis/sparkle.rb +1 -0
- data/lib/atome/helpers/callbacks.rb +8 -9
- data/lib/atome/helpers/utilities.rb +35 -30
- data/lib/atome/kernel/universe.rb +7 -3
- data/lib/atome/renderers/browser/browser.rb +1 -0
- data/lib/atome/renderers/browser/event.rb +0 -5
- data/lib/atome/renderers/browser/helpers/effect_helper.rb +0 -3
- data/lib/atome/renderers/browser/helpers/video_helper.rb +9 -2
- data/lib/atome/renderers/browser/time.rb +3 -0
- data/lib/atome/renderers/html/html.rb +1 -1
- data/lib/atome/version.rb +1 -1
- data/lib/atome.rb +1 -0
- data/sig/atome.rbs +6 -0
- data/vendor/assets/server/atome_server.rb +4 -4
- data/vendor/assets/server/config.ru +5 -1
- data/vendor/assets/{build → src}/css/style.css +0 -0
- data/vendor/assets/{build → src}/favicon.ico +0 -0
- data/vendor/assets/{build → src}/index.html +0 -0
- data/vendor/assets/{build → src}/js/atome/atome.js +0 -0
- data/vendor/assets/{build → src}/js/atome/atome_helpers/atome_animate.js +0 -0
- data/vendor/assets/{build → src}/js/atome/atome_helpers/atome_drag.js +0 -0
- data/vendor/assets/{build → src}/js/atome/atome_helpers/atome_file.js +0 -0
- data/vendor/assets/{build → src}/js/atome/atome_helpers/atome_sort.js +0 -0
- data/vendor/assets/{build → src}/js/atome/atome_helpers/atome_time.js +0 -0
- data/vendor/assets/{build → src}/js/atome/atome_helpers/atome_video.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/fabric.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/interact.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/interact.min.js.map +0 -0
- data/vendor/assets/{build → src}/js/third_parties/ping.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/popmotion.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/sha256.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/sortable.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/three.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/w3color.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/wad.min.js +0 -0
- data/vendor/assets/{build → src}/js/third_parties/zim.min.js +0 -0
- data/vendor/assets/{build → src}/medias/audios/Binrpilot.mp3 +0 -0
- data/vendor/assets/{build → src}/medias/audios/audio_missing.wav +0 -0
- data/vendor/assets/{build → src}/medias/audios/clap.wav +0 -0
- data/vendor/assets/{build → src}/medias/audios/cowbell.wav +0 -0
- data/vendor/assets/{build → src}/medias/audios/hihat.wav +0 -0
- data/vendor/assets/{build → src}/medias/audios/kick.wav +0 -0
- data/vendor/assets/{build → src}/medias/audios/riff.m4a +0 -0
- data/vendor/assets/{build → src}/medias/audios/snare.wav +0 -0
- data/vendor/assets/{build → src}/medias/audios/tom.wav +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Dancing_Script/DancingScript-VariableFont_wght.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Dancing_Script/OFL.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Dancing_Script/README.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Dancing_Script/static/DancingScript-Bold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Dancing_Script/static/DancingScript-Medium.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Dancing_Script/static/DancingScript-Regular.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Dancing_Script/static/DancingScript-SemiBold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Mate_SC/MateSC-Regular.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Mate_SC/OFL.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/OFL.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/README.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/Raleway-Italic-VariableFont_wght.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/Raleway-VariableFont_wght.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-Black.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-BlackItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-Bold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-BoldItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-ExtraBold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-ExtraBoldItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-ExtraLight.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-ExtraLightItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-Italic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-Light.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-LightItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-Medium.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-MediumItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-Regular.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-SemiBold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-SemiBoldItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-Thin.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Raleway/static/Raleway-ThinItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/LICENSE.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/README.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-Black.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-Bold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-ExtraBold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-ExtraLight.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-Light.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-Medium.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-Regular.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-SemiBold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Roboto_Slab/static/RobotoSlab-Thin.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/OFL.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/README.txt +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/Vollkorn-Italic-VariableFont_wght.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/Vollkorn-VariableFont_wght.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-Black.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-BlackItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-Bold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-BoldItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-ExtraBold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-ExtraBoldItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-Italic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-Medium.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-MediumItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-Regular.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-SemiBold.ttf +0 -0
- data/vendor/assets/{build → src}/medias/fonts/Vollkorn/static/Vollkorn-SemiBoldItalic.ttf +0 -0
- data/vendor/assets/{build → src}/medias/images/Icon_Help.png +0 -0
- data/vendor/assets/{build → src}/medias/images/atome.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/avion.jpg +0 -0
- data/vendor/assets/{build → src}/medias/images/ballanim.png +0 -0
- data/vendor/assets/{build → src}/medias/images/blank.png +0 -0
- data/vendor/assets/{build → src}/medias/images/boat.png +0 -0
- data/vendor/assets/{build → src}/medias/images/cache.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/dices.png +0 -0
- data/vendor/assets/{build → src}/medias/images/eVe_back.png +0 -0
- data/vendor/assets/{build → src}/medias/images/elephant.png +0 -0
- data/vendor/assets/{build → src}/medias/images/eyes.jpg +0 -0
- data/vendor/assets/{build → src}/medias/images/freebsd.png +0 -0
- data/vendor/assets/{build → src}/medias/images/grain_texture.png +0 -0
- data/vendor/assets/{build → src}/medias/images/green_planet.png +0 -0
- data/vendor/assets/{build → src}/medias/images/image_missing.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/jeezs.png +0 -0
- data/vendor/assets/{build → src}/medias/images/keyboard.png +0 -0
- data/vendor/assets/{build → src}/medias/images/killer.jpg +0 -0
- data/vendor/assets/{build → src}/medias/images/living_room.png +0 -0
- data/vendor/assets/{build → src}/medias/images/logo.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/Facebook.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/GitHub Black.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/GitHub-Mark.eps +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/GitHub.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/TikTok.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/Twitter.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/YouTube.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/apple.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/atome.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/freebsd.png +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/instagram.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/logos/tiktok_back.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/moto.png +0 -0
- data/vendor/assets/{build → src}/medias/images/noise.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/piano.png +0 -0
- data/vendor/assets/{build → src}/medias/images/poisson.jpg +0 -0
- data/vendor/assets/{build → src}/medias/images/red_planet.png +0 -0
- data/vendor/assets/{build → src}/medias/images/sky.jpg +0 -0
- data/vendor/assets/{build → src}/medias/images/the_mask.svg +0 -0
- data/vendor/assets/{build → src}/medias/images/tile.png +0 -0
- data/vendor/assets/{build → src}/medias/images/tile_black.png +0 -0
- data/vendor/assets/{build → src}/medias/images/tile_white.png +0 -0
- data/vendor/assets/{build → src}/medias/javascripts/test.js +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/!run.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/_2_solve.rb +1 -1
- data/vendor/assets/{build → src}/medias/rubies/examples/_audio.rb +0 -0
- data/vendor/assets/src/medias/rubies/examples/_dataset.rb +177 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/_os.rb +0 -0
- data/vendor/assets/src/medias/rubies/examples/_test.rb +1 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/_vie.rb +0 -0
- data/vendor/assets/src/medias/rubies/examples/add.rb +25 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/animation.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/atome_new.rb +0 -0
- data/vendor/assets/src/medias/rubies/examples/attach.rb +12 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/auto_height.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/auto_width.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/blur.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/bottom.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/box.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/center.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/circle.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/clear.rb +0 -0
- data/vendor/assets/src/medias/rubies/examples/clone.rb +35 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/code.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/color.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/create_atome_in_atome.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/cursor.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/delete.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/drag.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/edit.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/element.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/empty_atome.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/fullscreen.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/get_renderer_list.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/grab.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/height.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/hide.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/id.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/image.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/left.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/link.rb +0 -0
- data/vendor/assets/src/medias/rubies/examples/markers.rb +48 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/matrix.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/monitoring.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/mute.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/on.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/parents.rb +1 -1
- data/vendor/assets/{build → src}/medias/rubies/examples/pause.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/play.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/read.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/refresh.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/remove.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/repeat.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/right.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/rotate.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/schedule.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/shadow.rb +0 -0
- data/vendor/assets/src/medias/rubies/examples/size.rb +8 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/smooth.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/sort.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/style.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/text.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/time.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/top.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/touch.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/video.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/wait.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/web.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/examples/width.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/test.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/text_read.rb +0 -0
- data/vendor/assets/{build → src}/medias/rubies/users/code.rb +0 -0
- data/vendor/assets/{build → src}/medias/texts/lorem.txt +0 -0
- data/vendor/assets/{build → src}/medias/utils/infos/color.rb +0 -0
- data/vendor/assets/{build → src}/medias/utils/infos/width.rb +0 -0
- data/vendor/assets/{build → src}/medias/videos/avengers.mp4 +0 -0
- data/vendor/assets/{build → src}/medias/videos/madmax.mp4 +0 -0
- data/vendor/assets/{build → src}/medias/videos/starwars.mov +0 -0
- data/vendor/assets/{build → src}/medias/videos/superman.mp4 +0 -0
- data/vendor/assets/{build → src}/medias/videos/video_missing.mp4 +0 -0
- data/vendor/assets/src-tauri/.gitignore +4 -0
- data/vendor/assets/src-tauri/Cargo.toml +27 -0
- data/vendor/assets/src-tauri/build.rs +3 -0
- data/vendor/assets/src-tauri/icons/128x128.png +0 -0
- data/vendor/assets/src-tauri/icons/128x128@2x.png +0 -0
- data/vendor/assets/src-tauri/icons/32x32.png +0 -0
- data/vendor/assets/src-tauri/icons/Square107x107Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square142x142Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square150x150Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square284x284Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square30x30Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square310x310Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square44x44Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square71x71Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/Square89x89Logo.png +0 -0
- data/vendor/assets/src-tauri/icons/StoreLogo.png +0 -0
- data/vendor/assets/src-tauri/icons/icon.icns +0 -0
- data/vendor/assets/src-tauri/icons/icon.ico +0 -0
- data/vendor/assets/src-tauri/icons/icon.png +0 -0
- data/vendor/assets/src-tauri/src/main.rs +17 -0
- data/vendor/assets/src-tauri/tauri.conf.json +70 -0
- metadata +250 -210
- data/vendor/assets/build/medias/rubies/examples/_dataset.rb +0 -82
- data/vendor/assets/build/medias/rubies/examples/_markers.rb +0 -57
- data/vendor/assets/build/medias/rubies/examples/at.rb +0 -21
- data/vendor/assets/build/medias/rubies/examples/clone.rb +0 -20
@@ -0,0 +1,25 @@
|
|
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(3)
|
11
|
+
puts "play : #{my_video.play}, pause : #{my_video.pause}"
|
12
|
+
end
|
13
|
+
|
14
|
+
stoper = lambda do
|
15
|
+
my_video.pause(true)
|
16
|
+
end
|
17
|
+
|
18
|
+
jumper=lambda do
|
19
|
+
my_video.play(12)
|
20
|
+
my_video.play(12)
|
21
|
+
end
|
22
|
+
|
23
|
+
my_video.markers({ markers: { begin: 6, code: jumper } })
|
24
|
+
|
25
|
+
my_video.add({ markers: { my_stop: { begin: 16, code: stoper } } })
|
File without changes
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
# TODO : debug the attach method it color the view by default
|
6
|
+
# box({id: :my_box})
|
7
|
+
# c=color(:red)
|
8
|
+
# grab(:view).color(:black)
|
9
|
+
# c.attach([:my_box])
|
10
|
+
|
11
|
+
box({id: :my_box})
|
12
|
+
color({red: 1, blue: 1, attach: [:my_box]})
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# TODO : clones alteration must be bidirectional, to do so :
|
4
|
+
# 1 - we may create an atome type 'clone' then add a ' pre_render_clones option' when rendering clones property
|
5
|
+
# 2 - this pre_render_clones option, will catch alterations and throw it the the original atome
|
6
|
+
# 3 - we also add a new particle call mirror that holds the particle's list that will reverse intrication
|
7
|
+
|
8
|
+
b = box({ color: :red, smooth: 6 })
|
9
|
+
|
10
|
+
b.clones([{ left: 300, top: 300, color: :blue, intricate: [:width, :attached,:height ] },
|
11
|
+
{left: 600, top: 366, color: :green , intricate: [:left, :height ]}])
|
12
|
+
|
13
|
+
wait 1 do
|
14
|
+
b.width(190)
|
15
|
+
end
|
16
|
+
|
17
|
+
wait 2 do
|
18
|
+
b.height(180)
|
19
|
+
end
|
20
|
+
|
21
|
+
wait 3 do
|
22
|
+
b.left(180)
|
23
|
+
end
|
24
|
+
|
25
|
+
grab(:box_4_clone_1).smooth(33)
|
26
|
+
|
27
|
+
grab(:box_4_clone_1).rotate(33)
|
28
|
+
|
29
|
+
|
30
|
+
wait 5 do
|
31
|
+
b.clones.value.each do |clone_found|
|
32
|
+
grab(clone_found[:id]).delete(true)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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 } } })
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
[package]
|
2
|
+
name = "atome"
|
3
|
+
version = "0.0.0"
|
4
|
+
description = "A Tauri App"
|
5
|
+
authors = ["you"]
|
6
|
+
license = ""
|
7
|
+
repository = ""
|
8
|
+
edition = "2021"
|
9
|
+
rust-version = "1.57"
|
10
|
+
|
11
|
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
12
|
+
|
13
|
+
[build-dependencies]
|
14
|
+
tauri-build = {version = "1.2", features = [] }
|
15
|
+
|
16
|
+
[dependencies]
|
17
|
+
serde_json = "1.0"
|
18
|
+
serde = { version = "1.0", features = ["derive"] }
|
19
|
+
tauri = {version = "1.2", features = [] }
|
20
|
+
|
21
|
+
[features]
|
22
|
+
# by default Tauri runs in production mode
|
23
|
+
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
|
24
|
+
default = [ "custom-protocol" ]
|
25
|
+
# this feature is used used for production builds where `devPath` points to the filesystem
|
26
|
+
# DO NOT remove this
|
27
|
+
custom-protocol = [ "tauri/custom-protocol" ]
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#![cfg_attr(
|
2
|
+
all(not(debug_assertions), target_os = "windows"),
|
3
|
+
windows_subsystem = "windows"
|
4
|
+
)]
|
5
|
+
|
6
|
+
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
|
7
|
+
#[tauri::command]
|
8
|
+
fn greet(name: &str) -> String {
|
9
|
+
format!("Hello, {}! You've been greeted from Rust!", name)
|
10
|
+
}
|
11
|
+
|
12
|
+
fn main() {
|
13
|
+
tauri::Builder::default()
|
14
|
+
.invoke_handler(tauri::generate_handler![greet])
|
15
|
+
.run(tauri::generate_context!())
|
16
|
+
.expect("error while running tauri application");
|
17
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
{
|
2
|
+
"build": {
|
3
|
+
"beforeDevCommand": "",
|
4
|
+
"beforeBuildCommand": "",
|
5
|
+
"devPath": "../src",
|
6
|
+
"distDir": "../src",
|
7
|
+
"withGlobalTauri": true
|
8
|
+
},
|
9
|
+
"package": {
|
10
|
+
"productName": "atome",
|
11
|
+
"version": "0.0.0"
|
12
|
+
},
|
13
|
+
"tauri": {
|
14
|
+
"allowlist": {
|
15
|
+
"all": false,
|
16
|
+
"shell": {
|
17
|
+
"all": false,
|
18
|
+
"open": true
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"bundle": {
|
22
|
+
"active": true,
|
23
|
+
"category": "DeveloperTool",
|
24
|
+
"copyright": "",
|
25
|
+
"deb": {
|
26
|
+
"depends": []
|
27
|
+
},
|
28
|
+
"externalBin": [],
|
29
|
+
"icon": [
|
30
|
+
"icons/32x32.png",
|
31
|
+
"icons/128x128.png",
|
32
|
+
"icons/128x128@2x.png",
|
33
|
+
"icons/icon.icns",
|
34
|
+
"icons/icon.ico"
|
35
|
+
],
|
36
|
+
"identifier": "com.tauri.dev",
|
37
|
+
"longDescription": "",
|
38
|
+
"macOS": {
|
39
|
+
"entitlements": null,
|
40
|
+
"exceptionDomain": "",
|
41
|
+
"frameworks": [],
|
42
|
+
"providerShortName": null,
|
43
|
+
"signingIdentity": null
|
44
|
+
},
|
45
|
+
"resources": [],
|
46
|
+
"shortDescription": "",
|
47
|
+
"targets": "all",
|
48
|
+
"windows": {
|
49
|
+
"certificateThumbprint": null,
|
50
|
+
"digestAlgorithm": "sha256",
|
51
|
+
"timestampUrl": ""
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"security": {
|
55
|
+
"csp": null
|
56
|
+
},
|
57
|
+
"updater": {
|
58
|
+
"active": false
|
59
|
+
},
|
60
|
+
"windows": [
|
61
|
+
{
|
62
|
+
"fullscreen": false,
|
63
|
+
"height": 600,
|
64
|
+
"resizable": true,
|
65
|
+
"title": "atome",
|
66
|
+
"width": 800
|
67
|
+
}
|
68
|
+
]
|
69
|
+
}
|
70
|
+
}
|