|
@@ -48,12 +48,12 @@ const fittingString = (str, maxWidth, fontSize) => {
|
|
|
};
|
|
|
const ERROR_COLOR = 'red';
|
|
|
const getNodeConfig = (node) => {
|
|
|
- if (node.nodeUrl) {
|
|
|
+ if (node.color) {
|
|
|
return {
|
|
|
basicColor: node.color,
|
|
|
fontColor: '#333',
|
|
|
borderColor: node.color,
|
|
|
- bgColor: '#fff',
|
|
|
+ bgColor: node.color,
|
|
|
};
|
|
|
}
|
|
|
let config = {
|
|
@@ -106,8 +106,8 @@ const nodeBasicMethod = {
|
|
|
attrs: {
|
|
|
x: 0,
|
|
|
y: 0,
|
|
|
- fill: config.bgColor,
|
|
|
- stroke: config.borderColor,
|
|
|
+ // fill: config.bgColor,
|
|
|
+ // stroke: config.borderColor,
|
|
|
width: w,
|
|
|
height: h,
|
|
|
},
|
|
@@ -121,7 +121,7 @@ const nodeBasicMethod = {
|
|
|
x: 3,
|
|
|
y: h / 2,
|
|
|
r: 0,
|
|
|
- fill: config.basicColor,
|
|
|
+ // fill: config.basicColor,
|
|
|
},
|
|
|
// must be assigned in G6 3.3 and later versions. it can be any string you want, but should be unique in a custom item type
|
|
|
name: 'left-dot-shape',
|
|
@@ -134,8 +134,8 @@ const nodeBasicMethod = {
|
|
|
y: 0,
|
|
|
width: w - 19,
|
|
|
height: h,
|
|
|
- fill: config.basicColor,
|
|
|
- stroke: config.borderColor,
|
|
|
+ // fill: config.basicColor,
|
|
|
+ // stroke: config.borderColor,
|
|
|
radius: 2,
|
|
|
cursor: 'pointer',
|
|
|
},
|
|
@@ -148,9 +148,9 @@ const nodeBasicMethod = {
|
|
|
attrs: {
|
|
|
x: 3,
|
|
|
y: 0,
|
|
|
- width: 3,
|
|
|
+ width:0,
|
|
|
height: h,
|
|
|
- fill: config.basicColor,
|
|
|
+ // fill: config.basicColor,
|
|
|
radius: 1.5,
|
|
|
},
|
|
|
// must be assigned in G6 3.3 and later versions. it can be any string you want, but should be unique in a custom item type
|