1- import { create , group , path , select , Delaunay } from "d3" ;
1+ import { group , path , select , Delaunay } from "d3" ;
2+ import { create } from "../create.js" ;
23import { Curve } from "../curve.js" ;
34import { constant , maybeTuple , maybeZ } from "../options.js" ;
45import { Mark } from "../plot.js" ;
@@ -57,7 +58,7 @@ class DelaunayLink extends Mark {
5758 this . curve = Curve ( curve , tension ) ;
5859 markers ( this , options ) ;
5960 }
60- render ( index , scales , channels , dimensions ) {
61+ render ( index , scales , channels , dimensions , context ) {
6162 const { x : X , y : Y , z : Z } = channels ;
6263 const { curve} = this ;
6364 const [ cx , cy ] = applyFrameAnchor ( this , dimensions ) ;
@@ -113,7 +114,7 @@ class DelaunayLink extends Mark {
113114 . call ( applyMarkers , mark , newChannels ) ;
114115 }
115116
116- return create ( "svg:g" )
117+ return create ( "svg:g" , context )
117118 . call ( applyIndirectStyles , this , scales , dimensions )
118119 . call ( applyTransform , this , scales )
119120 . call ( Z
@@ -137,7 +138,7 @@ class AbstractDelaunayMark extends Mark {
137138 defaults
138139 ) ;
139140 }
140- render ( index , scales , channels , dimensions ) {
141+ render ( index , scales , channels , dimensions , context ) {
141142 const { x : X , y : Y , z : Z } = channels ;
142143 const [ cx , cy ] = applyFrameAnchor ( this , dimensions ) ;
143144 const xi = X ? i => X [ i ] : constant ( cx ) ;
@@ -153,7 +154,7 @@ class AbstractDelaunayMark extends Mark {
153154 . call ( applyChannelStyles , mark , channels ) ;
154155 }
155156
156- return create ( "svg:g" )
157+ return create ( "svg:g" , context )
157158 . call ( applyIndirectStyles , this , scales , dimensions )
158159 . call ( applyTransform , this , scales )
159160 . call ( Z
@@ -196,7 +197,7 @@ class Voronoi extends Mark {
196197 voronoiDefaults
197198 ) ;
198199 }
199- render ( index , scales , channels , dimensions ) {
200+ render ( index , scales , channels , dimensions , context ) {
200201 const { x : X , y : Y , z : Z } = channels ;
201202 const [ cx , cy ] = applyFrameAnchor ( this , dimensions ) ;
202203 const xi = X ? i => X [ i ] : constant ( cx ) ;
@@ -215,7 +216,7 @@ class Voronoi extends Mark {
215216 . call ( applyChannelStyles , this , channels ) ;
216217 }
217218
218- return create ( "svg:g" )
219+ return create ( "svg:g" , context )
219220 . call ( applyIndirectStyles , this , scales , dimensions )
220221 . call ( applyTransform , this , scales )
221222 . call ( Z
0 commit comments