|
55 | 55 |
|
56 | 56 | // Text
|
57 | 57 | text.innerHTML = node.label;
|
| 58 | + text.setAttributeNS(null, 'class', settings('classPrefix') + '-hover-label') |
58 | 59 | text.setAttributeNS(null, 'font-size', fontSize);
|
59 | 60 | text.setAttributeNS(null, 'font-family', settings('font'));
|
60 | 61 | text.setAttributeNS(null, 'fill', fontColor);
|
|
75 | 76 | e = Math.round(fontSize / 2 + 2);
|
76 | 77 |
|
77 | 78 | // Circle
|
| 79 | + circle.setAttributeNS(null, 'class', settings('classPrefix') + '-hover-area') |
78 | 80 | circle.setAttributeNS(null, 'fill', '#fff');
|
79 | 81 | circle.setAttributeNS(null, 'cx', node[prefix + 'x']);
|
80 | 82 | circle.setAttributeNS(null, 'cy', node[prefix + 'y']);
|
81 | 83 | circle.setAttributeNS(null, 'r', e);
|
82 | 84 |
|
83 | 85 | // Rectangle
|
| 86 | + rectangle.setAttributeNS(null, 'class', settings('classPrefix') + '-hover-area') |
84 | 87 | rectangle.setAttributeNS(null, 'fill', '#fff');
|
85 | 88 | rectangle.setAttributeNS(null, 'x', node[prefix + 'x'] + e / 4);
|
86 | 89 | rectangle.setAttributeNS(null, 'y', node[prefix + 'y'] - e);
|
|
0 commit comments