0.7.0 • Published 2 years ago
@graspologic/render-controls-react v0.7.0
@graspologic/render-controls-react
Provides a set of controls for adjusting how the graph renderer renders.
Usage
import React from 'react'
import { GraphView } from '@graspologic/renderer'
import {
NodeSettings,
EdgeSettings,
DisplaySettings,
SettingsPane,
} from '@graspologic/render-controls-react'
export const MyGraphComponent: React.FC = () => {
return (
<GraphView data={{ nodes: [], edges: [] }}>
{/* This will attach the settings pane to the graph view */}
<SettingsPane>
{/* This will add the "Display" section to the settings pane */}
<DisplaySettings />
{/* This will add the "Node" section to the settings pane */}
<NodeSettings />
{/* This will add the "Edge" section to the settings pane */}
<EdgeSettings />
</SettingsPane>
</GraphView>
)
}
See the API documentation or examples for additional examples.
0.7.0
2 years ago
0.7.0-13
3 years ago
0.7.0-12
3 years ago
0.7.0-11
3 years ago
0.7.0-10
3 years ago
0.7.0-9
3 years ago
0.7.0-8
3 years ago
0.7.0-7
3 years ago
0.7.0-6
3 years ago
0.7.0-3
3 years ago
0.7.0-5
3 years ago
0.0.7-3
3 years ago
0.7.0-4
3 years ago
0.7.0-1
3 years ago
0.7.0-2
3 years ago
0.7.0-0
3 years ago
0.6.0
3 years ago
0.5.0
3 years ago
0.5.0-3
3 years ago
0.5.0-2
3 years ago
0.5.0-modularize
4 years ago
0.5.0-1
4 years ago
0.4.1-beta.14.0
4 years ago
0.4.0
4 years ago