0.7.0 • Published 4 years ago
@graspologic/render-controls v0.7.0
@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
4 years ago
0.7.0-13
4 years ago
0.7.0-12
4 years ago
0.7.0-11
4 years ago
0.7.0-10
4 years ago
0.7.0-9
4 years ago
0.7.0-8
4 years ago
0.7.0-7
4 years ago
0.7.0-6
4 years ago
0.7.0-3
4 years ago
0.7.0-5
4 years ago
0.0.7-3
4 years ago
0.7.0-4
4 years ago
0.7.0-1
5 years ago
0.7.0-0
5 years ago
0.7.0-2
5 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.5.0-3
5 years ago
0.5.0-2
5 years ago
0.5.0-modularize
5 years ago
0.5.0-1
5 years ago
0.4.1-beta.14.0
5 years ago
0.4.0
5 years ago