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

feat: 633 use loop #673

Merged
merged 53 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
6369197
feat: createRenderLoop unique to context
alvarosabu Apr 13, 2024
23be834
feat: onLoop returns current state
alvarosabu Apr 13, 2024
d01fdab
feat: ensuring callback excecution with index order
alvarosabu Apr 13, 2024
2ff1c15
feat: take control of render loop logic
alvarosabu Apr 13, 2024
542e27c
docs: updated composable docs
alvarosabu Apr 13, 2024
62ca2f0
feat: change error to deprecation warning towards v5
alvarosabu Apr 13, 2024
efcd437
chore: add link to new composable docs on deprecation warning
alvarosabu Apr 13, 2024
dc8ee0e
Merge branch 'v4' into feat/633-use-loop
alvarosabu Apr 17, 2024
fb7cce5
chore: remove depcreation warning of existing useRenderLoop
alvarosabu Apr 28, 2024
3b6cb20
feat: `useFrame` and `useRender` instead of `onLoop`
alvarosabu Apr 28, 2024
54f430f
Merge branch 'v4' into feat/633-use-loop
alvarosabu Apr 28, 2024
7a300e5
chore: fix lint
alvarosabu Apr 28, 2024
d02cb06
feat: applied useFrame to directives
alvarosabu Apr 29, 2024
1183e87
chore: fix lint
alvarosabu Apr 29, 2024
829e81e
feat: `useUpdate` instead of `useFrame` and useRender pausing.
alvarosabu Apr 30, 2024
0555e5d
chore: testing fbo
alvarosabu May 2, 2024
3b8c542
feat: reserve index 1 for late-updates
alvarosabu May 2, 2024
d2e832f
chore: fix lint
alvarosabu May 2, 2024
2d27c68
feat: useLoop composable for the win
alvarosabu May 3, 2024
a1dc928
chore: change onLoop name for register
alvarosabu May 4, 2024
529fcf0
chore: unit tests for loop
alvarosabu May 4, 2024
904ff42
chore: change order for registration to make index optional
alvarosabu May 4, 2024
ac97d56
chore: fix lint
alvarosabu May 4, 2024
e40212b
Merge branch 'v4' into feature/633-use-loop-proposal-2
alvarosabu May 4, 2024
66e0594
feat: pauseRender and resumeRender
alvarosabu May 5, 2024
acbe5a3
docs: useLoop guide
alvarosabu May 5, 2024
61c3448
docs: updated basic animations recipe to `useLoop`
alvarosabu May 5, 2024
2028660
docs: correct pause render methods on docs
alvarosabu May 5, 2024
7a619d2
Update docs/api/composables.md
alvarosabu May 7, 2024
f24b3f3
Update docs/api/composables.md
alvarosabu May 7, 2024
c0c9d88
Update docs/api/composables.md
alvarosabu May 7, 2024
670f076
Update docs/api/composables.md
alvarosabu May 7, 2024
d428f1d
Update docs/api/composables.md
alvarosabu May 7, 2024
b264a38
Update docs/api/composables.md
alvarosabu May 7, 2024
62da63e
Update docs/api/composables.md
alvarosabu May 7, 2024
d547ab1
chore: refactor subscribers to `priorityEventHooks`
alvarosabu May 7, 2024
43f278c
Update docs/api/composables.md
alvarosabu May 7, 2024
85993a6
feat: just return `off` on the loop registration methods
alvarosabu May 8, 2024
e7e1c00
docs: update docs to add `off` unregister callback method
alvarosabu May 8, 2024
018e124
feat: remove `v-rotate`
alvarosabu May 8, 2024
a984d46
docs: added context warning for `v-always-look-at`
alvarosabu May 8, 2024
e5d640b
Update docs/api/composables.md
alvarosabu May 9, 2024
4b2e084
Update docs/api/composables.md
alvarosabu May 9, 2024
7d2d71a
chore: remove leftover of isntance.provide
alvarosabu May 9, 2024
25ac4a4
chore: remove subscribers from context
alvarosabu May 9, 2024
24cec65
chore: abstract `wrapCallback` and move render loop register to `use…
alvarosabu May 9, 2024
7d5cf58
chore: fix lint
alvarosabu May 9, 2024
f9b1693
chore: testing off
alvarosabu May 13, 2024
6b06cdb
Revert "chore: abstract `wrapCallback` and move render loop register…
alvarosabu May 13, 2024
c33d773
chore: return bound `off` method and use createPriorityEvent for rend…
alvarosabu May 13, 2024
2984c12
feat: deprecate and remove `vAlwaysLookAt` and `vRotate`
alvarosabu May 13, 2024
604d56a
feat: set context to loop to avoid wrapping the callbacks
alvarosabu May 13, 2024
b50b499
feat: dispose render hook before taking over
alvarosabu May 14, 2024
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
67 changes: 67 additions & 0 deletions .eslintrc-auto-import.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"globals": {
"Component": true,
"ComponentPublicInstance": true,
"ComputedRef": true,
"EffectScope": true,
"InjectionKey": true,
"PropType": true,
"Ref": true,
"VNode": true,
"WritableComputedRef": true,
"computed": true,
"createApp": true,
"customRef": true,
"defineAsyncComponent": true,
"defineComponent": true,
"effectScope": true,
"getCurrentInstance": true,
"getCurrentScope": true,
"h": true,
"inject": true,
"isProxy": true,
"isReactive": true,
"isReadonly": true,
"isRef": true,
"markRaw": true,
"nextTick": true,
"onActivated": true,
"onBeforeMount": true,
"onBeforeUnmount": true,
"onBeforeUpdate": true,
"onDeactivated": true,
"onErrorCaptured": true,
"onMounted": true,
"onRenderTracked": true,
"onRenderTriggered": true,
"onScopeDispose": true,
"onServerPrefetch": true,
"onUnmounted": true,
"onUpdated": true,
"provide": true,
"reactive": true,
"readonly": true,
"ref": true,
"resolveComponent": true,
"shallowReactive": true,
"shallowReadonly": true,
"shallowRef": true,
"toRaw": true,
"toRef": true,
"toRefs": true,
"toValue": true,
"triggerRef": true,
"unref": true,
"useAttrs": true,
"useCssModule": true,
"useCssVars": true,
"useSlots": true,
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true
}
}
67 changes: 67 additions & 0 deletions docs/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"globals": {
"Component": true,
"ComponentPublicInstance": true,
"ComputedRef": true,
"EffectScope": true,
"InjectionKey": true,
"PropType": true,
"Ref": true,
"VNode": true,
"WritableComputedRef": true,
"computed": true,
"createApp": true,
"customRef": true,
"defineAsyncComponent": true,
"defineComponent": true,
"effectScope": true,
"getCurrentInstance": true,
"getCurrentScope": true,
"h": true,
"inject": true,
"isProxy": true,
"isReactive": true,
"isReadonly": true,
"isRef": true,
"markRaw": true,
"nextTick": true,
"onActivated": true,
"onBeforeMount": true,
"onBeforeUnmount": true,
"onBeforeUpdate": true,
"onDeactivated": true,
"onErrorCaptured": true,
"onMounted": true,
"onRenderTracked": true,
"onRenderTriggered": true,
"onScopeDispose": true,
"onServerPrefetch": true,
"onUnmounted": true,
"onUpdated": true,
"provide": true,
"reactive": true,
"readonly": true,
"ref": true,
"resolveComponent": true,
"shallowReactive": true,
"shallowReadonly": true,
"shallowRef": true,
"toRaw": true,
"toRef": true,
"toRefs": true,
"toValue": true,
"triggerRef": true,
"unref": true,
"useAttrs": true,
"useCssModule": true,
"useCssVars": true,
"useSlots": true,
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true
}
}
2 changes: 0 additions & 2 deletions docs/.vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
items: [
{ text: 'v-log', link: '/directives/v-log' },
{ text: 'v-light-helper', link: '/directives/v-light-helper' },
{ text: 'v-always-look-at', link: '/directives/v-always-look-at' },
{ text: 'v-distance-to', link: '/directives/v-distance-to' },
{ text: 'v-rotate', link: '/directives/v-rotate' },
],
},
{
Expand Down
Loading
Loading