From e0bc7e2c9695d5bb0877bbe3bd9b0c175961e95e Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 17 Aug 2021 19:47:49 +0200 Subject: [PATCH] update(example): Add measurment (px) to nodes width and font size --- examples/EdgeTypes/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/EdgeTypes/utils.ts b/examples/EdgeTypes/utils.ts index 27f89955..6f5e65b8 100644 --- a/examples/EdgeTypes/utils.ts +++ b/examples/EdgeTypes/utils.ts @@ -2,7 +2,7 @@ import { ElementId, Elements, Position } from '../../src'; const nodeWidth = 80; const nodeGapWidth = nodeWidth * 2; -const nodeStyle = { width: nodeWidth, fontSize: 11, color: 'white' }; +const nodeStyle = { width: nodeWidth + 'px', fontSize: '11px', color: 'white' }; const sourceTargetPositions = [ { source: Position.Bottom, target: Position.Top },