Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created January 9, 2013 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roundrobin/4489673 to your computer and use it in GitHub Desktop.
Save roundrobin/4489673 to your computer and use it in GitHub Desktop.
An inlet to Tributary
{"description":"An inlet to Tributary","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.5560564910374796,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"hidepanel":false}
var svg = d3.select("svg");
var fe = svg.append("foreignObject")
.attr("width", 300)
.attr("height", 200)
.attr("class", "textarea-fallback")
.append("xhtml:body")
.style("background", "red")
.html("<p width='100px' height='100px' id='svg-input' style='height: 500px;width:500px;position:absolute;left:200;top:100px'>Hello</p;>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment