🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@graspologic/render-controls

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

dat.gui controls for adjusting graph-view rendering

latest
Source
npmnpm
Version
0.7.0
Version published
Maintainers
4
Created
Source

@graspologic/render-controls

Library that provides a set of dat.gui controls for manipulating the settings for the graph renderer

Usage

React

This library should not be used directly if you are using React. Instead, please see @graspologic/controls-react for instructions on how to configure the settings in a React environment.

Standalone

import { GraphRenderer } from '@graspologic/renderer'
import {
	attachDisplaySettings,
	attachEdgeSettings,
	attachNodeSettings,
} from '@graspologic/render-controls'
import * as dat from 'dat.gui'

/**
 * Attaches the config settings to the Settings Pane
 */
export function attachSettings(gui: dat.GUI, renderer: GraphRenderer) {
	// Adds the "Nodes" configuration section to the Settings Pane
	attachNodeSettings(gui, renderer)

	// Adds the "Edges" configuration section to the Settings Pane
	attachEdgeSettings(gui, renderer)

	// Adds the "Display" configuration section to the Settings Pane
	attachDisplaySettings(gui, renderer)
}

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