Skip to content

Commit 3f6dea4

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

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,14 @@ module.exports = function () {
736736
}
737737
};
738738

739+
var contentFunction = function (ele) {
740+
if (ele._private.data.name) {
741+
return ele._private.data.name;
742+
}
743+
744+
return 'newNode';
745+
};
746+
739747
var nodeBackgroundOpacityFunction = function (ele) {
740748
switch (ele._private.data['type']) {
741749
case "FAMILY":
@@ -752,14 +760,6 @@ module.exports = function () {
752760
}
753761
};
754762

755-
var contentFunction = function (ele) {
756-
if (ele._private.data.name) {
757-
return ele._private.data.name;
758-
}
759-
760-
return 'newNode';
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: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,16 @@ module.exports = (function()
264264
}
265265
};
266266

267+
268+
var contentFunction = function( ele )
269+
{
270+
if (ele._private.data.name) {
271+
return ele._private.data.name;
272+
}
273+
return 'newNode';
274+
};
275+
276+
267277
var nodeBackgroundOpacityFunction = function( ele )
268278
{
269279
switch (ele._private.data['type'])
@@ -275,14 +285,6 @@ module.exports = (function()
275285
}
276286
};
277287

278-
var contentFunction = function( ele )
279-
{
280-
if (ele._private.data.name) {
281-
return ele._private.data.name;
282-
}
283-
return 'newNode';
284-
};
285-
286288
var vTextPositionFunction = function( ele )
287289
{
288290
switch (ele._private.data['type'])

0 commit comments

Comments
 (0)