Lines Matching refs:d3
5 import * as d3 from "d3"
31 divElement: d3.Selection<any, any, any, any>;
32 svg: d3.Selection<any, any, any, any>;
38 graphElement: d3.Selection<any, any, any, any>;
39 visibleNodes: d3.Selection<any, GNode, any, any>;
40 visibleEdges: d3.Selection<any, Edge, any, any>;
48 drag: d3.DragBehavior<any, GNode, GNode>;
49 panZoom: d3.ZoomBehavior<SVGElement, any>;
51 visibleBubbles: d3.Selection<any, any, any, any>;
64 this.divElement = d3.select(this.divNode);
152 graph.drag = d3.drag<any, GNode, GNode>()
154 d.x += d3.event.dx;
155 d.y += d3.event.dy;
160 d3.select("#layout").on("click", partial(this.layoutAction, graph));
161 d3.select("#show-all").on("click", partial(this.showAllAction, graph));
162 d3.select("#toggle-hide-dead").on("click", partial(this.toggleHideDead, graph));
163 d3.select("#hide-unselected").on("click", partial(this.hideUnselectedAction, graph));
164 d3.select("#hide-selected").on("click", partial(this.hideSelectedAction, graph));
165 d3.select("#zoom-selection").on("click", partial(this.zoomSelectionAction, graph));
166 d3.select("#toggle-types").on("click", partial(this.toggleTypesAction, graph));
169 d3.select(window).on("keydown", function (e) {
176 if (d3.event.shiftKey) return false;
177 graph.graphElement.attr("transform", d3.event.transform);
180 const zoomSvg = d3.zoom<SVGElement, any>()
184 if (d3.event.shiftKey) return;
185 d3.select('body').style("cursor", "move");
188 d3.select('body').style("cursor", "auto");
240 if (d3.event.ctrlKey) {
419 if (!d3.event.shiftKey) {
534 if (!d3.event.shiftKey) {
546 switch (d3.event.keyCode) {
558 (edge, index) => { return index == (d3.event.keyCode - 49); },
572 (edge, index) => { return index == (d3.event.keyCode - 97); },
577 showSelectionFrontierNodes(d3.event.altKey,
583 showSelectionFrontierNodes(d3.event.altKey,
602 showSelectionFrontierNodes(d3.event.keyCode == 38, undefined, true);
607 if (!d3.event.ctrlKey) {
626 d3.event.preventDefault();
629 state.lastKeyDown = d3.event.keyCode;
683 d3.event.stopPropagation();
684 if (!d3.event.shiftKey) {
751 if (!d3.event.shiftKey) graph.selectionHandler.clear();
753 d3.event.stopPropagation();
789 d3.event.stopPropagation();
813 d3.event.stopPropagation();
820 appendInputAndOutputBubbles(d3.select(this), d);
824 d3.select(this).append("text")
838 d3.select(this).append("text")
870 graph.visibleBubbles = d3.selectAll('circle');
899 const trans = d3.zoomTransform(this.svg.node());
941 const transform = d3.zoomIdentity.translate(1500, 100).scale(0.75);