atome 0.5.4.1.9 → 0.5.5.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/README.md +70 -1
- data/Rakefile +246 -75
- data/app_builder_helpers/Rakefile +276 -288
- data/documentation/basic.md +242 -0
- data/documentation/deep learning/architecture.txt +3763 -0
- data/documentation/deep learning/atome.png +0 -0
- data/documentation/deep learning/basic_infos.txt +227 -0
- data/documentation/deep learning/example_of_users_code.rb +1810 -0
- data/documentation/deep learning/misc.txt +24 -0
- data/documentation/deep learning/ruby_js_example.rb +272 -0
- data/documentation/deep learning/wasm_script_help.text +14 -0
- data/documentation/framework/enhance_atome.md +1 -1
- data/documentation/tutorials/tutorials.md +7 -0
- data/exe/atome +308 -208
- data/lib/atome/atome.rb +52 -156
- data/lib/atome/extensions/atome.rb +129 -47
- data/lib/atome/extensions/mathematics.rb +20 -0
- data/lib/atome/extensions/ping.rb +2 -3
- data/lib/atome/genesis/generators/atome.rb +57 -30
- data/lib/atome/genesis/generators/communication.rb +9 -0
- data/lib/atome/genesis/generators/effect.rb +0 -1
- data/lib/atome/genesis/generators/event.rb +279 -43
- data/lib/atome/genesis/generators/geometry.rb +1 -10
- data/lib/atome/genesis/generators/hierarchy.rb +103 -0
- data/lib/atome/genesis/generators/identity.rb +45 -84
- data/lib/atome/genesis/generators/material.rb +31 -34
- data/lib/atome/genesis/generators/property.rb +31 -0
- data/lib/atome/genesis/generators/security.rb +31 -0
- data/lib/atome/genesis/generators/spatial.rb +3 -5
- data/lib/atome/genesis/generators/time.rb +0 -1
- data/lib/atome/genesis/generators/utility.rb +181 -66
- data/lib/atome/genesis/genesis.rb +152 -55
- data/lib/atome/genesis/sparkle.rb +59 -75
- data/lib/atome/helpers/color_helper/color/rgb/colors.rb +1 -1
- data/lib/atome/helpers/color_helper/color/rgb.rb +1 -1
- data/lib/atome/helpers/color_helper/color.rb +226 -7
- data/lib/atome/helpers/essentials.rb +22 -26
- data/lib/atome/helpers/security.rb +71 -0
- data/lib/atome/helpers/utilities.rb +191 -178
- data/lib/atome/kernel/black_matter.rb +22 -0
- data/lib/atome/kernel/universe.rb +123 -24
- data/lib/atome/presets/atome.rb +39 -35
- data/lib/atome/version.rb +3 -2
- data/lib/atome.rb +12 -12
- data/lib/atome_relative.rb +36 -0
- data/lib/{atome/renderers → platform_specific}/opal/atome_opal_extensions.rb +4 -1
- data/lib/{atome/renderers → platform_specific}/opal/extensions/color.rb +12 -5
- data/lib/{atome/renderers → platform_specific}/opal/extensions/geolocation.rb +1 -0
- data/lib/platform_specific/opal/extensions/js.rb +21 -0
- data/lib/platform_specific/opal/extensions/object.rb +6 -0
- data/lib/platform_specific/opal/extensions/ping.rb +31 -0
- data/lib/{atome/renderers → platform_specific}/opal/extensions/sha.rb +4 -2
- data/lib/platform_specific/wasm/atome_wasm_extensions.rb +11 -0
- data/lib/renderers/headless/headless.rb +18 -0
- data/lib/renderers/headless/index.rb +6 -0
- data/lib/renderers/headless/index_relative.rb +6 -0
- data/lib/renderers/headless/utility.rb +6 -0
- data/{vendor/assets/src/medias/rubies/examples/top.rb → lib/renderers/html/atome.rb} +0 -1
- data/lib/renderers/html/atome_html.rb +22 -0
- data/lib/renderers/html/effect.rb +26 -0
- data/lib/renderers/html/event.rb +43 -0
- data/lib/renderers/html/geometry.rb +31 -0
- data/lib/renderers/html/hierarchy.rb +233 -0
- data/lib/renderers/html/html.rb +1112 -0
- data/lib/renderers/html/identity.rb +84 -0
- data/lib/renderers/html/index.rb +19 -0
- data/lib/renderers/html/index_relative.rb +20 -0
- data/lib/renderers/html/material.rb +53 -0
- data/lib/renderers/html/property.rb +24 -0
- data/lib/renderers/html/spatial.rb +46 -0
- data/lib/renderers/html/time.rb +1 -0
- data/lib/renderers/html/utility.rb +38 -0
- data/lib/renderers/renderer.rb +16 -0
- data/lib/renderers/server/index.rb +4 -0
- data/lib/renderers/server/index_relative.rb +4 -0
- data/lib/renderers/server/utility.rb +4 -0
- data/sig/atome.rbs +6 -0
- data/sig/object.rbs +4 -0
- data/sig/universe.rbs +3 -0
- data/vendor/assets/Rakefile +3 -3
- data/vendor/assets/application/examples/a_concat.rb +16 -0
- data/vendor/assets/application/examples/affect.rb +8 -0
- data/vendor/assets/application/examples/animation.rb +96 -0
- data/vendor/assets/application/examples/apply.rb +8 -0
- data/vendor/assets/application/examples/atome.rb +5 -0
- data/vendor/assets/application/examples/attach.rb +34 -0
- data/vendor/assets/application/examples/attached.rb +38 -0
- data/vendor/assets/application/examples/basic_understanding.rb +52 -0
- data/vendor/assets/application/examples/browse.rb +17 -0
- data/vendor/assets/application/examples/callback.rb +20 -0
- data/vendor/assets/application/examples/category.rb +12 -0
- data/vendor/assets/application/examples/clear.rb +96 -0
- data/vendor/assets/application/examples/clones.rb +177 -0
- data/vendor/assets/application/examples/code.rb +13 -0
- data/vendor/assets/application/examples/color.rb +54 -0
- data/vendor/assets/application/examples/convert.rb +163 -0
- data/vendor/assets/application/examples/copy.rb +25 -0
- data/vendor/assets/application/examples/copybck.rb +68 -0
- data/vendor/assets/application/examples/debug.rb +78 -0
- data/vendor/assets/application/examples/delete.rb +93 -0
- data/vendor/assets/application/examples/display.rb +279 -0
- data/vendor/assets/application/examples/display_bck.rb +164 -0
- data/vendor/assets/application/examples/drag.rb +45 -0
- data/vendor/assets/application/examples/drop.rb +35 -0
- data/vendor/assets/application/examples/duplicate.rb +64 -0
- data/vendor/assets/application/examples/edit.rb +21 -0
- data/vendor/assets/application/examples/encode.rb +6 -0
- data/vendor/assets/application/examples/file.rb +50 -0
- data/vendor/assets/application/examples/find.rb +157 -0
- data/vendor/assets/application/examples/generator_and_build.rb +15 -0
- data/vendor/assets/application/examples/getter.rb +16 -0
- data/vendor/assets/application/examples/grab.rb +14 -0
- data/vendor/assets/application/examples/gradient.rb +35 -0
- data/vendor/assets/application/examples/group.rb +44 -0
- data/vendor/assets/application/examples/hierarchy.rb +21 -0
- data/vendor/assets/application/examples/history.rb +31 -0
- data/vendor/assets/application/examples/hypertext.rb +113 -0
- data/vendor/assets/application/examples/image.rb +5 -0
- data/vendor/assets/application/examples/keyboard.rb +59 -0
- data/vendor/assets/application/examples/layout.rb +227 -0
- data/vendor/assets/application/examples/login.rb +10 -0
- data/vendor/assets/application/examples/markup.rb +4 -0
- data/vendor/assets/application/examples/match.rb +115 -0
- data/vendor/assets/application/examples/messaging.rb +16 -0
- data/vendor/assets/application/examples/monitor.rb +14 -0
- data/vendor/assets/application/examples/on_resize.rb +7 -0
- data/vendor/assets/{src/medias/rubies/examples/get_renderer_list.rb → application/examples/online.rb} +1 -1
- data/vendor/assets/application/examples/over.rb +29 -0
- data/vendor/assets/application/examples/paint.rb +23 -0
- data/vendor/assets/application/examples/particles.rb +4 -0
- data/vendor/assets/application/examples/percent_to_px.rb +4 -0
- data/vendor/assets/application/examples/play.rb +50 -0
- data/vendor/assets/application/examples/presets.rb +33 -0
- data/vendor/assets/application/examples/random.rb +42 -0
- data/vendor/assets/application/examples/raw_html.rb +48 -0
- data/vendor/assets/application/examples/read.rb +11 -0
- data/vendor/assets/application/examples/refresh.rb +62 -0
- data/vendor/assets/application/examples/remove.rb +47 -0
- data/vendor/assets/application/examples/repeat.rb +26 -0
- data/vendor/assets/application/examples/resize.rb +17 -0
- data/vendor/assets/application/examples/scroll.rb +11 -0
- data/vendor/assets/application/examples/security.rb +76 -0
- data/vendor/assets/application/examples/selected.rb +30 -0
- data/vendor/assets/application/examples/shadow.rb +46 -0
- data/vendor/assets/application/examples/shapes.rb +6 -0
- data/vendor/assets/{src/medias/rubies → application}/examples/smooth.rb +5 -1
- data/vendor/assets/application/examples/style.rb +4 -0
- data/vendor/assets/application/examples/sync.rb +39 -0
- data/vendor/assets/application/examples/tagged.rb +24 -0
- data/vendor/assets/application/examples/terminal.rb +4 -0
- data/vendor/assets/application/examples/text.rb +5 -0
- data/vendor/assets/application/examples/touch.rb +38 -0
- data/vendor/assets/application/examples/type_mutation.rb +18 -0
- data/vendor/assets/application/examples/universe.rb +8 -0
- data/vendor/assets/application/examples/vector.rb +24 -0
- data/vendor/assets/application/examples/video.rb +14 -0
- data/vendor/assets/application/examples/wait.rb +6 -0
- data/vendor/assets/application/examples/www.rb +10 -0
- data/vendor/assets/application/index.rb +1 -1
- data/vendor/assets/application/test.rb +29 -0
- data/vendor/assets/application/works/photos.rb +672 -0
- data/vendor/assets/application/works/photos2.rb +218 -0
- data/vendor/assets/application/works/photos3.rb +343 -0
- data/vendor/assets/application/works/photos4.rb +34 -0
- data/vendor/assets/application/works/photos6.rb +6 -0
- data/vendor/assets/application/works/trigga.rb +0 -0
- data/vendor/assets/application/works/vie.rb +74 -0
- data/vendor/assets/server/atome_server.rb +37 -41
- data/vendor/assets/server/atome_server_wasm.rb +112 -0
- data/vendor/assets/server/capture.rb +10 -0
- data/vendor/assets/server/config.ru +5 -4
- data/vendor/assets/src/css/style.css +29 -4
- data/vendor/assets/src/index.html +31 -38
- data/vendor/assets/src/index_opal.html +42 -0
- data/vendor/assets/src/index_server.html +43 -0
- data/vendor/assets/src/index_server_wasm.html +46 -0
- data/vendor/assets/src/js/atome/atome.js +170 -150
- data/vendor/assets/src/js/atome/atome_helpers/add_font.js +46 -0
- data/vendor/assets/src/js/atome/atome_helpers/atome_drag.js +3 -1
- data/vendor/assets/src/js/atome/atome_helpers/atome_events.js +12 -7
- data/vendor/assets/src/js/atome/atome_helpers/communication.js +126 -0
- data/vendor/assets/src/js/atome/atome_helpers/{atome_file.js → file.js} +1 -1
- data/vendor/assets/src/js/atome/specific/opal.js +3 -0
- data/vendor/assets/src/js/atome/specific/wasm.js +12 -0
- data/vendor/assets/src/js/third_parties/browser.script.iife.min.js +13 -0
- data/vendor/assets/src/js/third_parties/fabric.min.js +1 -1
- data/vendor/assets/src/js/third_parties/html-to-image.min.js +2 -0
- data/vendor/assets/src/js/third_parties/jsencrypt.min.js +2 -0
- data/vendor/assets/src/js/third_parties/papaparse.min.js +7 -0
- data/vendor/assets/src/medias/fonts/Roboto/LICENSE.txt +202 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Black.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Bold.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Italic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Light.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Medium.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Regular.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Thin.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- data/vendor/assets/src/medias/images/logos/Facebook.svg +1 -1
- data/vendor/assets/src/medias/images/logos/LinkedIn-full.svg +109 -0
- data/vendor/assets/src/medias/images/logos/LinkedIn.svg +11 -0
- data/vendor/assets/src/medias/images/logos/X.svg +5 -0
- data/vendor/assets/src-tauri/Cargo.toml +1 -1
- data/vendor/assets/src-tauri/src/main.rs +59 -5
- data/vendor/assets/src-tauri/tauri.conf.json +1 -1
- data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_arm +0 -0
- data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_x86 +0 -0
- data/vendor/assets/src-wasm/wasm/wasi-vfs-unix +0 -0
- data/vendor/assets/src-wasm/wasm/wasi-vfs.exe +0 -0
- metadata +188 -180
- data/lib/atome/extensions/mathematic.rb +0 -20
- data/lib/atome/extensions/matrix.rb +0 -346
- data/lib/atome/helpers/callbacks.rb +0 -133
- data/lib/atome/kernel/batch.rb +0 -26
- data/lib/atome/kernel/essentials.rb +0 -23
- data/lib/atome/renderers/browser/atome.rb +0 -177
- data/lib/atome/renderers/browser/browser.rb +0 -47
- data/lib/atome/renderers/browser/effect.rb +0 -23
- data/lib/atome/renderers/browser/event.rb +0 -96
- data/lib/atome/renderers/browser/geometry.rb +0 -27
- data/lib/atome/renderers/browser/helpers/animation_helper.rb +0 -69
- data/lib/atome/renderers/browser/helpers/browser_helper.rb +0 -101
- data/lib/atome/renderers/browser/helpers/color_helper.rb +0 -95
- data/lib/atome/renderers/browser/helpers/drag_helper.rb +0 -52
- data/lib/atome/renderers/browser/helpers/drop_helper.rb +0 -13
- data/lib/atome/renderers/browser/helpers/effect_helper.rb +0 -23
- data/lib/atome/renderers/browser/helpers/event_helper.rb +0 -76
- data/lib/atome/renderers/browser/helpers/image_helper.rb +0 -27
- data/lib/atome/renderers/browser/helpers/over_helper.rb +0 -13
- data/lib/atome/renderers/browser/helpers/shadow_helper.rb +0 -74
- data/lib/atome/renderers/browser/helpers/shape_helper.rb +0 -22
- data/lib/atome/renderers/browser/helpers/text_helper.rb +0 -38
- data/lib/atome/renderers/browser/helpers/video_helper.rb +0 -50
- data/lib/atome/renderers/browser/helpers/web_helper.rb +0 -26
- data/lib/atome/renderers/browser/identity.rb +0 -61
- data/lib/atome/renderers/browser/material.rb +0 -121
- data/lib/atome/renderers/browser/opal_add_on.rb +0 -32
- data/lib/atome/renderers/browser/opal_browser.rb +0 -6
- data/lib/atome/renderers/browser/spatial.rb +0 -59
- data/lib/atome/renderers/browser/time.rb +0 -3
- data/lib/atome/renderers/browser/utility.rb +0 -49
- data/lib/atome/renderers/headless/headless.rb +0 -10
- data/lib/atome/renderers/headless/utility.rb +0 -6
- data/lib/atome/renderers/html/atome.rb +0 -49
- data/lib/atome/renderers/html/effect.rb +0 -19
- data/lib/atome/renderers/html/event.rb +0 -9
- data/lib/atome/renderers/html/geometry.rb +0 -11
- data/lib/atome/renderers/html/html.rb +0 -42
- data/lib/atome/renderers/html/identity.rb +0 -14
- data/lib/atome/renderers/html/opal_browser.rb +0 -6
- data/lib/atome/renderers/html/spatial.rb +0 -28
- data/lib/atome/renderers/html/utility.rb +0 -17
- data/lib/atome/renderers/opal/extensions/atome.rb +0 -29
- data/lib/atome/renderers/opal/extensions/ping.rb +0 -18
- data/lib/atome/renderers/renderer.rb +0 -15
- data/lib/atome/renderers/server/server.rb +0 -10
- data/lib/atome/renderers/server/utility.rb +0 -6
- data/vendor/assets/aui.rb +0 -5
- data/vendor/assets/r&d/misc.rb +0 -219
- data/vendor/assets/r&d/ping.rb +0 -3
- data/vendor/assets/r&d/storage.rb +0 -9
- data/vendor/assets/r&d/view_example.rb +0 -21
- data/vendor/assets/src/js/atome/atome_helpers/atome_communication.js +0 -40
- data/vendor/assets/src/medias/javascripts/test.js +0 -1
- data/vendor/assets/src/medias/rubies/demos.rb +0 -63
- data/vendor/assets/src/medias/rubies/examples/add.rb +0 -24
- data/vendor/assets/src/medias/rubies/examples/animation.rb +0 -81
- data/vendor/assets/src/medias/rubies/examples/atome_new.rb +0 -27
- data/vendor/assets/src/medias/rubies/examples/attach.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/attached.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/auto_height.rb +0 -5
- data/vendor/assets/src/medias/rubies/examples/auto_width.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/batch.rb +0 -17
- data/vendor/assets/src/medias/rubies/examples/blur.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/bottom.rb +0 -3
- data/vendor/assets/src/medias/rubies/examples/box.rb +0 -20
- data/vendor/assets/src/medias/rubies/examples/center.rb +0 -21
- data/vendor/assets/src/medias/rubies/examples/circle.rb +0 -3
- data/vendor/assets/src/medias/rubies/examples/class.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/clear.rb +0 -10
- data/vendor/assets/src/medias/rubies/examples/clone.rb +0 -35
- data/vendor/assets/src/medias/rubies/examples/code.rb +0 -11
- data/vendor/assets/src/medias/rubies/examples/color.rb +0 -73
- data/vendor/assets/src/medias/rubies/examples/create_atome_in_atome.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/cursor.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/delete.rb +0 -42
- data/vendor/assets/src/medias/rubies/examples/depth.rb +0 -6
- data/vendor/assets/src/medias/rubies/examples/detached.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/drag.rb +0 -98
- data/vendor/assets/src/medias/rubies/examples/drop.rb +0 -26
- data/vendor/assets/src/medias/rubies/examples/edit.rb +0 -12
- data/vendor/assets/src/medias/rubies/examples/element.rb +0 -6
- data/vendor/assets/src/medias/rubies/examples/empty_atome.rb +0 -12
- data/vendor/assets/src/medias/rubies/examples/fullscreen.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/grab.rb +0 -5
- data/vendor/assets/src/medias/rubies/examples/height.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/hide.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/id.rb +0 -14
- data/vendor/assets/src/medias/rubies/examples/image.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/left.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/link.rb +0 -22
- data/vendor/assets/src/medias/rubies/examples/markers.rb +0 -48
- data/vendor/assets/src/medias/rubies/examples/materials.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/matrix.rb +0 -102
- data/vendor/assets/src/medias/rubies/examples/matrix_changes.rb +0 -483
- data/vendor/assets/src/medias/rubies/examples/matrix_simple.rb +0 -32
- data/vendor/assets/src/medias/rubies/examples/monitoring.rb +0 -70
- data/vendor/assets/src/medias/rubies/examples/mute.rb +0 -22
- data/vendor/assets/src/medias/rubies/examples/on.rb +0 -26
- data/vendor/assets/src/medias/rubies/examples/opacity.rb +0 -5
- data/vendor/assets/src/medias/rubies/examples/over.rb +0 -21
- data/vendor/assets/src/medias/rubies/examples/pause.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/physical.rb +0 -19
- data/vendor/assets/src/medias/rubies/examples/play.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/read.rb +0 -11
- data/vendor/assets/src/medias/rubies/examples/refresh.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/remove.rb +0 -16
- data/vendor/assets/src/medias/rubies/examples/repeat.rb +0 -6
- data/vendor/assets/src/medias/rubies/examples/right.rb +0 -3
- data/vendor/assets/src/medias/rubies/examples/rotate.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/schedule.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/shadow.rb +0 -84
- data/vendor/assets/src/medias/rubies/examples/size.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/sort.rb +0 -18
- data/vendor/assets/src/medias/rubies/examples/style.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/tags.rb +0 -10
- data/vendor/assets/src/medias/rubies/examples/text.rb +0 -39
- data/vendor/assets/src/medias/rubies/examples/time.rb +0 -18
- data/vendor/assets/src/medias/rubies/examples/to_px.rb +0 -10
- data/vendor/assets/src/medias/rubies/examples/touch.rb +0 -56
- data/vendor/assets/src/medias/rubies/examples/vector.rb +0 -39
- data/vendor/assets/src/medias/rubies/examples/video.rb +0 -65
- data/vendor/assets/src/medias/rubies/examples/wait.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/web.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/width.rb +0 -6
- data/vendor/assets/src/medias/rubies/test.rb +0 -1
- data/vendor/assets/src/medias/rubies/text_read.rb +0 -1
- data/vendor/assets/src/medias/rubies/unstable/!run.rb +0 -16
- data/vendor/assets/src/medias/rubies/unstable/_2_solve.rb +0 -72
- data/vendor/assets/src/medias/rubies/unstable/_attach.rb +0 -12
- data/vendor/assets/src/medias/rubies/unstable/_audio.rb +0 -231
- data/vendor/assets/src/medias/rubies/unstable/_dataset.rb +0 -257
- data/vendor/assets/src/medias/rubies/unstable/_matrix.rb +0 -58
- data/vendor/assets/src/medias/rubies/unstable/_os.rb +0 -29
- data/vendor/assets/src/medias/rubies/unstable/_table2.rb +0 -108
- data/vendor/assets/src/medias/rubies/unstable/_vie.rb +0 -211
- data/vendor/assets/src/medias/rubies/users/code.rb +0 -6
- /data/lib/{atome/renderers → platform_specific}/opal/opal.rb +0 -0
- /data/lib/{atome/renderers → platform_specific}/opal/opal_parser.rb +0 -0
- /data/{vendor/assets/src/utilities/mode.rb → lib/renderers/html/communication.rb} +0 -0
- /data/{vendor/assets/src/medias/rubies/unstable/_test.rb → lib/renderers/html/security.rb} +0 -0
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Atome.new(
|
4
|
-
shape: { type: :shape, renderers: [:browser], id: :the_shape, attach: [:view], clones: [],
|
5
|
-
left: 99, right: 99, width: 399, height: 99,
|
6
|
-
# color: { renderers: [:browser], id: :c315, type: :color, attach: [:the_shape],
|
7
|
-
# red: 0.3, green: 1, blue: 0.6, alpha: 1 }
|
8
|
-
}
|
9
|
-
)
|
10
|
-
|
11
|
-
Atome.new(
|
12
|
-
shape: { type: :color, renderers: [:browser], id: :c315, attach: [:the_shape],
|
13
|
-
red: 0.3, green: 1, blue: 0.6, alpha: 1 }
|
14
|
-
|
15
|
-
)
|
16
|
-
|
17
|
-
Atome.new(
|
18
|
-
shape: { renderers: [:browser], id: :the_shape2, type: :shape, attach: [:view], clones: [],
|
19
|
-
left: 99, right: 99, width: 99, height: 99,
|
20
|
-
|
21
|
-
}
|
22
|
-
)
|
23
|
-
|
24
|
-
Atome.new(
|
25
|
-
shape: { renderers: [:browser], id: :c31, type: :color, attach: [:the_shape2],
|
26
|
-
red: 1, green: 0.15, blue: 0.15, alpha: 0.6 }
|
27
|
-
)
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
b=box({id: :c315})
|
4
|
-
circle({id: :c_12, top: 0,drag: true})
|
5
|
-
|
6
|
-
b.attach([:c_12])
|
7
|
-
|
8
|
-
circle({ id: :c_123, color: :cyan, left: 233, drag: true })
|
9
|
-
box({ id: :b_1, left: 333, drag: true })
|
10
|
-
bb=box({top: 99, drag: true})
|
11
|
-
grab(:b_1).attach([:c_123])
|
12
|
-
circle_123_color= grab(:c_123).color[0]
|
13
|
-
grab(circle_123_color).attach([:b_1])
|
14
|
-
bb.attach([:b_1])
|
15
|
-
grab(:c315).attach([:c_12])
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
grab(:user_view).color({ red: 1, green: 0.6, blue: 0.6, id: :active_color })
|
3
|
-
grab(:user_view).color( { red: 0.3, green: 0.3, blue: 0.3, id: :inactive_color } )
|
4
|
-
|
5
|
-
b=box({left: 99})
|
6
|
-
wait 1 do
|
7
|
-
b.attached([:active_color])
|
8
|
-
|
9
|
-
puts b.attached
|
10
|
-
end
|
11
|
-
puts b.attached
|
12
|
-
c=circle({left: 333})
|
13
|
-
c.attached(:inactive_color)
|
14
|
-
|
15
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# batch
|
3
|
-
b=box({ id: :b1 })
|
4
|
-
b.box({ id: :b2, left: 220 })
|
5
|
-
b.box({ id: :b3, left: 340 })
|
6
|
-
b.batch([:b2, :b3])
|
7
|
-
# puts "----- batch ------"
|
8
|
-
# puts "=> the batch found is #{a}"
|
9
|
-
# p a.batch.value
|
10
|
-
b.batch.color(:red).rotate(33)
|
11
|
-
b.batch.each do |el|
|
12
|
-
el.height(77).blur(9)
|
13
|
-
end
|
14
|
-
wait 1 do
|
15
|
-
puts b.batch.top(0)
|
16
|
-
end
|
17
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
a = box({ id: :my_box, left: 333 }) do |p|
|
4
|
-
puts "the param pass to the box is: #{p}"
|
5
|
-
wait 2 do
|
6
|
-
left(120)
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
b = Atome.new(
|
11
|
-
{ shape: { renderers: [:browser], id: :view_test, type: :shape, attach: [:view],
|
12
|
-
left: 0, width: 90, top: 0, height: 90, overflow: :auto,
|
13
|
-
color: { renderers: [:browser], id: :view_test_color, type: :color, attach: [:view_test],
|
14
|
-
red: 1, green: 0.15, blue: 0.15, alpha: 1 } } }
|
15
|
-
) do |p|
|
16
|
-
puts "the param pass to the atome is: #{p}"
|
17
|
-
|
18
|
-
end
|
19
|
-
a.run(:hello)
|
20
|
-
b.run(:hi)
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
b = box({ id: :mybox, width: 666, height: 555, top: 0, left: 0 })
|
4
|
-
|
5
|
-
c = b.circle()
|
6
|
-
t = c.text({ data: :hello, visual: { size: 9 } })
|
7
|
-
c.color(:red)
|
8
|
-
wait 2 do
|
9
|
-
c.center(true)
|
10
|
-
t.center(true)
|
11
|
-
end
|
12
|
-
|
13
|
-
wait 4 do
|
14
|
-
c.center(:horizontal)
|
15
|
-
t.center(:horizontal)
|
16
|
-
end
|
17
|
-
|
18
|
-
wait 6 do
|
19
|
-
c.center(:vertical)
|
20
|
-
t.center(:vertical)
|
21
|
-
end
|
@@ -1,35 +0,0 @@
|
|
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, id: :the_box })
|
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(:the_box_clone_0).smooth(33)
|
26
|
-
#
|
27
|
-
grab(:the_box_clone_1).rotate(33)
|
28
|
-
|
29
|
-
|
30
|
-
wait 5 do
|
31
|
-
b.clones.each do |clone_found|
|
32
|
-
grab(clone_found[:id]).delete(true)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
a=Atome.new(code: { type: :code, renderers: [:headless], attach: [] }) do |params_found|
|
4
|
-
puts "the param is #{params_found}"
|
5
|
-
end
|
6
|
-
a.run(:super)
|
7
|
-
c=element({}) do |params_found|
|
8
|
-
puts "you want me to print: #{params_found}"
|
9
|
-
end
|
10
|
-
|
11
|
-
c.run('it works')
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# FIXME: bug we using a color twice or more only the first is colored: c = { red: 1 }; a.color(c),b.color(c)
|
4
|
-
|
5
|
-
c = circle
|
6
|
-
|
7
|
-
wait 1 do
|
8
|
-
# the most performant way :
|
9
|
-
# please note that in this case: render , id and type params must place in order
|
10
|
-
c.color(
|
11
|
-
{ renderers: [:browser], id: :c319, type: :color,
|
12
|
-
red: 1, green: 1, blue: 0.15, alpha: 0.6 }
|
13
|
-
)
|
14
|
-
puts c
|
15
|
-
end
|
16
|
-
|
17
|
-
wait 2 do
|
18
|
-
# now we overload the color
|
19
|
-
c.color({ red: 1 })
|
20
|
-
puts c
|
21
|
-
|
22
|
-
end
|
23
|
-
|
24
|
-
wait 4 do
|
25
|
-
# now the easy way
|
26
|
-
c.color(:yellow)
|
27
|
-
puts c
|
28
|
-
|
29
|
-
wait 1 do
|
30
|
-
c.color({ green: 1, blue: 0.69, alpha: 1 })
|
31
|
-
puts c
|
32
|
-
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
wait 5 do
|
37
|
-
d=c.color(:red)
|
38
|
-
puts c
|
39
|
-
|
40
|
-
wait 1 do
|
41
|
-
d.blue(0)
|
42
|
-
puts c
|
43
|
-
|
44
|
-
end
|
45
|
-
|
46
|
-
wait 2 do
|
47
|
-
d.red(1)
|
48
|
-
puts c
|
49
|
-
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
|
54
|
-
wait 10 do
|
55
|
-
d=Atome.new({ color: { renderers: [:browser], id: :col1, type: :color, attach: [],
|
56
|
-
left: 33, top: 66, red: 1, green: 0.15, blue: 0.7, alpha: 1 } })
|
57
|
-
|
58
|
-
col_2 = Atome.new({ color: { renderers: [:browser], id: :col2, type: :color, attach: [],
|
59
|
-
left: 33, top: 66, red: 0, green: 0.15, blue: 0.7, alpha: 1 } })
|
60
|
-
|
61
|
-
puts d
|
62
|
-
e=Atome.new(
|
63
|
-
shape: { type: :shape, renderers: [:browser], id: :shaped, attach: [:view], attached: [:col1],
|
64
|
-
left: 199, top: 99,
|
65
|
-
width: 66, height: 66
|
66
|
-
}
|
67
|
-
)
|
68
|
-
puts e
|
69
|
-
wait 2 do
|
70
|
-
col_2.attach([:shaped])
|
71
|
-
puts e
|
72
|
-
end
|
73
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
b = box({ width: 333, left: 333})
|
4
|
-
b.height(33)
|
5
|
-
b.left(333)
|
6
|
-
|
7
|
-
b.smooth([33, 2, 90])
|
8
|
-
b.touch(true) do
|
9
|
-
|
10
|
-
color({ render: [:html], id: "color_#{Universe.atomes.length}", type: :color,
|
11
|
-
red: 1, green: 0.33, blue: 0.22, alpha: 1 })
|
12
|
-
end
|
13
|
-
b.circle({ left: 333 })
|
@@ -1,42 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
b = box({left: 333})
|
4
|
-
|
5
|
-
b.circle({top: 66, id: :the_circle, color: :green})
|
6
|
-
|
7
|
-
wait 4 do
|
8
|
-
b.delete(true)
|
9
|
-
end
|
10
|
-
|
11
|
-
wait 3 do
|
12
|
-
b.shape.each do |attached_atome_id|
|
13
|
-
b.delete({id: attached_atome_id})
|
14
|
-
b.shadow({ renderers: [:browser], id: :shadow2, type: :shadow, attach: [],
|
15
|
-
left: 3, top: 9, blur: 3, direction: '',
|
16
|
-
red: 0, green: 0, blue: 0, alpha: 1
|
17
|
-
})
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
|
-
wait 2 do
|
23
|
-
b.delete(:left)
|
24
|
-
end
|
25
|
-
|
26
|
-
# recursive example
|
27
|
-
bb=box
|
28
|
-
bb.text('click me!')
|
29
|
-
col=color(:red)
|
30
|
-
bb.touch(true) do
|
31
|
-
bb.box({attached: col.id})
|
32
|
-
c=bb.circle
|
33
|
-
c.text(:hello)
|
34
|
-
|
35
|
-
wait 2 do
|
36
|
-
bb.physical.each do |attached_atome_id|
|
37
|
-
bb.delete({id: attached_atome_id, recursive: true})
|
38
|
-
end
|
39
|
-
end
|
40
|
-
puts Universe.atomes.length
|
41
|
-
end
|
42
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
grab(:user_view).color({ red: 0.8, green: 0.8, blue: 0.8, id: :active_color })
|
4
|
-
grab(:user_view).color( { red: 0.3, green: 0.3, blue: 0.3, id: :inactive_color } )
|
5
|
-
|
6
|
-
b=box
|
7
|
-
b.attached(:inactive_color)
|
8
|
-
puts b.attached
|
9
|
-
b.touch(true) do
|
10
|
-
b.detached(:inactive_color)
|
11
|
-
b.attached(:active_color)
|
12
|
-
puts "detached objects are : #{b.attached}"
|
13
|
-
end
|
@@ -1,98 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
a = box({ width: 333, height: 333, id: :the_boxy })
|
4
|
-
|
5
|
-
a.drag(move: false) do |event|
|
6
|
-
puts "the pointer is at : #{event}"
|
7
|
-
|
8
|
-
end
|
9
|
-
a.color(:red)
|
10
|
-
b = circle({ width: 33, height: 33, id: :the_box, drag: true })
|
11
|
-
|
12
|
-
|
13
|
-
b.parents([a.id])
|
14
|
-
b.color(:black)
|
15
|
-
# b.parents([:the_boxy ])
|
16
|
-
b.drag({ move: true }) do |e|
|
17
|
-
puts e
|
18
|
-
end
|
19
|
-
|
20
|
-
# b.drag({ move: false}) do |e|
|
21
|
-
# puts e
|
22
|
-
# end
|
23
|
-
|
24
|
-
|
25
|
-
b.drag({ start: true}) do |e|
|
26
|
-
b.color(:yellow)
|
27
|
-
end
|
28
|
-
|
29
|
-
b.drag({ end: true}) do |e|
|
30
|
-
b.color(:orange)
|
31
|
-
end
|
32
|
-
|
33
|
-
# b.drag({ inertia: true })
|
34
|
-
|
35
|
-
# b.drag({ lock: :start })
|
36
|
-
|
37
|
-
b.drag({ lock: :x })
|
38
|
-
|
39
|
-
# b.drag({ remove: true })
|
40
|
-
# b.drag({ remove: false })
|
41
|
-
|
42
|
-
|
43
|
-
# b.drag({ constraint: { top: 330, left: 30, bottom: 30, right: 1 } })
|
44
|
-
b.drag({ constraint: :parent })
|
45
|
-
b.drag({ snap: { x: 100, y: 190 } })
|
46
|
-
|
47
|
-
# b.drag({ constraint: :the_boxy })
|
48
|
-
|
49
|
-
cc=circle(drag: true)
|
50
|
-
cc.drag(true) do |ee|
|
51
|
-
puts "the circle is : >#{cc.left} : #{ee}"
|
52
|
-
|
53
|
-
end
|
54
|
-
|
55
|
-
cc.drag(:end) do |ee|
|
56
|
-
puts "the circle is ending drag : >#{cc.left} : #{ee}"
|
57
|
-
end
|
58
|
-
|
59
|
-
|
60
|
-
cc.drag(:start) do |ee|
|
61
|
-
puts "==> the circle is starting drag : >#{cc.left} : #{ee}"
|
62
|
-
end
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
cc.touch(true) do
|
68
|
-
# alert cc.left
|
69
|
-
puts "===>cc is : >#{cc}"
|
70
|
-
end
|
71
|
-
|
72
|
-
bb=box({drag: true, color: :yellow})
|
73
|
-
|
74
|
-
bb.attach(cc.id)
|
75
|
-
|
76
|
-
# alert"#{b.parents.class} : #{b.parents}"
|
77
|
-
a.touch(true) do
|
78
|
-
puts cc.left
|
79
|
-
end
|
80
|
-
|
81
|
-
|
82
|
-
# Sticky box
|
83
|
-
sticky_box=box({left: 633})
|
84
|
-
sticky_box.text("my position will be reverted")
|
85
|
-
start_x_pos=sticky_box.left
|
86
|
-
start_y_pos=sticky_box.top
|
87
|
-
sticky_box.drag(move: true) do
|
88
|
-
puts sticky_box.left
|
89
|
-
end
|
90
|
-
sticky_box.drag(:start) do
|
91
|
-
puts "start => #{sticky_box.left} : #{sticky_box.top}"
|
92
|
-
end
|
93
|
-
|
94
|
-
sticky_box.drag(:end) do
|
95
|
-
puts "end => #{sticky_box.left} : #{sticky_box.top}"
|
96
|
-
sticky_box.left(start_x_pos)
|
97
|
-
sticky_box.top(start_y_pos)
|
98
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Drop
|
3
|
-
b=box({id: :droper})
|
4
|
-
b.drop(true) do |drop_ob_id|
|
5
|
-
puts "id received : #{drop_ob_id[:id]}"
|
6
|
-
drop_obj=grab(drop_ob_id[:id])
|
7
|
-
if drop_obj.type == :image
|
8
|
-
grab(:view).image({ path: drop_obj.path , drag: true, width: 120, left: 222, top: 222})
|
9
|
-
end
|
10
|
-
|
11
|
-
end
|
12
|
-
|
13
|
-
image({path: "./medias/images/green_planet.png", left: 333, top: 33, drag: true})
|
14
|
-
|
15
|
-
#
|
16
|
-
b.over(:enter) do |event|
|
17
|
-
b.color(:red)
|
18
|
-
end
|
19
|
-
|
20
|
-
b.over(:leave) do |event|
|
21
|
-
b.color(:blue)
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
c=circle({ color: :orange, top: 333, id: :the_c_2 })
|
26
|
-
c.drag(true)
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
my_video = Atome.new(
|
4
|
-
video: { renderers: [:browser], id: :video1, type: :video, attach: [:view],
|
5
|
-
path: './medias/videos/avengers.mp4', left: 33, top: 33, width: 777
|
6
|
-
}
|
7
|
-
) do |params|
|
8
|
-
puts "video callback here #{params}"
|
9
|
-
end
|
10
|
-
my_video.play(true)
|
11
|
-
|
12
|
-
|
13
|
-
my_video.touch(true) do
|
14
|
-
my_video.fullscreen
|
15
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
Atome.new(
|
4
|
-
image: { renderers: [:browser], id: :image1, type: :image, attach: [:view], path: "./medias/images/red_planet.png", left: 99, top: 120, width: 199, height: 199,
|
5
|
-
}
|
6
|
-
)
|
7
|
-
|
8
|
-
image({path: "./medias/images/green_planet.png", left: 33, top: 33})
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
text = Atome.new(
|
4
|
-
text: { renderers: [:browser], id: :my_text, type: :text, attach: [:view], visual: { size: 18 },
|
5
|
-
data: 'My first text!', left: 300, top: 33, width: 199, height: 33,
|
6
|
-
|
7
|
-
}
|
8
|
-
)
|
9
|
-
color({ renderers: [:browser], id: :c31, type: :color, attach: [:my_text],
|
10
|
-
red: 0.6, green: 0.6, blue: 0.6, alpha: 1 })
|
11
|
-
|
12
|
-
|
13
|
-
Atome.new({ color: { renderers: [:browser], id: :new_col, type: :color, attach: [],
|
14
|
-
left: 33, top: 66, red: 0, green: 0.15, blue: 0.7, alpha: 0.6 } })
|
15
|
-
|
16
|
-
# now we change the color all the object that share the care modified
|
17
|
-
wait 1 do
|
18
|
-
text.attached(:new_col)
|
19
|
-
end
|
20
|
-
wait 2 do
|
21
|
-
grab(:new_col).red(1)
|
22
|
-
end
|