-
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.
- Loading branch information
Showing
28 changed files
with
76 additions
and
46 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
files=$(find . -type f -name "*.st") | ||
|
||
#Trailing whitespace | ||
sed -i -e 's/[ \t]*$//' $files | ||
|
||
#Point before parentheses | ||
sed -i 's/\.)/)/g' $files | ||
sed -i 's/\.]/]/g' $files | ||
sed -i 's/\.}/}/g' $files | ||
|
||
#Space before parentheses | ||
sed -i 's/[ ]\+)/)/g' $files | ||
sed -i 's/[ ]\+]/]/g' $files | ||
sed -i 's/[ ]\+}/}/g' $files | ||
|
||
#Space after parentheses | ||
sed -i 's/\[[ ]\+/[/g' $files | ||
sed -i 's/([ ]\+/(/g' $files | ||
sed -i 's/{[ ]\+/{/g' $files | ||
|
||
#Old syntax to new syntax | ||
sed -i 's/_/:=/g' $files | ||
|
||
#Spaces befor dots | ||
sed -i 's/[ ]\+\./\./g' $files | ||
|
||
#Dot after return consistency | ||
sed -i '$s/\.$//' $files |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/readStylesOf..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,5 @@ | ||
helpers | ||
readStylesOf: aMorph | ||
|
||
aMorph style keysAndValuesDo: [ :key :value | | ||
aMorph style keysAndValuesDo: [:key :value | | ||
self at: key put: value asString] |
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
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
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGExporter.class/instance/applyStyleOf.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
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
2 changes: 1 addition & 1 deletion
2
packages/Tests-SVG-Linter.package/SVGScopedEnvironment.class/instance/fetchClasses..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,7 +1,7 @@ | ||
testing | ||
fetchClasses: aCollection | ||
|
||
aCollection do: [ :aClass | | ||
aCollection do: [:aClass | | ||
aClass category ifNotNil: [ | ||
(self category: aClass category) | ||
add: aClass name]] |
2 changes: 1 addition & 1 deletion
2
.../Tests-SVG-Morphic.package/MatrixTransfomr2x3DecomposeTest.class/instance/testRotation.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,5 @@ | ||
test ing - single | ||
testRotation | ||
|
||
{0. 1. 30. 90 . 120. 179. 180. -1. -89. -90. -120 } | ||
{0. 1. 30. 90. 120. 179. 180. -1. -89. -90. -120} | ||
do: [:anAngle | self assert: anAngle closeTo: (MatrixTransform2x3 withAngle: anAngle) compositeRotation] |
2 changes: 1 addition & 1 deletion
2
...ges/Tests-SVG-Morphic.package/MatrixTransfomr2x3DecomposeTest.class/instance/testScale.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,5 @@ | ||
test ing - single | ||
testScale | ||
|
||
{ 1 @ 1. 1 @ 2. 2 @ 1. -2 @ 1 . 1000 @ 5000. 0 @ 1. 0.45 @ 0.867} | ||
{1 @ 1. 1 @ 2. 2 @ 1. -2 @ 1. 1000 @ 5000. 0 @ 1. 0.45 @ 0.867} | ||
do: [:aPoint | self assert: aPoint closeTo: (MatrixTransform2x3 withScale: aPoint) compositeScale] |
4 changes: 2 additions & 2 deletions
4
...ages/Tests-SVG-Morphic.package/MatrixTransfomr2x3DecomposeTest.class/instance/testSkew.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,5 @@ | ||
test ing - single | ||
testSkew | ||
|
||
{0. 1. 30. 89 . -1. -30. -80 } | ||
do: [:anAngle | self assert: anAngle closeTo: (MatrixTransform2x3 withSkew: anAngle @ 0 ) compositeSkew] | ||
{0. 1. 30. 89. -1. -30. -80} | ||
do: [:anAngle | self assert: anAngle closeTo: (MatrixTransform2x3 withSkew: anAngle @ 0) compositeSkew] |
2 changes: 1 addition & 1 deletion
2
...Tests-SVG-Morphic.package/MatrixTransfomr2x3DecomposeTest.class/instance/testTranslate.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,5 @@ | ||
test ing - single | ||
testTranslate | ||
|
||
{ 1 @ 1. 1 @ 2. 2 @ 1. -2 @ 1 . 1000 @ 5000. 0 @ 1} | ||
{1 @ 1. 1 @ 2. 2 @ 1. -2 @ 1. 1000 @ 5000. 0 @ 1} | ||
do: [:aPoint | self assert: aPoint closeTo: (MatrixTransform2x3 withOffset: aPoint) compositeTranslation] |
8 changes: 4 additions & 4 deletions
8
packages/Tests-SVG-Morphic.package/SVGMorphTest.class/instance/submorphBoundsOf..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,7 +1,7 @@ | ||
testing - properties | ||
submorphBoundsOf: aMorph | ||
|
||
^ ((aMorph submorphs collect: [ :submorph | submorph bounds origin x]) asSortedArray first) @ | ||
((aMorph submorphs collect: [ :submorph | submorph bounds origin y]) asSortedArray first) | ||
corner: ((aMorph submorphs collect: [ :submorph | submorph bounds corner x]) asSortedArray last) @ | ||
((aMorph submorphs collect: [ :submorph | submorph bounds corner y]) asSortedArray last) | ||
^ ((aMorph submorphs collect: [:submorph | submorph bounds origin x]) asSortedArray first) @ | ||
((aMorph submorphs collect: [:submorph | submorph bounds origin y]) asSortedArray first) | ||
corner: ((aMorph submorphs collect: [:submorph | submorph bounds corner x]) asSortedArray last) @ | ||
((aMorph submorphs collect: [:submorph | submorph bounds corner y]) asSortedArray last) |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello{ hi] {}) { test. hel { . |