Skip to content

Commit

Permalink
voronoi mark + reindexed facets
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Aug 21, 2023
1 parent 4a6ef93 commit 972558c
Show file tree
Hide file tree
Showing 3 changed files with 1,189 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/marks/delaunay.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {constant, maybeTuple, maybeZ} from "../options.js";
import {applyPosition} from "../projection.js";
import {applyFrameAnchor, applyTransform} from "../style.js";
import {applyChannelStyles, applyDirectStyles, applyIndirectStyles} from "../style.js";
import {initializer} from "../transforms/basic.js";
import {basic, initializer} from "../transforms/basic.js";
import {exclusiveFacets} from "../transforms/exclusiveFacets.js";
import {maybeGroup} from "../transforms/group.js";

const delaunayLinkDefaults = {
Expand Down Expand Up @@ -296,6 +297,7 @@ export function hull(data, options) {
}

export function voronoi(data, options) {
options = basic(options, (data, facets) => exclusiveFacets(data, facets));
return delaunayMark(Voronoi, data, options);
}

Expand Down
Loading

0 comments on commit 972558c

Please sign in to comment.