@newkrok/nape-js 3.3.42 → 3.3.43
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.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -67769,8 +67769,9 @@ var Shape = class _Shape extends Interactor {
|
|
|
67769
67769
|
/** @internal */
|
|
67770
67770
|
static _wrap(inner) {
|
|
67771
67771
|
if (!inner) return null;
|
|
67772
|
-
|
|
67773
|
-
if (
|
|
67772
|
+
const type = inner.isCircle ? inner.isCircle() ? 0 : inner.isPolygon?.() ? 1 : -1 : inner.zpp_inner?.type ?? -1;
|
|
67773
|
+
if (type === 0 && _circleWrap) return _circleWrap(inner);
|
|
67774
|
+
if (type === 1 && _polygonWrap) return _polygonWrap(inner);
|
|
67774
67775
|
if (inner.outer) return inner.outer;
|
|
67775
67776
|
return getOrCreate(inner, (raw) => {
|
|
67776
67777
|
const s = Object.create(_Shape.prototype);
|
|
@@ -75748,7 +75749,7 @@ var PulleyJoint = class _PulleyJoint extends Constraint {
|
|
|
75748
75749
|
};
|
|
75749
75750
|
|
|
75750
75751
|
// src/index.ts
|
|
75751
|
-
var VERSION = "3.3.
|
|
75752
|
+
var VERSION = "3.3.42";
|
|
75752
75753
|
export {
|
|
75753
75754
|
AABB,
|
|
75754
75755
|
AngleJoint,
|