-
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.
length of end frame to last keyframe automatically
- Loading branch information
lka
committed
May 30, 2022
1 parent
657c66b
commit a4cedb5
Showing
21 changed files
with
105 additions
and
13 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...mationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/findLastKey.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,9 @@ | ||
updating | ||
findLastKey | ||
| last | | ||
|
||
last:= self endTime. | ||
self property subproperties do:[:subproperty | subproperty targetValues keysDo: [:key | key > last ifTrue:[last:= key]]]. | ||
^last | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
...nimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/property..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 | ||
property: anObject | ||
property := anObject |
3 changes: 3 additions & 0 deletions
3
...AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/property.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 | ||
property | ||
^ property |
6 changes: 6 additions & 0 deletions
6
.../AnimationsEditor-Core.package/AnimationsEditorPropertyStartEnd.class/instance/update..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 @@ | ||
updating | ||
update: aSymbol | ||
aSymbol = #addKeyframes | ||
ifTrue:[self endTime < self findLastKey ifTrue:[self endTime: self findLastKey]]. | ||
|
||
|
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
8 changes: 8 additions & 0 deletions
8
...ionsEditor-Core.package/AnimationsEditorTimeline.class/instance/updateStartEndProperty.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,8 @@ | ||
updating | ||
updateStartEndProperty | ||
| startEndProperty | | ||
|
||
startEndProperty := self animationsEditor propertyStartEnd. | ||
startEndProperty property: self property. | ||
self property subproperties | ||
do:[:subproperty | subproperty addDependent: startEndProperty]. |
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
....package/AnimationsEditorPropertyStartEndTest.class/instance/animationsEditorInstance..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 | ||
animationsEditorInstance: anObject | ||
animationsEditorInstance := anObject |
3 changes: 3 additions & 0 deletions
3
...s.package/AnimationsEditorPropertyStartEndTest.class/instance/animationsEditorInstance.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 | ||
animationsEditorInstance | ||
^ animationsEditorInstance |
3 changes: 3 additions & 0 deletions
3
...mationsEditor-Tests.package/AnimationsEditorPropertyStartEndTest.class/instance/morph..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 | ||
morph: anObject | ||
morph := anObject |
3 changes: 3 additions & 0 deletions
3
...imationsEditor-Tests.package/AnimationsEditorPropertyStartEndTest.class/instance/morph.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 | ||
morph | ||
^ morph |
3 changes: 3 additions & 0 deletions
3
...ionsEditor-Tests.package/AnimationsEditorPropertyStartEndTest.class/instance/property..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 | ||
property: anObject | ||
property := anObject |
3 changes: 3 additions & 0 deletions
3
...tionsEditor-Tests.package/AnimationsEditorPropertyStartEndTest.class/instance/property.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 | ||
property | ||
^ property |
6 changes: 5 additions & 1 deletion
6
...imationsEditor-Tests.package/AnimationsEditorPropertyStartEndTest.class/instance/setUp.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,8 @@ | ||
running | ||
setUp | ||
super setUp. | ||
self propertyStartEnd: AnimationsEditorPropertyStartEnd new. | ||
self animationsEditorInstance: AnimationsEditor open. | ||
self propertyStartEnd: self animationsEditorInstance propertyStartEnd. | ||
self morph: Morph new openInWorld. | ||
self animationsEditorInstance addTargetMorph: self morph. | ||
self property: self animationsEditorInstance propertyList second. |
6 changes: 6 additions & 0 deletions
6
...tionsEditor-Tests.package/AnimationsEditorPropertyStartEndTest.class/instance/tearDown.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 @@ | ||
running | ||
tearDown | ||
self morph isFlexed | ||
ifTrue: [self morph owner abandon]. | ||
self morph abandon. | ||
self animationsEditorInstance windowReference abandon. |
17 changes: 17 additions & 0 deletions
17
...ackage/AnimationsEditorPropertyStartEndTest.class/instance/testAddKeyframeAfterEndtime.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,17 @@ | ||
testing | ||
testAddKeyframeAfterEndtime | ||
| positionProperty oldEndtime propertyStartEnd newEndtime| | ||
|
||
positionProperty := self property subproperties at: 'position'. | ||
propertyStartEnd := self animationsEditorInstance propertyStartEnd. | ||
oldEndtime := propertyStartEnd endTime. | ||
positionProperty | ||
positionX: 555; | ||
positionY: 555; | ||
frame: oldEndtime + 1; | ||
addKeyframe. | ||
newEndtime := propertyStartEnd endTime. | ||
self assert: oldEndtime + 1 =newEndtime. | ||
|
||
|
||
|
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