-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scene-composer): initial implementation of animations
feat(scene-composer): reverted package-lock.json "feat(scene-composer): removed uneeded dependency" feat(scene-composer): removed changes to tag component feat(scene-composer): removed unnecessary imports feat(scene-composer): fixed tests feat(scene-composer): fixed use effect in animationeditor to prevent extra fire feat(scene-composer): addressed changes to databinding in the add component menu feat(scene-composer): addressed more changes to databinding in the add component menu feat(scene-composer): renamed animationupdater to animationcomponenteditor for consistency feat(scene-composer): added internationalization for animation viewstate feat(scene-composer): updated us.json feat(scene-composer): refactored to address github feedback feat(scene-composer): refactored tests and animationComponentEditor feat(scene-composer): removed global variable from animationcomponent feat(scene-composer): added comment to explain scene object fetching feat(scene-composer): got rid of magic string and replaced it with a const feat(scene-composer): minor cleanup feat(scene-composer): added back animation scene model component with changes feat(scene-composer): refactored addObject menu for animations feat(scene-composer): added knowncomponent type to condition for adding an animation object feat(scene-composer): refactored AnimationComponent test feat(scene-composer): removed unnecessary dependency
- Loading branch information
Showing
33 changed files
with
11,912 additions
and
77 deletions.
There are no files selected for viewing
1,833 changes: 1,833 additions & 0 deletions
1,833
packages/scene-composer/public/AIMIMATED_MIXER.gltf
Large diffs are not rendered by default.
Oops, something went wrong.
8,929 changes: 8,929 additions & 0 deletions
8,929
packages/scene-composer/public/ANIME_VERTICAL_CONVEYOR.gltf
Large diffs are not rendered by default.
Oops, something went wrong.
137 changes: 137 additions & 0 deletions
137
packages/scene-composer/public/animation-test-scene.scene.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,137 @@ | ||
{ | ||
"specVersion": "1.0", | ||
"version": "1", | ||
"unit": "meters", | ||
"properties": { | ||
"environmentPreset": "neutral" | ||
}, | ||
"nodes": [ | ||
{ | ||
"name": "ANIME_VERTICAL_CONVEYOR", | ||
"transform": { | ||
"position": [ | ||
-0.4911785102853923, | ||
-5.947704102788684e-16, | ||
-2.6786077981029086 | ||
], | ||
"rotation": [ | ||
0, | ||
0, | ||
0 | ||
], | ||
"scale": [ | ||
1, | ||
1, | ||
1 | ||
] | ||
}, | ||
"transformConstraint": {}, | ||
"components": [ | ||
{ | ||
"type": "ModelRef", | ||
"uri": "ANIME_VERTICAL_CONVEYOR.gltf", | ||
"modelType": "GLTF" | ||
}, | ||
{ | ||
"currentAnimations": [], | ||
"uri": "ANIME_VERTICAL_CONVEYOR.gltf", | ||
"type": "Animation" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
{ | ||
"name": "AIMIMATED_MIXER", | ||
"transform": { | ||
"position": [ | ||
-0.2548017433916856, | ||
0.1565180250896893, | ||
1.9222755178165505 | ||
], | ||
"rotation": [ | ||
0, | ||
0, | ||
0 | ||
], | ||
"scale": [ | ||
1, | ||
1, | ||
1 | ||
] | ||
}, | ||
"transformConstraint": {}, | ||
"components": [ | ||
{ | ||
"type": "ModelRef", | ||
"uri": "AIMIMATED_MIXER.gltf", | ||
"modelType": "GLTF" | ||
}, | ||
{ | ||
"currentAnimations": [], | ||
"uri": "AIMIMATED_MIXER.gltf", | ||
"type": "Animation" | ||
} | ||
], | ||
"properties": {} | ||
} | ||
], | ||
"rootNodeIndexes": [ | ||
0, | ||
1 | ||
], | ||
"cameras": [], | ||
"rules": { | ||
"sampleAlarmIconRule": { | ||
"statements": [ | ||
{ | ||
"expression": "alarm_status == 'ACTIVE'", | ||
"target": "iottwinmaker.common.icon:Error" | ||
}, | ||
{ | ||
"expression": "alarm_status == 'ACKNOWLEDGED'", | ||
"target": "iottwinmaker.common.icon:Warning" | ||
}, | ||
{ | ||
"expression": "alarm_status == 'SNOOZE_DISABLED'", | ||
"target": "iottwinmaker.common.icon:Warning" | ||
}, | ||
{ | ||
"expression": "alarm_status == 'NORMAL'", | ||
"target": "iottwinmaker.common.icon:Info" | ||
} | ||
] | ||
}, | ||
"sampleTimeSeriesIconRule": { | ||
"statements": [ | ||
{ | ||
"expression": "temperature >= 40", | ||
"target": "iottwinmaker.common.icon:Error" | ||
}, | ||
{ | ||
"expression": "temperature >= 20", | ||
"target": "iottwinmaker.common.icon:Warning" | ||
}, | ||
{ | ||
"expression": "temperature < 20", | ||
"target": "iottwinmaker.common.icon:Info" | ||
} | ||
] | ||
}, | ||
"sampleTimeSeriesColorRule": { | ||
"statements": [ | ||
{ | ||
"expression": "temperature >= 40", | ||
"target": "iottwinmaker.common.color:#FF0000" | ||
}, | ||
{ | ||
"expression": "temperature >= 20", | ||
"target": "iottwinmaker.common.color:#FFFF00" | ||
}, | ||
{ | ||
"expression": "temperature < 20", | ||
"target": "iottwinmaker.common.color:#00FF00" | ||
} | ||
] | ||
} | ||
} | ||
} |
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
Oops, something went wrong.