-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve parameter naming in SVGBalloonRenderer for bezier
- Loading branch information
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
...nRenderer.class/instance/renderBezier2SegmentRun.fill.stroke.strokeWidth.transform.on..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
rendering | ||
renderBezier2SegmentRun: segments fill: fillStyle stroke: strokeStyle strokeWidth: aNumber transform: aMatrix on: aCanvas | ||
renderBezier2SegmentRun: aSegmentRun fill: aFillStyle stroke: aStrokeStyle strokeWidth: aNumber transform: aMatrix on: aCanvas | ||
|
||
aCanvas preserveStateDuring: [:bc | | ||
bc | ||
aaLevel: 4; | ||
drawBezierShape: (segments stitchedClosed points collect: [:p | aMatrix transformPoint: p]) | ||
color: fillStyle | ||
drawBezierShape: (aSegmentRun stitchedClosed points collect: [:p | aMatrix transformPoint: p]) | ||
color: aFillStyle | ||
borderWidth: 0 | ||
borderColor: Color transparent; | ||
drawGeneralBezierShape: (segments stroke: aNumber transform: aMatrix) | ||
color: strokeStyle | ||
drawGeneralBezierShape: (aSegmentRun stroke: aNumber transform: aMatrix) | ||
color: aStrokeStyle | ||
borderWidth: 0 | ||
borderColor: Color transparent] |
8 changes: 4 additions & 4 deletions
8
...oonRenderer.class/instance/renderBezier3Segments.fill.stroke.strokeWidth.transform.on..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
rendering | ||
renderBezier3Segments: segments fill: fillStyle stroke: strokeStyle strokeWidth: aNumber transform: aMatrix on: aCanvas | ||
renderBezier3Segments: aCollection fill: aFillStyle stroke: aStrokeStyle strokeWidth: aNumber transform: aMatrix on: aCanvas | ||
|
||
|bezier2Run| | ||
|
||
bezier2Run := SVGBezier2SegmentRun | ||
fromBezier3Segments: segments | ||
fromBezier3Segments: aCollection | ||
precision: aMatrix compositeScale r reciprocal. | ||
|
||
self | ||
renderBezier2SegmentRun: bezier2Run | ||
fill: fillStyle | ||
stroke: strokeStyle | ||
fill: aFillStyle | ||
stroke: aStrokeStyle | ||
strokeWidth: aNumber | ||
transform: aMatrix | ||
on: aCanvas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters