|
@ -77,13 +77,12 @@ const Define = Object.freeze({ |
|
|
* @extends Sides |
|
|
* @extends Sides |
|
|
*/ |
|
|
*/ |
|
|
class Border 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); |
|
|
super('border', 0, defaultUnit); |
|
|
this._fFirst = new BorderDefinition(width, color, style); |
|
|
this._fFirst = new BorderDefinition(width, color, style); |
|
|
this._fSecond = new BorderDefinition(width, color, style); |
|
|
this._fSecond = new BorderDefinition(width, color, style); |
|
|
this._fThird = new BorderDefinition(width, color, style); |
|
|
this._fThird = new BorderDefinition(width, color, style); |
|
|
this._fForth = new BorderDefinition(width, color, style); |
|
|
this._fForth = new BorderDefinition(width, color, style); |
|
|
this._shape = shape; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
setByIndex(index, value) { |
|
|
setByIndex(index, value) { |
|
|