From 0496bb02957e01a0f6490159fa77720436fe88a6 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 12 May 2025 11:13:07 +0200 Subject: [PATCH] FIX,IMPRO,REFA: removed shape invokation on border constructor the "default" value would always override the border-shape that might be set in the component earlier by the clip() function. --- src/decorators/border.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/decorators/border.js b/src/decorators/border.js index 9f6c205..37bf05d 100644 --- a/src/decorators/border.js +++ b/src/decorators/border.js @@ -77,13 +77,12 @@ const Define = Object.freeze({ * @extends Sides */ class Border extends Sides { - constructor(width = 0, color = Colors.black, style = LineStyles.solid, defaultUnit = SizeUnits.PIXEL, shape = Shapes.Rectangle) { + constructor(width = 0, color = Colors.black, style = LineStyles.solid, defaultUnit = SizeUnits.PIXEL) { super('border', 0, defaultUnit); this._fFirst = new BorderDefinition(width, color, style); this._fSecond = new BorderDefinition(width, color, style); this._fThird = new BorderDefinition(width, color, style); this._fForth = new BorderDefinition(width, color, style); - this._shape = shape; } setByIndex(index, value) {