diff --git a/app/assets/images/icons/generics_96px/gen_foresight.png b/app/assets/images/icons/generics_96px/gen_aim.png similarity index 100% rename from app/assets/images/icons/generics_96px/gen_foresight.png rename to app/assets/images/icons/generics_96px/gen_aim.png diff --git a/app/assets/images/icons/generics_96px/gen_storyline.png b/app/assets/images/icons/generics_96px/gen_story.png similarity index 100% rename from app/assets/images/icons/generics_96px/gen_storyline.png rename to app/assets/images/icons/generics_96px/gen_story.png diff --git a/app/assets/images/icons/generics_96px/gen_concept.png b/app/assets/images/icons/generics_96px/gen_subject.png similarity index 100% rename from app/assets/images/icons/generics_96px/gen_concept.png rename to app/assets/images/icons/generics_96px/gen_subject.png diff --git a/app/assets/javascripts/src/Metamaps.js b/app/assets/javascripts/src/Metamaps.js index 8faaeac7..5129e209 100644 --- a/app/assets/javascripts/src/Metamaps.js +++ b/app/assets/javascripts/src/Metamaps.js @@ -1394,7 +1394,7 @@ Metamaps.SynapseCard = { }, add_user_info: function (synapse) { var u = '
'; $('#editSynLowerBar').append(u); @@ -2818,8 +2818,20 @@ Metamaps.Control = { } 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.checkMappers(); }, @@ -2984,13 +2996,17 @@ Metamaps.Control = { hideEdge: function (edge) { var from = edge.nodeFrom.id; var to = edge.nodeTo.id; + edge.setData('alpha', 0, 'end'); 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.plot(); - Metamaps.Filter.checkSynapses(); - Metamaps.Filter.checkMappers(); - } + }, 500); + Metamaps.Filter.checkSynapses(); + Metamaps.Filter.checkMappers(); }, updateSelectedPermissions: function (permission) { diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index f3b855fa..f4120faf 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -81,6 +81,8 @@ body { background: #d8d9da url(shattered_@2X.png); font-family: 'din-medium', helvetica, sans-serif; color: #424242; + -moz-osx-font-smoothing: grayscale; + } h1, h2, @@ -118,6 +120,7 @@ input[type="submit"] { border-radius: 2px; -webkit-user-select: none; font-family: 'din-medium', helvetica, sans-serif; + -webkit-font-smoothing: inherit; } button.button:hover, a.button:hover, diff --git a/app/views/layouts/_templates.html.erb b/app/views/layouts/_templates.html.erb index 820feb09..afd9de52 100644 --- a/app/views/layouts/_templates.html.erb +++ b/app/views/layouts/_templates.html.erb @@ -234,7 +234,7 @@