Skip to content

Commit

Permalink
fix: correctly apply conditional dash offsets (#6599)
Browse files Browse the repository at this point in the history
fixes #6591
  • Loading branch information
domoritz committed Jun 9, 2020
1 parent 634954d commit 7a973bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/axis.ts
Expand Up @@ -205,7 +205,7 @@ export const CONDITIONAL_AXIS_PROP_INDEX: Record<
},
gridDashOffset: {
part: 'grid',
vgProp: 'strokeDash'
vgProp: 'strokeDashOffset'
},
gridOpacity: {
part: 'grid',
Expand All @@ -225,7 +225,7 @@ export const CONDITIONAL_AXIS_PROP_INDEX: Record<
},
tickDashOffset: {
part: 'ticks',
vgProp: 'strokeDash'
vgProp: 'strokeDashOffset'
},
tickOpacity: {
part: 'ticks',
Expand Down
2 changes: 1 addition & 1 deletion src/compile/axis/parse.ts
Expand Up @@ -286,7 +286,7 @@ function parseAxis(channel: PositionScaleChannel, model: UnitModel): AxisCompone
// 2. Certain properties are always included (see `propsToAlwaysIncludeConfig`'s declaration for more details)
(propsToAlwaysIncludeConfig.has(property) && hasConfigValue) ||
// 3. Conditional axis values and signals
isConditionalAxisValue<any>(configValue) || // need to set "any" as TS isn't smart enough to figure the generic parameter type yet
isConditionalAxisValue(configValue) ||
isSignalRef(configValue)
) {
// If a config is specified and is conditional, copy conditional value from axis config
Expand Down

0 comments on commit 7a973bf

Please sign in to comment.