svgle 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/svgle.rb +13 -0
- metadata +19 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf0ec9fb3fb6885afbd5d222fa9aa8a5a654f8d
|
4
|
+
data.tar.gz: 34d003463f89c72f45b2b45c6d95059cecb22ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df021911d792e58c8218cdf71fb78c7093e798dac649b5bb1025becf4d47f5593a0d31884b215da2cebae1b6dbe3f50e6f30224135a67bf3ccadcf6b4324f93
|
7
|
+
data.tar.gz: 4d3536ce087701469ea2f5374dc121b2ba6ab05612bea4c813ceabb393058b878f3b97758e9d89c46ec87c03443026547bcfc783d058d0ac9d99e2e89b2aeb23
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/svgle.rb
CHANGED
@@ -65,6 +65,17 @@ class Svgle < Domle
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
+
class Image < Element
|
69
|
+
|
70
|
+
attr2_accessor *%i(x y width height)
|
71
|
+
|
72
|
+
def boundary()
|
73
|
+
x1, y1, w, h = [x, y, width, height].map(&:to_i)
|
74
|
+
[x1, y1, x1+w, y1+h]
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
68
79
|
class Path < Element
|
69
80
|
attr2_accessor *%i(d stroke stroke-width fill)
|
70
81
|
def boundary()
|
@@ -121,6 +132,7 @@ class Svgle < Domle
|
|
121
132
|
def find_add_css()
|
122
133
|
|
123
134
|
# add the default CSS
|
135
|
+
|
124
136
|
add_css DEFAULT_CSS
|
125
137
|
|
126
138
|
|
@@ -151,6 +163,7 @@ class Svgle < Domle
|
|
151
163
|
ellipse: Svgle::Ellipse,
|
152
164
|
line: Svgle::Line,
|
153
165
|
g: Svgle::G,
|
166
|
+
image: Svgle::Image,
|
154
167
|
svg: Svgle::Svg,
|
155
168
|
script: Svgle::Script,
|
156
169
|
style: Svgle::Style,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svgle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE3MDEyNjE4MjgwM1oXDTE4MDEyNjE4MjgwM1owSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAPLlRY/KPKxHmV0CFzZjZGKnLesqubDIqf3cUET+1RUeMKzJsPw/7XTH5Fac
|
19
|
+
mxe5+vUWIOSpfbluPJYHgHwOoVZXwwOV/mzGVkVnfTL+AuHqZtlkRWPXDZ//Xhul
|
20
|
+
JgcN0iTiQU5wf6gJDdJeoc36K0RqbFCgA+9Q1M3IU3i8zAHlO3VWmRakqmqR+/9S
|
21
|
+
kVs2htCGqgKnKA45KJdIAiYTYEdOZ5BqqrRReDVF1O7VUhcfrf+BPkjGswP1mDxd
|
22
|
+
6XjjGROHLf46FBlip3pAa0vOUOT1OAc/yD4Gamqi5cR2vq3E4U8bXjGIrRUtkirG
|
23
|
+
wsSQdURVWS67Mv/AYo6iU13T2u0CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUiMCQNsTPK4DASCrgQwaQkpKX7wcwJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAl25FvN2i
|
27
|
+
FXpWhOKwuDno9v4LhkMiTF342bEs5JkjKoZ4spm9Y6mw0xIa+YxCJAhZXXFXcwAA
|
28
|
+
3eNSIYBrEFrJT5s5qh1vliRSEs8gAf8P3qJnWGxe2KPyGH0ASy10CcCsH3HurL+V
|
29
|
+
6aC7THAhD92PfP9ayA5nu+8/FzHZtUEbr6EOoKvPP19cIXZaNUStvQ9bBWqH+Y5A
|
30
|
+
eBECgg2BVpo8Ikg0WVp0mhtk3uWj9AAedcygbdljRh1ClJIAJUa9V/PKX7XSmdtP
|
31
|
+
/cwDMD511+2hNiVHI6IKth0oybwGyVAFGdWyfxRsL6PXC31eaVImP0O4Y1JCB4+Q
|
32
|
+
g7yNFaM/yTP4DQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: domle
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 0.1.0
|
56
56
|
description:
|
57
|
-
email: james@
|
57
|
+
email: james@jamesrobertson.eu
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.6.8
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Svgle (SVG + Domle) generates an SVG Document Object Model from the given
|
metadata.gz.sig
CHANGED
Binary file
|