update(examples): adapt examples

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 44f8eb1fe7
commit d730869443
8 changed files with 26 additions and 30 deletions
+4 -4
View File
@@ -14,7 +14,7 @@ import {
Connection,
Edge,
addEdge,
ArrowHeadType,
MarkerType,
} from '~/index'
const initialElements: Elements = [
@@ -46,7 +46,7 @@ const initialElements: Elements = [
},
},
labelStyle: { fill: 'red', fontWeight: 700 },
arrowHeadType: ArrowHeadType.Arrow,
markerEnd: MarkerType.Arrow,
},
{
id: 'e5-7',
@@ -56,7 +56,7 @@ const initialElements: Elements = [
labelBgPadding: [8, 4],
labelBgBorderRadius: 4,
labelBgStyle: { fill: '#FFCC00', color: '#fff', fillOpacity: 0.7 },
arrowHeadType: ArrowHeadType.ArrowClosed,
markerEnd: MarkerType.ArrowClosed,
},
{
id: 'e5-8',
@@ -64,7 +64,7 @@ const initialElements: Elements = [
target: '8',
type: 'custom',
data: { text: 'custom edge' },
arrowHeadType: ArrowHeadType.ArrowClosed,
markerEnd: MarkerType.ArrowClosed,
},
{
id: 'e5-9',