Skip to content
On this page

Props

To make the component easier to work with there are a few props that wrap the simulation properties and methods.

Available Properties

PropertyTypeDescriptionDocs
darkBooleanwhether to use the dark themeDocs
remoteOriginStringthe remote origin from where to fetch templatesDocs
selectedNodesArray<sring>the selected nodesDocs
envGravityNumberthe gravity of the environmentDocs
linkDistanceNumberthe minimum distance of linksDocs
animationDurationNumberthe duration of animationsDocs
draggableNodesBooleanwhether nodes can be draggedDocs
zoomEnabledBooleanwhether the zoom is enabledDocs
zoomScaleExtentArray<nmber>the zoom scale extentDocs

Example

vue
<template>
	<GraphlyD3
		ref="graphly"
		:dark="true"
		remoteOrigin="/templates"
		:selectedNodes="['node-1', 'node-2']"
		:envGravity="-5000"
		:linkDistance="100"
		:animationDuration="500"
		:draggableNodes="true"
		:zoomEnabled="true"
		:zoomScaleExtent="[0.1, 10]"
	/>
</template>

Graphly D3 Documentation