Skip to content

Instantly share code, notes, and snippets.

View joshin-run's full-sized avatar
🕵️‍♀️
At work

Josh Holladay joshin-run

🕵️‍♀️
At work
View GitHub Profile
@joshin-run
joshin-run / app
Created November 17, 2017 18:28 — forked from michaelmcshinsky/app
import React, { Component } from 'react'
import Header from './Header'
import Sidebar from './Sidebar'
export default class App extends Component {
constructor(props) {
super(props)
this.state = {
isSidebarOpen: false
}
@joshin-run
joshin-run / .block
Created October 5, 2017 01:24 — forked from denisemauldin/.block
CE-Tree_View_Matrix
license: mit
@joshin-run
joshin-run / README.md
Created October 4, 2017 20:01 — forked from robschmuecker/README.md
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.