From d46f90f6e11c66f2fdf570340d91f63996bc94b1 Mon Sep 17 00:00:00 2001 From: Alvaro Saburido Date: Fri, 1 Sep 2023 10:14:23 +0200 Subject: [PATCH] fix: removed `toFixed` for progress value (#191) --- package.json | 2 +- playground/package.json | 2 +- playground/src/pages/ScrollControlsDemo.vue | 9 + pnpm-lock.yaml | 4879 ++++++++++++++++++- src/core/controls/ScrollControls.vue | 6 +- 5 files changed, 4673 insertions(+), 225 deletions(-) diff --git a/package.json b/package.json index eaa634f9..68d53880 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@release-it/conventional-changelog": "^7.0.0", "@tweakpane/core": "^1.1.9", "@types/node": "^20.5.4", - "@types/three": "^0.155.1", + "@types/three": "^0.155.0", "@typescript-eslint/eslint-plugin": "^6.4.1", "@typescript-eslint/parser": "^6.4.1", "@vitejs/plugin-vue": "^4.3.3", diff --git a/playground/package.json b/playground/package.json index 3ef2e8fd..dcac81b1 100644 --- a/playground/package.json +++ b/playground/package.json @@ -13,7 +13,7 @@ "vue-router": "^4.2.4" }, "devDependencies": { - "@tresjs/leches": "^0.7.0", + "@tresjs/leches": "^0.8.0", "unplugin-auto-import": "^0.16.6", "unplugin-vue-components": "^0.25.1", "vite-plugin-glsl": "^1.1.2", diff --git a/playground/src/pages/ScrollControlsDemo.vue b/playground/src/pages/ScrollControlsDemo.vue index 856599df..b4f6b57a 100644 --- a/playground/src/pages/ScrollControlsDemo.vue +++ b/playground/src/pages/ScrollControlsDemo.vue @@ -3,6 +3,8 @@ import { ref, watchEffect } from 'vue' import { TresCanvas, useRenderLoop } from '@tresjs/core' import { ScrollControls, Stars, Sphere, Box } from '@tresjs/cientos' import { SRGBColorSpace, NoToneMapping } from 'three' +import { TresLeches, useControls } from '@tresjs/leches'; +import '@tresjs/leches/styles' const scRef = ref() const sphereRef = ref() @@ -20,6 +22,12 @@ const gl = { outputColorSpace: SRGBColorSpace, toneMapping: NoToneMapping, } + +useControls('fpsgraph') +useControls({ + progress: progress.value +}) + const { onLoop } = useRenderLoop() onLoop(() => { if (boxRef.value) { @@ -29,6 +37,7 @@ onLoop(() => { })