Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Jitendra Gundaniya <[email protected]>
  • Loading branch information
jitu5 committed Oct 29, 2024
1 parent 97f9918 commit be54fa5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ The example below demonstrates how to configure your kedro-viz using different `
tag: {
enabled: {companies: true}
},
modeOptions: {
reFocus: true,
},
theme: "dark"
}}
/>
Expand All @@ -161,6 +164,8 @@ The example below demonstrates how to configure your kedro-viz using different `
| `sidebar` | boolean | true | Show/Hide Sidebar and action toolbar |
| `zoomToolbar` | boolean | true | Show/Hide zoom-in, zoom-out and zoom reset buttons together |
| options.expandAllPipelines | boolean | false | Expand/Collapse Modular pipelines on first load |
| options.modeOptions | | | |
| `reFocus` | boolean | true | Enable/Disable node re-focus on click

Check warning on line 168 in README.npm.md

View workflow job for this annotation

GitHub Actions / vale

[vale] README.npm.md#L168

[Kedro-viz.Spellings] Did you really mean 'boolean'?
Raw output
{"message": "[Kedro-viz.Spellings] Did you really mean 'boolean'?", "location": {"path": "README.npm.md", "range": {"start": {"line": 168, "column": 21}}}, "severity": "WARNING"}
| options.nodeType | `{disabled: {parameters: boolean,task: boolean,data: boolean}}` | `{disabled: {parameters: true,task: false,data: false}}` | Configuration for node type options |
| options.tag | `{enabled: {<tagName>: boolean}}` | - | Configuration for tag options |
| options.theme | string | dark | select `Kedro-Viz` theme : dark/light |
Expand Down
6 changes: 6 additions & 0 deletions src/components/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ App.propTypes = {
tag: PropTypes.shape({
enabled: PropTypes.objectOf(PropTypes.bool),
}),
/**
* Whether to re-focus the graph when a node is clicked
*/
modeOptions: PropTypes.shape({
reFocus: PropTypes.bool,
}),
/**
* Override the default enabled/disabled node types
*/
Expand Down

0 comments on commit be54fa5

Please sign in to comment.