atome 0.5.4.1.7 → 0.5.5.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -1
  3. data/Gemfile +3 -1
  4. data/README.md +70 -1
  5. data/Rakefile +246 -75
  6. data/app_builder_helpers/Rakefile +276 -288
  7. data/documentation/basic.md +242 -0
  8. data/documentation/deep learning/architecture.txt +3763 -0
  9. data/documentation/deep learning/atome.png +0 -0
  10. data/documentation/deep learning/basic_infos.txt +227 -0
  11. data/documentation/deep learning/example_of_users_code.rb +1810 -0
  12. data/documentation/deep learning/misc.txt +24 -0
  13. data/documentation/deep learning/ruby_js_example.rb +272 -0
  14. data/documentation/deep learning/wasm_script_help.text +14 -0
  15. data/documentation/framework/enhance_atome.md +1 -1
  16. data/documentation/tutorials/tutorials.md +7 -0
  17. data/exe/atome +308 -208
  18. data/lib/atome/atome.rb +52 -156
  19. data/lib/atome/extensions/atome.rb +129 -47
  20. data/lib/atome/extensions/mathematics.rb +20 -0
  21. data/lib/atome/extensions/ping.rb +2 -3
  22. data/lib/atome/genesis/generators/atome.rb +57 -30
  23. data/lib/atome/genesis/generators/communication.rb +9 -0
  24. data/lib/atome/genesis/generators/effect.rb +0 -1
  25. data/lib/atome/genesis/generators/event.rb +279 -43
  26. data/lib/atome/genesis/generators/geometry.rb +1 -10
  27. data/lib/atome/genesis/generators/hierarchy.rb +103 -0
  28. data/lib/atome/genesis/generators/identity.rb +45 -84
  29. data/lib/atome/genesis/generators/material.rb +31 -34
  30. data/lib/atome/genesis/generators/property.rb +31 -0
  31. data/lib/atome/genesis/generators/security.rb +31 -0
  32. data/lib/atome/genesis/generators/spatial.rb +3 -5
  33. data/lib/atome/genesis/generators/time.rb +0 -1
  34. data/lib/atome/genesis/generators/utility.rb +181 -66
  35. data/lib/atome/genesis/genesis.rb +152 -55
  36. data/lib/atome/genesis/sparkle.rb +59 -75
  37. data/lib/atome/helpers/color_helper/color/rgb/colors.rb +1 -1
  38. data/lib/atome/helpers/color_helper/color/rgb.rb +1 -1
  39. data/lib/atome/helpers/color_helper/color.rb +226 -7
  40. data/lib/atome/helpers/essentials.rb +22 -26
  41. data/lib/atome/helpers/security.rb +71 -0
  42. data/lib/atome/helpers/utilities.rb +191 -178
  43. data/lib/atome/kernel/black_matter.rb +22 -0
  44. data/lib/atome/kernel/universe.rb +123 -24
  45. data/lib/atome/presets/atome.rb +39 -35
  46. data/lib/atome/version.rb +3 -2
  47. data/lib/atome.rb +12 -12
  48. data/lib/atome_relative.rb +36 -0
  49. data/lib/{atome/renderers → platform_specific}/opal/atome_opal_extensions.rb +4 -1
  50. data/lib/{atome/renderers → platform_specific}/opal/extensions/color.rb +12 -5
  51. data/lib/{atome/renderers → platform_specific}/opal/extensions/geolocation.rb +1 -0
  52. data/lib/platform_specific/opal/extensions/js.rb +21 -0
  53. data/lib/platform_specific/opal/extensions/object.rb +6 -0
  54. data/lib/platform_specific/opal/extensions/ping.rb +31 -0
  55. data/lib/{atome/renderers → platform_specific}/opal/extensions/sha.rb +4 -2
  56. data/lib/platform_specific/wasm/atome_wasm_extensions.rb +11 -0
  57. data/lib/renderers/headless/headless.rb +18 -0
  58. data/lib/renderers/headless/index.rb +6 -0
  59. data/lib/renderers/headless/index_relative.rb +6 -0
  60. data/lib/renderers/headless/utility.rb +6 -0
  61. data/{vendor/assets/src/medias/rubies/examples/top.rb → lib/renderers/html/atome.rb} +0 -1
  62. data/lib/renderers/html/atome_html.rb +22 -0
  63. data/lib/renderers/html/effect.rb +26 -0
  64. data/lib/renderers/html/event.rb +43 -0
  65. data/lib/renderers/html/geometry.rb +31 -0
  66. data/lib/renderers/html/hierarchy.rb +233 -0
  67. data/lib/renderers/html/html.rb +1112 -0
  68. data/lib/renderers/html/identity.rb +84 -0
  69. data/lib/renderers/html/index.rb +19 -0
  70. data/lib/renderers/html/index_relative.rb +20 -0
  71. data/lib/renderers/html/material.rb +53 -0
  72. data/lib/renderers/html/property.rb +24 -0
  73. data/lib/renderers/html/spatial.rb +46 -0
  74. data/lib/renderers/html/time.rb +1 -0
  75. data/lib/renderers/html/utility.rb +38 -0
  76. data/lib/renderers/renderer.rb +16 -0
  77. data/lib/renderers/server/index.rb +4 -0
  78. data/lib/renderers/server/index_relative.rb +4 -0
  79. data/lib/renderers/server/utility.rb +4 -0
  80. data/sig/atome.rbs +6 -0
  81. data/sig/object.rbs +4 -0
  82. data/sig/universe.rbs +3 -0
  83. data/vendor/assets/Rakefile +3 -3
  84. data/vendor/assets/application/examples/a_concat.rb +16 -0
  85. data/vendor/assets/application/examples/affect.rb +8 -0
  86. data/vendor/assets/application/examples/animation.rb +96 -0
  87. data/vendor/assets/application/examples/apply.rb +8 -0
  88. data/vendor/assets/application/examples/atome.rb +5 -0
  89. data/vendor/assets/application/examples/attach.rb +34 -0
  90. data/vendor/assets/application/examples/attached.rb +38 -0
  91. data/vendor/assets/application/examples/basic_understanding.rb +52 -0
  92. data/vendor/assets/application/examples/browse.rb +17 -0
  93. data/vendor/assets/application/examples/callback.rb +20 -0
  94. data/vendor/assets/application/examples/category.rb +12 -0
  95. data/vendor/assets/application/examples/clear.rb +96 -0
  96. data/vendor/assets/application/examples/clones.rb +177 -0
  97. data/vendor/assets/application/examples/code.rb +13 -0
  98. data/vendor/assets/application/examples/color.rb +54 -0
  99. data/vendor/assets/application/examples/convert.rb +163 -0
  100. data/vendor/assets/application/examples/copy.rb +25 -0
  101. data/vendor/assets/application/examples/copybck.rb +68 -0
  102. data/vendor/assets/application/examples/debug.rb +78 -0
  103. data/vendor/assets/application/examples/delete.rb +93 -0
  104. data/vendor/assets/application/examples/display.rb +279 -0
  105. data/vendor/assets/application/examples/display_bck.rb +164 -0
  106. data/vendor/assets/application/examples/drag.rb +45 -0
  107. data/vendor/assets/application/examples/drop.rb +35 -0
  108. data/vendor/assets/application/examples/duplicate.rb +64 -0
  109. data/vendor/assets/application/examples/edit.rb +21 -0
  110. data/vendor/assets/application/examples/encode.rb +6 -0
  111. data/vendor/assets/application/examples/file.rb +50 -0
  112. data/vendor/assets/application/examples/find.rb +157 -0
  113. data/vendor/assets/application/examples/generator_and_build.rb +15 -0
  114. data/vendor/assets/application/examples/getter.rb +16 -0
  115. data/vendor/assets/application/examples/grab.rb +14 -0
  116. data/vendor/assets/application/examples/gradient.rb +35 -0
  117. data/vendor/assets/application/examples/group.rb +44 -0
  118. data/vendor/assets/application/examples/hierarchy.rb +21 -0
  119. data/vendor/assets/application/examples/history.rb +31 -0
  120. data/vendor/assets/application/examples/hypertext.rb +113 -0
  121. data/vendor/assets/application/examples/image.rb +5 -0
  122. data/vendor/assets/application/examples/keyboard.rb +59 -0
  123. data/vendor/assets/application/examples/layout.rb +227 -0
  124. data/vendor/assets/application/examples/login.rb +10 -0
  125. data/vendor/assets/application/examples/markup.rb +4 -0
  126. data/vendor/assets/application/examples/match.rb +115 -0
  127. data/vendor/assets/application/examples/messaging.rb +16 -0
  128. data/vendor/assets/application/examples/monitor.rb +14 -0
  129. data/vendor/assets/application/examples/on_resize.rb +7 -0
  130. data/vendor/assets/{src/medias/rubies/examples/get_renderer_list.rb → application/examples/online.rb} +1 -1
  131. data/vendor/assets/application/examples/over.rb +29 -0
  132. data/vendor/assets/application/examples/paint.rb +23 -0
  133. data/vendor/assets/application/examples/particles.rb +4 -0
  134. data/vendor/assets/application/examples/percent_to_px.rb +4 -0
  135. data/vendor/assets/application/examples/play.rb +50 -0
  136. data/vendor/assets/application/examples/presets.rb +33 -0
  137. data/vendor/assets/application/examples/random.rb +42 -0
  138. data/vendor/assets/application/examples/raw_html.rb +48 -0
  139. data/vendor/assets/application/examples/read.rb +11 -0
  140. data/vendor/assets/application/examples/refresh.rb +62 -0
  141. data/vendor/assets/application/examples/remove.rb +47 -0
  142. data/vendor/assets/application/examples/repeat.rb +26 -0
  143. data/vendor/assets/application/examples/resize.rb +17 -0
  144. data/vendor/assets/application/examples/scroll.rb +11 -0
  145. data/vendor/assets/application/examples/security.rb +76 -0
  146. data/vendor/assets/application/examples/selected.rb +30 -0
  147. data/vendor/assets/application/examples/shadow.rb +46 -0
  148. data/vendor/assets/application/examples/shapes.rb +6 -0
  149. data/vendor/assets/{src/medias/rubies → application}/examples/smooth.rb +5 -1
  150. data/vendor/assets/application/examples/style.rb +4 -0
  151. data/vendor/assets/application/examples/sync.rb +39 -0
  152. data/vendor/assets/application/examples/tagged.rb +24 -0
  153. data/vendor/assets/application/examples/terminal.rb +4 -0
  154. data/vendor/assets/application/examples/text.rb +5 -0
  155. data/vendor/assets/application/examples/touch.rb +38 -0
  156. data/vendor/assets/application/examples/type_mutation.rb +18 -0
  157. data/vendor/assets/application/examples/universe.rb +8 -0
  158. data/vendor/assets/application/examples/vector.rb +24 -0
  159. data/vendor/assets/application/examples/video.rb +14 -0
  160. data/vendor/assets/application/examples/wait.rb +6 -0
  161. data/vendor/assets/application/examples/www.rb +10 -0
  162. data/vendor/assets/application/index.rb +1 -1
  163. data/vendor/assets/application/test.rb +29 -0
  164. data/vendor/assets/application/works/photos.rb +672 -0
  165. data/vendor/assets/application/works/photos2.rb +218 -0
  166. data/vendor/assets/application/works/photos3.rb +343 -0
  167. data/vendor/assets/application/works/photos4.rb +34 -0
  168. data/vendor/assets/application/works/photos6.rb +6 -0
  169. data/vendor/assets/application/works/trigga.rb +0 -0
  170. data/vendor/assets/application/works/vie.rb +74 -0
  171. data/vendor/assets/server/atome_server.rb +37 -41
  172. data/vendor/assets/server/atome_server_wasm.rb +112 -0
  173. data/vendor/assets/server/capture.rb +10 -0
  174. data/vendor/assets/server/config.ru +5 -4
  175. data/vendor/assets/src/css/style.css +29 -4
  176. data/vendor/assets/src/index.html +31 -38
  177. data/vendor/assets/src/index_opal.html +42 -0
  178. data/vendor/assets/src/index_server.html +43 -0
  179. data/vendor/assets/src/index_server_wasm.html +46 -0
  180. data/vendor/assets/src/js/atome/atome.js +170 -150
  181. data/vendor/assets/src/js/atome/atome_helpers/add_font.js +46 -0
  182. data/vendor/assets/src/js/atome/atome_helpers/atome_drag.js +3 -1
  183. data/vendor/assets/src/js/atome/atome_helpers/atome_events.js +12 -7
  184. data/vendor/assets/src/js/atome/atome_helpers/communication.js +126 -0
  185. data/vendor/assets/src/js/atome/atome_helpers/{atome_file.js → file.js} +1 -1
  186. data/vendor/assets/src/js/atome/specific/opal.js +3 -0
  187. data/vendor/assets/src/js/atome/specific/wasm.js +12 -0
  188. data/vendor/assets/src/js/third_parties/browser.script.iife.min.js +13 -0
  189. data/vendor/assets/src/js/third_parties/fabric.min.js +1 -1
  190. data/vendor/assets/src/js/third_parties/html-to-image.min.js +2 -0
  191. data/vendor/assets/src/js/third_parties/jsencrypt.min.js +2 -0
  192. data/vendor/assets/src/js/third_parties/papaparse.min.js +7 -0
  193. data/vendor/assets/src/medias/fonts/Roboto/LICENSE.txt +202 -0
  194. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Black.ttf +0 -0
  195. data/vendor/assets/src/medias/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
  196. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Bold.ttf +0 -0
  197. data/vendor/assets/src/medias/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
  198. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Italic.ttf +0 -0
  199. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Light.ttf +0 -0
  200. data/vendor/assets/src/medias/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
  201. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Medium.ttf +0 -0
  202. data/vendor/assets/src/medias/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  203. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Regular.ttf +0 -0
  204. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Thin.ttf +0 -0
  205. data/vendor/assets/src/medias/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
  206. data/vendor/assets/src/medias/images/logos/Facebook.svg +1 -1
  207. data/vendor/assets/src/medias/images/logos/LinkedIn-full.svg +109 -0
  208. data/vendor/assets/src/medias/images/logos/LinkedIn.svg +11 -0
  209. data/vendor/assets/src/medias/images/logos/X.svg +5 -0
  210. data/vendor/assets/src-tauri/Cargo.toml +1 -1
  211. data/vendor/assets/src-tauri/src/main.rs +59 -5
  212. data/vendor/assets/src-tauri/tauri.conf.json +1 -1
  213. data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_arm +0 -0
  214. data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_x86 +0 -0
  215. data/vendor/assets/src-wasm/wasm/wasi-vfs-unix +0 -0
  216. data/vendor/assets/src-wasm/wasm/wasi-vfs.exe +0 -0
  217. metadata +188 -180
  218. data/lib/atome/extensions/mathematic.rb +0 -20
  219. data/lib/atome/extensions/matrix.rb +0 -346
  220. data/lib/atome/helpers/callbacks.rb +0 -133
  221. data/lib/atome/kernel/batch.rb +0 -26
  222. data/lib/atome/kernel/essentials.rb +0 -23
  223. data/lib/atome/renderers/browser/atome.rb +0 -158
  224. data/lib/atome/renderers/browser/browser.rb +0 -47
  225. data/lib/atome/renderers/browser/effect.rb +0 -23
  226. data/lib/atome/renderers/browser/event.rb +0 -96
  227. data/lib/atome/renderers/browser/geometry.rb +0 -27
  228. data/lib/atome/renderers/browser/helpers/animation_helper.rb +0 -69
  229. data/lib/atome/renderers/browser/helpers/browser_helper.rb +0 -101
  230. data/lib/atome/renderers/browser/helpers/color_helper.rb +0 -80
  231. data/lib/atome/renderers/browser/helpers/drag_helper.rb +0 -52
  232. data/lib/atome/renderers/browser/helpers/drop_helper.rb +0 -13
  233. data/lib/atome/renderers/browser/helpers/effect_helper.rb +0 -23
  234. data/lib/atome/renderers/browser/helpers/event_helper.rb +0 -76
  235. data/lib/atome/renderers/browser/helpers/image_helper.rb +0 -27
  236. data/lib/atome/renderers/browser/helpers/over_helper.rb +0 -13
  237. data/lib/atome/renderers/browser/helpers/shadow_helper.rb +0 -74
  238. data/lib/atome/renderers/browser/helpers/shape_helper.rb +0 -22
  239. data/lib/atome/renderers/browser/helpers/text_helper.rb +0 -38
  240. data/lib/atome/renderers/browser/helpers/video_helper.rb +0 -50
  241. data/lib/atome/renderers/browser/helpers/web_helper.rb +0 -26
  242. data/lib/atome/renderers/browser/identity.rb +0 -61
  243. data/lib/atome/renderers/browser/material.rb +0 -121
  244. data/lib/atome/renderers/browser/opal_add_on.rb +0 -31
  245. data/lib/atome/renderers/browser/opal_browser.rb +0 -6
  246. data/lib/atome/renderers/browser/spatial.rb +0 -59
  247. data/lib/atome/renderers/browser/time.rb +0 -3
  248. data/lib/atome/renderers/browser/utility.rb +0 -49
  249. data/lib/atome/renderers/headless/headless.rb +0 -10
  250. data/lib/atome/renderers/headless/utility.rb +0 -6
  251. data/lib/atome/renderers/html/atome.rb +0 -49
  252. data/lib/atome/renderers/html/effect.rb +0 -19
  253. data/lib/atome/renderers/html/event.rb +0 -9
  254. data/lib/atome/renderers/html/geometry.rb +0 -11
  255. data/lib/atome/renderers/html/html.rb +0 -42
  256. data/lib/atome/renderers/html/identity.rb +0 -14
  257. data/lib/atome/renderers/html/opal_browser.rb +0 -6
  258. data/lib/atome/renderers/html/spatial.rb +0 -28
  259. data/lib/atome/renderers/html/utility.rb +0 -17
  260. data/lib/atome/renderers/opal/extensions/atome.rb +0 -29
  261. data/lib/atome/renderers/opal/extensions/ping.rb +0 -18
  262. data/lib/atome/renderers/renderer.rb +0 -15
  263. data/lib/atome/renderers/server/server.rb +0 -10
  264. data/lib/atome/renderers/server/utility.rb +0 -6
  265. data/vendor/assets/aui.rb +0 -5
  266. data/vendor/assets/r&d/misc.rb +0 -219
  267. data/vendor/assets/r&d/ping.rb +0 -3
  268. data/vendor/assets/r&d/storage.rb +0 -9
  269. data/vendor/assets/r&d/view_example.rb +0 -21
  270. data/vendor/assets/src/js/atome/atome_helpers/atome_communication.js +0 -40
  271. data/vendor/assets/src/medias/javascripts/test.js +0 -1
  272. data/vendor/assets/src/medias/rubies/demos.rb +0 -63
  273. data/vendor/assets/src/medias/rubies/examples/add.rb +0 -24
  274. data/vendor/assets/src/medias/rubies/examples/animation.rb +0 -81
  275. data/vendor/assets/src/medias/rubies/examples/atome_new.rb +0 -27
  276. data/vendor/assets/src/medias/rubies/examples/attach.rb +0 -15
  277. data/vendor/assets/src/medias/rubies/examples/attached.rb +0 -15
  278. data/vendor/assets/src/medias/rubies/examples/auto_height.rb +0 -5
  279. data/vendor/assets/src/medias/rubies/examples/auto_width.rb +0 -4
  280. data/vendor/assets/src/medias/rubies/examples/batch.rb +0 -17
  281. data/vendor/assets/src/medias/rubies/examples/blur.rb +0 -4
  282. data/vendor/assets/src/medias/rubies/examples/bottom.rb +0 -3
  283. data/vendor/assets/src/medias/rubies/examples/box.rb +0 -20
  284. data/vendor/assets/src/medias/rubies/examples/center.rb +0 -21
  285. data/vendor/assets/src/medias/rubies/examples/circle.rb +0 -3
  286. data/vendor/assets/src/medias/rubies/examples/class.rb +0 -13
  287. data/vendor/assets/src/medias/rubies/examples/clear.rb +0 -10
  288. data/vendor/assets/src/medias/rubies/examples/clone.rb +0 -35
  289. data/vendor/assets/src/medias/rubies/examples/code.rb +0 -11
  290. data/vendor/assets/src/medias/rubies/examples/color.rb +0 -73
  291. data/vendor/assets/src/medias/rubies/examples/create_atome_in_atome.rb +0 -13
  292. data/vendor/assets/src/medias/rubies/examples/cursor.rb +0 -7
  293. data/vendor/assets/src/medias/rubies/examples/delete.rb +0 -42
  294. data/vendor/assets/src/medias/rubies/examples/depth.rb +0 -6
  295. data/vendor/assets/src/medias/rubies/examples/detached.rb +0 -13
  296. data/vendor/assets/src/medias/rubies/examples/drag.rb +0 -98
  297. data/vendor/assets/src/medias/rubies/examples/drop.rb +0 -26
  298. data/vendor/assets/src/medias/rubies/examples/edit.rb +0 -12
  299. data/vendor/assets/src/medias/rubies/examples/element.rb +0 -6
  300. data/vendor/assets/src/medias/rubies/examples/empty_atome.rb +0 -12
  301. data/vendor/assets/src/medias/rubies/examples/fullscreen.rb +0 -15
  302. data/vendor/assets/src/medias/rubies/examples/grab.rb +0 -5
  303. data/vendor/assets/src/medias/rubies/examples/height.rb +0 -7
  304. data/vendor/assets/src/medias/rubies/examples/hide.rb +0 -7
  305. data/vendor/assets/src/medias/rubies/examples/id.rb +0 -14
  306. data/vendor/assets/src/medias/rubies/examples/image.rb +0 -8
  307. data/vendor/assets/src/medias/rubies/examples/left.rb +0 -7
  308. data/vendor/assets/src/medias/rubies/examples/link.rb +0 -22
  309. data/vendor/assets/src/medias/rubies/examples/markers.rb +0 -48
  310. data/vendor/assets/src/medias/rubies/examples/materials.rb +0 -15
  311. data/vendor/assets/src/medias/rubies/examples/matrix.rb +0 -102
  312. data/vendor/assets/src/medias/rubies/examples/matrix_changes.rb +0 -483
  313. data/vendor/assets/src/medias/rubies/examples/matrix_simple.rb +0 -32
  314. data/vendor/assets/src/medias/rubies/examples/monitoring.rb +0 -70
  315. data/vendor/assets/src/medias/rubies/examples/mute.rb +0 -22
  316. data/vendor/assets/src/medias/rubies/examples/on.rb +0 -26
  317. data/vendor/assets/src/medias/rubies/examples/opacity.rb +0 -5
  318. data/vendor/assets/src/medias/rubies/examples/over.rb +0 -21
  319. data/vendor/assets/src/medias/rubies/examples/pause.rb +0 -15
  320. data/vendor/assets/src/medias/rubies/examples/physical.rb +0 -19
  321. data/vendor/assets/src/medias/rubies/examples/play.rb +0 -15
  322. data/vendor/assets/src/medias/rubies/examples/read.rb +0 -11
  323. data/vendor/assets/src/medias/rubies/examples/refresh.rb +0 -8
  324. data/vendor/assets/src/medias/rubies/examples/remove.rb +0 -16
  325. data/vendor/assets/src/medias/rubies/examples/repeat.rb +0 -6
  326. data/vendor/assets/src/medias/rubies/examples/right.rb +0 -3
  327. data/vendor/assets/src/medias/rubies/examples/rotate.rb +0 -4
  328. data/vendor/assets/src/medias/rubies/examples/schedule.rb +0 -13
  329. data/vendor/assets/src/medias/rubies/examples/shadow.rb +0 -84
  330. data/vendor/assets/src/medias/rubies/examples/size.rb +0 -8
  331. data/vendor/assets/src/medias/rubies/examples/sort.rb +0 -18
  332. data/vendor/assets/src/medias/rubies/examples/style.rb +0 -4
  333. data/vendor/assets/src/medias/rubies/examples/tags.rb +0 -10
  334. data/vendor/assets/src/medias/rubies/examples/text.rb +0 -39
  335. data/vendor/assets/src/medias/rubies/examples/time.rb +0 -18
  336. data/vendor/assets/src/medias/rubies/examples/to_px.rb +0 -10
  337. data/vendor/assets/src/medias/rubies/examples/touch.rb +0 -56
  338. data/vendor/assets/src/medias/rubies/examples/vector.rb +0 -39
  339. data/vendor/assets/src/medias/rubies/examples/video.rb +0 -65
  340. data/vendor/assets/src/medias/rubies/examples/wait.rb +0 -8
  341. data/vendor/assets/src/medias/rubies/examples/web.rb +0 -13
  342. data/vendor/assets/src/medias/rubies/examples/width.rb +0 -6
  343. data/vendor/assets/src/medias/rubies/test.rb +0 -1
  344. data/vendor/assets/src/medias/rubies/text_read.rb +0 -1
  345. data/vendor/assets/src/medias/rubies/unstable/!run.rb +0 -16
  346. data/vendor/assets/src/medias/rubies/unstable/_2_solve.rb +0 -72
  347. data/vendor/assets/src/medias/rubies/unstable/_attach.rb +0 -12
  348. data/vendor/assets/src/medias/rubies/unstable/_audio.rb +0 -231
  349. data/vendor/assets/src/medias/rubies/unstable/_dataset.rb +0 -257
  350. data/vendor/assets/src/medias/rubies/unstable/_matrix.rb +0 -58
  351. data/vendor/assets/src/medias/rubies/unstable/_os.rb +0 -29
  352. data/vendor/assets/src/medias/rubies/unstable/_table2.rb +0 -108
  353. data/vendor/assets/src/medias/rubies/unstable/_vie.rb +0 -211
  354. data/vendor/assets/src/medias/rubies/users/code.rb +0 -6
  355. /data/lib/{atome/renderers → platform_specific}/opal/opal.rb +0 -0
  356. /data/lib/{atome/renderers → platform_specific}/opal/opal_parser.rb +0 -0
  357. /data/{vendor/assets/src/utilities/mode.rb → lib/renderers/html/communication.rb} +0 -0
  358. /data/{vendor/assets/src/medias/rubies/unstable/_test.rb → lib/renderers/html/security.rb} +0 -0
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'atome/renderers/browser/opal_add_on'
4
- require 'atome/renderers/browser/effect'
5
- require 'atome/renderers/browser/event'
6
- require 'atome/renderers/browser/geometry'
7
- require 'atome/renderers/browser/identity'
8
- require 'atome/renderers/browser/material'
9
- require 'atome/renderers/browser/spatial'
10
- require 'atome/renderers/browser/atome'
11
- require 'atome/renderers/browser/utility'
12
- require 'atome/renderers/browser/time'
13
- require 'atome/renderers/browser/helpers/browser_helper'
14
- require 'atome/renderers/browser/helpers/animation_helper'
15
- require 'atome/renderers/browser/helpers/color_helper'
16
- require 'atome/renderers/browser/helpers/drag_helper'
17
- require 'atome/renderers/browser/helpers/drop_helper'
18
- # require 'atome/renderers/browser/helpers/over_helper'
19
- require 'atome/renderers/browser/helpers/effect_helper'
20
- require 'atome/renderers/browser/helpers/event_helper'
21
- require 'atome/renderers/browser/helpers/image_helper'
22
- require 'atome/renderers/browser/helpers/shadow_helper'
23
- require 'atome/renderers/browser/helpers/shape_helper'
24
- require 'atome/renderers/browser/helpers/text_helper'
25
- require 'atome/renderers/browser/helpers/video_helper'
26
- require 'atome/renderers/browser/helpers/web_helper'
27
-
28
- class Atome
29
- attr_accessor :browser_object
30
-
31
- def to_px
32
- id_found = real_atome[:id]
33
- property_found=property
34
- value_get = ''
35
- `
36
- div = document.getElementById(#{id_found});
37
- var style = window.getComputedStyle(div);
38
- var original_value = style.getPropertyValue(#{property_found});
39
- #{value_get}= parseInt(original_value);
40
- `
41
- value_get
42
- end
43
- end
44
-
45
- def atome_js
46
- `atomeJS`
47
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- generator = Genesis.generator
4
-
5
- generator.build_render(:browser_smooth) do |value|
6
- format_params = case value
7
- when Array
8
- properties = []
9
- value.each do |param|
10
- properties << "#{param}px"
11
- end
12
- properties.join(' ').to_s
13
- when Integer
14
- "#{value}px"
15
- else
16
- value
17
- end
18
- @browser_object.style['border-radius'] = format_params
19
- end
20
-
21
- generator.build_render(:browser_blur) do |value|
22
- BrowserHelper.send("browser_blur_#{@browser_type}", @browser_object, value, @atome)
23
- end
@@ -1,96 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- generator = Genesis.generator
4
-
5
- generator.build_render(:browser_touch) do |value, proc|
6
- atome_id = @browser_object.attribute(:id)
7
- # value.each do |tap_mode, user_proc|
8
- # alert "#{tap_mode} : #{user_proc}\n #{tap_mode.class} : #{user_proc.class}"
9
- # BrowserHelper.send("browser_touch_#{tap_mode}", atome_id,self, user_proc)
10
- # end
11
- # alert "#{value} : #{proc}\n #{value.class} : #{proc.class}"
12
- BrowserHelper.send("browser_touch_#{value}", atome_id,self, proc)
13
- end
14
-
15
- generator.build_render(:browser_over) do |value, proc|
16
- BrowserHelper.send("browser_over_#{value}", @browser_object,self, proc)
17
- end
18
-
19
- # generator.build_render(:browser_over) do |options, proc|
20
- # # puts "method : #{options}, params : #{options}"
21
- # options.each do |method, params|
22
- # atome_id = @atome[:id]
23
- # BrowserHelper.send("browser_over_#{method}", params, atome_id, self, proc)
24
- # end
25
- # end
26
-
27
-
28
- generator.build_render(:browser_play) do |value, proc|
29
- # first we reinit the 'at' event so the condition will be met again
30
- # @at_time[:used] = nil
31
- @browser_object.currentTime = value if value != true
32
- BrowserHelper.send("browser_play_#{@atome[:type]}", value, @browser_object, @atome, self, proc)
33
- end
34
-
35
- generator.build_render(:browser_time) do |value = nil, _proc|
36
- if value
37
- @browser_object.currentTime = value
38
- else
39
- @browser_object.currentTime
40
- end
41
- end
42
-
43
- generator.build_render(:browser_pause) do |_value, proc|
44
- instance_exec(@browser_object.currentTime, &proc) if proc.is_a?(Proc)
45
- @browser_object.pause
46
- end
47
-
48
- generator.build_render(:on) do |value, proc|
49
- @browser_object.on(value) do |e|
50
- instance_exec(e, &proc) if proc.is_a?(Proc)
51
- end
52
- end
53
-
54
- generator.build_render(:fullscreen) do |_value, _proc|
55
- atome_id = atome[:id]
56
- atome_js.JS.fullscreen(atome_id)
57
- end
58
-
59
- generator.build_render(:mute) do |value, _proc|
60
- if value
61
- browser_object.muted
62
- else
63
- browser_object.unmuted
64
- end
65
- end
66
-
67
- generator.build_render(:browser_drag) do |options, proc|
68
- options.each do |method, params|
69
- atome_id = @atome[:id]
70
- BrowserHelper.send("browser_drag_#{method}", params, atome_id, self, proc)
71
- end
72
- end
73
-
74
- generator.build_render(:browser_drop) do |options, proc|
75
- # puts "method : #{options}, params : #{options}"
76
- options.each do |method, params|
77
- atome_id = @atome[:id]
78
- BrowserHelper.send("browser_drop_#{method}", params, atome_id, self, proc)
79
- end
80
- end
81
-
82
-
83
- generator.build_render(:browser_sort) do |options, _proc|
84
- atome_js.JS.sort(options, @atome[:id], self)
85
- end
86
-
87
- # TODO: for now unbind remove all touch event we should remove only the targeted one (store proc and restore it)
88
- generator.build_render(:browser_unbind) do |options, _proc|
89
- id_found = self.atome[:id]
90
- `
91
- //const el = document.getElementById(#{id_found});
92
- interact('#'+#{id_found}).unset(#{options});
93
- `
94
- end
95
-
96
-
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- generator = Genesis.generator
4
-
5
- generator.build_render(:browser_width) do |value|
6
-
7
- # aa=BrowserHelper.value_parse(value)
8
- # # alert "value_parse : #{aa}"≈
9
- # alert "#{value} : #{value.class} : value_parse : #{aa}"
10
- # @browser_object.style[:width] = if value.instance_of? String
11
- # value
12
- # else
13
- # "#{value}px"
14
- # end
15
-
16
-
17
- @browser_object.style[:width] = BrowserHelper.value_parse(value)
18
- end
19
-
20
- generator.build_render(:browser_height) do |value|
21
- # @browser_object.style[:height] = if value.instance_of? String
22
- # value
23
- # else
24
- # "#{value}px"
25
- # end
26
- @browser_object.style[:height] = BrowserHelper.value_parse(value)
27
- end
@@ -1,69 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
- module BrowserHelper
5
- def self.anim_convertor(value)
6
- { left: [:left, "#{value}px"], right: [:right, "#{value}px"], top: [:top, "#{value}px"],
7
- bottom: [:bottom, "#{value}px"], smooth: ['border-radius', "#{value}px"],
8
- left_add: ['transform', "translateX(#{value}px)"],
9
- right_add: ['transform', "translateY(#{value}px)"],
10
- width: [:width, "#{value}px"], height: [:height, "#{value}px"] }
11
- end
12
-
13
- def self.anim_value_analysis(value, particle_found, atome_found)
14
- case value
15
- when :self
16
- # this case mean the user use the current atome so we get the particle value of the atome
17
- value = atome_found.atome[particle_found]
18
- when Integer
19
- value
20
- else
21
- # this case mean the user try to pass an id so we get the particle value of the atome
22
- value = grab(value).atome[particle_found]
23
- value
24
- end
25
- value
26
- end
27
-
28
- def self.send_anim_to_js(animation, atome_hash, atome_found, atome_id, animation_atome)
29
- animated_particle = animation[0]
30
- start_value = animation[1]
31
- end_value = animation[2]
32
- original_particle = animation[3]
33
- atome_js.JS.animate(animated_particle, atome_hash[:duration], atome_hash[:damping], atome_hash[:ease],
34
- atome_hash[:mass], atome_hash[:repeat], atome_hash[:stiffness], atome_hash[:velocity],
35
- start_value, end_value, atome_id, atome_found, atome_hash, original_particle, animation_atome)
36
- end
37
-
38
- def self.sanitize_anim_params(value, particle_found, atome_hash, atome_found, atome_id, animation_atome)
39
- start_value = anim_value_analysis(value, particle_found, atome_found)
40
- start_value = BrowserHelper.anim_convertor(start_value)[particle_found][1]
41
- end_value = anim_value_analysis(atome_hash[:end][particle_found], particle_found, atome_found)
42
- end_value = BrowserHelper.anim_convertor(end_value)[particle_found][1]
43
- animated_particle = BrowserHelper.anim_convertor(value)[particle_found][0]
44
- # animation is a stupid array to satisfy rubocop stupidity
45
- animation = [animated_particle, start_value, end_value, particle_found]
46
- send_anim_to_js(animation, atome_hash, atome_found, atome_id, animation_atome)
47
- end
48
-
49
- def self.anim_pop_motion_converter(atome_hash, atome_found, atome_id, animation_atome)
50
- atome_hash[:dampingRatio] = atome_hash.delete(:damping)
51
- atome_hash[:begin].each do |particle_found, value|
52
- sanitize_anim_params(value, particle_found, atome_hash, atome_found, atome_id, animation_atome)
53
- end
54
- end
55
-
56
- def self.begin_animation(atome_hash, atome_found, atome_id, animation_atome)
57
- anim_pop_motion_converter(atome_hash, atome_found, atome_id, animation_atome)
58
- end
59
-
60
- def self.browser_play_animation(_options, _browser_object, atome_hash, animation_atome, proc)
61
- atome_hash[:targets] = [:eDen] unless atome_hash[:targets]
62
- animation_atome.play_active_proc = proc
63
- atome_hash[:targets].each do |target|
64
- atome_found = grab(target)
65
- atome_id = atome_found.atome[:id]
66
- begin_animation(atome_hash, atome_found, atome_id, animation_atome)
67
- end
68
- end
69
- end
@@ -1,101 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
- module BrowserHelper
5
- def self.browser_document
6
- # Work because of the patched version of opal-browser(0.39)
7
- Browser.window
8
- end
9
-
10
- def self.browser_attach_(_parents, _html_object, _atome)
11
- # dummy methods to catch atomes that do not need to be attached to any particular visual atime
12
- end
13
-
14
- def self.browser_attach_div(parents, html_object, _atome)
15
- html_object.append_to(browser_document[parents])
16
- end
17
-
18
- def self.add_class_to_vector(vector_id, color_id)
19
- # TODO : Create a class instead of modifying the vector
20
- # get the content the <style> tag
21
- # color_class=self.color.last
22
- # alert color_class
23
- # alert color_class.class
24
- # content_style = tag_style.inner_html
25
- # color_value = content_style[/background-color:\s*([^;}]+)/, 1]
26
- `
27
- let parser = new DOMParser();
28
- var divElement = document.querySelector('#'+#{vector_id});
29
- // divElement.style.removeProperty('background-color');
30
- //divElement.style.backgroundColor = 'transparent';
31
- // select the first svg tag inside the div
32
- let foundSVG = divElement.querySelector('svg');
33
- let elements = foundSVG.getElementsByTagName("path");
34
- Array.from(elements).forEach(el => {
35
- el.classList.add(#{color_id});
36
- });
37
- `
38
- end
39
-
40
- def self.browser_attach_style(parents, _html_object, atome)
41
- # we test if the atome has a definition ( it means hold some vectors information)
42
- if grab(parents).atome[:definition]
43
- # tag_style = $document[atome[:id]]
44
- # # # get the content the <style> tag
45
- # # content_style = tag_style.inner_html
46
- # # extract the color value
47
- # alert atome[:id]
48
- add_class_to_vector(parents, atome[:id])
49
- else
50
- browser_document[parents].add_class(atome[:id])
51
- end
52
- end
53
-
54
- def self.browser_attached_div(children, _html_object, atome)
55
- children.each do |child_found|
56
- # atome_child.browser_attach_div
57
- html_child = grab(child_found).browser_object
58
- html_child.append_to(browser_document[atome[:id]])
59
- end
60
- end
61
-
62
- def self.browser_attached_style(children, _html_object, atome)
63
- if atome[:definition]
64
- # alert "yes we arrived here :>\n\n=>#{children}, class:\n=>#{children.class} :\n\n=> #{atome} :\n\n=> #{_html_object}<:"
65
- children.each do |child|
66
- # tag_style = $document[child]
67
- # alert "(#{atome[:id]}, #{child})"
68
- add_class_to_vector(atome[:id], child)
69
- # get the content the <style> tag
70
- # content_style = tag_style.inner_html
71
- # # extract the color value
72
- # color_value = content_style[/background-color:\s*([^;}]+)/, 1]
73
- # `
74
- # let parser = new DOMParser();
75
- # var divElement = document.querySelector('#'+#{atome[:id]});
76
- # // select the first svg tag inside the div
77
- # let foundSVG = divElement.querySelector('svg');
78
- # let elements = foundSVG.getElementsByTagName("path");
79
- # Array.from(elements).forEach(el => {
80
- # el.setAttribute("fill", #{color_value});
81
- # el.setAttribute("stroke", #{color_value});
82
- # });
83
- # `
84
- end
85
-
86
- else
87
- # alert "class added : #{children}"
88
- # browser_document[atome[:id]].add_class(children)
89
- end
90
- browser_document[atome[:id]].add_class(children)
91
- end
92
-
93
- def self.value_parse(value)
94
- if value.instance_of?(String)
95
- value
96
- else
97
- "#{value}px"
98
- end
99
-
100
- end
101
- end
@@ -1,80 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
- module BrowserHelper
5
- def self.browser_colorize_color(color_updated, atome)
6
- ########################### new code ###########################
7
- id_found=atome[:id]
8
- new_class_content = <<STR
9
- .#{id_found} {
10
- background-color: #{color_updated};
11
- fill: #{color_updated};
12
- stroke: #{color_updated};
13
- }
14
- STR
15
-
16
- atomic_style = BrowserHelper.browser_document['#atomic_style']
17
- # atomic_style.text = atomic_style.text.gsub(/\.#{id_found}\s*{.*?}/m, new_class_content)
18
-
19
- regex = /(\.#{id_found}\s*{)([\s\S]*?)(})/m
20
- atomic_style.text = atomic_style.text.gsub(regex, new_class_content)
21
-
22
-
23
- ########################### old code ###########################
24
- #
25
- # puts "the code below may be updated to work with the new class handler :\n\n#{color_updated}\n\n#{atome}"
26
- # `
27
- # document.getElementById(#{atome[:id]}).sheet.cssRules[0].style.backgroundColor = #{color_updated}
28
- # document.getElementById(#{atome[:id]}).sheet.cssRules[0].style.fill = #{color_updated}
29
- # document.getElementById(#{atome[:id]}).sheet.cssRules[0].style.stroke = #{color_updated}
30
- # `
31
- ########################### new old end ###########################
32
-
33
- end
34
-
35
- def self.browser_colorize_shadow(color_updated, atome)
36
- "new shadow color is : #{color_updated}"
37
- puts "=====> #{color_updated} : #{atome}"
38
- left = atome[:left]
39
- top = atome[:top]
40
- blur = atome[:blur]
41
- direction = atome[:direction]
42
- # shadow_updated = "#{left}px #{top}px #{blur}px #{color_updated} #{direction}"
43
- # `document.getElementById(#{atome[:id]}).sheet.cssRules[0].style.boxShadow = #{shadow_updated}`
44
-
45
- #new code
46
- id_found= atome[:id]
47
- class_content = <<STR
48
- .#{id_found} {
49
- box-shadow: #{left}px #{top}px #{blur}px #{color_updated} #{direction};
50
- }
51
- STR
52
-
53
- atomic_style = BrowserHelper.browser_document['#atomic_style']
54
- # atomic_style.text = atomic_style.text.gsub(/\.#{id_found}\s*{.*?}/m, new_class_content)
55
- # puts new_class_content
56
- regex = /(\.#{id_found}\s*{)([\s\S]*?)(})/m
57
- atomic_style.text = atomic_style.text.gsub(regex, class_content)
58
-
59
- # .view_shadow_17 {
60
- # box-shadow: 3px 3px 3px rgba(0,
61
- # 0,0,1)
62
- # }
63
- end
64
-
65
- def self.browser_left_color(_value, _browser_object, _atome)
66
- # puts 'code to write when implementing gradient'
67
- end
68
-
69
- def self.browser_right_color(_value, _browser_object, _atome)
70
- # puts 'code to write when implementing gradient'
71
- end
72
-
73
- def self.browser_top_color(_value, _browser_object, _atome)
74
- # puts 'code to write when implementing gradient'
75
- end
76
-
77
- def self.browser_bottom_color(_value, _browser_object, _atome)
78
- # puts 'code to write when implementing gradient'
79
- end
80
- end
@@ -1,52 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
-
5
- module BrowserHelper
6
-
7
- # drag helper
8
- def self.browser_drag_move(params, atome_id, atome, proc)
9
- atome.drag_move_proc = proc
10
- atome_js.JS.drag(params, atome_id, atome)
11
- end
12
-
13
- # def self.browser_drag_end(params, atome_id, atome, proc)
14
- # # alert :kool
15
- # # atome.drag_move_proc = proc
16
- # # atome_js.JS.drag(params, atome_id, atome)
17
- # end
18
-
19
- def self.browser_drag_lock(params, atome_id, atome, _proc)
20
- atome_js.JS.lock(params, atome_id, atome)
21
- end
22
-
23
- def self.browser_drag_remove(params, atome_id, atome, _proc)
24
- params = params != true
25
- atome_js.JS.remove(params, atome_id, atome)
26
- end
27
-
28
- def self.browser_drag_snap(params, atome_id, atome, _proc)
29
- atome_js.JS.snap(params.to_n, atome_id, atome)
30
- end
31
-
32
- def self.browser_drag_inertia(params, atome_id, atome, _proc)
33
- atome_js.JS.inertia(params, atome_id, atome)
34
- end
35
-
36
- def self.browser_drag_constraint(params, atome_id, atome, _proc)
37
- atome_js.JS.constraint(params.to_n, atome_id, atome)
38
- end
39
-
40
- def self.browser_drag_start(_params, _atome_id, atome, proc)
41
- atome.drag_start_proc = proc
42
- end
43
-
44
- def self.browser_drag_end(_params, _atome_id, atome, proc)
45
- atome.drag_end_proc = proc
46
- end
47
-
48
- def self.browser_drag_start(_params, _atome_id, atome, proc)
49
- atome.drag_start_proc = proc
50
- end
51
-
52
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
-
5
- module BrowserHelper
6
-
7
- #drop helper
8
- def self.browser_drop_action(params, atome_id, atome, proc)
9
- atome.drop_action_proc = proc
10
- atome_js.JS.drop(params, atome_id, atome)
11
- end
12
-
13
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
- module BrowserHelper
5
-
6
- def self.browser_blur_style(_browser_object, value, atome)
7
- # b_left = "#{atome[:left]}px"
8
- # b_top = "#{atome[:top]}px"
9
- # b_blur = "#{atome[:blur] = value}px"
10
- # b_red = atome[:red] * 255
11
- # b_green = atome[:green] * 255
12
- # b_blue = (atome[:blue]) * 255
13
- # b_direction = atome[:direction]
14
- # b_alpha = atome[:alpha]
15
-
16
- # shadow_updated = "#{b_left} #{b_top} #{b_blur} rgba(#{b_red}, #{b_green}, #{b_blue}, #{b_alpha}) #{b_direction}"
17
- # `document.getElementById(#{atome[:id]}).sheet.cssRules[0].style.boxShadow = #{shadow_updated}`
18
- end
19
-
20
- def self.browser_blur_div(browser_object, value, _atome)
21
- browser_object.style[:filter] = "blur(#{value}px)"
22
- end
23
- end
@@ -1,76 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
- module BrowserHelper
5
-
6
- def self.touch_helper_callback(event, atome, proc)
7
- atome.instance_exec(event, &proc) if proc.is_a?(Proc)
8
- end
9
-
10
- def self.browser_touch_true(browser_object, atome, proc)
11
- `
12
- interact('#'+#{browser_object})
13
- .on('tap', function (event) {
14
- Opal.BrowserHelper.$touch_helper_callback(event,#{atome},#{proc});
15
- })
16
- `
17
- end
18
-
19
- def self.browser_touch_long(browser_object, atome, proc)
20
- `
21
- interact('#'+#{browser_object})
22
- .on('hold', function (event) {
23
- Opal.BrowserHelper.$touch_helper_callback(event,#{atome},#{proc});
24
- })
25
- `
26
- end
27
-
28
- def self.browser_touch_double(browser_object, atome, proc)
29
- `
30
- interact('#'+#{browser_object})
31
- .on('doubletap', function (event) {
32
- Opal.BrowserHelper.$touch_helper_callback(event,#{atome},#{proc});
33
- })
34
- `
35
- end
36
-
37
- def self.browser_touch_down(browser_object, atome, proc)
38
-
39
- `
40
- interact('#'+#{browser_object})
41
- .on('down', function (event) {
42
- Opal.BrowserHelper.$touch_helper_callback(event,#{atome},#{proc});
43
- })
44
-
45
- `
46
- end
47
-
48
- def self.browser_touch_up(browser_object, atome, proc)
49
- `
50
- interact('#'+#{browser_object})
51
- .on('up', function (event) {
52
- Opal.BrowserHelper.$touch_helper_callback(event,#{atome},#{proc});
53
- })
54
- `
55
- end
56
-
57
- def self.browser_over_enter(browser_object, atome)
58
- browser_object.on :mouseenter do |event|
59
- atome.enter_action_callback( event)
60
- # atome.instance_exec(event, &proc) if proc.is_a?(Proc)
61
- # atome_id = atome.id
62
- # atome_js.JS.over_enter(atome_id, atome, proc, :enter)
63
- end
64
- end
65
-
66
- def self.browser_over_leave(browser_object, atome)
67
- browser_object.on :mouseout do |event|
68
- atome.leave_action_callback(event)
69
- # atome.instance_exec(event, &proc) if proc.is_a?(Proc)
70
- # atome_js.JS.over_leave(atome_id, atome,proc,:leave)
71
- end
72
- end
73
-
74
- end
75
-
76
-
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
- module BrowserHelper
5
- # image
6
- def self.browser_left_image(value, browser_object, _atome)
7
- browser_object.style[:left] = "#{value}px"
8
- end
9
-
10
- def self.browser_right_image(value, browser_object, _atome)
11
- browser_object.style[:right] = "#{value}px"
12
- end
13
-
14
- def self.browser_top_image(value, browser_object, _atome)
15
- browser_object.style[:top] = "#{value}px"
16
- end
17
-
18
- def self.browser_bottom_image(value, browser_object, _atome)
19
- browser_object.style[:bottom] = "#{value}px"
20
- end
21
-
22
- def self.browser_path_image(value, browser_object, _atome)
23
- browser_object[:src] = value
24
- end
25
-
26
-
27
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # for browser rendering
4
-
5
- # module BrowserHelper
6
- #
7
- # #drop helper
8
- # def self.browser_over_action(params, atome_id, atome, proc)
9
- # # atome.over_action_proc = proc
10
- # atome_js.JS.over(params, atome_id, atome)
11
- # end
12
- #
13
- # end