change node style
This commit is contained in:
1 parent
1c7ef5903d
commit
42bda75286
1 file changed
+9
-7
@@ -67,9 +67,8 @@ export default class Main extends Component {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
hover: {
|
hover: {
|
||||||
'name-text': {
|
|
||||||
stroke: 'white',
|
stroke: 'white',
|
||||||
}
|
lineWidth: 3,
|
||||||
},
|
},
|
||||||
dragSrc: {
|
dragSrc: {
|
||||||
fill: 'gray',
|
fill: 'gray',
|
||||||
@@ -134,12 +133,15 @@ export default class Main extends Component {
|
|||||||
group.addShape('text', {
|
group.addShape('text', {
|
||||||
attrs: {
|
attrs: {
|
||||||
textBaseline: 'top',
|
textBaseline: 'top',
|
||||||
x: x0 + 13,
|
x: x0 - 3,
|
||||||
y: y0 + 4,
|
y: -8,
|
||||||
|
fontSize: 20,
|
||||||
lineHeight: 20,
|
lineHeight: 20,
|
||||||
text: cfg.id,
|
text: cfg.id,
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
fill: 'black',
|
fill: 'white',
|
||||||
|
stroke: 'black',
|
||||||
|
lineWidth: 2,
|
||||||
},
|
},
|
||||||
name: 'id-text',
|
name: 'id-text',
|
||||||
});
|
});
|
||||||
@@ -149,7 +151,7 @@ export default class Main extends Component {
|
|||||||
console.log(cfg.type, classify);
|
console.log(cfg.type, classify);
|
||||||
group.addShape('image', {
|
group.addShape('image', {
|
||||||
attrs: {
|
attrs: {
|
||||||
x: x0 + 15,
|
x: x0 + 3,
|
||||||
y: y0 + 2,
|
y: y0 + 2,
|
||||||
height: 14,
|
height: 14,
|
||||||
width: 14,
|
width: 14,
|
||||||
@@ -162,7 +164,7 @@ export default class Main extends Component {
|
|||||||
group.addShape('text', {
|
group.addShape('text', {
|
||||||
attrs: {
|
attrs: {
|
||||||
textBaseline: 'top',
|
textBaseline: 'top',
|
||||||
x: x0 + 35,
|
x: x0 + 18,
|
||||||
y: y0 + 4,
|
y: y0 + 4,
|
||||||
lineHeight: 20,
|
lineHeight: 20,
|
||||||
text: cfg.name,
|
text: cfg.name,
|
||||||
|
|||||||
Reference in new issue
Block a user