How to use the d3-selection.event function in d3-selection

To help you get started, we’ve selected a few d3-selection examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zakandrewking / escher / src / Behavior.js View on Github external
behavior.on('start', d => {
      this.dragging = true

      // silence other listeners
      d3Selection.event.sourceEvent.stopPropagation()
      totalDisplacement = { x: 0, y: 0 }
      startFn(d)
    })
github zakandrewking / escher / src / Behavior.js View on Github external
this.selectableMousedown = d => {
        // stop propogation for the buildinput to work right
        d3Selection.event.stopPropagation()
        // this.parentNode.__data__.wasSelected = d3Select(this.parentNode).classed('selected')
        // d3Select(this.parentNode).classed('selected', true)
      }
      this.selectableClick = function (d) {
github TargetProcess / tauCharts / plugins / floating-axes.js View on Github external
.on('click', function () {
                        d3Selection.event.stopPropagation();
                    });
            },
github bloomberg / bqplot / js / src / ScatterBase.ts View on Github external
const d3GetEvent = function(){return require("d3-selection").event}.bind(this);
import * as utils from './utils';
github TargetProcess / tauCharts / plugins / floating-axes.js View on Github external
.on('mousemove', function () {
                        d3Selection.event.stopPropagation();
                    })
                    .on('click', function () {
github wikimedia / analytics-wikistats2 / src / components / detail / chart / LineChart.vue View on Github external
.on('mouseout', function () {
                    $(this).siblings().hide();
                    d3.event.stopPropagation();
                });
github bloomberg / bqplot / js / src / Map.ts View on Github external
const d3GetEvent = () => { return require("d3-selection").event };
import { Mark } from './Mark';
github viz-centric / flair-visualizations / js / extras / util.js View on Github external
            d3.getEvent = () => require("d3-selection").event;
github kirjavascript / nibblrjr / web / modules / stats / forcesim.js View on Github external
Object.defineProperty(d3, 'event', { get: () => require('d3-selection').event });