domle 0.2.2 → 0.3.1

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
  SHA256:
3
- metadata.gz: 3902b443ea12ca308ca0a9e1a89a5e133126b24a83f0aaa439f8be971f911c0a
4
- data.tar.gz: b50fcf3bbf2c7e10e57fee8be154e1ac10d9ce3dd017feb4e18338f27a0bcf26
3
+ metadata.gz: 60ec7d7672b54a42cfcd69d4073231ec96e3c015b2f12884c55df456654fd7b4
4
+ data.tar.gz: 8f110ef215d6be5fef49c16816a012839aa446d599fd48a259cfe5472f40f62b
5
5
  SHA512:
6
- metadata.gz: 686ac050cc4f33d43165b23348f5614ef67d5f984342a794aed2376c007c43b9d4d5e0952a2addc8a7796b4e411bbfe4f48507a317285ecd614cde2f63f8aedf
7
- data.tar.gz: 44db2a06813d075a2142dec1acdee9f009bbb08b421ac71db89c48bfaf386c4b7cdbcb31caaa54b67ec4f6ce178bc48ec84a3f07c5315af48a58642d90328615
6
+ metadata.gz: 862aa72c582891835f857b82155adc390dbb9c7f408a1d59611cac64ba4f23ab70a3a4b71d581778e2f116bad2d663d3c1aceb5585a227123c2d64165f94db2f
7
+ data.tar.gz: e40002835209948ac9bbd9047d176d6d3aadb986debc7108b913afba1f4a86b0d388ea62f7ec37facc02bab5f0a67865e449679b02b30eedddfdf475b563699a
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/domle.rb CHANGED
@@ -69,7 +69,9 @@ class Domle < Rexle
69
69
  def self.attr2_accessor(*a)
70
70
 
71
71
  a.concat %i(id transform)
72
- a.concat %i(onload onmousemove onmousedown) # DOM events
72
+ # DOM events
73
+ a.concat %i(onload onmousemove onmousedown onmouseenter
74
+ onmouseleave onclick onscroll)
73
75
 
74
76
  a.each do |attribute|
75
77
 
@@ -89,6 +91,14 @@ class Domle < Rexle
89
91
  end
90
92
  end
91
93
 
94
+ def active?()
95
+ @active
96
+ end
97
+
98
+ def active=(v)
99
+ @active = v
100
+ end
101
+
92
102
  def style()
93
103
  attributes.style(@rexle)
94
104
  end
@@ -114,7 +124,7 @@ class Domle < Rexle
114
124
 
115
125
  def initialize(x='<svg/>', callback: nil, rexle: self, debug: false)
116
126
 
117
- super x, rexle: rexle
127
+ super RXFHelper.read(x).first, rexle: rexle
118
128
  find_add_css() if x
119
129
  @callback, @debug = callback, debug
120
130
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  5W+/h8msUafjVr6ihNHTXefecVsjVhacb6l0hBYUNzXDpkhCjnNUaSxcS0e4FavI
36
36
  JHHC9WlNneDJrmTdGxNUWsw6
37
37
  -----END CERTIFICATE-----
38
- date: 2019-02-24 00:00:00.000000000 Z
38
+ date: 2019-02-26 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rexle
@@ -86,7 +86,7 @@ dependencies:
86
86
  version: '0.9'
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.2
89
+ version: 0.9.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
@@ -96,7 +96,7 @@ dependencies:
96
96
  version: '0.9'
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 0.9.2
99
+ version: 0.9.4
100
100
  description:
101
101
  email: james@jamesrobertson.eu
102
102
  executables: []
metadata.gz.sig CHANGED
Binary file