Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deploy): Release #140

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .changeset/tender-hotels-burn.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/interpol-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/interpol-ease/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/interpol-graphic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/interpol-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/interpol-object-el/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"ogl": "^1.0.4",
"prettier": "^3.2.5"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/interpol-offsets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/interpol-particles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/interpol-timeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite --host"
},
"dependencies": {
"@wbe/interpol": "^0.13.0",
"@wbe/interpol": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
45 changes: 45 additions & 0 deletions packages/interpol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# @wbe/interpol

## 0.14.0

### Minor Changes

- c275500: Refresh computed values before timeline add() starts.

Goal of this PR is to update an external variable on the first add() onUpdate and reused it as "from" of the second add(). It will work if "from" of the second add() is a computed value. Behind the scene, we re-execute refreshComputedValues() juste before the add() starts.

```ts
let EXTERNAL_X = 0;

tl.add({
ease: "power3.in",
props: {
x: [0, 100],
},
onUpdate: ({ x }) => {
// Mute the external value
EXTERNAL_X = x;
},
});
tl.add({
props: {
// Use the updated external value as computed value
x: [() => EXTERNAL_X, 50],
},
onUpdate: ({ x }) => {
// x will be interpolated from 100 to 50
},
});
```

In order to test this new functionality, the full Interpol Instance is now exposed from each Interpol Callbacks. It allows you to access additional properties like props computeds etc.

```ts
tl.add({
props: {
x: [0, 100],
},
onUpdate: ({ x }, time, progress, instance) => {
// instance is available
},
});
```

## 0.13.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/interpol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wbe/interpol",
"version": "0.13.0",
"version": "0.14.0",
"type": "module",
"files": [
"dist"
Expand Down
Loading
Loading