Merge branch 'develop' of github.com:metamaps/metamaps_gen002 into develop
This commit is contained in:
commit
7548c1953f
7 changed files with 34 additions and 15 deletions
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
@ -1394,7 +1394,7 @@ Metamaps.SynapseCard = {
|
||||||
},
|
},
|
||||||
add_user_info: function (synapse) {
|
add_user_info: function (synapse) {
|
||||||
var u = '<div id="edgeUser" class="hoverForTip">';
|
var u = '<div id="edgeUser" class="hoverForTip">';
|
||||||
u += '<img src="" width="24" height="24" />'
|
u += '<a href="/explore/mapper/' + synapse.get("user_id") + '"> <img src="" width="24" height="24" /></a>'
|
||||||
u += '<div class="tip">' + synapse.get("user_name") + '</div></div>';
|
u += '<div class="tip">' + synapse.get("user_name") + '</div></div>';
|
||||||
$('#editSynLowerBar').append(u);
|
$('#editSynLowerBar').append(u);
|
||||||
|
|
||||||
|
@ -2818,8 +2818,20 @@ Metamaps.Control = {
|
||||||
}
|
}
|
||||||
|
|
||||||
Metamaps.Control.deselectNode(node);
|
Metamaps.Control.deselectNode(node);
|
||||||
Metamaps.Visualize.mGraph.graph.removeNode(nodeid);
|
|
||||||
Metamaps.Visualize.mGraph.plot();
|
node.setData('alpha', 0, 'end');
|
||||||
|
node.eachAdjacency(function (adj) {
|
||||||
|
adj.setData('alpha', 0, 'end');
|
||||||
|
});
|
||||||
|
Metamaps.Visualize.mGraph.fx.animate({
|
||||||
|
modes: ['node-property:alpha',
|
||||||
|
'edge-property:alpha'
|
||||||
|
],
|
||||||
|
duration: 500
|
||||||
|
});
|
||||||
|
setTimeout(function () {
|
||||||
|
Metamaps.Visualize.mGraph.graph.removeNode(nodeid);
|
||||||
|
}, 500);
|
||||||
Metamaps.Filter.checkMetacodes();
|
Metamaps.Filter.checkMetacodes();
|
||||||
Metamaps.Filter.checkMappers();
|
Metamaps.Filter.checkMappers();
|
||||||
},
|
},
|
||||||
|
@ -2984,13 +2996,17 @@ Metamaps.Control = {
|
||||||
hideEdge: function (edge) {
|
hideEdge: function (edge) {
|
||||||
var from = edge.nodeFrom.id;
|
var from = edge.nodeFrom.id;
|
||||||
var to = edge.nodeTo.id;
|
var to = edge.nodeTo.id;
|
||||||
|
edge.setData('alpha', 0, 'end');
|
||||||
Metamaps.Control.deselectEdge(edge);
|
Metamaps.Control.deselectEdge(edge);
|
||||||
if (Metamaps.Visualize.mGraph.graph.getAdjacence(from, to)) {
|
Metamaps.Visualize.mGraph.fx.animate({
|
||||||
|
modes: ['edge-property:alpha'],
|
||||||
|
duration: 500
|
||||||
|
});
|
||||||
|
setTimeout(function () {
|
||||||
Metamaps.Visualize.mGraph.graph.removeAdjacence(from, to);
|
Metamaps.Visualize.mGraph.graph.removeAdjacence(from, to);
|
||||||
Metamaps.Visualize.mGraph.plot();
|
}, 500);
|
||||||
Metamaps.Filter.checkSynapses();
|
Metamaps.Filter.checkSynapses();
|
||||||
Metamaps.Filter.checkMappers();
|
Metamaps.Filter.checkMappers();
|
||||||
}
|
|
||||||
},
|
},
|
||||||
updateSelectedPermissions: function (permission) {
|
updateSelectedPermissions: function (permission) {
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,8 @@ body {
|
||||||
background: #d8d9da url(shattered_@2X.png);
|
background: #d8d9da url(shattered_@2X.png);
|
||||||
font-family: 'din-medium', helvetica, sans-serif;
|
font-family: 'din-medium', helvetica, sans-serif;
|
||||||
color: #424242;
|
color: #424242;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
}
|
}
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
|
@ -118,6 +120,7 @@ input[type="submit"] {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
font-family: 'din-medium', helvetica, sans-serif;
|
font-family: 'din-medium', helvetica, sans-serif;
|
||||||
|
-webkit-font-smoothing: inherit;
|
||||||
}
|
}
|
||||||
button.button:hover,
|
button.button:hover,
|
||||||
a.button:hover,
|
a.button:hover,
|
||||||
|
|
|
@ -234,7 +234,7 @@
|
||||||
<div class="metacodeSelect">{{{metacode_select}}}</div>
|
<div class="metacodeSelect">{{{metacode_select}}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="linkItem contributor">
|
<div class="linkItem contributor">
|
||||||
<img src="/assets/user.png" class="contributorIcon" width="32" height="32" />
|
<a href="/explore/mapper/{{userid}}"><img src="/assets/user.png" class="contributorIcon" width="32" height="32" /></a>
|
||||||
<div class="contributorName">{{username}}</div>
|
<div class="contributorName">{{username}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="linkItem mapCount">
|
<div class="linkItem mapCount">
|
||||||
|
|
12
test/fixtures/metacodes.yml
vendored
12
test/fixtures/metacodes.yml
vendored
|
@ -25,8 +25,8 @@ four:
|
||||||
color: #ABB49F
|
color: #ABB49F
|
||||||
|
|
||||||
five:
|
five:
|
||||||
name: Evolution
|
name: Process
|
||||||
icon: /assets/icons/blueprint_96px/bp_evolution.png
|
icon: /assets/icons/blueprint_96px/bp_process.png
|
||||||
color: #BDB25E
|
color: #BDB25E
|
||||||
|
|
||||||
six:
|
six:
|
||||||
|
@ -125,8 +125,8 @@ twenty-four:
|
||||||
color: #CF7C74
|
color: #CF7C74
|
||||||
|
|
||||||
twenty-five:
|
twenty-five:
|
||||||
name: Concept
|
name: Subject
|
||||||
icon: /assets/icons/generics_96px/gen_concept.png
|
icon: /assets/icons/generics_96px/gen_subject.png
|
||||||
color: #8293D8
|
color: #8293D8
|
||||||
|
|
||||||
twenty-six:
|
twenty-six:
|
||||||
|
@ -155,8 +155,8 @@ thirty:
|
||||||
color: #54A19D
|
color: #54A19D
|
||||||
|
|
||||||
thirty-one:
|
thirty-one:
|
||||||
name: Foresight
|
name: Aim
|
||||||
icon: /assets/icons/generics_96px/gen_foresight.png
|
icon: /assets/icons/generics_96px/gen_aim.png
|
||||||
color: #B0B0B0
|
color: #B0B0B0
|
||||||
|
|
||||||
thirty-two:
|
thirty-two:
|
||||||
|
|
Loading…
Reference in a new issue