File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -999,7 +999,14 @@ void AddBackgroundImageForVectorNode()
999999 }
10001000 void AddBorderWidth ( )
10011001 {
1002- borderWidth = mixin . strokeWeight ;
1002+ if ( mixin . individualStrokeWeights is not null )
1003+ {
1004+ if ( mixin . individualStrokeWeights . left > 0 ) borderLeftWidth = mixin . individualStrokeWeights . left ;
1005+ if ( mixin . individualStrokeWeights . right > 0 ) borderRightWidth = mixin . individualStrokeWeights . right ;
1006+ if ( mixin . individualStrokeWeights . top > 0 ) borderTopWidth = mixin . individualStrokeWeights . top ;
1007+ if ( mixin . individualStrokeWeights . bottom > 0 ) borderBottomWidth = mixin . individualStrokeWeights . bottom ;
1008+ }
1009+ else if ( mixin . strokeWeight > 0 ) borderWidth = mixin . strokeWeight ;
10031010 }
10041011 void AddBorderRadius ( RectangleCornerMixin rectangleCornerMixin , CornerMixin cornerMixin )
10051012 {
Original file line number Diff line number Diff line change @@ -360,7 +360,8 @@ public interface GeometryMixin
360360 StrokeCap ? strokeCap { get ; set ; }
361361 StrokeJoin ? strokeJoin { get ; set ; }
362362 object [ ] strokeGeometry { get ; set ; }
363- }
363+ IndividualStrokeWeights individualStrokeWeights { get ; set ; }
364+ }
364365
365366 public interface CornerMixin
366367 {
You can’t perform that action at this time.
0 commit comments