Skip to content

Commit

Permalink
Bloc host: all kinds of lines need outskirts centered by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Aug 29, 2023
1 parent d02260d commit 8a4db8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 3 additions & 1 deletion src/Roassal3-Bloc/RSAbstractLine.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ Extension { #name : #RSAbstractLine }
{ #category : #'*Roassal3-Bloc' }
RSAbstractLine >> asBlElement [

^ self asBlGeometry asElement
^ BlElement new
roassalShape: self;
geometry: self asBlGeometry;
beOutskirtsCentered;
in: [ :e | self updateBlElement: e ];
yourself
]
Expand Down
12 changes: 0 additions & 12 deletions src/Roassal3-Bloc/RSBezier.extension.st
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
Extension { #name : #RSBezier }

{ #category : #'*Roassal3-Bloc' }
RSBezier >> asBlElement [
"Note: We don't use the geometry's #asElement because it answers an element that doesn't use the 'blPaint' to fill."

^ BlElement new
roassalShape: self;
geometry: self asBlGeometry;
outskirts: BlOutskirts centered;
in: [ :e | self updateBlElement: e ];
yourself
]

{ #category : #'*Roassal3-Bloc' }
RSBezier >> asBlGeometry [

Expand Down

0 comments on commit 8a4db8c

Please sign in to comment.