-
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.
Merge branch 'bezier-cleanup' into dev
- Loading branch information
Showing
26 changed files
with
43 additions
and
62 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/SVG-Morphic.package/Bezier2Segment.extension/instance/boundingBox.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,4 +1,4 @@ | ||
*SVG-Morphic | ||
boundingBox | ||
"Return the bounds containing the receiver" | ||
^super bounds encompass: (self valueAt: 0.5) | ||
|
||
^ super bounds encompass: (self valueAt: 0.5) |
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/Bezier2Segment.extension/instance/isLineSegment.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
isLineSegment | ||
"Return true if the receiver is a line segment." | ||
|
||
^false | ||
^ false |
1 change: 0 additions & 1 deletion
1
...SVG-Morphic.package/Bezier2Segment.extension/instance/primAddToEngine.fills.lineWidth..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
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/Bezier2Segment.extension/instance/runClass.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
runClass | ||
"Answer the run class for the receiver." | ||
|
||
^SVGBezier2SegmentRun | ||
^ SVGBezier2SegmentRun |
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
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/Bezier3Segment.extension/instance/isBezier3Segment.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
isBezier3Segment | ||
"Return true if the receiver is a cubic bezier segment." | ||
|
||
^true | ||
^ true |
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/Bezier3Segment.extension/instance/isLineSegment.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
isLineSegment | ||
"Return true if the receiver is a line segment." | ||
|
||
^false | ||
^ false |
1 change: 0 additions & 1 deletion
1
...SVG-Morphic.package/Bezier3Segment.extension/instance/primAddToEngine.fills.lineWidth..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
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/Bezier3Segment.extension/instance/runClass.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
runClass | ||
"Answer the run class for the receiver." | ||
|
||
^SVGBezier2SegmentRun | ||
^ SVGBezier2SegmentRun |
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
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/LineSegment.extension/instance/boundingBox.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
boundingBox | ||
"Return the bounds containing the receiver" | ||
|
||
^self bounds | ||
^ self bounds |
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/LineSegment.extension/instance/isBezier3Segment.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
isBezier3Segment | ||
"Return true if the receiver is a cubic bezier segment." | ||
|
||
^false | ||
^ false |
1 change: 0 additions & 1 deletion
1
...es/SVG-Morphic.package/LineSegment.extension/instance/primAddToEngine.fills.lineWidth..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
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/LineSegment.extension/instance/run.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
run | ||
"Answer the run for the receiver." | ||
|
||
^self runClass segments: (OrderedCollection with: self) | ||
^ self runClass segments: (OrderedCollection with: self) |
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/LineSegment.extension/instance/runClass.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,5 +1,4 @@ | ||
*SVG-Morphic | ||
runClass | ||
"Answer the run class for the receiver." | ||
|
||
^SVGLineSegmentRun | ||
^ SVGLineSegmentRun |
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
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 |
3 changes: 1 addition & 2 deletions
3
packages/SVG-Morphic.package/SVGBalloonRenderer.class/instance/renderEllipse.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
1 change: 0 additions & 1 deletion
1
packages/SVG-Morphic.package/SVGBalloonRenderer.class/instance/renderLine.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
1 change: 0 additions & 1 deletion
1
packages/SVG-Morphic.package/SVGBalloonRenderer.class/instance/renderPath.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
1 change: 0 additions & 1 deletion
1
packages/SVG-Morphic.package/SVGBalloonRenderer.class/instance/renderPolygon.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
1 change: 0 additions & 1 deletion
1
packages/SVG-Morphic.package/SVGBalloonRenderer.class/instance/renderPolyline.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
1 change: 0 additions & 1 deletion
1
packages/SVG-Morphic.package/SVGBalloonRenderer.class/instance/renderRect.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
1 change: 0 additions & 1 deletion
1
packages/SVG-Morphic.package/SVGBalloonRenderer.class/instance/renderText.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
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