"use strict" var vectorizeText = require("../index.js") var graph = vectorizeText("Hello world! 你好", { width:500, textBaseline: "top" }) console.log(graph) var svg = [''] graph.edges.forEach(function(e) { var p0 = graph.positions[e[0]] var p1 = graph.positions[e[1]] svg.push('') }) svg.push("") if(typeof window !== "undefined") { document.body.innerHTML = svg.join("") } else { console.log(svg.join("")) }