-
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
326 changed files
with
647 additions
and
653 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,38 @@ | ||
#!/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 | ||
|
||
#Second Line is new line (Doesn't work with comments) | ||
#sed -i '3,3s/[^"\S]\+/\n&/' $files | ||
|
||
#Remove Space after and before | | ||
sed -i -E 's/\|(\s)*(\S*)(\s)*\|/\|\2\|/g' $files | ||
|
||
#Old syntax to new syntax | ||
sed -i 's/_/:=/g' $files | ||
|
||
#Spaces befor dots (To strict right now) | ||
#sed -i 's/[ ]\+\./\./g' $files | ||
|
||
#Spaces around @ | ||
sed -i 's/[ ]*@[ ]*/ @ /g' $files | ||
|
||
#Dot after return consistency | ||
sed -i '$s/\.$//' $files |
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-Editor.package/SVGEditor.class/instance/buildAndOpen.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
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
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGEditor.class/instance/buildWith..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
6 changes: 3 additions & 3 deletions
6
packages/SVG-Editor.package/SVGEditorModel.class/instance/actionSaveFile.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
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGEditorModel.class/instance/displayNameOf..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 @@ | ||
accessing | ||
displayNameOf: aNode | ||
|
||
^ aNode displayName |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGEditorModel.class/instance/selectElement..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,6 +1,6 @@ | ||
accessing | ||
selectElement: anElement | ||
|
||
|current| | ||
selectedPath := OrderedCollection new. | ||
current := anElement. | ||
|
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGEditorModel.class/instance/selectedElement..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 @@ | ||
accessing | ||
selectedElement: anObject | ||
|
||
selectedElement := anObject. | ||
self | ||
self | ||
changed: #selectedElement; | ||
changed: #infoForSelectedElement |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGEditorModel.class/instance/selectedElement.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 @@ | ||
accessing | ||
selectedElement | ||
|
||
^ selectedElement |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGEditorModel.class/instance/selectedPath.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 @@ | ||
accessing | ||
selectedPath | ||
|
||
^ selectedPath |
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-Editor.package/SVGInfoPanelGenerator.class/class/for..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,6 +1,6 @@ | ||
accessing | ||
for: aMorph | ||
|
||
aMorph | ||
aMorph | ||
ifNil: [^ Array new]. | ||
^ aMorph accept: self new |
3 changes: 1 addition & 2 deletions
3
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/initialize.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,6 @@ | ||
initialize-release | ||
initialize | ||
|
||
self | ||
self | ||
keys: OrderedCollection new; | ||
values: OrderedCollection new | ||
|
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/readCircleAttributesOf..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,6 +1,6 @@ | ||
helpers | ||
readCircleAttributesOf: aCircle | ||
|
||
self | ||
self | ||
at: 'Position' put: aCircle rectangle center asString; | ||
at: 'Radius' put: (aCircle rectangle width / 2) asString |
5 changes: 2 additions & 3 deletions
5
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/readCommonAttributesOf..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,8 +1,7 @@ | ||
helpers | ||
readCommonAttributesOf: aMorph | ||
|
||
self | ||
self | ||
at: 'Type' put: aMorph humanReadableClassName; | ||
at: 'ID' put: aMorph id; | ||
readStylesOf: aMorph. | ||
|
||
readStylesOf: aMorph |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/readEllipseAttributesOf..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 @@ | ||
helpers | ||
readEllipseAttributesOf: anEllipse | ||
|
||
self | ||
self | ||
at: 'Position' put: anEllipse rectangle center asString; | ||
at: 'Horizontal Radius' put: (anEllipse rectangle width / 2) asString; | ||
at: 'Vertical Radius' put: (anEllipse rectangle height / 2) asString |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/readLineAttributesOf..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,6 +1,6 @@ | ||
helpers | ||
readLineAttributesOf: aLine | ||
|
||
self | ||
self | ||
at: 'Start' put: aLine rectangle origin asString; | ||
at: 'End' put: aLine rectangle corner 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ helpers | |
readPointsOf: aPolygonalMorph | ||
|
||
self at: 'Points' put: (aPolygonalMorph points joinSeparatedBy: ' ') | ||
|
2 changes: 1 addition & 1 deletion
2
...ges/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/readRectangleAttributesOf..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 @@ | ||
helpers | ||
readRectangleAttributesOf: aRectangle | ||
|
||
self | ||
self | ||
at: 'Position' put: aRectangle rectangle origin asString; | ||
at: 'Width' put: (aRectangle rectangle width) asString; | ||
at: 'Height' put: (aRectangle rectangle height) asString |
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] |
5 changes: 2 additions & 3 deletions
5
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGCircle..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,8 +1,7 @@ | ||
visiting | ||
visitSVGCircle: aCircle | ||
^ self | ||
|
||
^ self | ||
readCommonAttributesOf: aCircle; | ||
readCircleAttributesOf: aCircle; | ||
asList | ||
|
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGEllipse..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 @@ | ||
visiting | ||
visitSVGEllipse: anEllipse | ||
^ self | ||
|
||
^ self | ||
readCommonAttributesOf: anEllipse; | ||
readEllipseAttributesOf: anEllipse; | ||
asList |
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGGroup..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,6 +1,6 @@ | ||
visiting | ||
visitSVGGroup: aGroup | ||
^ self | ||
|
||
^ self | ||
readCommonAttributesOf: aGroup; | ||
asList |
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGLine..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 @@ | ||
visiting | ||
visitSVGLine: aLine | ||
^ self | ||
|
||
^ self | ||
readCommonAttributesOf: aLine; | ||
readLineAttributesOf: aLine; | ||
asList |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGMorph..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,6 +1,6 @@ | ||
visiting | ||
visitSVGMorph: aMorph | ||
|
||
^ self | ||
^ self | ||
readCommonAttributesOf: aMorph; | ||
asList |
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGPath..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,6 +1,6 @@ | ||
visiting | ||
visitSVGPath: aPath | ||
^ self | ||
|
||
^ self | ||
readCommonAttributesOf: aPath; | ||
asList |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGPolygon..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 @@ | ||
visiting | ||
visitSVGPolygon: aPolygon | ||
|
||
^ self | ||
^ self | ||
readCommonAttributesOf: aPolygon; | ||
readPointsOf: aPolygon; | ||
asList |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGPolyline..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 @@ | ||
visiting | ||
visitSVGPolyline: aPolyline | ||
|
||
^ self | ||
^ self | ||
readCommonAttributesOf: aPolyline; | ||
readPointsOf: aPolyline; | ||
asList |
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGRectangle..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 @@ | ||
visiting | ||
visitSVGRectangle: aRectangle | ||
^ self | ||
|
||
^ self | ||
readCommonAttributesOf: aRectangle; | ||
readRectangleAttributesOf: aRectangle; | ||
asList |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGTSpan..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 @@ | ||
visiting | ||
visitSVGTSpan: aTSpan | ||
|
||
^ self | ||
^ self | ||
readCommonAttributesOf: aTSpan; | ||
readTextAttributesOf: aTSpan; | ||
asList |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Editor.package/SVGInfoPanelGenerator.class/instance/visitSVGText..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 @@ | ||
visiting | ||
visitSVGText: aText | ||
|
||
^ self | ||
^ self | ||
readCommonAttributesOf: aText; | ||
readTextAttributesOf: aText; | ||
asList |
4 changes: 2 additions & 2 deletions
4
packages/SVG-Editor.package/SVGPanel.class/instance/model..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,8 +1,8 @@ | ||
accessing | ||
model: anObject | ||
|
||
self model = anObject ifTrue: [^ self]. | ||
|
||
self model ifNotNil: [self model removeDependent: self]. | ||
model := anObject. | ||
self model addDependent: self |
Oops, something went wrong.