update(example): Add measurment (px) to nodes width and font size

This commit is contained in:
Braks
2021-08-17 19:47:49 +02:00
parent 22a1dc6716
commit e0bc7e2c96

View File

@@ -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 },