Socket
Book a DemoInstallSign in
Socket

@graspologic/render-controls-react

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graspologic/render-controls-react

React-components for dat.gui controls for adjusting graph-view rendering

latest
Source
npmnpm
Version
0.7.0
Version published
Maintainers
4
Created
Source

@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.

FAQs

Package last updated on 08 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts