@threlte/rapier 1.0.0-next.2 → 1.0.0-next.4

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/README.md CHANGED
@@ -1,19 +1,66 @@
1
- ![Threlte Logo](https://user-images.githubusercontent.com/46897060/178455971-434f4c5d-6c26-4d34-acdc-b4b50e2a8a2c.png)
1
+ <div align="right">
2
+ <a href="https://www.npmjs.com/package/@threlte/rapier">
3
+ <img alt="npm" src="https://img.shields.io/npm/v/@threlte/rapier?color=fe4100&labelColor=171d27&logo=npm&logoColor=white"/>
4
+ </a>
5
+ <a href="https://github.com/threlte/threlte/blob/main/LICENSE.md">
6
+ <img alt="license" src="https://img.shields.io/npm/l/@threlte/core?color=fe4100&labelColor=171d27&logo=git&logoColor=white"/>
7
+ </a>
8
+ <a href="https://discord.com/channels/985983540804091964">
9
+ <img alt="discord" src="https://img.shields.io/discord/985983540804091964?label=discord&color=fe4100&labelColor=171d27&logo=discord&logoColor=white"/>
10
+ </a>
11
+ <a href="https://next.threlte.xyz">
12
+ <img alt="docs" src="https://img.shields.io/website?down_color=red&down_message=offline&label=docs&color=fe4100&labelColor=171d27&up_message=online&url=https%3A%2F%2Fthrelte.xyz&logo=svelte&logoColor=white"/>
13
+ </a>
14
+ </div>
2
15
 
3
- <h1 align="center">@threlte/rapier</h1>
16
+ <a href="https://next.threlte.xyz">
17
+ <img src="./threlte-banner.jpg"/>
18
+ </a>
4
19
 
5
- Provides easy to use components and hooks to use the [rapier](https://rapier.rs/) physics engine in threlte.
20
+ ## Rapidly Build Interactive 3D Apps for the Web
6
21
 
7
- ## Official Documentation
22
+ Threlte is a [Svelte](https://svelte.dev/) library that simplifies creating 3D apps for the web. It provides a **declarative**, **type-safe**, **reactive** and **interactive** API out-of-the-box.
8
23
 
9
- Visit [threlte.xyz](https://threlte.xyz)
24
+ Threlte's **3D rendering** is powered by [Three.js](https://threejs.org/), and it also provides a **physics engine** through [Rapier](https://rapier.rs/) and an **animation studio** via [Theatre.js](https://www.theatrejs.com/); see [packages](#packages) for details.
10
25
 
11
- ## Support
26
+ Check out our **[documentation](https://next.threlte.xyz)** and our **[Discord community](https://discord.gg/EqUBCfCaGm)**.
12
27
 
13
- Join the [Discord server](https://discord.gg/EqUBCfCaGm)
28
+ ## @threlte/rapier
29
+
30
+ [@threlte/rapier](https://next.threlte.xyz/docs/reference/rapier/getting-started) enables performant physics in your Threlte app through the [Rapier engine](https://rapier.rs/).
31
+
32
+ This is a great way to implement key features of games or simulators, such as collisions, gravity and attraction fields.
33
+
34
+ ## Quickstart
35
+
36
+ ### Installation
37
+
38
+ For a quick interactive setup of a fresh Threlte project, run:
39
+
40
+ ```sh
41
+ npm create threlte my-project
42
+ ```
43
+ and select the `@threlte/rapier` option.
44
+
45
+ Alternatively you can check out the full [installation instructions](https://next.threlte.xyz/docs/learn/getting-started/installation).
46
+
47
+ ### Support
48
+
49
+ Have questions? Feel free to ask in our [Discord support forum](https://discord.com/channels/985983540804091964/1031843197963477002).
50
+
51
+ ## Contributing
52
+
53
+ Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
54
+
55
+ - **Filing Issues** - if you have feature requestions or you think you spotted a bug, [submit an issue](https://github.com/threlte/threlte/issues/new).
56
+ - **Contributing Code** - if you would like to drop us a PR, read the [contribution guide](https://github.com/threlte/threlte/blob/main/CONTRIBUTING.md) first.
57
+
58
+ ## Sponsors
59
+
60
+ [![Powered by Vercel](./assets/vercel/powered-by-vercel.svg)](https://vercel.com/?utm_source=threlte&utm_campaign=oss)
14
61
 
15
62
  ---
16
63
 
17
64
  ### License
18
65
 
19
- The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
66
+ The MIT License (MIT). Please see the [License File](LICENSE.md) for more information.
@@ -24,9 +24,9 @@ declare const __propDef: {
24
24
  default: {};
25
25
  };
26
26
  };
27
- export declare type InnerWorldProps = typeof __propDef.props;
28
- export declare type InnerWorldEvents = typeof __propDef.events;
29
- export declare type InnerWorldSlots = typeof __propDef.slots;
27
+ export type InnerWorldProps = typeof __propDef.props;
28
+ export type InnerWorldEvents = typeof __propDef.events;
29
+ export type InnerWorldSlots = typeof __propDef.slots;
30
30
  export default class InnerWorld extends SvelteComponentTyped<InnerWorldProps, InnerWorldEvents, InnerWorldSlots> {
31
31
  }
32
32
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { FixedImpulseJoint } from '@dimforge/rapier3d-compat';
2
3
  import { Euler } from 'three';
3
4
  export declare const useFixedJoint: (anchorA: [x: number, y: number, z: number], frameA: Parameters<Euler['set']> | Euler, anchorB: [x: number, y: number, z: number], frameB: Parameters<Euler['set']> | Euler) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import { MultibodyJoint, type ImpulseJoint, type RigidBody } from '@dimforge/rapier3d-compat';
2
3
  import type { RapierContext } from '../types/types';
3
4
  export declare const useJoint: <T extends ImpulseJoint | MultibodyJoint>(initializeJoint: (rigidBodyA: RigidBody, rigidBodyB: RigidBody, ctx: RapierContext) => T) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { PrismaticImpulseJoint } from '@dimforge/rapier3d-compat';
2
3
  import { Vector3 } from 'three';
3
4
  export declare const usePrismaticJoint: (anchorA: Parameters<Vector3['set']> | Vector3, anchorB: Parameters<Vector3['set']> | Vector3, axis: Parameters<Vector3['set']> | Vector3, limits?: [min: number, max: number]) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { RevoluteImpulseJoint } from '@dimforge/rapier3d-compat';
2
3
  import { Vector3 } from 'three';
3
4
  export declare const useRevoluteJoint: (anchorA: Parameters<Vector3['set']> | Vector3, anchorB: Parameters<Vector3['set']> | Vector3, axis: Parameters<Vector3['set']> | Vector3, limits?: [min: number, max: number]) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { SphericalImpulseJoint } from '@dimforge/rapier3d-compat';
2
3
  import { Vector3 } from 'three';
3
4
  export declare const useSphericalJoint: (anchorA: Parameters<Vector3['set']> | Vector3, anchorB: Parameters<Vector3['set']> | Vector3) => {
@@ -1,5 +1,5 @@
1
- declare type N = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
2
- export declare type Groups = N[];
3
- export declare type MembershipsAndFilter = N[];
1
+ type N = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
2
+ export type Groups = N[];
3
+ export type MembershipsAndFilter = N[];
4
4
  export declare const computeBitMask: (groups: Groups, filter: MembershipsAndFilter, memberships: MembershipsAndFilter) => number;
5
5
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { Collider, RigidBody } from '@dimforge/rapier3d-compat';
2
3
  import RAPIER from '@dimforge/rapier3d-compat';
3
4
  import type { Object3D } from 'three';
@@ -4,4 +4,4 @@ import { Quaternion } from 'three';
4
4
  * @param values
5
5
  * @returns
6
6
  */
7
- export declare const eulerToQuaternion: (values: [x: number, y: number, z: number, order?: string | undefined]) => Quaternion;
7
+ export declare const eulerToQuaternion: (values: [x: number, y: number, z: number, order?: import("three").EulerOrder | undefined]) => Quaternion;
@@ -1,3 +1,3 @@
1
1
  import { RigidBodyType } from '@dimforge/rapier3d-compat';
2
- export declare type RigidBodyTypeString = 'fixed' | 'dynamic' | 'kinematicPosition' | 'kinematicVelocity';
2
+ export type RigidBodyTypeString = 'fixed' | 'dynamic' | 'kinematicPosition' | 'kinematicVelocity';
3
3
  export declare const parseRigidBodyType: (type: RigidBodyTypeString) => RigidBodyType;
@@ -18,9 +18,9 @@ declare const __propDef: {
18
18
  default: {};
19
19
  };
20
20
  };
21
- export declare type BasicPlayerControllerProps = typeof __propDef.props;
22
- export declare type BasicPlayerControllerEvents = typeof __propDef.events;
23
- export declare type BasicPlayerControllerSlots = typeof __propDef.slots;
21
+ export type BasicPlayerControllerProps = typeof __propDef.props;
22
+ export type BasicPlayerControllerEvents = typeof __propDef.events;
23
+ export type BasicPlayerControllerSlots = typeof __propDef.slots;
24
24
  export default class BasicPlayerController extends SvelteComponentTyped<BasicPlayerControllerProps, BasicPlayerControllerEvents, BasicPlayerControllerSlots> {
25
25
  }
26
26
  export {};
@@ -3,9 +3,9 @@ import type { createRawEventDispatcher } from '@threlte/core';
3
3
  import type { Writable } from 'svelte/store';
4
4
  import type { useHasEventListeners } from '../hooks/useHasEventListener';
5
5
  import type { createRapierContext } from '../lib/createRapierContext';
6
- export declare type ColliderShapes = 'ball' | 'capsule' | 'segment' | 'triangle' | 'roundTriangle' | 'polyline' | 'trimesh' | 'cuboid' | 'roundCuboid' | 'heightfield' | 'cylinder' | 'roundCylinder' | 'cone' | 'roundCone' | 'convexHull' | 'convexMesh' | 'roundConvexHull' | 'roundConvexMesh';
7
- export declare type AutoCollidersShapes = 'cuboid' | 'ball' | 'trimesh' | 'convexHull' | 'capsule';
8
- export declare type ColliderEventMap = {
6
+ export type ColliderShapes = 'ball' | 'capsule' | 'segment' | 'triangle' | 'roundTriangle' | 'polyline' | 'trimesh' | 'cuboid' | 'roundCuboid' | 'heightfield' | 'cylinder' | 'roundCylinder' | 'cone' | 'roundCone' | 'convexHull' | 'convexMesh' | 'roundConvexHull' | 'roundConvexMesh';
7
+ export type AutoCollidersShapes = 'cuboid' | 'ball' | 'trimesh' | 'convexHull' | 'capsule';
8
+ export type ColliderEventMap = {
9
9
  collisionenter: {
10
10
  targetCollider: Collider;
11
11
  targetRigidBody: RigidBody | null;
@@ -33,30 +33,30 @@ export declare type ColliderEventMap = {
33
33
  totalForceMagnitude: number;
34
34
  };
35
35
  };
36
- export declare type CollisionEnterEvent = CustomEvent<ColliderEventMap['collisionenter']>;
37
- export declare type CollisionExitEvent = CustomEvent<ColliderEventMap['collisionexit']>;
38
- export declare type SensorEnterEvent = CustomEvent<ColliderEventMap['sensorenter']>;
39
- export declare type SensorExitEvent = CustomEvent<ColliderEventMap['sensorexit']>;
40
- export declare type ContactEvent = CustomEvent<ColliderEventMap['contact']>;
41
- export declare type RigidBodyEventMap = ColliderEventMap & {
36
+ export type CollisionEnterEvent = CustomEvent<ColliderEventMap['collisionenter']>;
37
+ export type CollisionExitEvent = CustomEvent<ColliderEventMap['collisionexit']>;
38
+ export type SensorEnterEvent = CustomEvent<ColliderEventMap['sensorenter']>;
39
+ export type SensorExitEvent = CustomEvent<ColliderEventMap['sensorexit']>;
40
+ export type ContactEvent = CustomEvent<ColliderEventMap['contact']>;
41
+ export type RigidBodyEventMap = ColliderEventMap & {
42
42
  sleep: void;
43
43
  wake: void;
44
44
  };
45
- export declare type RigidBodyEventDispatcher = ReturnType<typeof createRawEventDispatcher<RigidBodyEventMap>>;
46
- export declare type ColliderEventDispatcher = ReturnType<typeof createRawEventDispatcher<ColliderEventMap>>;
47
- export declare type RigidBodyEventDispatchers = Map<RigidBodyHandle, RigidBodyEventDispatcher>;
48
- export declare type ColliderEventDispatchers = Map<ColliderHandle, ColliderEventDispatcher>;
49
- export declare type RapierContext = ReturnType<typeof createRapierContext>;
50
- export declare type CollisionGroupsContext = Writable<number> | undefined;
51
- export declare type RigidBodyUserData = {
45
+ export type RigidBodyEventDispatcher = ReturnType<typeof createRawEventDispatcher<RigidBodyEventMap>>;
46
+ export type ColliderEventDispatcher = ReturnType<typeof createRawEventDispatcher<ColliderEventMap>>;
47
+ export type RigidBodyEventDispatchers = Map<RigidBodyHandle, RigidBodyEventDispatcher>;
48
+ export type ColliderEventDispatchers = Map<ColliderHandle, ColliderEventDispatcher>;
49
+ export type RapierContext = ReturnType<typeof createRapierContext>;
50
+ export type CollisionGroupsContext = Writable<number> | undefined;
51
+ export type RigidBodyUserData = {
52
52
  hasEventListeners?: ReturnType<typeof useHasEventListeners<RigidBodyEventDispatcher>>['hasEventListeners'];
53
53
  };
54
- export declare type ThrelteRigidBody = RigidBody & {
54
+ export type ThrelteRigidBody = RigidBody & {
55
55
  userData?: RigidBodyUserData;
56
56
  };
57
- export declare type RigidBodyContext = ThrelteRigidBody;
58
- export declare type CollisionGroupsBitMask = (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15)[];
57
+ export type RigidBodyContext = ThrelteRigidBody;
58
+ export type CollisionGroupsBitMask = (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15)[];
59
59
  /**
60
60
  * Used in the <Attractor> component
61
61
  */
62
- export declare type GravityType = 'static' | 'linear' | 'newtonian';
62
+ export type GravityType = 'static' | 'linear' | 'newtonian';
package/package.json CHANGED
@@ -1,39 +1,44 @@
1
1
  {
2
2
  "name": "@threlte/rapier",
3
- "version": "1.0.0-next.2",
3
+ "version": "1.0.0-next.4",
4
4
  "author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
7
- "@dimforge/rapier3d-compat": "^0.11.2",
8
- "@sveltejs/adapter-auto": "1.0.0-next.61",
9
- "@sveltejs/adapter-static": "1.0.0-next.35",
10
- "@sveltejs/kit": "1.0.0-next.377",
11
- "@threlte/core": "6.0.0-next.3",
7
+ "@sveltejs/adapter-auto": "^2.0.0",
8
+ "@sveltejs/kit": "^1.20.4",
9
+ "@sveltejs/package": "^2.1.0",
12
10
  "@types/node": "^18.0.3",
13
- "@types/three": "^0.144.0",
14
- "@typescript-eslint/eslint-plugin": "^4.31.1",
15
- "@typescript-eslint/parser": "^4.31.1",
11
+ "@types/three": "^0.152.1",
12
+ "@typescript-eslint/eslint-plugin": "^5.45.0",
13
+ "@typescript-eslint/parser": "^5.45.0",
16
14
  "@yushijinhun/three-minifier-rollup": "^0.3.1",
17
- "eslint": "^7.32.0",
18
- "eslint-config-prettier": "^8.3.0",
19
- "eslint-plugin-svelte3": "^3.2.1",
20
- "prettier": "^2.6.2",
21
- "prettier-plugin-svelte": "^2.4.0",
22
- "svelte": "^3.47.0",
23
- "svelte-check": "^2.7.0",
24
- "svelte-preprocess": "^4.10.5",
25
- "svelte2tsx": "^0.5.9",
26
- "three": "^0.151.3",
27
- "ts-node": "^10.8.2",
28
- "tsafe": "^0.9.0",
29
- "tslib": "^2.3.1",
15
+ "eslint": "^8.28.0",
16
+ "eslint-config-prettier": "^8.5.0",
17
+ "eslint-plugin-svelte": "^2.30.0",
18
+ "prettier": "^2.8.8",
19
+ "prettier-plugin-svelte": "^2.10.1",
20
+ "publint": "^0.1.12",
21
+ "rimraf": "^5.0.1",
22
+ "svelte-check": "^3.4.3",
23
+ "svelte-preprocess": "^5.0.4",
24
+ "svelte2tsx": "^0.6.19",
25
+ "tslib": "^2.4.1",
30
26
  "type-fest": "^2.13.0",
31
- "typescript": "^4.6.3"
27
+ "typescript": "^5.0.0",
28
+ "vite": "^4.3.6",
29
+ "@threlte/core": "6.0.0-next.12"
30
+ },
31
+ "dependencies": {
32
+ "three": "^0.151.3",
33
+ "svelte": "^4.1.1",
34
+ "@dimforge/rapier3d-compat": "^0.11.2"
32
35
  },
33
36
  "type": "module",
34
37
  "exports": {
35
- "./package.json": "./package.json",
36
- ".": "./dist/index.js"
38
+ ".": {
39
+ "types": "./dist/index.d.ts",
40
+ "svelte": "./dist/index.js"
41
+ }
37
42
  },
38
43
  "types": "./dist/index.d.ts",
39
44
  "svelte": "./dist/index.js",
@@ -41,11 +46,11 @@
41
46
  "dist"
42
47
  ],
43
48
  "scripts": {
44
- "package": "svelte-kit package && ts-node --esm ./scripts/cleanupPackage.ts && rm ./dist/package.json",
49
+ "package": "svelte-kit sync && svelte-package && node ./scripts/cleanupPackage.js && publint",
45
50
  "check": "svelte-check --tsconfig ./tsconfig.json",
46
51
  "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
47
52
  "lint": "prettier --check --plugin-search-dir=. . && eslint .",
48
53
  "format": "prettier --write --plugin-search-dir=. .",
49
- "cleanup": "rm -rf node_modules && rm -rf .svelte-kit"
54
+ "cleanup": "rimraf node_modules .svelte-kit dist"
50
55
  }
51
56
  }
package/dist/CHANGELOG.md DELETED
@@ -1,183 +0,0 @@
1
- # @threlte/extras
2
-
3
- ## 1.0.0-next.2
4
-
5
- ### Patch Changes
6
-
7
- - eb0dc69f: Removed the component TransformableObject, removed stale types from rapier package
8
-
9
- ## 1.0.0-next.1
10
-
11
- ### Major Changes
12
-
13
- - 4b67b473: Removed transform properties on rapier components Collider, AutoColliders and RigidBody
14
-
15
- ## 1.0.0-next.0
16
-
17
- ### Major Changes
18
-
19
- - d41cb6cf: Adapted rapier package to Threlte v6 syntax
20
-
21
- ## 0.5.0
22
-
23
- ### Minor Changes
24
-
25
- - d69391a: Add Attractor component and documentation
26
-
27
- ## 0.4.0
28
-
29
- ### Minor Changes
30
-
31
- - 4b4d7be: Added rapiers damping properties to the component <RigidBody>
32
-
33
- ## 0.3.2
34
-
35
- ### Patch Changes
36
-
37
- - c7e226f: useJoint is now exported and its types are fixed
38
-
39
- ## 0.3.1
40
-
41
- ### Patch Changes
42
-
43
- - 9d29fc0: removed unused variable
44
-
45
- ## 0.3.0
46
-
47
- ### Minor Changes
48
-
49
- - 1a0f305: removed properties "manifold" and "flipped" from contact force event
50
-
51
- ### Patch Changes
52
-
53
- - 291af9b: Exporting rapier event types for easier method typing
54
-
55
- ## 0.2.0
56
-
57
- ### Minor Changes
58
-
59
- - 73b533d: Added contact force events and streamlined event management
60
-
61
- ### Patch Changes
62
-
63
- - 7d46de2: sensors need events too!
64
-
65
- ## 0.1.0
66
-
67
- ### Minor Changes
68
-
69
- - c272617: Hooks added to add Joints, Collider and AutoColliders now accepts density, mass or massProperties, documentation for joints hooks added, "Basic Vehicle Controller" Recipe added.
70
-
71
- ## 0.0.3
72
-
73
- ### Patch Changes
74
-
75
- - cd6dac6: cleaned up dead code in RigidBody component
76
-
77
- ## 0.0.2
78
-
79
- ### Patch Changes
80
-
81
- - 62d2c5c: fixed `<RigidBody>` initial transforms
82
-
83
- ## 0.0.1
84
-
85
- ### Patch Changes
86
-
87
- - 7a3fa6b: # NEW PACKAGE: @threlte/rapier
88
-
89
- This package provides easy to use components and hooks to use the [rapier](https://rapier.rs/) physics engine in threlte.
90
-
91
- It comes with several components to get you started: [`<World>`](https://threlte.xyz/rapier/world), [`<RigidBody>`](https://threlte.xyz/rapier/rigid-body), [`<Collider>`](https://threlte.xyz/rapier/collider), [`<AutoColliders>`](https://threlte.xyz/rapier/auto-colliders), [`<CollisionGroups>`](https://threlte.xyz/rapier/collision-groups) and [`<Debug>`](https://threlte.xyz/rapier/debug).
92
-
93
- It also features several handy hooks: [`<useRapier>`](https://threlte.xyz/rapier/use-rapier), [`<useCollisionGroups>`](https://threlte.xyz/rapier/use-collision-groups) and [`<useRigidBody>`](https://threlte.xyz/rapier/use-rigid-body).
94
-
95
- ## 4.0.0
96
-
97
- ### Major Changes
98
-
99
- - 52e021c: # Breaking Change
100
-
101
- The threlte repository has been moved to its own GitHub Organization: [https://github.com/threlte/threlte](https://github.com/threlte/threlte).
102
- threlte consists now of two npm packages: `@threlte/core` and `@threlte/extras`, managed in a mono repository:
103
-
104
- `@threlte/core` consists of components, hooks and other utilites that follow three.js principles, nomenclature and inheritance as closely as useful and possible. Therefore components that have been part of the package `threlte` have been moved to the new home of all kinds of useful abstractons: `@threlte/extras`.
105
-
106
- `@threlte/extras` consists of useful abstractions and helpers that you may find yourself use all the time. These components do not need to follow three.js principles as strict as exports from `@threlte/core`, but they do where it makes sense.
107
-
108
- ## The breaking changes in detail:
109
-
110
- - Moved `<GLTF>` component as well as `useGltf` hook to `@threlte/extras`.
111
- - Moved `<Text>` component to `@threlte/extras`.
112
-
113
- ## How to update
114
-
115
- Replace imports from `threlte` and `threlte/extras`:
116
-
117
- 1. `npm rm threlte`
118
- 2. `npm i -D @threlte/core @threlte/extras`
119
- 3. Replace `import {…} from 'threlte'` with `import {…} from '@threlte/core'`
120
- 4. Replace `import {…} from 'threlte/extras'` with `import {…} from '@threlte/extras'`
121
-
122
- Specifically replace imports of `<GLTF>`, `useGltf` or `<Text>`:
123
-
124
- 3. Replace `import { GLTF, useGltf, Text } from 'threlte'` with `import { GLTF, useGltf, Text } from '@threlte/extras'`
125
-
126
- # Other changes
127
-
128
- - The documentation is now hosted on Vercel and as such we are hoping for a Vercel Sponsorship for OSS. There have also been some style fixes and overhauls.
129
-
130
- ## 3.13.10
131
-
132
- ### Patch Changes
133
-
134
- - 4de7371: added svelte identifier
135
-
136
- ## 3.13.9
137
-
138
- ### Patch Changes
139
-
140
- - 41cc5a1: test
141
-
142
- ## 3.13.8
143
-
144
- ### Patch Changes
145
-
146
- - 79a64f5: test
147
-
148
- ## 3.13.7
149
-
150
- ### Patch Changes
151
-
152
- - test
153
-
154
- ## 3.13.6
155
-
156
- ### Patch Changes
157
-
158
- - trying to delete
159
-
160
- ## 3.13.5
161
-
162
- ### Patch Changes
163
-
164
- - 11aa5eb: yes
165
-
166
- ## 3.13.4
167
-
168
- ### Patch Changes
169
-
170
- - 0c40456: added scripts to clean up packages
171
- - 7cc4e5d: added node types
172
-
173
- ## 3.13.3
174
-
175
- ### Patch Changes
176
-
177
- - a2a6d93: test
178
-
179
- ## 3.13.2
180
-
181
- ### Patch Changes
182
-
183
- - 8dbf8cd: Test
package/dist/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Grischa Erbe
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/README.md DELETED
@@ -1,19 +0,0 @@
1
- ![Threlte Logo](https://user-images.githubusercontent.com/46897060/178455971-434f4c5d-6c26-4d34-acdc-b4b50e2a8a2c.png)
2
-
3
- <h1 align="center">@threlte/rapier</h1>
4
-
5
- Provides easy to use components and hooks to use the [rapier](https://rapier.rs/) physics engine in threlte.
6
-
7
- ## Official Documentation
8
-
9
- Visit [threlte.xyz](https://threlte.xyz)
10
-
11
- ## Support
12
-
13
- Join the [Discord server](https://discord.gg/EqUBCfCaGm)
14
-
15
- ---
16
-
17
- ### License
18
-
19
- The MIT License (MIT). Please see [License File](LICENSE.md) for more information.