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 +4 -4
- data/lib/dedalus/elements/image_grid.rb +5 -1
- data/lib/dedalus/elements/sprite.rb +4 -0
- data/lib/dedalus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 286d1852f478b0aaad4b369d83e57dece8f9b402
|
4
|
+
data.tar.gz: 75c2ba7b46528bc270ca98b42a3f54eb0d851fd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 *
|
37
|
+
grid.first.length * tile_width * scale
|
34
38
|
else
|
35
39
|
0
|
36
40
|
end
|
data/lib/dedalus/version.rb
CHANGED