Skip to content

Commit

Permalink
Drop shadow follow-up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed May 4, 2023
1 parent d4c275e commit b218395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/unit-tests/svgrenderer/shadows/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ QUnit.test('Series shadows', function (assert) {

assert.strictEqual(
chart.series[0].graph.attr('filter'),
'url(#drop-shadow-0)',
`url(#highcharts-drop-shadow-${chart.index})`,
'Shadows should be updated when old options defined as object and new as boolean (#12091).'
);

Expand Down
2 changes: 1 addition & 1 deletion ts/Core/Renderer/SVG/SVGRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ class SVGRenderer implements SVGRendererLike {
): string {
const
id = [
`drop-shadow-${this.chartIndex}`,
`highcharts-drop-shadow-${this.chartIndex}`,
...Object.keys(shadowOptions)
.map((key: string): number|string =>
(shadowOptions as any)[key]
Expand Down

0 comments on commit b218395

Please sign in to comment.