-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- Co-authored-by: xuying.xu <[email protected]>
- Loading branch information
1 parent
f5245c5
commit 3c9af89
Showing
28 changed files
with
395 additions
and
304 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Children from '../src/children'; | ||
|
||
export interface playerFrame { | ||
to: Record<string, any>; | ||
} | ||
|
||
export function generateFrameElement(cur: Record<string, playerFrame>, element) { | ||
if (!element) return; | ||
return Children.map(element, (child) => { | ||
const { key, props } = child; | ||
|
||
const newProps = cur[key] ? cur[key].to : {}; | ||
const children = generateFrameElement(cur, props.children); | ||
return Children.cloneElement(child, { ...newProps, children }); | ||
}); | ||
} |
Binary file added
BIN
+2.46 KB
...eate-context-test-tsx-create-context-provider-context-create-context-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.93 KB
.../test/timeline/__image_snapshots__/key-frames-test-tsx-player-finish-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.96 KB
.../test/timeline/__image_snapshots__/key-frames-test-tsx-player-finish-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.93 KB
...t/timeline/__image_snapshots__/key-frames-test-tsx-player-key-frames-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.93 KB
...t/timeline/__image_snapshots__/key-frames-test-tsx-player-key-frames-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.93 KB
...est/timeline/__image_snapshots__/key-frames-test-tsx-player-leave-动画-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added
BIN
+1.69 KB
...ine/__image_snapshots__/key-frames-test-tsx-player-元素未改变-只有播控props改变-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.05 KB
...ine/__image_snapshots__/key-frames-test-tsx-player-元素未改变-只有播控props改变-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.29 KB
...ine/test/timeline/__image_snapshots__/key-frames-test-tsx-player-子组件-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-1.97 KB
...engine/test/timeline/__image_snapshots__/player-test-tsx-player-test-1-snap.png
Binary file not shown.
Binary file removed
BIN
-1.87 KB
...engine/test/timeline/__image_snapshots__/player-test-tsx-player-test-2-snap.png
Binary file not shown.
Binary file removed
BIN
-1.77 KB
...e/test/timeline/__image_snapshots__/player-test-tsx-player-元素props改变-1-snap.png
Binary file not shown.
Binary file removed
BIN
-1.77 KB
...e/test/timeline/__image_snapshots__/player-test-tsx-player-元素props改变-2-snap.png
Binary file not shown.
Binary file removed
BIN
-1.81 KB
...e/test/timeline/__image_snapshots__/player-test-tsx-player-元素state改变-1-snap.png
Binary file not shown.
Binary file removed
BIN
-1.97 KB
...imeline/__image_snapshots__/player-test-tsx-player-元素未改变-只有播控props改变-1-snap.png
Binary file not shown.
Binary file removed
BIN
-1.77 KB
...imeline/__image_snapshots__/player-test-tsx-player-元素未改变-只有播控props改变-2-snap.png
Binary file not shown.
Binary file removed
BIN
-1.97 KB
...ngine/test/timeline/__image_snapshots__/player-test-tsx-player-子元素改变-1-snap.png
Binary file not shown.
Binary file removed
BIN
-2.71 KB
...ngine/test/timeline/__image_snapshots__/player-test-tsx-player-子元素改变-2-snap.png
Binary file not shown.
Binary file removed
BIN
-2.13 KB
...ine/test/timeline/__image_snapshots__/player-test-tsx-player-部分子元素改变-1-snap.png
Binary file not shown.
Binary file removed
BIN
-2.62 KB
...ine/test/timeline/__image_snapshots__/player-test-tsx-player-部分子元素改变-2-snap.png
Binary file not shown.
Oops, something went wrong.