-
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
53 changed files
with
87 additions
and
88 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
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
...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
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/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
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGBezier2SegmentRun.class/instance/stitchedClosed.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
4 changes: 2 additions & 2 deletions
4
packages/SVG-Morphic.package/SVGBezier2SegmentRun.class/instance/stroke.transform..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 | ||
stroke: aNumber transform: aTransform | ||
|
||
^ { ((self offsetBy: aNumber / 2) transformed: aTransform) points | ||
. ((self offsetBy: aNumber / 2 negated) transformed: aTransform) points } | ||
^ {((self offsetBy: aNumber / 2) transformed: aTransform) points | ||
. ((self offsetBy: aNumber / 2 negated) transformed: aTransform) points} |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGComponentMorph.class/instance/containsPoint..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 @@ | ||
helpers | ||
containsPoint: aPoint | ||
|
||
^ self visible and: [self bounds containsPoint: aPoint] |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGComponentMorph.class/instance/fullDrawOn..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
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-Morphic.package/SVGGradientFillStyle.class/instance/computePixelRampOfSize..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-Morphic.package/SVGMorph.class/class/fromDroppedFile..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 @@ | ||
as yet unclassified | ||
fromDroppedFile: filename | ||
"opens a Stream on a given file" | ||
|
||
^ (self fromFile: filename) openInWorld |
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/SVGMorph.class/class/fromString..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 @@ | ||
as yet unclassified | ||
fromString: aString | ||
"creates SVGMorph from xml string" | ||
|
||
^ self fromFileStream:(ReadStream on: aString) |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGRenderer.class/instance/styleIn.fromSVGStyle..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 | ||
styleIn: aComponent fromSVGStyle: svgStyle | ||
"Answer a dictionary of the style parameters for the given svg style dictionary." | ||
|
||
self subclassResponsibility |
10 changes: 5 additions & 5 deletions
10
packages/SVG-Morphic.package/SVGStyleComposer.class/class/composeStyleFor.with..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,12 +1,12 @@ | ||
as yet unclassified | ||
composeStyleFor: aSVGComponent with: aSVGStyle | ||
| svgStyleComposer | | ||
|
||
|svgStyleComposer| | ||
|
||
svgStyleComposer := self new. | ||
|
||
svgStyleComposer balloonStyle: aSVGComponent composedStyle. | ||
svgStyleComposer svgStyle: aSVGStyle. | ||
|
||
^ svgStyleComposer setStyles | ||
|
6 changes: 3 additions & 3 deletions
6
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/addStyleAt.defaultValue..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 @@ | ||
styling | ||
addStyleAt: aKey defaultValue: aValue | ||
addStyleAt: aKey defaultValue: aValue | ||
|
||
(self svgStyle includesKey: aKey) | ||
ifTrue: [self balloonStyle at: aKey put: (self svgStyle at: aKey).] | ||
ifTrue: [self balloonStyle at: aKey put: (self svgStyle at: aKey)] | ||
ifFalse: [(self balloonStyle includesKey: aKey) | ||
ifFalse: [self balloonStyle at: aKey put: aValue]]. | ||
ifFalse: [self balloonStyle at: aKey put: aValue]] |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/balloonStyle..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 | ||
balloonStyle: anObject | ||
|
||
balloonStyle := anObject. | ||
balloonStyle := anObject |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/newFillOpacity.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,3 +1,3 @@ | ||
styling | ||
newFillOpacity | ||
^ ((self svgStyle includesKey: 'opacity') or: [self svgStyle includesKey: 'fill-opacity']) or: [self svgStyle includesKey: 'fill']. | ||
^ ((self svgStyle includesKey: 'opacity') or: [self svgStyle includesKey: 'fill-opacity']) or: [self svgStyle includesKey: 'fill'] |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/newStrokeOpacity.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,3 +1,3 @@ | ||
styling | ||
newStrokeOpacity | ||
^ ((self svgStyle includesKey: 'opacity') or: [self svgStyle includesKey: 'stroke-opacity']) or: [self svgStyle includesKey: 'stroke']. | ||
^ ((self svgStyle includesKey: 'opacity') or: [self svgStyle includesKey: 'stroke-opacity']) or: [self svgStyle includesKey: 'stroke'] |
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
9 changes: 4 additions & 5 deletions
9
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/setFillStyle.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,12 +1,11 @@ | ||
styling | ||
setFillStyle | ||
self | ||
|
||
self | ||
addStyleAt: 'opacity' defaultValue: self defaultOpacity; | ||
addStyleAt: 'fill-opacity' defaultValue: self defaultFillOpacity; | ||
addStyleAt: 'fill' defaultValue: self defaultFill; | ||
addStyleAt: 'fill-rule' defaultValue: self defaultFillRule. | ||
self newFillOpacity ifTrue: [ self balloonStyle at: 'fill' put: ((self balloonStyle at: 'fill') | ||
|
||
self newFillOpacity ifTrue: [self balloonStyle at: 'fill' put: ((self balloonStyle at: 'fill') | ||
alphaMixed: (self balloonStyle at: 'fill-opacity') * (self balloonStyle at: 'opacity'))] | ||
|
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/setFontStyle.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
6 changes: 3 additions & 3 deletions
6
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/setStrokeStyle.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,11 +1,11 @@ | ||
styling | ||
setStrokeStyle | ||
|
||
self | ||
self | ||
addStyleAt: 'stroke-width' defaultValue: self defaultStrokeWidth; | ||
addStyleAt: 'stroke-linecap' defaultValue: self defaultStrokeLinecap; | ||
addStyleAt: 'stroke-opacity' defaultValue: self defaultStrokeOpacity; | ||
addStyleAt: 'stroke' defaultValue: self defaultStroke. | ||
self newStrokeOpacity ifTrue: [ self balloonStyle at: 'stroke' put: ((self balloonStyle at: 'stroke') | ||
|
||
self newStrokeOpacity ifTrue: [self balloonStyle at: 'stroke' put: ((self balloonStyle at: 'stroke') | ||
alphaMixed: (self balloonStyle at: 'stroke-opacity') * (self balloonStyle at: 'opacity'))] |
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/setStyles.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 @@ | ||
styling | ||
setStyles | ||
|
||
self | ||
self | ||
setFontStyle; | ||
setFillStyle; | ||
setStrokeStyle; | ||
|
2 changes: 1 addition & 1 deletion
2
packages/SVG-Morphic.package/SVGStyleComposer.class/instance/svgStyle..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 | ||
svgStyle: anObject | ||
|
||
svgStyle := anObject. | ||
svgStyle := anObject |
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]] |
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/Tests-SVG-Morphic.package/SVGGradientTest.class/instance/testColorParsing.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
Oops, something went wrong.