Files
iD/Makefile
John Firebaugh 2c40de62be Add iD.behavior.drag
`iD.behavior.drag` is like `d3.behavior.drag`, with the following differences:

* The `origin` function is expected to return an [x, y] tuple rather than an
  {x, y} object.
* The events are `start`, `move`, and `end`.
  (https://github.com/mbostock/d3/issues/563)
* The `start` event is not dispatched until the first cursor movement occurs.
  (https://github.com/mbostock/d3/pull/368)
* The `move` event has a `loc` and `dxdy` [x, y] tuple properties rather
  than `x`, `y`, `dx`, and `dy` properties.
* The `end` event is not dispatched if no movement occurs.
* An `off` function is available that unbinds the drag's internal event handlers.
* Delegation is supported via the `delegate` function.
2012-12-21 12:10:43 -08:00

54 lines
993 B
Makefile

# See the README for installation instructions.
NODE_PATH ?= ./node_modules
# JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
JS_BEAUTIFIER = uglifyjs -b -i 2 -nm -ns
JS_COMPILER = uglifyjs
LOCALE ?= en_US
all: \
iD.js \
iD.min.js
.INTERMEDIATE iD.js: \
js/lib/d3.v3.js \
js/lib/d3.geo.tile.js \
js/lib/d3.keybinding.js \
js/lib/d3.latedrag.js \
js/lib/d3.one.js \
js/lib/d3.size.js \
js/lib/d3.typeahead.js \
js/lib/jxon.js \
js/lib/lodash.js \
js/lib/ohauth.js \
js/lib/sha.js \
js/id/start.js \
js/id/id.js \
js/id/connection.js \
js/id/oauth.js \
js/id/taginfo.js \
js/id/util.js \
js/id/actions.js \
js/id/actions/*.js \
js/id/behavior.js \
js/id/behavior/*.js \
js/id/modes.js \
js/id/modes/*.js \
js/id/controller/*.js \
js/id/format/*.js \
js/id/graph/*.js \
js/id/renderer/*.js \
js/id/ui/*.js \
js/id/end.js
iD.js: Makefile
@rm -f $@
cat $(filter %.js,$^) > $@
%.min.js: %.js Makefile
@rm -f $@
$(JS_COMPILER) $< -o $@
clean:
rm -f iD*.js