Skip to content

Instantly share code, notes, and snippets.

@tmcw
Last active September 22, 2015 15:45
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 tmcw/b71184a12ca28a347556 to your computer and use it in GitHub Desktop.
Save tmcw/b71184a12ca28a347556 to your computer and use it in GitHub Desktop.

I want to test https://github.com/mapbox/canvas-linechart

  • node-canvas works immediately but renders fonts very incorrectly. this is a known bug, Automattic/node-canvas#624 with no solution yet
  • rewinding node-canvas to an earlier version just makes it crash

next: electron. possibly possible but would probably require video drivers on travis, which sucks.

next: phantomjs. not compatible with my boring old commmonjs modules. useful methods like evaluateJavascript are documented but not present.

right now i've got:

  • phantomjs module
  • tape module that runs a phantomjs harness script

but passing variables between phantomjs and node space is near-impossible and the magic that it's trying to pull off is entirely evil.

next: maybe omgcanvas will work: nope, only runs within plask


maybe electron will save the day: no. binary incompatibility means that i can't use node-mapnik with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment