mirror of
https://github.com/wisplite/BLE-mesh-sim.git
synced 2026-10-30 13:32:21 -05:00
update node animation to place nodeId above the packet instead of inside it
This commit is contained in:
@@ -388,7 +388,7 @@ class CompleteNodeOnEdgeEngine {
|
|||||||
ctx.fillStyle = dotNode.font && dotNode.font.color ? dotNode.font.color : '#000';
|
ctx.fillStyle = dotNode.font && dotNode.font.color ? dotNode.font.color : '#000';
|
||||||
ctx.textAlign = 'center';
|
ctx.textAlign = 'center';
|
||||||
ctx.textBaseline = 'middle';
|
ctx.textBaseline = 'middle';
|
||||||
ctx.fillText(dotNode.label, dotNode.x, dotNode.y);
|
ctx.fillText(dotNode.label, dotNode.x, dotNode.y - fontSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.restore();
|
ctx.restore();
|
||||||
|
|||||||
Reference in New Issue
Block a user