Spaces:
Sleeping
Sleeping
File size: 346 Bytes
e7b2eb4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import "../core/array";
import "event";
import "mouse";
d3.touches = function(container, touches) {
if (arguments.length < 2) touches = d3_eventSource().touches;
return touches ? d3_array(touches).map(function(touch) {
var point = d3_mousePoint(container, touch);
point.identifier = touch.identifier;
return point;
}) : [];
};
|