@tresjs/core 5.0.2 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +1 -1
- package/composables.d.ts +1 -1
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/is/tres.d.ts +1 -1
- package/dist/tres.js +793 -793
- package/package.json +21 -56
- package/types.d.ts +1 -1
- package/utils.d.ts +1 -1
- package/README.md +0 -99
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0
|
|
5
|
-
"packageManager": "pnpm@10.17.0",
|
|
4
|
+
"version": "5.1.0",
|
|
6
5
|
"description": "Declarative ThreeJS using Vue Components",
|
|
7
6
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
8
7
|
"license": "MIT",
|
|
9
8
|
"repository": {
|
|
10
9
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/Tresjs/tres.git"
|
|
10
|
+
"url": "git+https://github.com/Tresjs/tres.git",
|
|
11
|
+
"directory": "packages/core"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"vue",
|
|
@@ -47,24 +47,6 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"dev": "pnpm --filter='./playground/vue' dev",
|
|
52
|
-
"dev:nuxt": "pnpm --filter='./playground/nuxt' dev",
|
|
53
|
-
"build": "vite build",
|
|
54
|
-
"test": "vitest",
|
|
55
|
-
"test:ci": "vitest run",
|
|
56
|
-
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
57
|
-
"release": "release-it",
|
|
58
|
-
"coverage": "vitest run --coverage",
|
|
59
|
-
"lint": "eslint .",
|
|
60
|
-
"lint:fix": "eslint . --fix",
|
|
61
|
-
"typecheck": "vue-tsc --noEmit",
|
|
62
|
-
"docs:dev": "pnpm --filter='./docs' dev",
|
|
63
|
-
"docs:generate": "pnpm --filter='./docs' generate",
|
|
64
|
-
"docs:prepare": "pnpm --filter='./docs' prepare",
|
|
65
|
-
"docs:lint": "pnpm --filter='./docs' lint",
|
|
66
|
-
"docs:typecheck": "pnpm --filter='./docs' typecheck"
|
|
67
|
-
},
|
|
68
50
|
"peerDependencies": {
|
|
69
51
|
"three": ">=0.133",
|
|
70
52
|
"vue": ">=3.4"
|
|
@@ -76,62 +58,45 @@
|
|
|
76
58
|
"radashi": "^12.6.2"
|
|
77
59
|
},
|
|
78
60
|
"devDependencies": {
|
|
79
|
-
"@release-it/conventional-changelog": "^10.0.0",
|
|
80
|
-
"@stackblitz/sdk": "^1.11.0",
|
|
81
|
-
"@tresjs/cientos": "5.0.0-alpha.1",
|
|
82
|
-
"@tresjs/eslint-config": "^1.4.0",
|
|
83
|
-
"@tresjs/leches": "1.0.0-next.0",
|
|
84
61
|
"@types/three": "^0.180.0",
|
|
85
62
|
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
86
63
|
"@typescript-eslint/parser": "^8.42.0",
|
|
87
64
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
88
|
-
"@vitest/coverage-
|
|
89
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
65
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
90
66
|
"@vitest/ui": "^3.2.4",
|
|
91
67
|
"@vue/test-utils": "^2.4.6",
|
|
92
68
|
"eslint": "^9.34.0",
|
|
93
69
|
"eslint-plugin-vue": "^10.4.0",
|
|
94
|
-
"esno": "^4.8.0",
|
|
95
|
-
"gsap": "^3.13.0",
|
|
96
70
|
"jsdom": "^27.0.0",
|
|
97
71
|
"kolorist": "^1.8.0",
|
|
98
|
-
"ohmyfetch": "^0.4.21",
|
|
99
72
|
"pathe": "^2.0.3",
|
|
100
|
-
"release-it": "^19.0.4",
|
|
101
73
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
102
74
|
"rollup-plugin-copy": "^3.5.0",
|
|
103
75
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
104
|
-
"sponsorkit": "^17.0.0",
|
|
105
76
|
"three": "^0.180.0",
|
|
106
|
-
"unocss": "^65.5.0",
|
|
107
|
-
"unplugin": "^2.3.10",
|
|
108
|
-
"unplugin-vue-components": "^29.0.0",
|
|
109
77
|
"vite": "^7.1.6",
|
|
110
78
|
"vite-plugin-banner": "^0.8.1",
|
|
111
79
|
"vite-plugin-dts": "4.5.4",
|
|
112
80
|
"vite-plugin-inspect": "^11.3.3",
|
|
113
|
-
"vite-plugin-require-transform": "^1.0.21",
|
|
114
|
-
"vite-svg-loader": "^5.1.0",
|
|
115
|
-
"vitepress": "1.6.4",
|
|
116
81
|
"vitest": "3.2.4",
|
|
117
|
-
"vue": "3.5.21",
|
|
82
|
+
"vue": "^3.5.21",
|
|
118
83
|
"vue-demi": "^0.14.10",
|
|
119
|
-
"vue-tsc": "^3.0.
|
|
84
|
+
"vue-tsc": "^3.0.7",
|
|
85
|
+
"@tresjs/eslint-config": "1.5.0"
|
|
120
86
|
},
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
]
|
|
125
|
-
"ignoredBuiltDependencies": [
|
|
126
|
-
"vue-demi"
|
|
127
|
-
],
|
|
128
|
-
"overrides": {
|
|
129
|
-
"ipx": "^3.0.3",
|
|
130
|
-
"vue": "^3.5.21",
|
|
131
|
-
"vue-router": "^4.5.1"
|
|
132
|
-
}
|
|
87
|
+
"nx": {
|
|
88
|
+
"implicitDependencies": [
|
|
89
|
+
"!@tresjs/core-*"
|
|
90
|
+
]
|
|
133
91
|
},
|
|
134
|
-
"
|
|
135
|
-
"
|
|
92
|
+
"scripts": {
|
|
93
|
+
"build": "vite build",
|
|
94
|
+
"test": "vitest",
|
|
95
|
+
"test:ci": "vitest run",
|
|
96
|
+
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
97
|
+
"coverage": "vitest run --coverage",
|
|
98
|
+
"lint": "eslint .",
|
|
99
|
+
"lint:fix": "eslint . --fix",
|
|
100
|
+
"typecheck": "vue-tsc --noEmit"
|
|
136
101
|
}
|
|
137
|
-
}
|
|
102
|
+
}
|
package/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../../dist/src/types/index.js'
|
package/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../../dist/src/utils/index.js'
|
package/README.md
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/v/@tresjs/core?color=%2382DBCA&logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjY4NTQgMy40MjkxNkMxMi4wNzM4IDIuNzgxODIgMTMuMDEyIDIuNzgxODIgMTMuNDAwNCAzLjQyOTE1TDE5LjE3NzEgMTMuMDU2OUMxOS41NzcgMTMuNzIzNSAxOS4wOTY5IDE0LjU3MTQgMTguMzE5NiAxNC41NzE0SDYuNzY2MjRDNS45ODg5NCAxNC41NzE0IDUuNTA4ODMgMTMuNzIzNSA1LjkwODc1IDEzLjA1NjlMMTEuNjg1NCAzLjQyOTE2WiIgZmlsbD0iIzgyREJDNSIvPgo8cGF0aCBkPSJNMTUuNjg1NyAxMC41NDI5QzE1LjY4NTcgOS45OTA1OSAxNi4xMzM0IDkuNTQyODggMTYuNjg1NyA5LjU0Mjg4SDI2QzI2LjU1MjIgOS41NDI4OCAyNyA5Ljk5MDU5IDI3IDEwLjU0MjlWMTkuODU3MkMyNyAyMC40MDk0IDI2LjU1MjIgMjAuODU3MiAyNiAyMC44NTcySDE2LjY4NTdDMTYuMTMzNCAyMC44NTcyIDE1LjY4NTcgMjAuNDA5NCAxNS42ODU3IDE5Ljg1NzJWMTAuNTQyOVoiIGZpbGw9IiM0RjRGNEYiLz4KPGNpcmNsZSBjeD0iMTYiIGN5PSIyMiIgcj0iNiIgZmlsbD0iI0VGQUMzNSIvPgo8L3N2Zz4K" alt="npm package"></a>
|
|
5
|
-
<a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/dm/@tresjs/core?color=%2382DBCA" alt="npm downloads"></a>
|
|
6
|
-
<a href="https://discord.gg/UCr96AQmWn"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
|
|
7
|
-
<a href="https://app.netlify.com/sites/tresjs-docs/deploys"><img src="https://api.netlify.com/api/v1/badges/5a59eb67-67f1-4c9d-bdf4-2f9a5899a531/deploy-status" alt="netlify status"></a>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
# TresJS `@tresjs/core`
|
|
11
|
-
|
|
12
|
-
> Declarative ThreeJS using Vue Components
|
|
13
|
-
|
|
14
|
-
- 💡 Build 3D scene as they were Vue components
|
|
15
|
-
- ⚡️ Powered by Vite
|
|
16
|
-
- 🥰 It brings all the updated features of ThreeJS right away regardless the version
|
|
17
|
-
- 🦾 Fully Typed
|
|
18
|
-
|
|
19
|
-
Tres (Spanish word for "three", pronounced `/tres/` ) is a way of creating ThreeJS scenes with Vue components in a declarative fashion.
|
|
20
|
-
|
|
21
|
-
It's build on-top of a [Vue Custom Renderer](https://vuejs.org/api/custom-renderer.html#createrenderer) and it's powered by Vite.
|
|
22
|
-
|
|
23
|
-
The goal is to provide the Vue's community an easy way of building 3D scenes with Vue, always up to date with the latest ThreeJS features and with 0-to-none maintenance.
|
|
24
|
-
|
|
25
|
-
## Installation
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pnpm install @tresjs/core three
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Docs
|
|
32
|
-
|
|
33
|
-
Checkout the [docs](https://tresjs.org)
|
|
34
|
-
|
|
35
|
-
## Demos
|
|
36
|
-
|
|
37
|
-
- [Stackblitz Collection](https://stackblitz.com/@alvarosabu/collections/tresjs)
|
|
38
|
-
|
|
39
|
-
## Ecosystem
|
|
40
|
-
|
|
41
|
-
| Package | Version |
|
|
42
|
-
| --------------------------- | :------------------------------------------------------------------------------------------------- |
|
|
43
|
-
| [Tres](https://github.com/TresJS/tres) |  |
|
|
44
|
-
| [Cientos](https://github.com/TresJS/cientos) |  |
|
|
45
|
-
| [Post-processing](https://github.com/TresJS/post-processing) |  |
|
|
46
|
-
| [Nuxt](https://github.com/TresJS/nuxt) |  |
|
|
47
|
-
| [TresLeches 🍰](https://github.com/TresJS/leches) |  |
|
|
48
|
-
|
|
49
|
-
## Contribution
|
|
50
|
-
|
|
51
|
-
We are open to contributions, please read the [contributing guide](/CONTRIBUTING.md) to get started.
|
|
52
|
-
|
|
53
|
-
### Setup
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
pnpm install --shamefully-hoist
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Playground
|
|
60
|
-
|
|
61
|
-
To run the small playground
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
pnpm run playground
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Build lib
|
|
68
|
-
|
|
69
|
-
To build the core as library mode just use
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
pnpm run build
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Docs
|
|
76
|
-
|
|
77
|
-
To run de docs in dev mode
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
pnpm run docs:dev
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
To build them
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
pnpm run docs:build
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## License
|
|
90
|
-
|
|
91
|
-
[MIT](/LICENSE)
|
|
92
|
-
|
|
93
|
-
## Sponsors
|
|
94
|
-
|
|
95
|
-
<p align="center">
|
|
96
|
-
<a target="_blank" href="https://github.com/sponsors/tresjs">
|
|
97
|
-
<img alt="sponsors" src="./sponsorkit/sponsors.png">
|
|
98
|
-
</a>
|
|
99
|
-
</p>
|