@frsource/babylon-box3d 1.0.0 → 1.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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/index.mjs +3 -0
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -645,6 +645,7 @@ declare module 'box3d-wasm' {
|
|
|
645
645
|
|
|
646
646
|
import { IPhysicsEnginePluginV2, Observable, IPhysicsCollisionEvent, IBasePhysicsCollisionEvent, Vector3, PhysicsBody, PhysicsMotionType, Quaternion, Mesh, TransformNode, Nullable, PhysicsShape, PhysicsShapeType, PhysicsMassProperties, PhysicsConstraint, PhysicsShapeParameters, PhysicsMaterial, BoundingBox, PhysicsConstraintAxis, PhysicsConstraintAxisLimitMode, PhysicsConstraintMotorType, ConstrainedBodyPair, PhysicsRaycastResult, IRaycastQuery } from '@babylonjs/core';
|
|
647
647
|
import { World, Box3DModule } from 'box3d-wasm';
|
|
648
|
+
export * from 'box3d-wasm';
|
|
648
649
|
|
|
649
650
|
/**
|
|
650
651
|
* Babylon.js Physics V2 plugin backed by {@link https://github.com/monteslu/box3d-wasm | box3d-wasm}.
|
package/dist/index.d.ts
CHANGED
|
@@ -645,6 +645,7 @@ declare module 'box3d-wasm' {
|
|
|
645
645
|
|
|
646
646
|
import { IPhysicsEnginePluginV2, Observable, IPhysicsCollisionEvent, IBasePhysicsCollisionEvent, Vector3, PhysicsBody, PhysicsMotionType, Quaternion, Mesh, TransformNode, Nullable, PhysicsShape, PhysicsShapeType, PhysicsMassProperties, PhysicsConstraint, PhysicsShapeParameters, PhysicsMaterial, BoundingBox, PhysicsConstraintAxis, PhysicsConstraintAxisLimitMode, PhysicsConstraintMotorType, ConstrainedBodyPair, PhysicsRaycastResult, IRaycastQuery } from '@babylonjs/core';
|
|
647
647
|
import { World, Box3DModule } from 'box3d-wasm';
|
|
648
|
+
export * from 'box3d-wasm';
|
|
648
649
|
|
|
649
650
|
/**
|
|
650
651
|
* Babylon.js Physics V2 plugin backed by {@link https://github.com/monteslu/box3d-wasm | box3d-wasm}.
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
|
|
20
21
|
// index.ts
|
|
@@ -1237,7 +1238,11 @@ function readLimit(data, axis) {
|
|
|
1237
1238
|
}
|
|
1238
1239
|
return { min: data.axisMinLimit.get(axis), max: data.axisMaxLimit.get(axis) };
|
|
1239
1240
|
}
|
|
1241
|
+
|
|
1242
|
+
// index.ts
|
|
1243
|
+
__reExport(index_exports, require("box3d-wasm"), module.exports);
|
|
1240
1244
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1241
1245
|
0 && (module.exports = {
|
|
1242
|
-
Box3DPlugin
|
|
1246
|
+
Box3DPlugin,
|
|
1247
|
+
...require("box3d-wasm")
|
|
1243
1248
|
});
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frsource/babylon-box3d",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Babylon.js Physics V2 plugin backed by box3d-wasm (Erin Catto's Box3D compiled to WebAssembly)",
|
|
5
5
|
"repository": "https://github.com/FRSOURCE/babylon-box3d.git",
|
|
6
6
|
"homepage": "https://github.com/FRSOURCE/babylon-box3d",
|
|
7
7
|
"scripts": {
|
|
8
|
+
"dev": "pnpm run --filter @frsource/babylon-box3d-demo dev",
|
|
8
9
|
"build": "tsup && node scripts/bundle-ambient-types.mjs",
|
|
9
10
|
"lint": "eslint . && prettier . --check",
|
|
10
11
|
"fix": "pnpm eslint --fix && prettier . --write",
|