diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index b30525a..62ce2d8 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -28,8 +28,7 @@ export default defineConfig({ base: "/three-viewport-gizmo/", head: [["link", { rel: "icon", href: "./assets/three-viewport-gizmo.svg" }]], title: "Three Viewport Gizmo", - description: - "A three.js completely customizable 3D view helper for any camera setup", + description: "A three.js customizable 3D view helper for any camera setup", appearance: "force-dark", themeConfig: { // https://vitepress.dev/reference/default-theme-config @@ -67,4 +66,17 @@ export default defineConfig({ }, ], }, + vite: { + build: { + commonjsOptions: { + include: [/oh-vue-icons/], + }, + }, + optimizeDeps: { + include: ["oh-vue-icons"], + }, + ssr: { + noExternal: ["oh-vue-icons"], + }, + }, }); diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 8822460..c25b009 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -6,10 +6,10 @@ --vp-c-indigo-soft: rgba(230, 66, 66, 0.16) !important; /* Purple to orange tones */ - --vp-c-purple-1: #fb8982 !important;#ffb891 !important; - --vp-c-purple-2: #e25656 !important;#e77c5c !important; - --vp-c-purple-3: #cc4343 !important;#dd633e !important; - --vp-c-purple-soft: rgba(230, 66, 66, 0.16) !important;t: rgba(255, 136, 100, 0.16) !important; + --vp-c-purple-1: #fb8982 !important; + --vp-c-purple-2: #e25656 !important; + --vp-c-purple-3: #cc4343 !important; + --vp-c-purple-soft: rgba(230, 66, 66, 0.16) !important; } .VPNavBarMenu a:nth-of-type(2) { @@ -49,4 +49,3 @@ svg { .VPHero .image { aspect-ratio: 1; } - diff --git a/docs/public/samples/config.html b/docs/public/samples/config.html index ecd6535..687472f 100644 --- a/docs/public/samples/config.html +++ b/docs/public/samples/config.html @@ -55,7 +55,7 @@ document.body.appendChild(renderer.domElement); // Viewport Gizmo - const gizmo = new ViewportGizmo(camera, renderer, { + let gizmo = new ViewportGizmo(camera, renderer, { size: Math.min(width, height) * 0.8, placement: "center-center", }); diff --git a/docs/public/samples/resizable-grid.html b/docs/public/samples/resizable-grid.html index 7936dfb..09881e4 100644 --- a/docs/public/samples/resizable-grid.html +++ b/docs/public/samples/resizable-grid.html @@ -124,7 +124,7 @@