Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@d3fc/d3fc-pointer

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d3fc/d3fc-pointer - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

112

build/d3fc-pointer.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-dispatch'), require('d3-selection')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3-dispatch', 'd3-selection'], factory) :
(factory((global.fc = global.fc || {}),global.d3,global.d3));
}(this, (function (exports,d3Dispatch,d3Selection) { 'use strict';
(global = global || self, factory(global.fc = global.fc || {}, global.d3, global.d3));
}(this, function (exports, d3Dispatch, d3Selection) { 'use strict';
var createReboundMethod = (function (target, source, name) {
var method = source[name];
if (typeof method !== 'function') {
throw new Error('Attempt to rebind ' + name + ' which isn\'t a function on the source object');
}
return function () {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
var createReboundMethod = (function (target, source, name) {
var method = source[name];
if (typeof method !== 'function') {
throw new Error('Attempt to rebind ' + name + ' which isn\'t a function on the source object');
}
return function () {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var value = method.apply(source, args);
return value === source ? target : value;
};
});
var value = method.apply(source, args);
return value === source ? target : value;
};
});
var rebind = (function (target, source) {
for (var _len = arguments.length, names = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
names[_key - 2] = arguments[_key];
}
var rebind = (function (target, source) {
for (var _len = arguments.length, names = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
names[_key - 2] = arguments[_key];
}
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = names[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var name = _step.value;
try {
for (var _iterator = names[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var name = _step.value;
target[name] = createReboundMethod(target, source, name);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return) {
_iterator.return();
target[name] = createReboundMethod(target, source, name);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
if (_didIteratorError) {
throw _iteratorError;
try {
if (!_iteratorNormalCompletion && _iterator.return) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
}
return target;
});
return target;
});
var pointer = (function () {
var event = d3Dispatch.dispatch('point');
var pointer = (function () {
var event = d3Dispatch.dispatch('point');
function mousemove() {
var point = d3Selection.mouse(this);
event.call('point', this, [{ x: point[0], y: point[1] }]);
}
function mousemove() {
var point = d3Selection.mouse(this);
event.call('point', this, [{ x: point[0], y: point[1] }]);
}
function mouseleave() {
void event.call('point', this, []);
}
function mouseleave() {
void event.call('point', this, []);
}
var instance = function instance(selection) {
selection.on('mouseenter.pointer', mousemove).on('mousemove.pointer', mousemove).on('mouseleave.pointer', mouseleave);
};
var instance = function instance(selection) {
selection.on('mouseenter.pointer', mousemove).on('mousemove.pointer', mousemove).on('mouseleave.pointer', mouseleave);
};
rebind(instance, event, 'on');
rebind(instance, event, 'on');
return instance;
});
return instance;
});
exports.pointer = pointer;
exports.pointer = pointer;
Object.defineProperty(exports, '__esModule', { value: true });
Object.defineProperty(exports, '__esModule', { value: true });
})));
}));

@@ -6,2 +6,10 @@ # Change Log

<a name="2.0.9"></a>
## [2.0.9](https://github.com/d3fc/d3fc/compare/@d3fc/d3fc-pointer@2.0.8...@d3fc/d3fc-pointer@2.0.9) (2019-08-12)
**Note:** Version bump only for package @d3fc/d3fc-pointer
<a name="2.0.8"></a>

@@ -8,0 +16,0 @@ ## 2.0.8 (2019-05-28)

{
"name": "@d3fc/d3fc-pointer",
"version": "2.0.8",
"version": "2.0.9",
"description": "Component which emits the current mouse or touch position over a selection",
"main": "index.js",
"scripts": {
"test": "d3fc-scripts test",
"bundle": "d3fc-scripts bundle"
"bundle": "npx rollup -c ../../scripts/rollup.config.js",
"test": "npx jasmine --config=../../scripts/jasmine.json",
"lint": "npx eslint src/**/*.js"
},

@@ -24,7 +25,4 @@ "repository": {

"homepage": "https://github.com/d3fc/d3fc",
"devDependencies": {
"@d3fc/d3fc-scripts": "^2.0.5"
},
"dependencies": {
"@d3fc/d3fc-rebind": "^5.0.7",
"@d3fc/d3fc-rebind": "^5.0.8",
"d3-dispatch": "^1.0.1",

@@ -31,0 +29,0 @@ "d3-selection": "^1.0.2"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc