atome 0.5.7.5.3 → 0.5.7.5.4

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: 447c53ce73da5f469fb7b4f55eb9a58e0963eb6feb8aa4f029011aa38e1d511d
4
- data.tar.gz: 9c486e8145a92cfedce3bae17aabfdac890c0d9d765d546021cc47efd5be7e3e
3
+ metadata.gz: cfe68326ce8511009dd9226874a9478fed337b58b33914588569477c53fc5f60
4
+ data.tar.gz: f4c496a1eed0f0ca66a8a4cc742e83c962578fa6dd23f58af4a2dda0cf658d0e
5
5
  SHA512:
6
- metadata.gz: 3a9b906ea704d189e9c63fb15ca8d7b9c228c360c8125d1bf3af12e78d94efc56c3f68909acf6c957e542a84569c4dad6efe7286be8f7a499a61aed3b1119ee8
7
- data.tar.gz: 4ac15c91871df3dfdfff53b43dc75a946ecd9fe9f81d05bd15933fabb6b0ce12ff4a8a4a9e063877b1a174f89ab9eabf1ac639487b832faacafad6c588f5db0d
6
+ metadata.gz: 22530cfa45962c787536df528f4609511868ecd99994b9dd1fe9f83ceca55517d69a04ce86a0cb92663c030cab0693161b3940f20a6b220aaeb3acc907976dfa
7
+ data.tar.gz: cb0f7b157205cd44f2cb254f0b3808908f740268f9dba7b8dd34323399cee13ceb9ab5387992b2816df3f8492c968fc93cbfd2d55965ac5e0bfc3cb21265b653
data/Gemfile CHANGED
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in atome.gemspec
6
6
  gemspec
7
7
 
8
- gem "rake", "~> 13.0"
8
+ gem 'rake', '~> 13.0'
9
9
 
10
10
  gem 'faye-websocket'
11
11
 
12
- gem "minitest", "~> 5.0"
12
+ gem 'minitest', '~> 5.0'
13
13
 
14
14
  gem 'rubocop', group: 'development', require: false
15
- gem 'rubocop', group: 'development', require: false
15
+
@@ -569,7 +569,7 @@ JS
569
569
  # convert any foreign object (think HTML) to a pseudo atome objet , that embed foreign objet
570
570
  end
571
571
 
572
- def touch_allow(allow)
572
+ def allow_right_touch(allow)
573
573
  if allow
574
574
  JS.eval('document.removeEventListener("contextmenu", window.preventDefaultAction);')
575
575
  else
@@ -202,7 +202,7 @@ end
202
202
 
203
203
  # Universe.allow_localstorage = true # to stop data to be stored in localstorage
204
204
  # Universe.allow_sync= false # to stop data to be sync on server
205
- touch_allow(false) # this lock the system right click in web view
205
+ allow_right_touch(false) # this lock the system right click in web view
206
206
  # add a few default font
207
207
  A.add_text_visual({ path: 'Roboto', name: 'Roboto-Bold' })
208
208
  A.add_text_visual({ path: 'Roboto', name: 'Roboto-Thin' })
data/lib/atome/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # return atome version
4
4
 
5
5
  class Atome
6
- VERSION = '0.5.7.5.3'
6
+ VERSION = '0.5.7.5.4'
7
7
  end
@@ -151,25 +151,26 @@ class Atome
151
151
  end
152
152
 
153
153
  def drop_down(params, &code)
154
+
155
+
154
156
  data_f = params.delete(:data)
155
157
  text_f = params.delete(:text) || {component: {size: 12}, color: :lightgray}
156
158
  margin = params.delete(:margin) || 6
157
159
  default_params = { width: 150,
158
160
  height: 25,
161
+ smooth:3,
162
+ shadow: { blur: 12, alpha: 0.3,left: 0, top: 0 }
159
163
  }
160
164
  params=default_params.merge(params)
161
- b=box(params)
165
+
166
+ b=grab(:view).box(params.merge({depth: 33333, left: to_px(:left), top: to_px(:top)}))
162
167
  item_height=(params[:height]+margin)
163
- if text_f[:component][:size] > item_height
164
- item_height = text_f[:component][:size]+margin*2
165
- end
168
+ item_height = text_f[:component][:size]+margin*2 if text_f[:component][:size] > item_height
166
169
  b.height(data_f.length*item_height)
167
170
  temp_width=0
168
171
  data_f.each_with_index do |label, index|
169
172
  item_f= b.text(text_f.merge({ left: margin, data: label, position: :absolute, top: item_height * index + margin }))
170
- if item_f.to_px(:width) > temp_width
171
- temp_width=item_f.to_px(:width)
172
- end
173
+ temp_width=item_f.to_px(:width) if item_f.to_px(:width) > temp_width
173
174
  item_f.touch(:down) do
174
175
  code.call(label)
175
176
  b.delete(true)
@@ -7,7 +7,7 @@ b=box({left: 99})
7
7
 
8
8
  b.touch(true) do
9
9
  allow_copy(true)
10
- touch_allow(true)
10
+ allow_right_touch(true)
11
11
  end
12
12
 
13
13
 
@@ -1,5 +1,4 @@
1
1
  # frozen_string_literal: true
2
- # class Atome
3
2
 
4
3
  b=box({ left: 12, id: :the_first_box })
5
4
  b.touch(true) do
@@ -10,7 +9,7 @@ b.touch(true) do
10
9
  else
11
10
  b.color(:red)
12
11
  end
13
- touch_allow(alt)
12
+ allow_right_touch(alt)
14
13
 
15
14
  end
16
15
 
@@ -2,3 +2,4 @@
2
2
  # will have compiled files and executables
3
3
  /target/
4
4
 
5
+ /Cargo.lock
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "atome"
3
3
  version = "0.0.0"
4
- description = "A Tauri App"
4
+ description = "atome"
5
5
  authors = ["you"]
6
6
  license = ""
7
7
  repository = ""
@@ -16,7 +16,7 @@ tauri-build = {version = "1.2", features = [] }
16
16
  [dependencies]
17
17
  serde_json = "1.0"
18
18
  serde = { version = "1.0", features = ["derive"] }
19
- tauri = {version = "1.5", features = ["api-all"] }
19
+ tauri = {version = "1.6", features = ["api-all"] }
20
20
 
21
21
  [features]
22
22
  # by default Tauri runs in production mode
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.7.5.3
4
+ version: 0.5.7.5.4
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-07-18 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine