@threlte/rapier 1.0.0-next.3 → 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.3",
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",
7
+ "@sveltejs/adapter-auto": "^2.0.0",
8
+ "@sveltejs/kit": "^1.20.4",
9
+ "@sveltejs/package": "^2.1.0",
11
10
  "@types/node": "^18.0.3",
12
- "@types/three": "^0.144.0",
13
- "@typescript-eslint/eslint-plugin": "^4.31.1",
14
- "@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",
15
14
  "@yushijinhun/three-minifier-rollup": "^0.3.1",
16
- "eslint": "^7.32.0",
17
- "eslint-config-prettier": "^8.3.0",
18
- "eslint-plugin-svelte3": "^3.2.1",
15
+ "eslint": "^8.28.0",
16
+ "eslint-config-prettier": "^8.5.0",
17
+ "eslint-plugin-svelte": "^2.30.0",
19
18
  "prettier": "^2.8.8",
20
- "prettier-plugin-svelte": "^2.4.0",
21
- "svelte": "^3.47.0",
22
- "svelte-check": "^2.7.0",
23
- "svelte-preprocess": "^4.10.5",
24
- "svelte2tsx": "^0.5.9",
25
- "three": "^0.151.3",
26
- "ts-node": "^10.8.2",
27
- "tsafe": "^0.9.0",
28
- "tslib": "^2.3.1",
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",
29
26
  "type-fest": "^2.13.0",
30
- "typescript": "^4.6.3",
31
- "@threlte/core": "6.0.0-next.11"
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,189 +0,0 @@
1
- # @threlte/extras
2
-
3
- ## 1.0.0-next.3
4
-
5
- ### Patch Changes
6
-
7
- - 3868395: Updated prettier
8
-
9
- ## 1.0.0-next.2
10
-
11
- ### Patch Changes
12
-
13
- - eb0dc69f: Removed the component TransformableObject, removed stale types from rapier package
14
-
15
- ## 1.0.0-next.1
16
-
17
- ### Major Changes
18
-
19
- - 4b67b473: Removed transform properties on rapier components Collider, AutoColliders and RigidBody
20
-
21
- ## 1.0.0-next.0
22
-
23
- ### Major Changes
24
-
25
- - d41cb6cf: Adapted rapier package to Threlte v6 syntax
26
-
27
- ## 0.5.0
28
-
29
- ### Minor Changes
30
-
31
- - d69391a: Add Attractor component and documentation
32
-
33
- ## 0.4.0
34
-
35
- ### Minor Changes
36
-
37
- - 4b4d7be: Added rapiers damping properties to the component <RigidBody>
38
-
39
- ## 0.3.2
40
-
41
- ### Patch Changes
42
-
43
- - c7e226f: useJoint is now exported and its types are fixed
44
-
45
- ## 0.3.1
46
-
47
- ### Patch Changes
48
-
49
- - 9d29fc0: removed unused variable
50
-
51
- ## 0.3.0
52
-
53
- ### Minor Changes
54
-
55
- - 1a0f305: removed properties "manifold" and "flipped" from contact force event
56
-
57
- ### Patch Changes
58
-
59
- - 291af9b: Exporting rapier event types for easier method typing
60
-
61
- ## 0.2.0
62
-
63
- ### Minor Changes
64
-
65
- - 73b533d: Added contact force events and streamlined event management
66
-
67
- ### Patch Changes
68
-
69
- - 7d46de2: sensors need events too!
70
-
71
- ## 0.1.0
72
-
73
- ### Minor Changes
74
-
75
- - 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.
76
-
77
- ## 0.0.3
78
-
79
- ### Patch Changes
80
-
81
- - cd6dac6: cleaned up dead code in RigidBody component
82
-
83
- ## 0.0.2
84
-
85
- ### Patch Changes
86
-
87
- - 62d2c5c: fixed `<RigidBody>` initial transforms
88
-
89
- ## 0.0.1
90
-
91
- ### Patch Changes
92
-
93
- - 7a3fa6b: # NEW PACKAGE: @threlte/rapier
94
-
95
- This package provides easy to use components and hooks to use the [rapier](https://rapier.rs/) physics engine in threlte.
96
-
97
- 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).
98
-
99
- 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).
100
-
101
- ## 4.0.0
102
-
103
- ### Major Changes
104
-
105
- - 52e021c: # Breaking Change
106
-
107
- The threlte repository has been moved to its own GitHub Organization: [https://github.com/threlte/threlte](https://github.com/threlte/threlte).
108
- threlte consists now of two npm packages: `@threlte/core` and `@threlte/extras`, managed in a mono repository:
109
-
110
- `@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`.
111
-
112
- `@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.
113
-
114
- ## The breaking changes in detail:
115
-
116
- - Moved `<GLTF>` component as well as `useGltf` hook to `@threlte/extras`.
117
- - Moved `<Text>` component to `@threlte/extras`.
118
-
119
- ## How to update
120
-
121
- Replace imports from `threlte` and `threlte/extras`:
122
-
123
- 1. `npm rm threlte`
124
- 2. `npm i -D @threlte/core @threlte/extras`
125
- 3. Replace `import {…} from 'threlte'` with `import {…} from '@threlte/core'`
126
- 4. Replace `import {…} from 'threlte/extras'` with `import {…} from '@threlte/extras'`
127
-
128
- Specifically replace imports of `<GLTF>`, `useGltf` or `<Text>`:
129
-
130
- 3. Replace `import { GLTF, useGltf, Text } from 'threlte'` with `import { GLTF, useGltf, Text } from '@threlte/extras'`
131
-
132
- # Other changes
133
-
134
- - 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.
135
-
136
- ## 3.13.10
137
-
138
- ### Patch Changes
139
-
140
- - 4de7371: added svelte identifier
141
-
142
- ## 3.13.9
143
-
144
- ### Patch Changes
145
-
146
- - 41cc5a1: test
147
-
148
- ## 3.13.8
149
-
150
- ### Patch Changes
151
-
152
- - 79a64f5: test
153
-
154
- ## 3.13.7
155
-
156
- ### Patch Changes
157
-
158
- - test
159
-
160
- ## 3.13.6
161
-
162
- ### Patch Changes
163
-
164
- - trying to delete
165
-
166
- ## 3.13.5
167
-
168
- ### Patch Changes
169
-
170
- - 11aa5eb: yes
171
-
172
- ## 3.13.4
173
-
174
- ### Patch Changes
175
-
176
- - 0c40456: added scripts to clean up packages
177
- - 7cc4e5d: added node types
178
-
179
- ## 3.13.3
180
-
181
- ### Patch Changes
182
-
183
- - a2a6d93: test
184
-
185
- ## 3.13.2
186
-
187
- ### Patch Changes
188
-
189
- - 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.