-
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
23 changed files
with
75 additions
and
39 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/addMorphFromSpec..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,9 +1,11 @@ | ||
as yet unclassified | ||
addMorphFromSpec: aDictionary | ||
| morph | | ||
| morph morphProperty | | ||
morph := (self createMorphFromString: (aDictionary at: 'type')) openInWorld. | ||
(aDictionary at: 'properties') | ||
do: [:each | (self propertiesDictionary at: (each at: 'name') asSymbol) | ||
value: morph | ||
value: (each at: 'value')]. | ||
self addTargetMorph: morph. | ||
self loadStartProperties: (aDictionary at: 'properties') with: morph. | ||
morphProperty := self addTargetMorph: morph. | ||
self loadFramesFromJSON: (aDictionary at: 'frames') with: morphProperty. | ||
|
||
|
||
|
||
|
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
11 changes: 11 additions & 0 deletions
11
...AnimationsEditor-Core.package/AnimationsEditor.class/instance/loadFramesFromJSON.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
as yet unclassified | ||
loadFramesFromJSON: anArray with: anAnimationEditorProperty | ||
|
||
"| aMorph | | ||
anArray | ||
do: [:each | (self propertiesDictionary at: (each at: 'name') asSymbol) | ||
value: aMorph | ||
value: (each at: 'value')]. | ||
" | ||
|
||
|
9 changes: 3 additions & 6 deletions
9
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/loadJSON..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,9 @@ | ||
buildComponents | ||
loadJSON: aText | ||
| data morphs | | ||
| data | | ||
|
||
data:= STON fromString: aText. | ||
|
||
self propertyStartEnd startTime: (self propertyStartEnd startTime min: (data at: 'start')). | ||
self propertyStartEnd endTime: (self propertyStartEnd endTime max: (data at: 'end')). | ||
self loadStartEnd: data. | ||
|
||
morphs:= data at: 'morphs'. | ||
morphs do:[:each | self addMorphFromSpec: each ]. | ||
|
||
self loadMorphs: (data at: 'morphs'). |
4 changes: 4 additions & 0 deletions
4
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/loadMorphs..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 @@ | ||
buildComponents | ||
loadMorphs: anArray | ||
|
||
anArray do: [:each | self addMorphFromSpec: each]. |
4 changes: 4 additions & 0 deletions
4
packages/AnimationsEditor-Core.package/AnimationsEditor.class/instance/loadStartEnd..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 @@ | ||
buildComponents | ||
loadStartEnd: aDictionary | ||
self propertyStartEnd startTime: (self propertyStartEnd startTime min: (aDictionary at: 'start')). | ||
self propertyStartEnd endTime: (self propertyStartEnd endTime max: (aDictionary at: 'end')). |
9 changes: 9 additions & 0 deletions
9
...nimationsEditor-Core.package/AnimationsEditor.class/instance/loadStartProperties.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
as yet unclassified | ||
loadStartProperties: anArray with: aMorph | ||
|
||
anArray | ||
do: [:each | (self propertiesDictionary at: (each at: 'name') asSymbol) | ||
value: aMorph | ||
value: (each at: 'value')]. | ||
|
||
|
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
...ationsEditor-Core.package/AnimationsEditorProperty.class/instance/defaultSubproperties.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 @@ | ||
defaults | ||
defaultSubproperties | ||
^ (OrderedCollection new). | ||
^ (Dictionary new). |
1 change: 1 addition & 0 deletions
1
...AnimationsEditor-Core.package/AnimationsEditorProperty.class/instance/resetTargetMorph.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
...-Core.package/AnimationsEditorProperty.class/instance/resetTargetMorphForAllProperties.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 @@ | ||
animation | ||
resetTargetMorphForAllProperties | ||
self subproperties collect: [ :each | each resetTargetMorph ]. | ||
self subproperties valuesDo: [ :each | each resetTargetMorph ]. |
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: 2 additions & 1 deletion
3
.../AnimationsEditor-Core.package/AnimationsEditorPropertyWrapper.class/instance/contents.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,7 @@ | ||
accessing | ||
contents | ||
^ self item subproperties sorted collect: [ :each | | ||
|
||
^ self item subproperties sorted asOrderedCollection collect: [ :each | | ||
self class | ||
with: each | ||
model: self model]. |
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
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