Browse Source

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.
dev-feat-component_preview
chris 2 months ago
parent
commit
0496bb0295
  1. 3
      src/decorators/border.js

3
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) {

Loading…
Cancel
Save