dedalus 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb3ab91813d799396d435838e747c35b4a9e9d78
4
- data.tar.gz: 2b89f9dd88e5a751bd16a3becf59dec71d10dfdf
3
+ metadata.gz: 286d1852f478b0aaad4b369d83e57dece8f9b402
4
+ data.tar.gz: 75c2ba7b46528bc270ca98b42a3f54eb0d851fd0
5
5
  SHA512:
6
- metadata.gz: 008fea49b63d69e38faea15140312426dccc95e47b89ff650050f36232031c81baff799a181a9aacec77b52afa791c6d73d8584bb954af41ed02b1fdd546a9a4
7
- data.tar.gz: 149540db900560b7ee20b80553a529c20f821dd9567fbfa39264676411f37180efa744ad1553475b2ab5e291223d11a441bae4a0bedec1bb9e172c7e85ebcf05
6
+ metadata.gz: 0bc826ffa2f0c693a4f9c9541bf1b8f458f75425fbbefaa2a05dcd110e1cba7faae98c2895ef9b6e7185317d9d2ce4e2017d5eb9d839c386932e22b372f4eecd
7
+ data.tar.gz: d7c99c66dfe448ee777059e0c8ee81d675ed25013bcc1f365e2cbeeec16f14a7650a9ed6a0ce161106026c0b6b1e82c33cb6df9b645bcd62efbb6081f0a2075c
@@ -24,13 +24,17 @@ module Dedalus
24
24
  @name ||= 'an-image-grid' # a uniq id for recording
25
25
  end
26
26
 
27
+ def scale
28
+ @scale ||= 1.0
29
+ end
30
+
27
31
  def record?
28
32
  !grid.empty?
29
33
  end
30
34
 
31
35
  def width
32
36
  if grid && grid.first
33
- grid.first.length * tile_height * scale
37
+ grid.first.length * tile_width * scale
34
38
  else
35
39
  0
36
40
  end
@@ -7,6 +7,10 @@ module Dedalus
7
7
  @asset ||= Dedalus::ImageRepository.lookup_tiles(path, asset_width, asset_height)[frame]
8
8
  end
9
9
 
10
+ def scale
11
+ @scale ||= 1.0
12
+ end
13
+
10
14
  def width
11
15
  2*padding + (asset_width * scale)
12
16
  end
@@ -1,4 +1,4 @@
1
1
  module Dedalus
2
2
  # dedalus version
3
- VERSION = "0.2.15"
3
+ VERSION = "0.2.16"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dedalus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Weissman