-
Notifications
You must be signed in to change notification settings - Fork 1
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
22 changed files
with
91 additions
and
45 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...Editor-Core.package/AnimationsEditorMovingLine.class/class/on.withPosition.withExtent..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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
on: anAnimationsEditorTimeline withPosition: aPosition withExtent: anExtent | ||
^ self basicNew timeline: anAnimationsEditorTimeline; | ||
initialize; | ||
position: aPosition; | ||
extent: anExtent; | ||
yourself. |
7 changes: 7 additions & 0 deletions
7
...ditor-Core.package/AnimationsEditorMovingLine.class/class/on.withPositionY.withExtent..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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
on: anAnimationsEditorTimeline withPositionY: aPoint withExtent: anotherPoint | ||
^ self basicNew timeline: anAnimationsEditorTimeline; | ||
initialize; | ||
"position: (self startMargin @ aPoint);" | ||
extent: anotherPoint ; | ||
yourself. |
4 changes: 4 additions & 0 deletions
4
...mationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/animationDuration.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
animationDuration | ||
|
||
^ self timeline endTime - self timeline startTime. |
5 changes: 3 additions & 2 deletions
5
...ges/AnimationsEditor-Core.package/AnimationsEditorMovingLine.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,8 @@ | ||
as yet unclassified | ||
initialize | ||
|
||
super initialize. | ||
self | ||
extent: 3@100; | ||
"extent: 3@100;" | ||
color: Color black; | ||
position: self startMargin@25. | ||
position: (self startMargin@25). "get rid of magic number" "Cascade expected ->" |
3 changes: 2 additions & 1 deletion
3
...ages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
as yet unclassified | ||
lineWidth | ||
^3 | ||
|
||
^3. |
3 changes: 3 additions & 0 deletions
3
...ges/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/positionY..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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
positionY: anObject | ||
positionY := anObject |
3 changes: 3 additions & 0 deletions
3
...ages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/positionY.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
positionY | ||
^ positionY |
4 changes: 4 additions & 0 deletions
4
...package/AnimationsEditorMovingLine.class/instance/setMovingSpeedPerHundredMilliseconds.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
setMovingSpeedPerHundredMilliseconds | ||
|
||
self speed: (self timeline width - (self startMargin) - (self endMargin)) / self animationDuration * 100. |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/speed..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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
speed: anObject | ||
speed := anObject |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/speed.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
speed | ||
^ speed |
11 changes: 4 additions & 7 deletions
11
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/step.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,13 +1,10 @@ | ||
as yet unclassified | ||
step | ||
|duration offset endPositionX| | ||
|
||
| endPositionX| | ||
|
||
endPositionX := self timeline width - (self endMargin). | ||
"duration := (self timeline endTime - self timeline startTime)/100. --> richtige Zeit" | ||
(self position x >= endPositionX) ifTrue: [self abandon] | ||
ifFalse: | ||
[ | ||
|
||
duration := (self timeline endTime - self timeline startTime)/100. | ||
offset := (self timeline width - (self startMargin) - (self endMargin)) / duration. | ||
self position: self position + (offset@0).] | ||
[self position: self position + (1@0* self speed).]. | ||
|
2 changes: 1 addition & 1 deletion
2
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/stepTime.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 @@ | ||
as yet unclassified | ||
stepTime | ||
^1 | ||
^100 |
18 changes: 13 additions & 5 deletions
18
...ages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/methodProperties.json
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,16 @@ | ||
{ | ||
"class" : { | ||
"on:" : "SG 5/21/2022 16:01" }, | ||
"on:" : "SG 5/21/2022 16:01", | ||
"on:withPosition:withExtent:" : "ob 6/9/2022 21:39", | ||
"on:withPositionY:withExtent:" : "ob 6/9/2022 21:40" }, | ||
"instance" : { | ||
"initialize" : "SG 5/23/2022 18:57", | ||
"lineWidth" : "SG 5/23/2022 18:47", | ||
"step" : "ob 6/9/2022 19:29", | ||
"stepTime" : "SG 5/23/2022 18:37" } } | ||
"animationDuration" : "ob 6/9/2022 21:31", | ||
"initialize" : "ob 6/9/2022 21:29", | ||
"lineWidth" : "ob 6/9/2022 20:18", | ||
"positionY" : "ob 6/9/2022 21:26", | ||
"positionY:" : "ob 6/9/2022 21:26", | ||
"setMovingSpeedPerHundredMilliseconds" : "ob 6/9/2022 21:31", | ||
"speed" : "ob 6/9/2022 20:26", | ||
"speed:" : "ob 6/9/2022 20:26", | ||
"step" : "ob 6/9/2022 20:45", | ||
"stepTime" : "ob 6/9/2022 20:15" } } |
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: 3 additions & 0 deletions
3
...sEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/animationDuration.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
animationDuration | ||
^ (self endTime - self startTime). |
3 changes: 0 additions & 3 deletions
3
...AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/duration.st
This file was deleted.
Oops, something went wrong.
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
12 changes: 10 additions & 2 deletions
12
...AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/createMovingLine.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,13 @@ | ||
creation | ||
createMovingLine | ||
|numberOfProperties| | ||
numberOfProperties := 0. | ||
|
||
self property subproperties | ||
do: [:subproperty | | ||
numberOfProperties := numberOfProperties + 1]. | ||
|
||
self | ||
movingLine: (AnimationsEditorMovingLine on: self); | ||
addMorphFront: movingLine. | ||
movingLine: (AnimationsEditorMovingLine on: self withPositionY: self trackHeight withExtent: 3@(numberOfProperties * self trackHeight)); | ||
addMorphFront: movingLine. | ||
self movingLine setMovingSpeedPerHundredMilliseconds. |
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: 4 additions & 0 deletions
4
...tionsEditor-Tests.package/AnimationsEditorTimelineTest.class/instance/inaccuracyFactor.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
inaccuracyFactor | ||
|
||
^1. |
30 changes: 10 additions & 20 deletions
30
...ests.package/AnimationsEditorTimelineTest.class/instance/testMovingLineInRightPosition.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