Permalink
Browse files

Include HEAD revision in protovis-{d,r}X.X.js.

This way we know exactly which version is in use, even for pre-release.
  • Loading branch information...
Mike Bostock
Mike Bostock committed Feb 24, 2010
1 parent 5ced743 commit 9330e78ea3cdfec145addb05a83529d5c86b27c5
Showing with 10 additions and 2 deletions.
  1. +4 −1 Makefile
  2. +6 −1 TODO
View
@@ -87,10 +87,13 @@ protovis-d3.2.js: $(JS_FILES) Makefile
grep ' ' -Hn $(JS_FILES) && echo "ERROR: tab" && exit 1 || true
grep '' -Hn $(JS_FILES) && echo "ERROR: dos newline" && exit 1 || true
grep ' $$' -Hn $(JS_FILES) && echo "ERROR: trailing space" && exit 1 || true
- cat $(JS_FILES) > $@
+ rm -f $@
+ echo "// $(shell git rev-parse HEAD)" >> $@
+ cat $(JS_FILES) >> $@
protovis-r3.2.js: $(JS_FILES) Makefile
rm -f $@
+ echo "// $(shell git rev-parse --short HEAD)" >> $@
cat $(JS_LANG_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat $(JS_PV_FILES) | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
cat src/lang/init.js | java -jar lib/yuicompressor-2.4.2.jar --charset UTF-8 --type js >> $@
View
7 TODO
@@ -11,6 +11,8 @@ layout/Layot.js
- allow or require pv.Dom.Node as input, rather than maps?
- standardize node.depth, node.size? otherwise hide internal attributes?
- allow interactive expanding / collapsing of tree nodes?
+- layouts should allow user to change the associated data
+- layouts should not cache by default
layout/Tree.js
- allow depth and breadth offset to be computed automatically
@@ -34,7 +36,7 @@ mark/Mark.js
- standardize window.event access for event handlers?
- antialias doesn't always work as expected; requires pixel rounding?
- event("ignore") to disable pointer-events?
-- dot-dash strokes
+- dot-dash strokes using stroke-dasharray
mark/Panel.js
- support transform on panel directly, making pv.Behavior.transform more useful
@@ -48,6 +50,9 @@ behavior/*
physics/Simulation.js
- use a constraint rather than `fixed` property to allow dragging?
+physics/LinkConstraint.js
+- should support an alpha parameter, like pv.Constraint.position
+
text/CsvFormat.js
- return an object with a .format method, or the format function?
- should other Formats return a function with a self-reference .format method?

0 comments on commit 9330e78

Please sign in to comment.