Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes for Firefox.

  • Loading branch information...
commit e9787814e612f36be29127ae0e7b99a53d1c4b33 1 parent 2661082
@mbostock mbostock authored
Showing with 118 additions and 1 deletion.
  1. +0 −1  talk/20110921/bounding.html
  2. +4 −0 talk/20110921/collapsible.html
  3. +4 −0 talk/20110921/collision-attraction.html
  4. +4 −0 talk/20110921/collision.html
  5. +4 −0 talk/20110921/depth-foci.html
  6. +4 −0 talk/20110921/foci.html
  7. +4 −0 talk/20110921/force.html
  8. +4 −0 talk/20110921/gravity-charge.html
  9. +4 −0 talk/20110921/gravity.html
  10. +5 −0 talk/20110921/index.html
  11. +4 −0 talk/20110921/labels.html
  12. +4 −0 talk/20110921/link-foci.html
  13. +4 −0 talk/20110921/links.html
  14. +4 −0 talk/20110921/medals-live.html
  15. +4 −0 talk/20110921/miserables.html
  16. +4 −0 talk/20110921/momentum.html
  17. +4 −0 talk/20110921/more-foci.html
  18. +4 −0 talk/20110921/negative-charge.html
  19. +4 −0 talk/20110921/parent-foci.html
  20. +4 −0 talk/20110921/patent-suits.html
  21. +4 −0 talk/20110921/positive-charge.html
  22. +4 −0 talk/20110921/quantitative-foci.html
  23. +4 −0 talk/20110921/relaxation.html
  24. +4 −0 talk/20110921/ribbon.html
  25. +4 −0 talk/20110921/states.html
  26. +4 −0 talk/20110921/static.html
  27. +5 −0 talk/20110921/style.css
  28. +4 −0 talk/20110921/transition.html
  29. +4 −0 talk/20110921/tree.html
  30. +4 −0 talk/20110921/verlet.html
View
1  talk/20110921/bounding.html
@@ -46,7 +46,6 @@
svg.append("svg:rect")
.attr("width", w)
.attr("height", h)
- .style("fill", "none")
.style("stroke", "#000");
d3.json("miserables.json", function(json) {
View
4 talk/20110921/collapsible.html
@@ -46,6 +46,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("flare.json", function(json) {
root = json;
update();
View
4 talk/20110921/collision-attraction.html
@@ -45,6 +45,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
svg.selectAll("circle")
.data(nodes.slice(1))
.enter().append("svg:circle")
View
4 talk/20110921/collision.html
@@ -45,6 +45,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
svg.selectAll("circle")
.data(nodes.slice(1))
.enter().append("svg:circle")
View
4 talk/20110921/depth-foci.html
@@ -27,6 +27,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("flare.json", function(root) {
var nodes = flatten(root),
links = d3.layout.tree().links(nodes);
View
4 talk/20110921/foci.html
@@ -42,6 +42,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
svg.selectAll("circle")
.data(nodes)
.enter().append("svg:circle")
View
4 talk/20110921/force.html
@@ -28,6 +28,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("flare.json", function(root) {
var nodes = flatten(root),
links = d3.layout.tree().links(nodes);
View
4 talk/20110921/gravity-charge.html
@@ -27,6 +27,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
4 talk/20110921/gravity.html
@@ -27,6 +27,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
5 talk/20110921/index.html
@@ -21,22 +21,27 @@
width: 1280px;
height: 800px;
background: #fff;
+ -moz-transition-property: -moz-transform, opacity;
+ -moz-transition-duration: 500ms;
-webkit-transition-property: -webkit-transform, opacity;
-webkit-transition-duration: 500ms;
}
#previous {
opacity: 0;
+ -moz-transform: translateX(-1300px);
-webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1300, 0, 0, 1);
}
#current {
opacity: 1;
+ -moz-transform: translateX(0);
-webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
#next {
opacity: 0;
+ -moz-transform: translateX(1300px);
-webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1300, 0, 0, 1);
}
View
4 talk/20110921/labels.html
@@ -39,6 +39,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("miserables.json", function(json) {
var link = svg.selectAll("line")
.data(json.links)
View
4 talk/20110921/link-foci.html
@@ -43,6 +43,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
svg.selectAll("circle")
.data(centers)
.enter().append("svg:circle")
View
4 talk/20110921/links.html
@@ -32,6 +32,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
4 talk/20110921/medals-live.html
@@ -46,6 +46,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function(e) {
var k = e.alpha * .2;
nodes.forEach(function(node) {
View
4 talk/20110921/miserables.html
@@ -28,6 +28,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("miserables.json", function(data) {
force
.nodes(data.nodes)
View
4 talk/20110921/momentum.html
@@ -36,6 +36,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
4 talk/20110921/more-foci.html
@@ -42,6 +42,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
svg.selectAll("circle")
.data(nodes)
.enter().append("svg:circle")
View
4 talk/20110921/negative-charge.html
@@ -27,6 +27,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
4 talk/20110921/parent-foci.html
@@ -26,6 +26,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("flare.json", function(root) {
var nodes = flatten(root),
links = d3.layout.tree().links(nodes);
View
4 talk/20110921/patent-suits.html
@@ -108,6 +108,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
// Per-type markers, as they don't inherit styles.
svg.append("svg:defs").selectAll("marker")
.data(["suit", "licensing", "resolved"])
View
4 talk/20110921/positive-charge.html
@@ -27,6 +27,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
4 talk/20110921/quantitative-foci.html
@@ -41,6 +41,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function(e) {
var k = e.alpha * .1;
nodes.forEach(function(node) {
View
4 talk/20110921/relaxation.html
@@ -22,6 +22,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
var desired = svg.append("svg:line")
.attr("x1", w / 6)
.attr("x2", 5 * w / 6)
View
4 talk/20110921/ribbon.html
@@ -42,6 +42,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
var path = svg.append("svg:path")
.data([nodes]);
View
4 talk/20110921/states.html
@@ -44,6 +44,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("us-states.json", function(states) {
var nodes = [],
links = [];
View
4 talk/20110921/static.html
@@ -33,6 +33,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
5 talk/20110921/style.css
@@ -25,6 +25,11 @@ svg {
font: 300 36px "Helvetica Neue";
}
+rect {
+ fill: none;
+ pointer-events: all;
+}
+
pre {
font-size: 18px;
}
View
4 talk/20110921/transition.html
@@ -32,6 +32,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
View
4 talk/20110921/tree.html
@@ -25,6 +25,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
d3.json("flare.json", function(root) {
var nodes = flatten(root),
links = d3.layout.tree().links(nodes);
View
4 talk/20110921/verlet.html
@@ -36,6 +36,10 @@
.attr("width", w)
.attr("height", h);
+svg.append("svg:rect")
+ .attr("width", w)
+ .attr("height", h);
+
force.on("tick", function() {
svg.selectAll("circle")
.attr("cx", function(d) { return d.x; })
Please sign in to comment.
Something went wrong with that request. Please try again.