atome 0.5.6.5.6 → 0.5.6.5.7
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68520365f777d89089e99069c4aeea1209fd49d16b0c30ece6661e2baeae2b19
|
4
|
+
data.tar.gz: d0e89c48a346f113eed4e0f6358a06a564979c178832e402ffc7cda26ffb14d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee22c49e15973e262a2a6c889070e53055cf6321eefba4651102bb68ee997a6c80cbe5eb3c4bdfff4f40dac3ca18b9419d1a610615ae265b0ed7b6fe76c5bd4
|
7
|
+
data.tar.gz: 48ee8736a2a7bee1c798352c14b4ba9275f1a0c62ca4dac4351624f673899561d4875db85e6ccc267a6f34ce7e8e94df1261099d9a987b662dc5eea9942d7649
|
@@ -50,14 +50,12 @@ new({ sanitizer: :attached }) do |children_ids|
|
|
50
50
|
end
|
51
51
|
|
52
52
|
new({ particle: :apply, category: :hierarchy, type: :string, render: false, store: false }) do |parents_ids, &user_proc|
|
53
|
-
|
54
53
|
@apply ||= []
|
55
54
|
parents_ids = [parents_ids] unless parents_ids.instance_of?(Array)
|
56
55
|
parents_ids.each do |parent_id|
|
57
56
|
@apply.delete(parent_id)
|
58
57
|
@apply << parent_id
|
59
58
|
end
|
60
|
-
puts affect
|
61
59
|
parents_ids = @apply
|
62
60
|
children_ids = [id]
|
63
61
|
parents_ids.each do |parent_id|
|
data/lib/atome/version.rb
CHANGED
@@ -37,6 +37,11 @@ new({ renderer: :html, method: :apply, type: :string }) do |parent_found, _user_
|
|
37
37
|
blue = parent_found.blue * 255
|
38
38
|
alpha = parent_found.alpha
|
39
39
|
html.style(:backgroundColor, "rgba(#{red}, #{green}, #{blue}, #{alpha})")
|
40
|
+
if type.to_sym ==:border
|
41
|
+
affect.each do |at_found|
|
42
|
+
grab(at_found).html.style(:border, "solid 2px rgba(#{red},#{green},#{blue},#{alpha})")
|
43
|
+
end
|
44
|
+
end
|
40
45
|
when :paint
|
41
46
|
# if when found colors when use it for the gradient , else whe use the colors within the current atome
|
42
47
|
# gradient_found = params[:colors] || @apply
|
@@ -66,3 +66,33 @@ end
|
|
66
66
|
# # b.attached([col.id])
|
67
67
|
# c.border({ thickness: 5, pattern: :dotted })
|
68
68
|
# b.border({ thickness: 5, attached: col.id, pattern: :dotted })
|
69
|
+
bb=box({top: 50, left: 100})
|
70
|
+
bb.text(:touch_me)
|
71
|
+
bord=bb.border({ thickness: 3, pattern: :dotted})
|
72
|
+
bb.touch(true) do
|
73
|
+
col=bord.color({red: 1 })
|
74
|
+
|
75
|
+
wait 2 do
|
76
|
+
col.green(1)
|
77
|
+
end
|
78
|
+
# bord.apply(:titi)
|
79
|
+
# puts 'opk'
|
80
|
+
end
|
81
|
+
|
82
|
+
|
83
|
+
# c=color(:pink)
|
84
|
+
# # red: 1, green: 1, blue: 0, alpha: 1,
|
85
|
+
# wait 0.2 do
|
86
|
+
# bord.red(1)
|
87
|
+
# wait 0.2 do
|
88
|
+
# bord.green(1)
|
89
|
+
# wait 0.2 do
|
90
|
+
# bord.blue(1)
|
91
|
+
# wait 0.2 do
|
92
|
+
# bord.alpha(1)
|
93
|
+
# bord.apply(c.id)
|
94
|
+
# end
|
95
|
+
# end
|
96
|
+
# end
|
97
|
+
#
|
98
|
+
# end
|
@@ -22,7 +22,8 @@ def matrix(id, horizontal_nb, vertical_nb, spacing, size)
|
|
22
22
|
end
|
23
23
|
box_width = available_width / horizontal_nb
|
24
24
|
box_height = available_height / vertical_nb
|
25
|
-
background=box({id:
|
25
|
+
background=box({id: "#{id}_background", width: 666, height: 666, color:{alpha: 0}})
|
26
|
+
|
26
27
|
vertical_nb.times do |y|
|
27
28
|
horizontal_nb.times do |x|
|
28
29
|
id_generated = "#{id}_#{x}_#{y}"
|
@@ -147,7 +148,8 @@ wait 1 do
|
|
147
148
|
@current_matrix.width(33)
|
148
149
|
end
|
149
150
|
@current_matrix.drag(true)
|
151
|
+
alert @current_matrix.id
|
150
152
|
wait 2 do
|
151
|
-
grab(:
|
152
|
-
grab(:
|
153
|
+
grab(:vie_0_background).left(666)
|
154
|
+
grab(:vie_0_background).drag(true)
|
153
155
|
end
|
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.6.5.
|
4
|
+
version: 0.5.6.5.7
|
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-03-
|
11
|
+
date: 2024-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: artoo
|