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.
Files changed (357) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/README.md +70 -1
  4. data/Rakefile +246 -75
  5. data/app_builder_helpers/Rakefile +276 -288
  6. data/documentation/basic.md +242 -0
  7. data/documentation/deep learning/architecture.txt +3763 -0
  8. data/documentation/deep learning/atome.png +0 -0
  9. data/documentation/deep learning/basic_infos.txt +227 -0
  10. data/documentation/deep learning/example_of_users_code.rb +1810 -0
  11. data/documentation/deep learning/misc.txt +24 -0
  12. data/documentation/deep learning/ruby_js_example.rb +272 -0
  13. data/documentation/deep learning/wasm_script_help.text +14 -0
  14. data/documentation/framework/enhance_atome.md +1 -1
  15. data/documentation/tutorials/tutorials.md +7 -0
  16. data/exe/atome +308 -208
  17. data/lib/atome/atome.rb +52 -156
  18. data/lib/atome/extensions/atome.rb +129 -47
  19. data/lib/atome/extensions/mathematics.rb +20 -0
  20. data/lib/atome/extensions/ping.rb +2 -3
  21. data/lib/atome/genesis/generators/atome.rb +57 -30
  22. data/lib/atome/genesis/generators/communication.rb +9 -0
  23. data/lib/atome/genesis/generators/effect.rb +0 -1
  24. data/lib/atome/genesis/generators/event.rb +279 -43
  25. data/lib/atome/genesis/generators/geometry.rb +1 -10
  26. data/lib/atome/genesis/generators/hierarchy.rb +103 -0
  27. data/lib/atome/genesis/generators/identity.rb +45 -84
  28. data/lib/atome/genesis/generators/material.rb +31 -34
  29. data/lib/atome/genesis/generators/property.rb +31 -0
  30. data/lib/atome/genesis/generators/security.rb +31 -0
  31. data/lib/atome/genesis/generators/spatial.rb +3 -5
  32. data/lib/atome/genesis/generators/time.rb +0 -1
  33. data/lib/atome/genesis/generators/utility.rb +181 -66
  34. data/lib/atome/genesis/genesis.rb +152 -55
  35. data/lib/atome/genesis/sparkle.rb +59 -75
  36. data/lib/atome/helpers/color_helper/color/rgb/colors.rb +1 -1
  37. data/lib/atome/helpers/color_helper/color/rgb.rb +1 -1
  38. data/lib/atome/helpers/color_helper/color.rb +226 -7
  39. data/lib/atome/helpers/essentials.rb +22 -26
  40. data/lib/atome/helpers/security.rb +71 -0
  41. data/lib/atome/helpers/utilities.rb +191 -178
  42. data/lib/atome/kernel/black_matter.rb +22 -0
  43. data/lib/atome/kernel/universe.rb +123 -24
  44. data/lib/atome/presets/atome.rb +39 -35
  45. data/lib/atome/version.rb +3 -2
  46. data/lib/atome.rb +12 -12
  47. data/lib/atome_relative.rb +36 -0
  48. data/lib/{atome/renderers → platform_specific}/opal/atome_opal_extensions.rb +4 -1
  49. data/lib/{atome/renderers → platform_specific}/opal/extensions/color.rb +12 -5
  50. data/lib/{atome/renderers → platform_specific}/opal/extensions/geolocation.rb +1 -0
  51. data/lib/platform_specific/opal/extensions/js.rb +21 -0
  52. data/lib/platform_specific/opal/extensions/object.rb +6 -0
  53. data/lib/platform_specific/opal/extensions/ping.rb +31 -0
  54. data/lib/{atome/renderers → platform_specific}/opal/extensions/sha.rb +4 -2
  55. data/lib/platform_specific/wasm/atome_wasm_extensions.rb +11 -0
  56. data/lib/renderers/headless/headless.rb +18 -0
  57. data/lib/renderers/headless/index.rb +6 -0
  58. data/lib/renderers/headless/index_relative.rb +6 -0
  59. data/lib/renderers/headless/utility.rb +6 -0
  60. data/{vendor/assets/src/medias/rubies/examples/top.rb → lib/renderers/html/atome.rb} +0 -1
  61. data/lib/renderers/html/atome_html.rb +22 -0
  62. data/lib/renderers/html/effect.rb +26 -0
  63. data/lib/renderers/html/event.rb +43 -0
  64. data/lib/renderers/html/geometry.rb +31 -0
  65. data/lib/renderers/html/hierarchy.rb +233 -0
  66. data/lib/renderers/html/html.rb +1112 -0
  67. data/lib/renderers/html/identity.rb +84 -0
  68. data/lib/renderers/html/index.rb +19 -0
  69. data/lib/renderers/html/index_relative.rb +20 -0
  70. data/lib/renderers/html/material.rb +53 -0
  71. data/lib/renderers/html/property.rb +24 -0
  72. data/lib/renderers/html/spatial.rb +46 -0
  73. data/lib/renderers/html/time.rb +1 -0
  74. data/lib/renderers/html/utility.rb +38 -0
  75. data/lib/renderers/renderer.rb +16 -0
  76. data/lib/renderers/server/index.rb +4 -0
  77. data/lib/renderers/server/index_relative.rb +4 -0
  78. data/lib/renderers/server/utility.rb +4 -0
  79. data/sig/atome.rbs +6 -0
  80. data/sig/object.rbs +4 -0
  81. data/sig/universe.rbs +3 -0
  82. data/vendor/assets/Rakefile +3 -3
  83. data/vendor/assets/application/examples/a_concat.rb +16 -0
  84. data/vendor/assets/application/examples/affect.rb +8 -0
  85. data/vendor/assets/application/examples/animation.rb +96 -0
  86. data/vendor/assets/application/examples/apply.rb +8 -0
  87. data/vendor/assets/application/examples/atome.rb +5 -0
  88. data/vendor/assets/application/examples/attach.rb +34 -0
  89. data/vendor/assets/application/examples/attached.rb +38 -0
  90. data/vendor/assets/application/examples/basic_understanding.rb +52 -0
  91. data/vendor/assets/application/examples/browse.rb +17 -0
  92. data/vendor/assets/application/examples/callback.rb +20 -0
  93. data/vendor/assets/application/examples/category.rb +12 -0
  94. data/vendor/assets/application/examples/clear.rb +96 -0
  95. data/vendor/assets/application/examples/clones.rb +177 -0
  96. data/vendor/assets/application/examples/code.rb +13 -0
  97. data/vendor/assets/application/examples/color.rb +54 -0
  98. data/vendor/assets/application/examples/convert.rb +163 -0
  99. data/vendor/assets/application/examples/copy.rb +25 -0
  100. data/vendor/assets/application/examples/copybck.rb +68 -0
  101. data/vendor/assets/application/examples/debug.rb +78 -0
  102. data/vendor/assets/application/examples/delete.rb +93 -0
  103. data/vendor/assets/application/examples/display.rb +279 -0
  104. data/vendor/assets/application/examples/display_bck.rb +164 -0
  105. data/vendor/assets/application/examples/drag.rb +45 -0
  106. data/vendor/assets/application/examples/drop.rb +35 -0
  107. data/vendor/assets/application/examples/duplicate.rb +64 -0
  108. data/vendor/assets/application/examples/edit.rb +21 -0
  109. data/vendor/assets/application/examples/encode.rb +6 -0
  110. data/vendor/assets/application/examples/file.rb +50 -0
  111. data/vendor/assets/application/examples/find.rb +157 -0
  112. data/vendor/assets/application/examples/generator_and_build.rb +15 -0
  113. data/vendor/assets/application/examples/getter.rb +16 -0
  114. data/vendor/assets/application/examples/grab.rb +14 -0
  115. data/vendor/assets/application/examples/gradient.rb +35 -0
  116. data/vendor/assets/application/examples/group.rb +44 -0
  117. data/vendor/assets/application/examples/hierarchy.rb +21 -0
  118. data/vendor/assets/application/examples/history.rb +31 -0
  119. data/vendor/assets/application/examples/hypertext.rb +113 -0
  120. data/vendor/assets/application/examples/image.rb +5 -0
  121. data/vendor/assets/application/examples/keyboard.rb +59 -0
  122. data/vendor/assets/application/examples/layout.rb +227 -0
  123. data/vendor/assets/application/examples/login.rb +10 -0
  124. data/vendor/assets/application/examples/markup.rb +4 -0
  125. data/vendor/assets/application/examples/match.rb +115 -0
  126. data/vendor/assets/application/examples/messaging.rb +16 -0
  127. data/vendor/assets/application/examples/monitor.rb +14 -0
  128. data/vendor/assets/application/examples/on_resize.rb +7 -0
  129. data/vendor/assets/{src/medias/rubies/examples/get_renderer_list.rb → application/examples/online.rb} +1 -1
  130. data/vendor/assets/application/examples/over.rb +29 -0
  131. data/vendor/assets/application/examples/paint.rb +23 -0
  132. data/vendor/assets/application/examples/particles.rb +4 -0
  133. data/vendor/assets/application/examples/percent_to_px.rb +4 -0
  134. data/vendor/assets/application/examples/play.rb +50 -0
  135. data/vendor/assets/application/examples/presets.rb +33 -0
  136. data/vendor/assets/application/examples/random.rb +42 -0
  137. data/vendor/assets/application/examples/raw_html.rb +48 -0
  138. data/vendor/assets/application/examples/read.rb +11 -0
  139. data/vendor/assets/application/examples/refresh.rb +62 -0
  140. data/vendor/assets/application/examples/remove.rb +47 -0
  141. data/vendor/assets/application/examples/repeat.rb +26 -0
  142. data/vendor/assets/application/examples/resize.rb +17 -0
  143. data/vendor/assets/application/examples/scroll.rb +11 -0
  144. data/vendor/assets/application/examples/security.rb +76 -0
  145. data/vendor/assets/application/examples/selected.rb +30 -0
  146. data/vendor/assets/application/examples/shadow.rb +46 -0
  147. data/vendor/assets/application/examples/shapes.rb +6 -0
  148. data/vendor/assets/{src/medias/rubies → application}/examples/smooth.rb +5 -1
  149. data/vendor/assets/application/examples/style.rb +4 -0
  150. data/vendor/assets/application/examples/sync.rb +39 -0
  151. data/vendor/assets/application/examples/tagged.rb +24 -0
  152. data/vendor/assets/application/examples/terminal.rb +4 -0
  153. data/vendor/assets/application/examples/text.rb +5 -0
  154. data/vendor/assets/application/examples/touch.rb +38 -0
  155. data/vendor/assets/application/examples/type_mutation.rb +18 -0
  156. data/vendor/assets/application/examples/universe.rb +8 -0
  157. data/vendor/assets/application/examples/vector.rb +24 -0
  158. data/vendor/assets/application/examples/video.rb +14 -0
  159. data/vendor/assets/application/examples/wait.rb +6 -0
  160. data/vendor/assets/application/examples/www.rb +10 -0
  161. data/vendor/assets/application/index.rb +1 -1
  162. data/vendor/assets/application/test.rb +29 -0
  163. data/vendor/assets/application/works/photos.rb +672 -0
  164. data/vendor/assets/application/works/photos2.rb +218 -0
  165. data/vendor/assets/application/works/photos3.rb +343 -0
  166. data/vendor/assets/application/works/photos4.rb +34 -0
  167. data/vendor/assets/application/works/photos6.rb +6 -0
  168. data/vendor/assets/application/works/trigga.rb +0 -0
  169. data/vendor/assets/application/works/vie.rb +74 -0
  170. data/vendor/assets/server/atome_server.rb +37 -41
  171. data/vendor/assets/server/atome_server_wasm.rb +112 -0
  172. data/vendor/assets/server/capture.rb +10 -0
  173. data/vendor/assets/server/config.ru +5 -4
  174. data/vendor/assets/src/css/style.css +29 -4
  175. data/vendor/assets/src/index.html +31 -38
  176. data/vendor/assets/src/index_opal.html +42 -0
  177. data/vendor/assets/src/index_server.html +43 -0
  178. data/vendor/assets/src/index_server_wasm.html +46 -0
  179. data/vendor/assets/src/js/atome/atome.js +170 -150
  180. data/vendor/assets/src/js/atome/atome_helpers/add_font.js +46 -0
  181. data/vendor/assets/src/js/atome/atome_helpers/atome_drag.js +3 -1
  182. data/vendor/assets/src/js/atome/atome_helpers/atome_events.js +12 -7
  183. data/vendor/assets/src/js/atome/atome_helpers/communication.js +126 -0
  184. data/vendor/assets/src/js/atome/atome_helpers/{atome_file.js → file.js} +1 -1
  185. data/vendor/assets/src/js/atome/specific/opal.js +3 -0
  186. data/vendor/assets/src/js/atome/specific/wasm.js +12 -0
  187. data/vendor/assets/src/js/third_parties/browser.script.iife.min.js +13 -0
  188. data/vendor/assets/src/js/third_parties/fabric.min.js +1 -1
  189. data/vendor/assets/src/js/third_parties/html-to-image.min.js +2 -0
  190. data/vendor/assets/src/js/third_parties/jsencrypt.min.js +2 -0
  191. data/vendor/assets/src/js/third_parties/papaparse.min.js +7 -0
  192. data/vendor/assets/src/medias/fonts/Roboto/LICENSE.txt +202 -0
  193. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Black.ttf +0 -0
  194. data/vendor/assets/src/medias/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
  195. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Bold.ttf +0 -0
  196. data/vendor/assets/src/medias/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
  197. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Italic.ttf +0 -0
  198. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Light.ttf +0 -0
  199. data/vendor/assets/src/medias/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
  200. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Medium.ttf +0 -0
  201. data/vendor/assets/src/medias/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  202. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Regular.ttf +0 -0
  203. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Thin.ttf +0 -0
  204. data/vendor/assets/src/medias/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
  205. data/vendor/assets/src/medias/images/logos/Facebook.svg +1 -1
  206. data/vendor/assets/src/medias/images/logos/LinkedIn-full.svg +109 -0
  207. data/vendor/assets/src/medias/images/logos/LinkedIn.svg +11 -0
  208. data/vendor/assets/src/medias/images/logos/X.svg +5 -0
  209. data/vendor/assets/src-tauri/Cargo.toml +1 -1
  210. data/vendor/assets/src-tauri/src/main.rs +59 -5
  211. data/vendor/assets/src-tauri/tauri.conf.json +1 -1
  212. data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_arm +0 -0
  213. data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_x86 +0 -0
  214. data/vendor/assets/src-wasm/wasm/wasi-vfs-unix +0 -0
  215. data/vendor/assets/src-wasm/wasm/wasi-vfs.exe +0 -0
  216. metadata +188 -180
  217. data/lib/atome/extensions/mathematic.rb +0 -20
  218. data/lib/atome/extensions/matrix.rb +0 -346
  219. data/lib/atome/helpers/callbacks.rb +0 -133
  220. data/lib/atome/kernel/batch.rb +0 -26
  221. data/lib/atome/kernel/essentials.rb +0 -23
  222. data/lib/atome/renderers/browser/atome.rb +0 -177
  223. data/lib/atome/renderers/browser/browser.rb +0 -47
  224. data/lib/atome/renderers/browser/effect.rb +0 -23
  225. data/lib/atome/renderers/browser/event.rb +0 -96
  226. data/lib/atome/renderers/browser/geometry.rb +0 -27
  227. data/lib/atome/renderers/browser/helpers/animation_helper.rb +0 -69
  228. data/lib/atome/renderers/browser/helpers/browser_helper.rb +0 -101
  229. data/lib/atome/renderers/browser/helpers/color_helper.rb +0 -95
  230. data/lib/atome/renderers/browser/helpers/drag_helper.rb +0 -52
  231. data/lib/atome/renderers/browser/helpers/drop_helper.rb +0 -13
  232. data/lib/atome/renderers/browser/helpers/effect_helper.rb +0 -23
  233. data/lib/atome/renderers/browser/helpers/event_helper.rb +0 -76
  234. data/lib/atome/renderers/browser/helpers/image_helper.rb +0 -27
  235. data/lib/atome/renderers/browser/helpers/over_helper.rb +0 -13
  236. data/lib/atome/renderers/browser/helpers/shadow_helper.rb +0 -74
  237. data/lib/atome/renderers/browser/helpers/shape_helper.rb +0 -22
  238. data/lib/atome/renderers/browser/helpers/text_helper.rb +0 -38
  239. data/lib/atome/renderers/browser/helpers/video_helper.rb +0 -50
  240. data/lib/atome/renderers/browser/helpers/web_helper.rb +0 -26
  241. data/lib/atome/renderers/browser/identity.rb +0 -61
  242. data/lib/atome/renderers/browser/material.rb +0 -121
  243. data/lib/atome/renderers/browser/opal_add_on.rb +0 -32
  244. data/lib/atome/renderers/browser/opal_browser.rb +0 -6
  245. data/lib/atome/renderers/browser/spatial.rb +0 -59
  246. data/lib/atome/renderers/browser/time.rb +0 -3
  247. data/lib/atome/renderers/browser/utility.rb +0 -49
  248. data/lib/atome/renderers/headless/headless.rb +0 -10
  249. data/lib/atome/renderers/headless/utility.rb +0 -6
  250. data/lib/atome/renderers/html/atome.rb +0 -49
  251. data/lib/atome/renderers/html/effect.rb +0 -19
  252. data/lib/atome/renderers/html/event.rb +0 -9
  253. data/lib/atome/renderers/html/geometry.rb +0 -11
  254. data/lib/atome/renderers/html/html.rb +0 -42
  255. data/lib/atome/renderers/html/identity.rb +0 -14
  256. data/lib/atome/renderers/html/opal_browser.rb +0 -6
  257. data/lib/atome/renderers/html/spatial.rb +0 -28
  258. data/lib/atome/renderers/html/utility.rb +0 -17
  259. data/lib/atome/renderers/opal/extensions/atome.rb +0 -29
  260. data/lib/atome/renderers/opal/extensions/ping.rb +0 -18
  261. data/lib/atome/renderers/renderer.rb +0 -15
  262. data/lib/atome/renderers/server/server.rb +0 -10
  263. data/lib/atome/renderers/server/utility.rb +0 -6
  264. data/vendor/assets/aui.rb +0 -5
  265. data/vendor/assets/r&d/misc.rb +0 -219
  266. data/vendor/assets/r&d/ping.rb +0 -3
  267. data/vendor/assets/r&d/storage.rb +0 -9
  268. data/vendor/assets/r&d/view_example.rb +0 -21
  269. data/vendor/assets/src/js/atome/atome_helpers/atome_communication.js +0 -40
  270. data/vendor/assets/src/medias/javascripts/test.js +0 -1
  271. data/vendor/assets/src/medias/rubies/demos.rb +0 -63
  272. data/vendor/assets/src/medias/rubies/examples/add.rb +0 -24
  273. data/vendor/assets/src/medias/rubies/examples/animation.rb +0 -81
  274. data/vendor/assets/src/medias/rubies/examples/atome_new.rb +0 -27
  275. data/vendor/assets/src/medias/rubies/examples/attach.rb +0 -15
  276. data/vendor/assets/src/medias/rubies/examples/attached.rb +0 -15
  277. data/vendor/assets/src/medias/rubies/examples/auto_height.rb +0 -5
  278. data/vendor/assets/src/medias/rubies/examples/auto_width.rb +0 -4
  279. data/vendor/assets/src/medias/rubies/examples/batch.rb +0 -17
  280. data/vendor/assets/src/medias/rubies/examples/blur.rb +0 -4
  281. data/vendor/assets/src/medias/rubies/examples/bottom.rb +0 -3
  282. data/vendor/assets/src/medias/rubies/examples/box.rb +0 -20
  283. data/vendor/assets/src/medias/rubies/examples/center.rb +0 -21
  284. data/vendor/assets/src/medias/rubies/examples/circle.rb +0 -3
  285. data/vendor/assets/src/medias/rubies/examples/class.rb +0 -13
  286. data/vendor/assets/src/medias/rubies/examples/clear.rb +0 -10
  287. data/vendor/assets/src/medias/rubies/examples/clone.rb +0 -35
  288. data/vendor/assets/src/medias/rubies/examples/code.rb +0 -11
  289. data/vendor/assets/src/medias/rubies/examples/color.rb +0 -73
  290. data/vendor/assets/src/medias/rubies/examples/create_atome_in_atome.rb +0 -13
  291. data/vendor/assets/src/medias/rubies/examples/cursor.rb +0 -7
  292. data/vendor/assets/src/medias/rubies/examples/delete.rb +0 -42
  293. data/vendor/assets/src/medias/rubies/examples/depth.rb +0 -6
  294. data/vendor/assets/src/medias/rubies/examples/detached.rb +0 -13
  295. data/vendor/assets/src/medias/rubies/examples/drag.rb +0 -98
  296. data/vendor/assets/src/medias/rubies/examples/drop.rb +0 -26
  297. data/vendor/assets/src/medias/rubies/examples/edit.rb +0 -12
  298. data/vendor/assets/src/medias/rubies/examples/element.rb +0 -6
  299. data/vendor/assets/src/medias/rubies/examples/empty_atome.rb +0 -12
  300. data/vendor/assets/src/medias/rubies/examples/fullscreen.rb +0 -15
  301. data/vendor/assets/src/medias/rubies/examples/grab.rb +0 -5
  302. data/vendor/assets/src/medias/rubies/examples/height.rb +0 -7
  303. data/vendor/assets/src/medias/rubies/examples/hide.rb +0 -7
  304. data/vendor/assets/src/medias/rubies/examples/id.rb +0 -14
  305. data/vendor/assets/src/medias/rubies/examples/image.rb +0 -8
  306. data/vendor/assets/src/medias/rubies/examples/left.rb +0 -7
  307. data/vendor/assets/src/medias/rubies/examples/link.rb +0 -22
  308. data/vendor/assets/src/medias/rubies/examples/markers.rb +0 -48
  309. data/vendor/assets/src/medias/rubies/examples/materials.rb +0 -15
  310. data/vendor/assets/src/medias/rubies/examples/matrix.rb +0 -102
  311. data/vendor/assets/src/medias/rubies/examples/matrix_changes.rb +0 -483
  312. data/vendor/assets/src/medias/rubies/examples/matrix_simple.rb +0 -32
  313. data/vendor/assets/src/medias/rubies/examples/monitoring.rb +0 -70
  314. data/vendor/assets/src/medias/rubies/examples/mute.rb +0 -22
  315. data/vendor/assets/src/medias/rubies/examples/on.rb +0 -26
  316. data/vendor/assets/src/medias/rubies/examples/opacity.rb +0 -5
  317. data/vendor/assets/src/medias/rubies/examples/over.rb +0 -21
  318. data/vendor/assets/src/medias/rubies/examples/pause.rb +0 -15
  319. data/vendor/assets/src/medias/rubies/examples/physical.rb +0 -19
  320. data/vendor/assets/src/medias/rubies/examples/play.rb +0 -15
  321. data/vendor/assets/src/medias/rubies/examples/read.rb +0 -11
  322. data/vendor/assets/src/medias/rubies/examples/refresh.rb +0 -8
  323. data/vendor/assets/src/medias/rubies/examples/remove.rb +0 -16
  324. data/vendor/assets/src/medias/rubies/examples/repeat.rb +0 -6
  325. data/vendor/assets/src/medias/rubies/examples/right.rb +0 -3
  326. data/vendor/assets/src/medias/rubies/examples/rotate.rb +0 -4
  327. data/vendor/assets/src/medias/rubies/examples/schedule.rb +0 -13
  328. data/vendor/assets/src/medias/rubies/examples/shadow.rb +0 -84
  329. data/vendor/assets/src/medias/rubies/examples/size.rb +0 -8
  330. data/vendor/assets/src/medias/rubies/examples/sort.rb +0 -18
  331. data/vendor/assets/src/medias/rubies/examples/style.rb +0 -4
  332. data/vendor/assets/src/medias/rubies/examples/tags.rb +0 -10
  333. data/vendor/assets/src/medias/rubies/examples/text.rb +0 -39
  334. data/vendor/assets/src/medias/rubies/examples/time.rb +0 -18
  335. data/vendor/assets/src/medias/rubies/examples/to_px.rb +0 -10
  336. data/vendor/assets/src/medias/rubies/examples/touch.rb +0 -56
  337. data/vendor/assets/src/medias/rubies/examples/vector.rb +0 -39
  338. data/vendor/assets/src/medias/rubies/examples/video.rb +0 -65
  339. data/vendor/assets/src/medias/rubies/examples/wait.rb +0 -8
  340. data/vendor/assets/src/medias/rubies/examples/web.rb +0 -13
  341. data/vendor/assets/src/medias/rubies/examples/width.rb +0 -6
  342. data/vendor/assets/src/medias/rubies/test.rb +0 -1
  343. data/vendor/assets/src/medias/rubies/text_read.rb +0 -1
  344. data/vendor/assets/src/medias/rubies/unstable/!run.rb +0 -16
  345. data/vendor/assets/src/medias/rubies/unstable/_2_solve.rb +0 -72
  346. data/vendor/assets/src/medias/rubies/unstable/_attach.rb +0 -12
  347. data/vendor/assets/src/medias/rubies/unstable/_audio.rb +0 -231
  348. data/vendor/assets/src/medias/rubies/unstable/_dataset.rb +0 -257
  349. data/vendor/assets/src/medias/rubies/unstable/_matrix.rb +0 -58
  350. data/vendor/assets/src/medias/rubies/unstable/_os.rb +0 -29
  351. data/vendor/assets/src/medias/rubies/unstable/_table2.rb +0 -108
  352. data/vendor/assets/src/medias/rubies/unstable/_vie.rb +0 -211
  353. data/vendor/assets/src/medias/rubies/users/code.rb +0 -6
  354. /data/lib/{atome/renderers → platform_specific}/opal/opal.rb +0 -0
  355. /data/lib/{atome/renderers → platform_specific}/opal/opal_parser.rb +0 -0
  356. /data/{vendor/assets/src/utilities/mode.rb → lib/renderers/html/communication.rb} +0 -0
  357. /data/{vendor/assets/src/medias/rubies/unstable/_test.rb → lib/renderers/html/security.rb} +0 -0
@@ -1,70 +0,0 @@
1
- # frozen_string_literal: true
2
- bb=text({data: :hello })
3
- #
4
- bb.touch(true) do
5
- bb.left(333)
6
- end
7
-
8
- # alert grab(:view).attached
9
- bb.monitor({ atomes: grab(:view).attached, particles: [:left] }) do |_atome, _element, value|
10
- puts "the left value of #{id} was change to : #{value}"
11
- end
12
-
13
- a = text({ data: "open the console!" })
14
- a.right(44).left(66)
15
- color({red: 1, id: :the_red_col})
16
- b = Atome.new(shape: { type: :shape, id: :my_shape, attach: [:view], renderers: [:browser],
17
- left: 0, right: 33, attached: :the_red_col, width: 33, height: 33
18
- })
19
-
20
- c = Atome.new(shape: { type: :shape, id: :my_pix, attach: [:view], renderers: [:browser],
21
- left: 50, right: 78, attached: :the_red_col, width: 33, height: 33
22
- })
23
-
24
-
25
-
26
-
27
- b.left(936)
28
- wait 0.5 do
29
- b.left(777)
30
- wait 0.5 do
31
- c.left(888)
32
- end
33
- end
34
-
35
- puts "bb monitor is #{bb.monitor}"
36
-
37
- # test 2
38
- aa = text({ data: 'touch me and look in the console', top: 99, width: 399, left: 120 })
39
-
40
-
41
- bb=box({ id: :the_boxy })
42
-
43
- aa.touch(true) do
44
- aa.color(:red)
45
- aa.left(333)
46
- aa.width(555)
47
- aa.right(4)
48
- aa.height(199)
49
- end
50
- bb.drag(true)
51
- bb.monitor({ atomes: grab(:view).attached, particles: [:left] }) do |_atome, _element, value|
52
- puts "the left value of #{id} was change to : #{value}"
53
- end
54
-
55
- bb.monitor({ atomes: grab(:view).attached, particles: [:top] }) do |_atome, _element, value|
56
- puts "the top value of #{id} was change to : #{value}"
57
- end
58
-
59
- bb.monitor({ atomes: grab(:view).attached, particles: [:width] }) do |_atome, _element, value|
60
- puts "the width's value of #{id} was change to : #{value}"
61
- end
62
-
63
- bb.monitor({ atomes: grab(:view).attached, particles: [:left], id: :my_monitorer }) do |_atome, _element, value|
64
- puts "the second monitor left value of #{id} was log to : #{value}"
65
- end
66
- # puts aa.monitor
67
- bb.top(66)
68
- a.monitor({ atomes: grab(:view).attached, particles: [:left] }) do |atome, element, value|
69
- puts "monitoring #{id} : #{atome.id}, #{element}, #{value}"
70
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- my_video2 = Atome.new(
4
- video: { renderers: [:browser], id: :video9, type: :video, attach: [:view], path: './medias/videos/madmax.mp4',
5
- left: 666, top: 333, width: 199, height: 99,
6
- }) do |params|
7
- puts "2- video callback time is #{params}, id is : #{id}"
8
- end
9
- my_video2.top(33)
10
- my_video2.left(333)
11
-
12
- my_video2.touch(true) do
13
- my_video2.play(true) do |currentTime|
14
- puts "2 - play callback time is : #{currentTime}, id is : #{id}"
15
- end
16
- wait 2 do
17
- my_video2.mute(true)
18
- wait 3 do
19
- my_video2.mute
20
- end
21
- end
22
- end
@@ -1,26 +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: 333, top: 33, width: 777
6
- }
7
- ) do |params|
8
- puts "video callback here #{params}"
9
- end
10
- my_video.touch(true) do
11
- my_video.pause(true)
12
- end
13
- my_video.play(true)
14
-
15
- # video example
16
- grab(:video1).time(5)
17
- wait 4 do
18
- grab(:video1).pause(5)
19
- end
20
- grab(:video1).on(:pause) do |_event|
21
- puts :stopped
22
- end
23
-
24
- grab(:video1).on(:click) do |_event|
25
- puts :touched
26
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- box
4
- c=circle({left: 33})
5
- c.opacity(0.3)
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b=circle({left: 333, id: :the_c})
4
- b.touch(true) do
5
- self.color(:blue)
6
- end
7
-
8
- b.touch(:long) do
9
- self.color(:red)
10
-
11
- end
12
-
13
- b.over(:enter) do
14
- self.color(:black)
15
-
16
- end
17
-
18
- b.over(:leave) do
19
-
20
- self.color(:blue)
21
- end
@@ -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: 333, top: 33, width: 777
6
- }
7
- ) do |params|
8
- puts "video callback here #{params}"
9
- end
10
-
11
- my_video.play(true)
12
-
13
- my_video.touch(true) do
14
- my_video.pause(true)
15
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({left: 333, id: :the_one_box})
4
- b.color(:red)
5
-
6
- b.circle({top: 66, id: :the_circle, color: :green})
7
- b.box({left: 166,top: 166, id: :the_box, color: :green})
8
- b.text({left: 166, id: :the_text, data: :green})
9
- b.image('red_planet.png')
10
- `console.clear()`
11
- puts "b: #{b}"
12
-
13
-
14
-
15
- wait 2 do
16
- b.physical.each do |attached_atome_id|
17
- b.delete({id: attached_atome_id})
18
- end
19
- end
@@ -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],clones: [],
5
- time: 33, 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.play(true)
12
-
13
- my_video.touch(true) do
14
- my_video.play(44)
15
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- puts "Attention this method only work with a server due to security restriction "
4
- a=box
5
- text("touch the box to read the file")
6
- a.touch(true) do
7
- a.read('texts/lorem.txt') do |params|
8
- text({data: params, visual:{size: 16}})
9
- end
10
- end
11
-
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box
4
- # TODO : repair the security flow below
5
- b.atome[:left] = 300
6
- wait 1 do
7
- b.refresh
8
- end
@@ -1,16 +0,0 @@
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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
- repeat 0.3, 10 do |evt|
3
- alert :ok
4
- puts "hello:#{evt}:"
5
- end
6
-
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- box({right: 120, left: :auto})
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({ width: 333, left: 333 })
4
- b.rotate(999)
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- _alarm_format = '2022,11,27,12,06,0'
4
- time_to_run = Time.now + 3
5
- t=text ({ data: "an event schedule will create a box" })
6
- t.width(555)
7
- a = element({})
8
-
9
- a.schedule(time_to_run) do
10
- puts 'event executed'
11
- t.delete(true)
12
- grab(:view).box #FIXME: box doesnt work we must use a grab , plaese fix
13
- end
@@ -1,84 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # TODO : make this work : b.shadow({color: :red})
4
-
5
- b = box({ id: :the_box, left: 99, top: 99 })
6
-
7
-
8
-
9
-
10
- s = b.shadow({ renderers: [:browser], id: :shadow2, type: :shadow,
11
- left: 3, top: 9, blur: 9, direction: :inset,
12
- red: 0, green: 0, blue: 0, alpha: 1
13
- })
14
-
15
- s.left(16)
16
-
17
- # s.color(:red)
18
- # wait 1 do
19
- # s.attach([:the_box])
20
- # # or
21
- # # b.children([:shadow2])
22
- # wait 1 do
23
- # s.blur(9)
24
- # wait 1 do
25
- # wait 2 do
26
- # s.direction('')
27
- # s.green(0.007)
28
- # s.left(14)
29
- # wait 1 do
30
- # s.delete(true)
31
- # end
32
- # end
33
- # s.left(44)
34
- # s.green(0.7)
35
- # end
36
- # end
37
- # end
38
- #
39
- # wait 3 do
40
- # b.shadow({ blur: 33 })
41
- # wait 2 do
42
- # b.shadow({ blur: 3 })
43
- # end
44
- # end
45
-
46
- wait 2 do
47
- s.red(1)
48
- end
49
-
50
- wait 4 do
51
-
52
- puts "-----------> now!!!!!!"
53
- b.shadow({ green: 1 })
54
- # c2=color(:red)
55
- # b.shadow.attach(c2.id)
56
- end
57
-
58
-
59
- edition = <<~STR
60
- <path id="p1" d="M257.7 752c2 0 4-0.2 6-0.5L431.9 722c2-0.4 3.9-1.3 5.3-2.8l423.9-423.9c3.9-3.9 3.9-10.2 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2c-1.9 11.1 1.5 21.9 9.4 29.8 6.6 6.4 14.9 9.9 23.8 9.9z m67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"/>
61
- STR
62
- v=vector({left: 300, width: 300, height: 300, definition: edition})
63
- # v.color(:red)
64
- v.shadow({ renderers: [:browser], id: :shadow7, type: :shadow,
65
- left: 3, top: 9, blur: 9, direction: :inset,
66
- red: 0, green: 0, blue: 0, alpha: 1
67
- })
68
-
69
- v.shadow({ renderers: [:browser], id: :shadow8, type: :shadow, real: true,
70
- left: 3, top: 9, blur: 9, direction: :inset,
71
- red: 0, green: 0, blue: 0, alpha: 1
72
- })
73
- b=box({top: 300})
74
-
75
- wait 4 do
76
- b.attached(:shadow7)
77
- v.attached(:shadow7)
78
- end
79
-
80
-
81
- wait 6 do
82
- b.attached(:shadow8)
83
- v.attached(:shadow8)
84
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b=box({width: 333, height: 120})
4
-
5
- b.size(33)
6
-
7
- im= image({path: "./medias/images/boat.png", left: 333, top: 33, width: 333, height: 215})
8
- im.size(99)
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- a = box({ width: 180, height: 333, id: :the_grid, overflow: :scroll })
4
- i = 0
5
- while i < 16
6
- b = Atome.new(
7
- shape: { renderers: [:browser],id: "the_shape#{i}", type: :shape, attach: [:the_grid], attached: [],
8
- width: 50, height: 50,
9
- color: { renderers: [:browser], id: :c31, type: :color, attach: ["the_shape#{i}"], attached: [],
10
- red: 1, green: 0.15, blue: 0.15, alpha: 0.6 } }
11
- )
12
- b.text({ data: "item#{i + 1}", visual: { size: 12 } })
13
- i += 1
14
- end
15
-
16
- a.sort(true) do |el|
17
- puts "just sorted : #{el}"
18
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b=box
4
- b.style({color: :red, left: 33, top: 333, width: 333})
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
- a=box({color: :orange})
3
-
4
- a.tag({ color: :red })
5
- a.tag({ star: 3 })
6
- a.add({ tag: { quality: 9 } })
7
-
8
- tags_found= a.tag.to_s
9
-
10
- text({data: "Orange box tags are #{tags_found}" , width: :auto})
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- my_text = Atome.new(
4
- text: { renderers: [:browser], id: :text1, type: :text, attach: [:view], visual: { size: 33 },
5
- data: 'My first text!', left: 120, top: 33, width: 199, height: 33,
6
-
7
- }
8
- )
9
-
10
- Atome.new(color: { renderers: [:browser], id: :c31, type: :color, attach: [:text1],
11
- red: 0.6, green: 0.6, blue: 0.6, alpha: 1 })
12
-
13
- wait 1 do
14
- my_text.data(:kool)
15
- end
16
-
17
- text({ id: :the_text, left: 0 })
18
-
19
- text2=Atome.new(
20
- text: { renderers: [:browser], id: :text2, type: :text, attach: [:view], visual: { size: 33 },
21
- data: 'My second text!', left: 333, top: 33, width: 199, height: 33,
22
-
23
- }
24
- )
25
-
26
-
27
-
28
- Atome.new(color: { renderers: [:browser], id: :c33, type: :color, attach: [:text2],
29
- red: 0.6, green: 0.6, blue: 0.1, alpha: 1 })
30
- wait 2 do
31
- text2.data(:ok)
32
- end
33
-
34
- b = box({ left: 66, top: 66, drag: true })
35
- my_text = b.text({ data: 'drag the bloc behind me', width: 333, left: 55 })
36
- wait 3 do
37
- my_text.color(:red)
38
- end
39
-
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- my_video = Atome.new(
4
- video: { renderers: [:browser], id: :video1, type: :video, attach: [:view],
5
- time: 33, path: './medias/videos/avengers.mp4', left: 69, top: 33, width: 777
6
- }
7
- ) do |params|
8
- puts "video callback here #{params}"
9
- end
10
- my_video.touch(true) do
11
- grab(:video1).time(3)
12
- my_video.pause(true)
13
- wait 3 do
14
- play(50)
15
- end
16
-
17
- end
18
- my_video.play(true)
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box()
4
- c=b.circle({width: '25%'})
5
- # wait 3 do
6
- b.width('35%')
7
- puts grab(:view).width.to_px
8
- puts b.width.to_px
9
- puts c.width.to_px
10
- c.parents
@@ -1,56 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- separator=120
4
- b=box({ left: separator, id: :test_box })
5
- c=box({ left: b.left+separator })
6
- d=box({ left: c.left+separator })
7
- e=box({ left: d.left+separator })
8
-
9
- b.touch(:down) do
10
- b.color(:red)
11
- c.color(:red)
12
- d.color(:red)
13
- e.color(:red)
14
- end
15
- b.text({data: :down})
16
-
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)
56
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # b=Atome.new(
4
- # { shape: { renderers: [:browser], id: :the_shape, type: :shape, attach: [:view],
5
- # left: 0, right: 0, top: 0, bottom: 0, width: 30, height: 30, overflow: :hidden, tag: {system: false}
6
- # } })
7
-
8
- b=box({left: 300})
9
- b.drag(true)
10
- edition = <<~STR
11
- <path id="p1" d="M257.7 752c2 0 4-0.2 6-0.5L431.9 722c2-0.4 3.9-1.3 5.3-2.8l423.9-423.9c3.9-3.9 3.9-10.2 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2c-1.9 11.1 1.5 21.9 9.4 29.8 6.6 6.4 14.9 9.9 23.8 9.9z m67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"/>
12
- STR
13
- v=b.vector({left: 0, top: 0})
14
-
15
- v.definition(edition)
16
- wait 1 do
17
- v.color(:yellow)
18
- end
19
- copy = <<~STR
20
- <svg class="svg-icon" style="width: 1em; height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;"
21
- viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
22
- <path id="p1" d="M672 832 224 832c-52.928 0-96-43.072-96-96L128 160c0-52.928 43.072-96 96-96l448 0c52.928 0 96 43.072 96 96l0 576C768 788.928 724.928 832 672 832zM224 128C206.368 128 192 142.368 192 160l0 576c0 17.664 14.368 32 32 32l448 0c17.664 0 32-14.336 32-32L704 160c0-17.632-14.336-32-32-32L224 128z"/>
23
- <path id="p2" d="M800 960 320 960c-17.664 0-32-14.304-32-32s14.336-32 32-32l480 0c17.664 0 32-14.336 32-32L832 256c0-17.664 14.304-32 32-32s32 14.336 32 32l0 608C896 916.928 852.928 960 800 960z"/>
24
- <path id="p3" d="M544 320 288 320c-17.664 0-32-14.336-32-32s14.336-32 32-32l256 0c17.696 0 32 14.336 32 32S561.696 320 544 320z"/>
25
- <path id="p4" d="M608 480 288.032 480c-17.664 0-32-14.336-32-32s14.336-32 32-32L608 416c17.696 0 32 14.336 32 32S625.696 480 608 480z"/>
26
- <path id="p5" d="M608 640 288 640c-17.664 0-32-14.304-32-32s14.336-32 32-32l320 0c17.696 0 32 14.304 32 32S625.696 640 608 640z"/>
27
- </svg>
28
- STR
29
-
30
-
31
- wait 2 do
32
- v.definition(copy)
33
- end
34
-
35
- wait 3 do
36
- v.color(:orange)
37
- v.width(33)
38
- v.height(33)
39
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- my_video = Atome.new(
4
- video: { renderers: [:browser], id: :video1, type: :video, attach: [:view], path: './medias/videos/superman.mp4',
5
- left: 333, top: 112, width: 199, height: 99
6
- }
7
- ) do |params|
8
- # puts "video callback time is #{params}, id is : #{id}"
9
- puts "video callback time is #{params}, id is : #{id}"
10
- end
11
- wait 2 do
12
- my_video.left(33)
13
- my_video.width(444)
14
- my_video.height(444)
15
-
16
- end
17
-
18
- my_video.touch(true) do
19
- if my_video.play == true
20
- my_video.pause(true)
21
- else
22
- my_video.play(true) do |currentTime|
23
- puts "play callback time is : #{currentTime}"
24
- end
25
- end
26
- end
27
- #############
28
- my_video2 = Atome.new(
29
- video: { renderers: [:browser], id: :video9, type: :video, attach: [:view], path: './medias/videos/madmax.mp4',
30
- left: 666, top: 333, width: 199, height: 99,
31
- }) do |params|
32
- puts "2- video callback time is #{params}, id is : #{id}"
33
- end
34
- my_video2.top(33)
35
- my_video2.left(333)
36
-
37
- my_video2.touch(true) do
38
- my_video2.play(true) do |currentTime|
39
- puts "2 - play callback time is : #{currentTime}, id is : #{id}"
40
- end
41
- end
42
-
43
- #############
44
- my_video3 = video({ path: './medias/videos/avengers.mp4', id: :video16 }) do |params|
45
- puts "3 - video callback here #{params}, id is : #{id}"
46
- end
47
- my_video3.width = my_video3.height = 333
48
- my_video3.left(555)
49
- grab(:video16).on(:pause) do |_event|
50
- puts "id is : #{id}"
51
- end
52
- my_video3.touch(true) do
53
- grab(:video16).time(15)
54
- my_video3.play(true) do |currentTime|
55
- puts "3- play callback time is : #{currentTime}, id is : #{id}"
56
- end
57
- wait 3 do
58
- puts "time is :#{my_video3.time}"
59
- end
60
- wait 6 do
61
- grab(:video16).pause(true) do |time|
62
- puts "paused at #{time} id is : #{id}"
63
- end
64
- end
65
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- wait 1 do
4
- box
5
- wait 1 do
6
- circle
7
- end
8
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Atome.new(
4
- image: { renderers: [:browser], id: :image1, type: :image, attach: [:view], path: "https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg", left: 99, top: 320, width: 199, height: 199,
5
- }
6
- )
7
-
8
- Atome.new(
9
- web: { renderers: [:browser], id: :youtube1, type: :web, attach: [:view], path: "https://www.youtube.com/embed/usQDazZKWAk", left: 33, top: 33, width: 199, height: 199,
10
- }
11
- )
12
-
13
- web({path: 'https://www.youtube.com/embed/usQDazZKWAk'})
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({left: 333 })
4
- wait 1 do
5
- b.width(33)
6
- end
@@ -1 +0,0 @@
1
- box(center: true, color: :orange, smooth: 6)
@@ -1 +0,0 @@
1
- {temperature: 33, wind: 45, humidity: 79, pressure: 6}