-
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.
Added Class MovingLine (still in progress)
- Loading branch information
Showing
26 changed files
with
132 additions
and
11 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
Empty file.
5 changes: 5 additions & 0 deletions
5
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/class/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
as yet unclassified | ||
on: anAnimationsEditorTimeline | ||
^ self basicNew timeline: anAnimationsEditorTimeline; | ||
initialize; | ||
yourself. |
12 changes: 12 additions & 0 deletions
12
.../AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/addMovingLine.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,12 @@ | ||
as yet unclassified | ||
addMovingLine | ||
| line | | ||
"self movingLine: (self addLineFrom: 105@25 to: 105@125)." | ||
|
||
line := LineMorph | ||
from: 105@25 | ||
to: 105@125 | ||
color: Color black | ||
width: self lineWidth. | ||
self movingLine: line. | ||
self addMorph: line. |
7 changes: 7 additions & 0 deletions
7
...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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
initialize | ||
super initialize. | ||
self | ||
extent: 3@100; | ||
color: Color black; | ||
position: self startMargin@25. |
3 changes: 3 additions & 0 deletions
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
lineWidth | ||
^3 |
3 changes: 3 additions & 0 deletions
3
...es/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/movingLine..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 | ||
movingLine: anObject | ||
movingLine := anObject |
3 changes: 3 additions & 0 deletions
3
...ges/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/instance/movingLine.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 | ||
movingLine | ||
^ movingLine |
11 changes: 11 additions & 0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
as yet unclassified | ||
step | ||
|duration offset| | ||
"duration := (self timeline endTime - self timeline startTime)/100. --> richtige Zeit" | ||
((self position x) > (self convertFrameToPosition: (self timeline endTime))) 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).] | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
stepTime | ||
^1 |
11 changes: 11 additions & 0 deletions
11
...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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"class" : { | ||
"on:" : "SG 5/21/2022 16:01" }, | ||
"instance" : { | ||
"addMovingLine" : "SG 5/23/2022 18:37", | ||
"initialize" : "SG 5/23/2022 18:57", | ||
"lineWidth" : "SG 5/23/2022 18:47", | ||
"movingLine" : "SG 5/23/2022 18:48", | ||
"movingLine:" : "SG 5/23/2022 18:48", | ||
"step" : "SG 5/23/2022 19:28", | ||
"stepTime" : "SG 5/23/2022 18:37" } } |
14 changes: 14 additions & 0 deletions
14
packages/AnimationsEditor-Core.package/AnimationsEditorMovingLine.class/properties.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "AnimationsEditor-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"movingLine" ], | ||
"name" : "AnimationsEditorMovingLine", | ||
"pools" : [ | ||
], | ||
"super" : "AnimationsEditorTimelineObject", | ||
"type" : "normal" } |
12 changes: 12 additions & 0 deletions
12
...ges/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/addMovingLine.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,12 @@ | ||
updating | ||
addMovingLine | ||
| line | | ||
"self movingLine: (self addLineFrom: 105@25 to: 105@125)." | ||
|
||
line := LineMorph | ||
from: 105@25 | ||
to: 105@125 | ||
color: Color black | ||
width: self lineWidth. | ||
self movingLine: line. | ||
self addMorph: line. |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/movingLine..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 | ||
movingLine: anObject | ||
movingLine := anObject |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/movingLine.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 | ||
movingLine | ||
^ movingLine |
6 changes: 6 additions & 0 deletions
6
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
as yet unclassified | ||
step | ||
"duration := (self timeline endTime - self timeline startTime)/1000. --> richtige Zeit | ||
duration := (self timeline endTime - self timeline startTime). | ||
offset := self lineSegmentWidth / duration. | ||
self movingLine position: self movingLine position + (offset@0)." |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
stepTime | ||
^1 |
3 changes: 2 additions & 1 deletion
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimebar.class/instance/updateScale.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,5 @@ | ||
updating | ||
updateScale | ||
self addStartEndLine. | ||
self addIntermediateLines. | ||
self addIntermediateLines. | ||
"self addMovingLine." |
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
5 changes: 5 additions & 0 deletions
5
...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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
creation | ||
createMovingLine | ||
self | ||
movingLine: (AnimationsEditorMovingLine on: self); | ||
addMorphFront: movingLine. |
3 changes: 3 additions & 0 deletions
3
...ages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/movingLine..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 | ||
movingLine: anObject | ||
movingLine := anObject |
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorTimeline.class/instance/movingLine.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 | ||
movingLine | ||
^ movingLine |
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