source: node_modules/d3-drag/src/event.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 985 bytes
Line 
1export default function DragEvent(type, {
2 sourceEvent,
3 subject,
4 target,
5 identifier,
6 active,
7 x, y, dx, dy,
8 dispatch
9}) {
10 Object.defineProperties(this, {
11 type: {value: type, enumerable: true, configurable: true},
12 sourceEvent: {value: sourceEvent, enumerable: true, configurable: true},
13 subject: {value: subject, enumerable: true, configurable: true},
14 target: {value: target, enumerable: true, configurable: true},
15 identifier: {value: identifier, enumerable: true, configurable: true},
16 active: {value: active, enumerable: true, configurable: true},
17 x: {value: x, enumerable: true, configurable: true},
18 y: {value: y, enumerable: true, configurable: true},
19 dx: {value: dx, enumerable: true, configurable: true},
20 dy: {value: dy, enumerable: true, configurable: true},
21 _: {value: dispatch}
22 });
23}
24
25DragEvent.prototype.on = function() {
26 var value = this._.on.apply(this._, arguments);
27 return value === this._ ? this : value;
28};
Note: See TracBrowser for help on using the repository browser.