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,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,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({ height: :auto, width: 99, left: 333 })
4
- b.top(99)
5
- b.bottom(99)
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({ width: :auto, left: 333 })
4
- b.right(333)
@@ -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,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({ id: :the_box, left: 199, top: 99 })
4
- b.blur(7)
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- box({bottom: 12,top: :auto })
@@ -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,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- circle({ width: 333, left: 333 })
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b=box
4
- b.classes(:new_class)
5
-
6
- c=circle
7
- c.classes(:new_class)
8
-
9
- puts Universe.classes
10
- b.remove({classes: :new_class})
11
-
12
-
13
- puts Universe.classes
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- box(id: :my_box)
4
-
5
- circle(left: 333)
6
-
7
- wait 2 do
8
- grab(:view).clear(true)
9
- end
10
-
@@ -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,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- :crosshair
4
- :pointer
5
- b=box
6
-
7
- b.cursor(:crosshair)
@@ -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,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- c=circle({left: 33})
4
- box
5
- c.depth(3)
6
- c.opacity(0.3)
@@ -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,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- t = text({ data: "hit the box to make me editable" })
4
-
5
- b = box({ left: 333 })
6
- b.touch(true) do
7
- if t.edit.value == true
8
- t.edit(false)
9
- else
10
- t.edit(true)
11
- end
12
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Atome.new(container: {id: :element14, type: :element ,data: :hello, renderers: []})
4
-
5
- element(data: :hello_world)
6
- puts "atomes are: #{Universe.atomes.keys}"
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- a= Atome.new()
4
- t=template()
5
- t2=template({})
6
-
7
-
8
- puts "a : #{a}"
9
-
10
- puts "t : #{t}"
11
-
12
- puts "t2 : #{t2}"
@@ -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,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- box({id: :my_box})
4
- # allow to get any atome using it's id
5
- grab(:my_box).color(:yellow)
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({left: 333 })
4
-
5
- wait 1 do
6
- b.height(33)
7
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- bbb=box
4
-
5
- wait 2 do
6
- bbb.hide(true)
7
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({ id: :my_box })
4
- b.color(:orange)
5
-
6
- b.id(:the_new_id)
7
-
8
- wait 1 do
9
- b.color(:blue)
10
- end
11
-
12
- wait 2 do
13
- grab(:the_new_id).color(:cyan)
14
- 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,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- b = box({left: 333 })
4
-
5
- wait 1 do
6
- b.left(33)
7
- end
@@ -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