Skip to content

Commit e139d18

Browse files
Fixes iVis-at-Bilkent#262. Makes container nodes partially transparent when they are empty.
1 parent 3f6dea4 commit e139d18

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

packages/pathway-mapper/dist/index.es5.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,22 @@ module.exports = function () {
717717
}
718718
}];
719719

720+
var nodeBackgroundOpacityFunction = function (ele) {
721+
switch (ele._private.data['type']) {
722+
case "FAMILY":
723+
return 0.5;
724+
725+
case "COMPLEX":
726+
return 0.5;
727+
728+
case "COMPARTMENT":
729+
return 0.5;
730+
731+
default:
732+
return 1;
733+
}
734+
};
735+
720736
var compoundPaddingFunction = function (ele) {
721737
switch (ele._private.data['type']) {
722738
case "FAMILY":
@@ -744,22 +760,6 @@ module.exports = function () {
744760
return 'newNode';
745761
};
746762

747-
var nodeBackgroundOpacityFunction = function (ele) {
748-
switch (ele._private.data['type']) {
749-
case "FAMILY":
750-
return 0.5;
751-
752-
case "COMPLEX":
753-
return 0.5;
754-
755-
case "COMPARTMENT":
756-
return 0.5;
757-
758-
default:
759-
return 1;
760-
}
761-
};
762-
763763
var vTextPositionFunction = function (ele) {
764764
switch (ele._private.data['type']) {
765765
case "GENE":

packages/pathway-mapper/dist/index.es5.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/pathway-mapper/src/utils/GraphStyleSheet.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,17 @@ module.exports = (function()
251251
];
252252

253253

254+
var nodeBackgroundOpacityFunction = function( ele )
255+
{
256+
switch (ele._private.data['type'])
257+
{
258+
case "FAMILY": return 0.5;
259+
case "COMPLEX": return 0.5;
260+
case "COMPARTMENT": return 0.5;
261+
default: return 1;
262+
}
263+
};
264+
254265

255266
var compoundPaddingFunction = function( ele )
256267
{
@@ -274,16 +285,6 @@ module.exports = (function()
274285
};
275286

276287

277-
var nodeBackgroundOpacityFunction = function( ele )
278-
{
279-
switch (ele._private.data['type'])
280-
{
281-
case "FAMILY": return 0.5;
282-
case "COMPLEX": return 0.5;
283-
case "COMPARTMENT": return 0.5;
284-
default: return 1;
285-
}
286-
};
287288

288289
var vTextPositionFunction = function( ele )
289290
{

0 commit comments

Comments
 (0)