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 = '
'; - u += '' + u += ' ' u += '
' + synapse.get("user_name") + '
'; $('#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 @@
{{{metacode_select}}}
- +
{{username}}
diff --git a/test/fixtures/metacodes.yml b/test/fixtures/metacodes.yml index 06682ed3..02ec0663 100644 --- a/test/fixtures/metacodes.yml +++ b/test/fixtures/metacodes.yml @@ -25,8 +25,8 @@ four: color: #ABB49F five: - name: Evolution - icon: /assets/icons/blueprint_96px/bp_evolution.png + name: Process + icon: /assets/icons/blueprint_96px/bp_process.png color: #BDB25E six: @@ -125,8 +125,8 @@ twenty-four: color: #CF7C74 twenty-five: - name: Concept - icon: /assets/icons/generics_96px/gen_concept.png + name: Subject + icon: /assets/icons/generics_96px/gen_subject.png color: #8293D8 twenty-six: @@ -155,8 +155,8 @@ thirty: color: #54A19D thirty-one: - name: Foresight - icon: /assets/icons/generics_96px/gen_foresight.png + name: Aim + icon: /assets/icons/generics_96px/gen_aim.png color: #B0B0B0 thirty-two: