From ccf53135a81c795bc08b343baaa823fa33bd064d Mon Sep 17 00:00:00 2001 From: Jaime Torrealba Date: Wed, 31 Jan 2024 11:54:46 +0000 Subject: [PATCH] feat(app): Add a new directive, v-rotate --- docs/.vitepress/config.ts | 1 + docs/directives/v-always-look-at.md | 8 +-- docs/directives/v-distance-to.md | 3 +- docs/directives/v-light-helper.md | 3 +- docs/directives/v-log.md | 3 +- docs/directives/v-rotate.md | 82 +++++++++++++++++++++++++++++ playground/src/pages/lights.vue | 17 ++++-- src/directives/index.ts | 3 +- src/directives/vRotate.ts | 61 +++++++++++++++++++++ 9 files changed, 170 insertions(+), 11 deletions(-) create mode 100644 docs/directives/v-rotate.md create mode 100644 src/directives/vRotate.ts diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 599e35c6b..6102c3771 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -105,6 +105,7 @@ export default defineConfig({ { 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' }, ], }, { diff --git a/docs/directives/v-always-look-at.md b/docs/directives/v-always-look-at.md index 213c3c891..446a538f8 100644 --- a/docs/directives/v-always-look-at.md +++ b/docs/directives/v-always-look-at.md @@ -6,8 +6,8 @@ With the new directive v-always-look-at provided by **TresJS**, you can add easi ```vue{3,9}