r2dsvg 0.5.1 → 0.5.2
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/r2dsvg.rb +19 -0
- metadata +10 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64d907b1e113033b25cb0f8f103f743c3994298a4bf66e14844c320dcb59c88a
|
4
|
+
data.tar.gz: 9ec11cbf12e85142093d766b56426d8cfe67c89cb57f3baf5991171514dfac61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75fd5bd8348ae09903a12edb5a48b51bce69158b9a5d7630f52e9be2a8d1927669e7916255098aeb4eaf6260bcf39a9a7514f24176034f4dff0b36337b98e473
|
7
|
+
data.tar.gz: fdfd7077c881d6892ac2340e2bf10733ef041c3691f37e7a956e7710b09d6f082b16d5416f622dde272ec6d93b4530bff276aac901c87f397865fc83139d0c4a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/r2dsvg.rb
CHANGED
@@ -52,6 +52,8 @@ class R2dSvg
|
|
52
52
|
|
53
53
|
if @loaded then
|
54
54
|
|
55
|
+
sleep 0.05
|
56
|
+
|
55
57
|
window.on(:mouse_move) do |event|
|
56
58
|
mouse :mousemove, event
|
57
59
|
mouse :mouseenter, event
|
@@ -223,6 +225,23 @@ class R2dSvg
|
|
223
225
|
end
|
224
226
|
|
225
227
|
end
|
228
|
+
|
229
|
+
private
|
230
|
+
|
231
|
+
def timeout(duration=0.8)
|
232
|
+
|
233
|
+
@t = Time.now
|
234
|
+
|
235
|
+
Thread.new do
|
236
|
+
|
237
|
+
while @t + duration > Time.now do
|
238
|
+
sleep 0.1
|
239
|
+
end
|
240
|
+
|
241
|
+
yield
|
242
|
+
|
243
|
+
end
|
244
|
+
end
|
226
245
|
|
227
246
|
end
|
228
247
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r2dsvg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
2z9cm0kGX/0pBfn8cMKC0JgNNNONx3uqiCAhaBEN35C8dqBjua/CK4rMoKEB7XQq
|
36
36
|
OAk+mR2SqyWecmZhdnsnm86T
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-
|
38
|
+
date: 2020-09-19 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: svgle
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: '0.4'
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.4.
|
49
|
+
version: 0.4.7
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: '0.4'
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.4.
|
59
|
+
version: 0.4.7
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: onedrb
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,22 +101,22 @@ dependencies:
|
|
101
101
|
name: dom_render
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- - ">="
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: 0.4.0
|
107
104
|
- - "~>"
|
108
105
|
- !ruby/object:Gem::Version
|
109
106
|
version: '0.4'
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.4.1
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - ">="
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: 0.4.0
|
117
114
|
- - "~>"
|
118
115
|
- !ruby/object:Gem::Version
|
119
116
|
version: '0.4'
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 0.4.1
|
120
120
|
description:
|
121
121
|
email: james@jamesrobertson.eu
|
122
122
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|