Skip to content

Commit

Permalink
feat(core): auto generated tres component types
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Mar 16, 2023
1 parent c878635 commit 7430d2c
Show file tree
Hide file tree
Showing 11 changed files with 390 additions and 308 deletions.
12 changes: 11 additions & 1 deletion apps/playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
import { OrbitControls } from '@tresjs/cientos'
</script>

<template>
<TresCanvas> </TresCanvas>
<TresCanvas>
<TresPerspectiveCamera :args="[45, 1, 0.1, 2000]" :position="[3, 3, 4]" />
<OrbitControls />
<TresAmbientLight :args="[0xffffff, 0.5]" />
<TresDirectionalLight :args="[0xffffff, 0.5]" />
<TresMesh>
<TresBoxGeometry :args="[1, 1, 1]" />
<TresMeshToonMaterial :color="'teal'" />
</TresMesh>
</TresCanvas>
</template>

<style scoped>
Expand Down
3 changes: 1 addition & 2 deletions packages/cientos/src/core/useCientos.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useTres } from '@tresjs/core'
import { useTres, useLogger } from '@tresjs/core'
import { inject } from 'vue'
import { useLogger } from '/@/composables'
/**
* Allows to use and extend the state of the core package.
*
Expand Down
286 changes: 0 additions & 286 deletions packages/tres/.tres/tres-components.d.ts

This file was deleted.

4 changes: 4 additions & 0 deletions packages/tres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"require": "./dist/index.d.ts",
"import": "./dist/index.d.ts"
},
"./components": {
"types": "./dist/types/tres-components.d.ts"
},
"./styles": "./dist/style.css",
"./*": "./dist/tres.js"
},
Expand Down Expand Up @@ -64,6 +67,7 @@
"kolorist": "^1.7.0",
"pathe": "^1.1.0",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-visualizer": "^5.9.0",
"three": "latest",
"unplugin": "^1.3.1",
Expand Down
Loading

0 comments on commit 7430d2c

Please sign in to comment.