File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -624,6 +624,7 @@ All marks support the following style options:
624
624
* ** opacity** - object opacity (a number between 0 and 1)
625
625
* ** mixBlendMode** - the [ blend mode] ( https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode ) (* e.g.* , * multiply* )
626
626
* ** shapeRendering** - the [ shape-rendering mode] ( https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering ) (* e.g.* , * crispEdges* )
627
+ * ** paintOrder** - the [ paint order] ( https://developer.mozilla.org/en-US/docs/Web/CSS/paint-order ) (* e.g.* , * stroke* )
627
628
* ** dx** - horizontal offset (in pixels; defaults to 0)
628
629
* ** dy** - vertical offset (in pixels; defaults to 0)
629
630
* ** target** - link target (e.g., “_ blank” for a new window); for use with the ** href** channel
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export function styles(
22
22
strokeDasharray,
23
23
opacity,
24
24
mixBlendMode,
25
+ paintOrder,
25
26
shapeRendering
26
27
} ,
27
28
channels ,
@@ -96,6 +97,7 @@ export function styles(
96
97
mark . target = string ( target ) ;
97
98
mark . opacity = impliedNumber ( copacity , 1 ) ;
98
99
mark . mixBlendMode = impliedString ( mixBlendMode , "normal" ) ;
100
+ mark . paintOrder = impliedString ( paintOrder , "normal" ) ;
99
101
mark . shapeRendering = impliedString ( shapeRendering , "auto" ) ;
100
102
101
103
return [
@@ -162,6 +164,7 @@ export function applyIndirectStyles(selection, mark) {
162
164
applyAttr ( selection , "stroke-miterlimit" , mark . strokeMiterlimit ) ;
163
165
applyAttr ( selection , "stroke-dasharray" , mark . strokeDasharray ) ;
164
166
applyAttr ( selection , "shape-rendering" , mark . shapeRendering ) ;
167
+ applyAttr ( selection , "paint-order" , mark . paintOrder ) ;
165
168
}
166
169
167
170
export function applyDirectStyles ( selection , mark ) {
You can’t perform that action at this time.
0 commit comments