Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function dragStarted(d) {
dragStartPos = { x: event.x, y: event.y };
return select(this)
.raise()
.classed("wfd-active", true);
}
.on("end", () => {
this.moveHandleTo(d3Event.x);
this.data([[this.xScale.invert(this.handleLeftPos), this.xScale.invert(this.handleRightPos)]]);
this.checkChangedValue();
}));
.on('start', function() {
dragOrigin = {
x: d3_event.x,
y: d3_event.y
};
targetIndex = null;
})
.on('drag', function(d, index) {
let searchNeighborsDialog = isOutgoing => this.dispatcher('searchNeighborsDialog', {x: event.x - 120, y: event.y - 50, id: this.id, type: this.type, isOutgoing})
items.push(
.on('start', function() {
dragOrigin = {
x: d3_event.x,
y: d3_event.y
};
targetIndex = null;
targetData = null;
dragMoved = false;
})
.on('drag', function(d, index) {
.style("transform", function () { return "translate(" + d3Event.x + "px, " + d3Event.y + "px)"; })
.style("width", function () { return d.w * context.cellWidth + "px"; })
action: () => {
this.dispatcher('noteDialog', {x: event.x - 50, y: event.y - 50, node: this})
},
position: 90
.on('start', function() {
dragOrigin = {
x: d3_event.x,
y: d3_event.y
};
targetIndex = null;
dragMoved = false;
})
.on('drag', function(d, index) {
const dragBadge = () => {
subjectData.x =
event.x < -radius * 2
? "left"
: event.x > radius * 2 ? "right" : undefined
subjectData.y =
event.y < -radius * 2
? "top"
: event.y > radius * 2 ? "bottom" : undefined
type.redrawSubject()
}