fix box options not working

This commit is contained in:
louisnw
2024-05-06 12:26:21 +01:00
parent 2d1ff5ce46
commit 299ad6a4ae
3 changed files with 3 additions and 2 deletions

View File

@ -64,6 +64,7 @@ class TwoPointDrawing(Drawing):
{{ {{
lineColor: '{color}', lineColor: '{color}',
lineStyle: {as_enum(style, LINE_STYLE)}, lineStyle: {as_enum(style, LINE_STYLE)},
width: {width},
}} }}
) )
{chart.id}.series.attachPrimitive({self.id}) {chart.id}.series.attachPrimitive({self.id})

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,7 @@ export class Box extends TwoPointDrawing {
super(p1, p2, options); super(p1, p2, options);
this._options = { this._options = {
...defaultBoxOptions, ...defaultBoxOptions,
...this._options, ...options,
} }
this._paneViews = [new BoxPaneView(this)]; this._paneViews = [new BoxPaneView(this)];
} }