atome 0.5.6.7.6 → 0.5.6.7.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: 424c459dc6cff2e44ae6600039d9e91cbf338302369671892cadaadadf53c970
4
- data.tar.gz: 5661aee48e399ec36d4cf934f0fc5fac4c63f2b4d5daedab617e8da09bf55377
3
+ metadata.gz: c6e4329c59786afac35818482577e658b217d9513b80c5a2c8c8e2dd1e5731b2
4
+ data.tar.gz: 351eca79586662976c1a72b856bc8159922dda7d67129c05f415751ef89cdd4e
5
5
  SHA512:
6
- metadata.gz: 138987dc6c69b96ddd1d157bd57f2406306b8c559e721688d8e3cec226f2f9e694bb75f5ec51ef8931227d29ec0a60c57b137aba801fad37d7ad4a65cc3c387d
7
- data.tar.gz: be69bbd4ee58dc92c5231958ecdd3bca7e82d96451db416bc97edb9f4e2caefd80ad04273a09cc0d86594398ba5634d99c69b4dc396786a58a73ee7311763a76
6
+ metadata.gz: cbe2eb923e190cca3e63f2da3809894224beb32283c3ba193ab9ab8f8a63bf3d6dd2cae3a765b41656937a42fe689a712b897d81e6b540c44bc071f60ca8eddc
7
+ data.tar.gz: ae513d0471b64bd53d26147da53040ee991b2367e071b50effbc999f93a6784192987b324e7e3214c86a4d285dda0927278c5597ab88d38d94d5c5caa3a388b2
data/exe/atome CHANGED
@@ -599,7 +599,7 @@ if ARGV.include?('update')
599
599
  if Dir.exist?("#{destination}/application") && !Dir.exist?("#{destination}/vendor")
600
600
  # first we delete everything but application
601
601
 
602
- files_to_treat = %w[server src-tauri src-wasm Guardfile Rakefile src/css src/js/atome src/js/molecules src/js/third_parties src/medias
602
+ files_to_treat = %w[server src-tauri src-wasm Guardfile Rakefile src/css src/js/atome src/js/molecules src/js/third_parties
603
603
  src/favicon.ico src/index_wasm.html src/index_opal.html src/index_server.html src/index_server_wasm.html]
604
604
  files_to_treat.each do |item|
605
605
  item_path = File.join(destination, item)
data/lib/atome/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  # return atome version
4
4
  class Atome
5
- VERSION = '0.5.6.7.6'
5
+ VERSION = '0.5.6.7.7'
6
6
  end
@@ -35,16 +35,11 @@ module Molecule
35
35
  end
36
36
 
37
37
  def list(params)
38
+ styles_found = params.delete(:styles)
39
+ element = params.delete(:element)
40
+ listing = params.delete(:listing)
38
41
 
39
- # listing: listing
40
- listing = params[:listing]
41
- styles_found=params.delete(:styles)
42
- element=params.delete(:element)
43
- listing=params.delete(:listing)
44
- # lets create the listing container
45
- list = box({ attach: id , color: {alpha: 0}}.merge(params))
46
-
47
- styles_found = styles_found ||= {
42
+ styles_found ||= {
48
43
  width: 99,
49
44
  height: 33,
50
45
  margin: 6,
@@ -52,19 +47,24 @@ module Molecule
52
47
  left: 0,
53
48
  color: :yellowgreen
54
49
  }
55
- element = element ||= { width: 33,
56
- height: 33,
57
- left: :center,
58
- top: :center,
59
- color: :orange,
60
- type: :text }
61
-
50
+ element ||= { width: 33,
51
+ height: 33,
52
+ left: :center,
53
+ top: :center,
54
+ color: :orange,
55
+ type: :text }
56
+ unless params[:width]
57
+ params[:width] = styles_found[:width]
58
+ end
62
59
  unless element[:width]
63
60
  element[:width] = styles_found[width]
64
61
  end
65
62
  margin = styles_found[:margin]
66
63
  height_found = styles_found[:height]
67
64
  renderer_found = renderers
65
+ # lets create the listing container
66
+ list = box({ attach: id, color: { alpha: 0 } }.merge(params))
67
+ # now the listing
68
68
  listing.each_with_index do |data, index|
69
69
  # let's create the container
70
70
  new_atome = { renderers: renderer_found, attach: list.id }.merge(styles_found).merge({ type: :shape })
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+
3
4
  styles = {
4
5
  width: 199,
5
6
  height: 33,
@@ -15,7 +16,6 @@ element = { width: 33,
15
16
  left: :center,
16
17
  top: :center,
17
18
  color: :black,
18
- center: { x: 0, y: 0 },
19
19
  type: :text }
20
20
 
21
21
  listing = [
@@ -25,13 +25,13 @@ listing = [
25
25
  { data: :ho }
26
26
  ]
27
27
 
28
- A.list({
28
+ list_1 = A.list({
29
29
  styles: styles,
30
30
  element: element,
31
31
  listing: listing
32
32
  })
33
33
 
34
-
34
+ # test2
35
35
 
36
36
  styles = {
37
37
  width: 199,
@@ -45,7 +45,9 @@ styles = {
45
45
  element = { width: 25,
46
46
  height: 25,
47
47
  smooth: '100%',
48
- center: { x: 0, y: 0 },
48
+ center: { x: 0, y: 0, dynamic: true },
49
+ # left: 10,
50
+ # top: :center,
49
51
  color: :orange,
50
52
  type: :shape }
51
53
 
@@ -65,5 +67,5 @@ list_2 = A.list({ left: 300,
65
67
  listing: listing
66
68
  })
67
69
  wait 1 do
68
- list_2.left(120)
69
- end
70
+ list_2.left(list_1.width)
71
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6.7.6
4
+ version: 0.5.6.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Eric Godard