Skip to content

Commit

Permalink
Use let and const
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Aug 21, 2019
1 parent d12d48f commit 8f47fa6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/vega-voronoi/src/Voronoi.js
Expand Up @@ -20,14 +20,14 @@ Voronoi.Definition = {
]
};

var prototype = inherits(Voronoi, Transform);
const prototype = inherits(Voronoi, Transform);

var defaultExtent = [-1e5, -1e5, 1e5, 1e5];
const defaultExtent = [-1e5, -1e5, 1e5, 1e5];

prototype.transform = function(_, pulse) {
var as = _.as || 'path',
data = pulse.source,
delaunay, extent, voronoi, polygon, i, n;
const as = _.as || 'path',
data = pulse.source;
let delaunay, extent, voronoi, polygon, i, n;

// configure and construct voronoi diagram
delaunay = Delaunay.from(data, _.x, _.y);
Expand Down

0 comments on commit 8f47fa6

Please sign in to comment.