histoire.setup.ts 301 B

12345678910111213
  1. import { defineSetupVue3 } from '@histoire/plugin-vue'
  2. import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
  3. import Tres from './src'
  4. export const setupVue3 = defineSetupVue3(({ app }) => {
  5. app.use(Tres, {
  6. prefix: 'Tres',
  7. extends: {
  8. OrbitControls,
  9. },
  10. })
  11. })