From 9a3f8bb7461c253a175107c834f7eb50717602c9 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Fri, 10 Mar 2023 17:18:58 +0100 Subject: [PATCH] feat(core): adding composables to the solution --- docs/examples/text-3d.md | 2 +- packages/tres/src/App.vue | 4 +- packages/tres/src/components/TresCanvas.ts | 71 ++++++++++--------- .../tres/src/composables/useCamera/index.ts | 17 +++-- .../src/composables/useCatalogue/index.ts | 2 +- .../composables/useInstanceCreator/index.ts | 2 +- .../src/composables/useRaycaster/index.ts | 2 +- .../tres/src/composables/useRenderer/index.ts | 2 +- .../tres/src/composables/useTres/index.ts | 2 +- packages/tres/src/core/nodeOps.ts | 16 +++-- packages/tres/src/demos/TestSphere.vue | 2 +- packages/tres/src/demos/Text3D.vue | 2 +- packages/tres/src/demos/TheGroups.vue | 2 +- packages/tres/src/index.ts | 8 +-- 14 files changed, 76 insertions(+), 58 deletions(-) diff --git a/docs/examples/text-3d.md b/docs/examples/text-3d.md index 422c53d1c..0f806c789 100644 --- a/docs/examples/text-3d.md +++ b/docs/examples/text-3d.md @@ -95,7 +95,7 @@ So the final code would be something like this: