From eac1eb2e91f9b26c22e950c668c4e87ea939751e Mon Sep 17 00:00:00 2001 From: niekes Date: Sun, 10 Sep 2017 18:34:57 +0200 Subject: [PATCH] update version --- package.json | 2 +- src/draw/drawTriangle.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6c40404..20e622b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-3d", - "version": "0.0.4", + "version": "0.0.5", "description": "3D projection ", "keywords": [ "d3", diff --git a/src/draw/drawTriangle.js b/src/draw/drawTriangle.js index b1daa6a..3bffbac 100644 --- a/src/draw/drawTriangle.js +++ b/src/draw/drawTriangle.js @@ -1,3 +1,9 @@ export function drawTriangle(d){ - return 'M' + d[0].projected.x + ',' + d[0].projected.y + 'L' + d[1].projected.x + ',' + d[1].projected.y + 'L' + d[2].projected.x + ',' + d[2].projected.y + 'Z'; + return "M" + d[0].projected.x + + "," + d[0].projected.y + + "L" + d[1].projected.x + + "," + d[1].projected.y + + "L" + d[2].projected.x + + "," + d[2].projected.y + + "Z"; }