-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5115353
commit 2e4397d
Showing
7 changed files
with
18 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ packages/.DS_Store | |
.pnpm-store/ | ||
# Local Netlify folder | ||
.netlify | ||
apps/lunchbox-demo | ||
docs/.vitepress/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
import Tres from '@tresjs/core' | ||
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' | ||
// .vitepress/theme/index.ts | ||
import DefaultTheme from 'vitepress/theme' | ||
import './config.css' | ||
import FirstScene from './components/FirstScene.vue' | ||
import FirstSceneLightToon from './components/FirstSceneLightToon.vue' | ||
import ExtendExample from './components/ExtendExample.vue' | ||
|
||
export default { | ||
...DefaultTheme, | ||
enhanceApp(ctx) { | ||
ctx.app.component('FirstScene', FirstScene) | ||
ctx.app.component('FirstSceneLightToon', FirstSceneLightToon) | ||
ctx.app.component('ExtendExample', ExtendExample) | ||
ctx.app.use(Tres, { | ||
extends: { | ||
OrbitControls, | ||
}, | ||
}) | ||
|
||
ctx.app.use(Tres) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters