From 4ad1a3efa84cd43d35688329749704a549fa7134 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Sat, 11 Mar 2023 19:22:46 +0100 Subject: [PATCH] feat(core): export useLogger --- .../src/core/usePamCameraMouse/index.ts | 2 +- packages/tres/src/App.vue | 53 +++++++++++++++---- packages/tres/src/composables/index.ts | 1 + .../tres/src/composables/useLoader/index.ts | 2 +- .../src/{iternal => composables}/useLogger.ts | 0 .../src/composables/useRenderer/component.ts | 2 +- .../tres/src/composables/useRenderer/index.ts | 2 +- packages/tres/src/core/nodeOps.ts | 10 ++-- packages/tres/src/demos/AkuAku.vue | 20 +++++++ packages/tres/src/demos/TestSphere.vue | 14 ++--- packages/tres/src/iternal/index.ts | 1 - 11 files changed, 82 insertions(+), 25 deletions(-) rename packages/tres/src/{iternal => composables}/useLogger.ts (100%) create mode 100644 packages/tres/src/demos/AkuAku.vue delete mode 100644 packages/tres/src/iternal/index.ts diff --git a/packages/cientos/src/core/usePamCameraMouse/index.ts b/packages/cientos/src/core/usePamCameraMouse/index.ts index 40983e8df..be6073701 100644 --- a/packages/cientos/src/core/usePamCameraMouse/index.ts +++ b/packages/cientos/src/core/usePamCameraMouse/index.ts @@ -1,7 +1,7 @@ import { watchEffect, computed } from 'vue' import { Camera } from 'three' import { useWindowSize, useMouse } from '@vueuse/core' -import { useLogger } from '@tresjs/core/src/iternal/useLogger' +import { useLogger } from '@tresjs/core' export function usePamCameraMouse(disabled = false, factor = 5, camera: Camera | undefined) { const { x, y } = useMouse() diff --git a/packages/tres/src/App.vue b/packages/tres/src/App.vue index db42a7a37..fc5d0b24e 100644 --- a/packages/tres/src/App.vue +++ b/packages/tres/src/App.vue @@ -1,13 +1,43 @@