From 9a72a5a0c1cf597a228eaa13bee70bd93bcc86db Mon Sep 17 00:00:00 2001 From: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 19 Jun 2022 21:31:36 +0200 Subject: [PATCH] docs: add typedoc links and fix edge docs --- docs/src/guide/components/background.md | 2 +- docs/src/guide/components/controls.md | 2 +- docs/src/guide/components/minimap-node.md | 2 +- docs/src/guide/components/minimap.md | 2 +- docs/src/guide/edge.md | 31 ++++++++++--------- docs/src/guide/node.md | 32 ++++++++++---------- docs/src/guide/theming.md | 2 +- docs/src/guide/utils/graph.md | 28 ++++++++++-------- docs/src/guide/utils/instance.md | 15 +++++----- docs/src/guide/vue-flow/config.md | 27 +++++++++-------- docs/src/guide/vue-flow/state.md | 36 +++++++++++++++-------- 11 files changed, 96 insertions(+), 83 deletions(-) diff --git a/docs/src/guide/components/background.md b/docs/src/guide/components/background.md index 34dd5168..1f8b3236 100644 --- a/docs/src/guide/components/background.md +++ b/docs/src/guide/components/background.md @@ -14,7 +14,7 @@ To use the background simply pass the `Background` component as a child to the ` ``` -## Props +## [Props](/typedocs/interfaces/BackgroundProps.html/) | Name | Definition | Type | Optional | Default | |--------------|-------------------|--------------------------------------------------------------|----------|---------| diff --git a/docs/src/guide/components/controls.md b/docs/src/guide/components/controls.md index 3217b7a6..0a1f0a91 100644 --- a/docs/src/guide/components/controls.md +++ b/docs/src/guide/components/controls.md @@ -14,7 +14,7 @@ To use the controls simply pass the `Controls` component as a child to the `VueF ``` -## Props +## [Props](/typedocs/interfaces/ControlProps.html/) | Name | Definition | Type | Optional | Default | |-----------------|---------------------------|------------------------------------------------------|----------|---------| diff --git a/docs/src/guide/components/minimap-node.md b/docs/src/guide/components/minimap-node.md index 0204ac1a..1ec04bab 100644 --- a/docs/src/guide/components/minimap-node.md +++ b/docs/src/guide/components/minimap-node.md @@ -19,7 +19,7 @@ To use the component pass the `MiniMapNode` as a child to the [`MiniMap`](/guide ``` -## Props +## [Props](/typedocs/interfaces/MiniMapNodeProps.html/) | Name | Definition | Type | Optional | Default | |----------------|---------------------------------|-----------------------------------------------------|----------|---------| diff --git a/docs/src/guide/components/minimap.md b/docs/src/guide/components/minimap.md index 83185b82..faec7358 100644 --- a/docs/src/guide/components/minimap.md +++ b/docs/src/guide/components/minimap.md @@ -12,7 +12,7 @@ To use the minimap simply pass the `MiniMap` component as a child to the `VueFlo ``` -## Props +## [Props](/typedocs/interfaces/MiniMapProps.html/) | Name | Definition | Type | Optional | Default | |------------------|--------------------------|------------------------------------------------------------------|----------|-------------------------| diff --git a/docs/src/guide/edge.md b/docs/src/guide/edge.md index 00b04f11..87f0d0e6 100644 --- a/docs/src/guide/edge.md +++ b/docs/src/guide/edge.md @@ -54,10 +54,10 @@ export default defineComponent({ ``` -For more -advanced graphs that require more state access you will want to use the useVueFlow composable. UseVueFlow will provide -you with an -`addNodes` utility function, which you can use to add nodes directly to the state. +For more advanced graphs that require more state access you will want to use the useVueFlow composable. +[useVueFlow](/typedocs/functions/useVueFlow.html/) will provide +you with an [`addEdges`](/typedocs/interfaces/Actions.html#addedges/) utility function, which you can use to add edges +directly to the state. ```vue:no-line-numbers