0.7.0 • Published 2 years ago

@graspologic/render-controls v0.7.0

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

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

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-0

3 years ago

0.7.0-2

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