atome 0.5.5.8.1 → 0.5.5.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ c = circle({ height: 400, width: 200, top: 100, left: 0, top: 100 })
4
+ b = c.box({ width: 200, height: 100, left: 600, top: 200, id: :my_box })
5
+ c.circle({ width: 200, height: 100, left: 120, top: -80, id: :my_text, data: :hi })
6
+ b.circle({ color: :yellow, width: 55, height: 88, left: 500 })
7
+ b.box
8
+
9
+ wait 1 do
10
+ # recursive apply the new size to all attached atomes recursively
11
+ # reference : change the size according the to wanted axis
12
+ c.size({value: 50, recursive: true, reference: :y })
13
+ end
14
+
15
+
16
+
17
+
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+
4
+ c = circle({ id: :my_cirle, color: :red, drag: true })
5
+ c.box({ left: 0, width: 22, height: 22, top: 65 })
6
+ c.touch(true) do
7
+ alert :okk
8
+ end
9
+ m = matrix({ renderers: [:html], attach: :view, id: :my_test_box, type: :matrix, apply: [:shape_color],
10
+ left: 333, top: 0, width: 600, smooth: 15, height: 900, overflow: :scroll, option: { header: true },
11
+ component: {
12
+ border: { thickness: 5, color: color(:blue), pattern: :dotted },
13
+ overflow: :auto,
14
+ color: "white",
15
+ shadow: {
16
+ id: :s4,
17
+ left: 20, top: 0, blur: 9,
18
+ option: :natural,
19
+ red: 0, green: 1, blue: 0, alpha: 1
20
+ },
21
+ height: 50,
22
+ width: 50,
23
+ component: { size: 12, color: :black }
24
+ },
25
+ data: [
26
+ { titi: :toto },
27
+ { dfgdf: 1, name: 'Alice', age: 30, no: 'oko', t: 123, r: 654, f: 123, g: 654, w: 123, x: 654, c: 123, v: 654 },
28
+ { id: 2, name: 'Bob', age: 22 },
29
+ { dfg: 4, name: 'Vincent', age: 33, no: grab(:my_cirle) },
30
+ { dfgd: 3, name: 'Roger', age: 18, no: image(:red_planet), now: :nothing }
31
+
32
+ ]
33
+ })
34
+
35
+ # tests
36
+ m.color(:orange)
37
+ m.border({ thickness: 5, color: color(:blue), pattern: :dotted })
38
+
39
+ puts m.get({ cell: [1, 2] })
40
+ wait 2 do
41
+ m.insert({ cell: [2, 2], content: 999 })
42
+ m.insert({ row: 1 })
43
+ wait 1 do
44
+ m.remove({ row: 2 })
45
+ end
46
+ wait 2 do
47
+ m.remove({ column: 1 })
48
+ end
49
+ wait 3 do
50
+ m.insert({ column: 3 })
51
+ end
52
+
53
+ wait 4 do
54
+ m.sort({ column: 1, method: :alphabetic })
55
+ puts 1
56
+ wait 1 do
57
+ puts 2
58
+ m.sort({ column: 2, method: :numeric })
59
+ wait 1 do
60
+ puts 3
61
+ m.sort({ column: 3, method: :numeric })
62
+ wait 1 do
63
+ puts 4
64
+ m.sort({ column: 1, method: :numeric })
65
+ end
66
+ end
67
+ end
68
+ end
69
+
70
+ end
71
+
72
+ # cell.fusion() # to be implemented later
73
+
74
+
75
+
76
+
@@ -1,4 +1,4 @@
1
- frozen_string_literal
1
+ # frozen_string_literal
2
2
 
3
3
  t2 = text({ data: ['this is ', :super, { data: 'cool', color: :red, id: :new_one }], component: { size: 33 }, left: 120 })
4
4
  the_text = text({ data: 'hello for al the people in front of their machine', center: true, top: 120, width: 77, component: { size: 11 } })
@@ -97,7 +97,6 @@ const communication = {
97
97
 
98
98
  function connect(address) {
99
99
 
100
- // alert('kool');
101
100
  websocket = new WebSocket(address);
102
101
 
103
102
  websocket.onopen = function (event) {
@@ -121,7 +120,9 @@ function connect(address) {
121
120
 
122
121
  }
123
122
 
124
- // function ws_sender() {
125
- // websocket.send("the Hello, WebSocket!!!")
126
- // }
127
123
 
124
+
125
+ function controller_message(msg){
126
+ // message receiver from controller (Vie)
127
+ console.log(msg)
128
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5.8.1
4
+ version: 0.5.5.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Eric Godard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -484,6 +484,7 @@ files:
484
484
  - vendor/assets/application/examples/apply.rb
485
485
  - vendor/assets/application/examples/atome.rb
486
486
  - vendor/assets/application/examples/atome_sparkle_use.rb
487
+ - vendor/assets/application/examples/atomizer.rb
487
488
  - vendor/assets/application/examples/attach.rb
488
489
  - vendor/assets/application/examples/attached.rb
489
490
  - vendor/assets/application/examples/basic_understanding.rb
@@ -496,12 +497,14 @@ files:
496
497
  - vendor/assets/application/examples/clones.rb
497
498
  - vendor/assets/application/examples/code.rb
498
499
  - vendor/assets/application/examples/color.rb
500
+ - vendor/assets/application/examples/compute.rb
499
501
  - vendor/assets/application/examples/console.rb
500
502
  - vendor/assets/application/examples/convert.rb
501
503
  - vendor/assets/application/examples/copy.rb
502
504
  - vendor/assets/application/examples/copybck.rb
503
505
  - vendor/assets/application/examples/debug.rb
504
506
  - vendor/assets/application/examples/delete.rb
507
+ - vendor/assets/application/examples/dig.rb
505
508
  - vendor/assets/application/examples/display.rb
506
509
  - vendor/assets/application/examples/display_bck.rb
507
510
  - vendor/assets/application/examples/drag.rb
@@ -511,6 +514,7 @@ files:
511
514
  - vendor/assets/application/examples/encode.rb
512
515
  - vendor/assets/application/examples/file.rb
513
516
  - vendor/assets/application/examples/find.rb
517
+ - vendor/assets/application/examples/fit.rb
514
518
  - vendor/assets/application/examples/generator_and_build.rb
515
519
  - vendor/assets/application/examples/getter.rb
516
520
  - vendor/assets/application/examples/grab.rb
@@ -521,6 +525,7 @@ files:
521
525
  - vendor/assets/application/examples/hypertext.rb
522
526
  - vendor/assets/application/examples/image.rb
523
527
  - vendor/assets/application/examples/import.rb
528
+ - vendor/assets/application/examples/infos.rb
524
529
  - vendor/assets/application/examples/keyboard.rb
525
530
  - vendor/assets/application/examples/layout.rb
526
531
  - vendor/assets/application/examples/login.rb
@@ -550,9 +555,11 @@ files:
550
555
  - vendor/assets/application/examples/shadow.rb
551
556
  - vendor/assets/application/examples/shapes.rb
552
557
  - vendor/assets/application/examples/shortcut.rb
558
+ - vendor/assets/application/examples/size.rb
553
559
  - vendor/assets/application/examples/smooth.rb
554
560
  - vendor/assets/application/examples/style.rb
555
561
  - vendor/assets/application/examples/sync.rb
562
+ - vendor/assets/application/examples/table.rb
556
563
  - vendor/assets/application/examples/tagged.rb
557
564
  - vendor/assets/application/examples/terminal.rb
558
565
  - vendor/assets/application/examples/text.rb