hyper-vis 1.0.0.lap29 → 1.0.0.lap30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hyperloop/vis/version.rb +1 -1
- data/lib/vis/utilities.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eb5eff15f82054481375b935135d9fa43680a9996385f54e53db7ad848bebf7
|
4
|
+
data.tar.gz: fae2fc15de0c8a4dc534c7243924e07fb68368ce07392a7c8911ddf7c970133e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a8db12d96b62a3076369336cd7c93ff650152aa8c7999b0aadfd406c71d2335be8d27adb2736a5fbfe7eb5adf6103453e4ef769946e6d78a5b3ea5a5829eb56
|
7
|
+
data.tar.gz: 13db992240ec099353a6e7879e2ee14e67921c78e4bab206f6e67b93253a793f89aa7ed8fd27eb795d61fb31c9051f6e5c02517e1d80503d47226ba33028bffd
|
data/lib/vis/utilities.rb
CHANGED
@@ -151,7 +151,8 @@ module Vis
|
|
151
151
|
if `typeof block === "function"`
|
152
152
|
options[:manipulation][key] = %x{
|
153
153
|
function(nodeData, callback) {
|
154
|
-
|
154
|
+
var wrapped_callback = #{ proc { |new_node_data| `callback(new_node_data.$to_n())` }}
|
155
|
+
return block.$call(Opal.Hash.$new(nodeData), wrapped_callback);
|
155
156
|
}
|
156
157
|
}
|
157
158
|
end
|
@@ -164,7 +165,8 @@ module Vis
|
|
164
165
|
if `typeof block === "function"`
|
165
166
|
options[:manipulation][key] = %x{
|
166
167
|
function(nodeData, callback) {
|
167
|
-
|
168
|
+
var wrapped_callback = #{ proc { |new_node_data| `callback(new_node_data.$to_n())` }}
|
169
|
+
return block.$call(Opal.Hash.$new(nodeData), wrapped_callback);
|
168
170
|
}
|
169
171
|
}
|
170
172
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyper-vis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.lap30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|