Skip to content

Commit

Permalink
chore: update pattern of download artifacts in e2e.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Jan 17, 2025
1 parent ddd51c4 commit 95d4590
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v4
with:
name: all-blob-reports
path: all-blob-reports
pattern: all-blob-reports-*
merge-multiple: true

Expand Down
5 changes: 3 additions & 2 deletions packages/site/docs/components/PythagoreanTheorem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function convertAnimationToMotion(animation: any) {
// motion use seconds instead of milliseconds
options.duration = options.duration / 1000;
options.fill = 'both';
return {
target,
Expand Down Expand Up @@ -157,7 +158,7 @@ const Demo = () => {
const name = new Text({
x: 0,
y: -100,
y: -80,
content: 'Pythagorean Theorem',
fontSize: 24,
fontFamily: 'Gaegu',
Expand All @@ -168,7 +169,7 @@ const Demo = () => {
const description = new Text({
x: 0,
y: -70,
y: -50,
content: data.description,
fontSize: 20,
fontFamily: 'Gaegu',
Expand Down
6 changes: 3 additions & 3 deletions packages/site/docs/example/web-animations-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ await animate(

But there are some differences, for example:

- `duration` uses seconds instead of milliseconds

[Improvements to Web Animations API]: https://motion.dev/docs/improvements-to-the-web-animations-api-dx
- `duration`, `delay` uses seconds instead of milliseconds
- `iterations` -> `repeat`
- `direction` -> `repeatType`
6 changes: 4 additions & 2 deletions packages/site/docs/zh/example/web-animations-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish: false
import WebAnimationsAPI from '../../components/WebAnimationsAPI.vue'
</script>

Motion 尽可能兼容了 Web Animations API,详见:[Improvements to Web Animations API]
Motion 尽可能兼容了 Web Animations API 并做了很多增强,例如支持 spring 动画,详见:[Improvements to Web Animations API]

```ts
import { animate } from 'motion';
Expand All @@ -25,6 +25,8 @@ await animate(

但和 Web Animations API 还是有一些区别,例如:

- `duration` 使用秒而非毫秒
- `duration``delay`使用秒而非毫秒
- `iterations` -> `repeat`
- `direction` -> `repeatType`

[Improvements to Web Animations API]: https://motion.dev/docs/improvements-to-the-web-animations-api-dx

0 comments on commit 95d4590

Please sign in to comment.