Rename d3.svg.touches to d3.behavior.touches.

This commit is contained in:
Jason Davies 2012-01-09 08:35:57 +00:00
Родитель 30e6f51672
Коммит b426e78dce
4 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -149,7 +149,6 @@ d3.svg.js: \
src/svg/chord.js \
src/svg/diagonal.js \
src/svg/diagonal-radial.js \
src/svg/touches.js \
src/svg/symbol.js \
src/svg/axis.js \
src/svg/brush.js
@ -158,6 +157,7 @@ d3.behavior.js: \
src/behavior/behavior.js \
src/behavior/drag.js \
src/behavior/mouse.js \
src/behavior/touches.js \
src/behavior/zoom.js
d3.chart.js: \

18
d3.js поставляемый
Просмотреть файл

@ -3654,15 +3654,6 @@ function d3_svg_diagonalRadialProjection(projection) {
return [r * Math.cos(a), r * Math.sin(a)];
};
}
d3.svg.touches = function(container, touches) {
if (arguments.length < 2) touches = d3.event.touches;
return touches ? d3_array(touches).map(function(touch) {
var point = d3_svg_mousePoint(container, touch);
point.identifier = touch.identifier;
return point;
}) : [];
};
d3.svg.symbol = function() {
var type = d3_svg_symbolType,
size = d3_svg_symbolSize;
@ -4467,6 +4458,15 @@ function d3_behavior_mousePoint(container, e) {
}
return [x - rect.left, y - rect.top];
};
d3.behavior.touches = function(container, touches) {
if (arguments.length < 2) touches = d3.event.touches;
return touches ? d3_array(touches).map(function(touch) {
var point = d3_svg_mousePoint(container, touch);
point.identifier = touch.identifier;
return point;
}) : [];
};
// TODO unbind zoom behavior?
d3.behavior.zoom = function() {
var xyz = [0, 0, 0],

2
d3.min.js поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,4 +1,4 @@
d3.svg.touches = function(container, touches) {
d3.behavior.touches = function(container, touches) {
if (arguments.length < 2) touches = d3.event.touches;
return touches ? d3_array(touches).map(function(touch) {