Skip to content
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
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @freestylejs/ani-core

## 1.2.1

### Patch Changes

- Fix start iterative fast calling makes lag

## 1.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@freestylejs/ani-core",
"author": "freestyle",
"version": "1.2.0",
"version": "1.2.1",
"description": "Core functionality for the Ani animation library.",
"license": "MIT",
"type": "module",
Expand Down
12 changes: 9 additions & 3 deletions packages/core/src/ani/raf/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ export class RafAniTimeline<G extends Groupable, Ctx = any>

const isRepeating = (this._currentConfig?.repeat ?? 0) >= 1
const savedRepeatCount = isRepeating ? this._repeatCount : 0
const isPlaying = this._status === 'PLAYING'

this.reset(false)
this.reset(false, !isPlaying)
this._repeatCount = savedRepeatCount

if (isRepeating && this._repeatCount >= config.repeat!) {
Expand Down Expand Up @@ -194,7 +195,10 @@ export class RafAniTimeline<G extends Groupable, Ctx = any>
this._clock.subscribe(this)
}

public reset(notify: boolean = true): void {
public reset(
notify: boolean = true,
unsubscribeClock: boolean = true
): void {
this._status = 'IDLE'
this._currentConfig = null
this._masterTime = 0
Expand All @@ -203,7 +207,9 @@ export class RafAniTimeline<G extends Groupable, Ctx = any>
this._initialState = []
this._propertyKeyMap = null
this._currentExecutionPlan = null
this._clock.unsubscribe(this)
if (unsubscribeClock) {
this._clock.unsubscribe(this)
}
this._repeatCount = 0
if (notify) this.notify()
}
Expand Down
9 changes: 2 additions & 7 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@
"author": "freestyle",
"version": "1.1.0",
"description": "Ani for react.",
"keywords": [
"react",
"animation"
],
"keywords": ["react", "animation"],
"license": "MIT",
"type": "module",
"sideEffects": false,
"private": false,
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
9 changes: 2 additions & 7 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@
"description": "Ani for solid.",
"license": "MIT",
"type": "module",
"keywords": [
"solid",
"animation"
],
"keywords": ["solid", "animation"],
"sideEffects": false,
"private": false,
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
9 changes: 2 additions & 7 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@
"description": "Ani for svelte.",
"license": "MIT",
"type": "module",
"keywords": [
"svelte",
"animation"
],
"keywords": ["svelte", "animation"],
"sideEffects": false,
"private": false,
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
9 changes: 2 additions & 7 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@
"description": "Ani for vue.",
"license": "MIT",
"type": "module",
"keywords": [
"vue",
"animation"
],
"keywords": ["vue", "animation"],
"sideEffects": false,
"private": false,
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"fumadocs-typescript": "^4.0.13",
"fumadocs-ui": "16.0.8",
"lucide-react": "^0.552.0",
"next": "16.0.1",
"next": "16.0.7",
"octokit": "^5.0.5",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"tailwind-merge": "^3.4.0",
"tailwindest": "^3.2.2",
"twoslash": "^0.3.4"
Expand Down
Loading
Loading