@needle-tools/engine 5.1.4 → 5.1.5
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/CHANGELOG.md +6 -0
- package/dist/{needle-engine.bundle-CEba8eTv.js → needle-engine.bundle-CxsZfV6C.js} +5245 -5166
- package/dist/{needle-engine.bundle-BvxvjlSN.min.js → needle-engine.bundle-DUb8msPR.min.js} +140 -140
- package/dist/{needle-engine.bundle-GUaSFX8u.umd.cjs → needle-engine.bundle-D_h1sDs-.umd.cjs} +137 -137
- package/dist/needle-engine.d.ts +39 -30
- package/dist/needle-engine.js +242 -242
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/api.d.ts +1 -1
- package/lib/engine/api.js +1 -1
- package/lib/engine/api.js.map +1 -1
- package/lib/engine/debug/debug_console.js +39 -17
- package/lib/engine/debug/debug_console.js.map +1 -1
- package/lib/engine/debug/debug_spatial_console.js +14 -0
- package/lib/engine/debug/debug_spatial_console.js.map +1 -1
- package/lib/engine/engine_init.js +2 -2
- package/lib/engine/engine_init.js.map +1 -1
- package/lib/engine/engine_license.d.ts +7 -7
- package/lib/engine/engine_license.js +71 -71
- package/lib/engine/engine_license.js.map +1 -1
- package/lib/engine/engine_networking_blob.js +3 -3
- package/lib/engine/engine_utils_qrcode.js +2 -2
- package/lib/engine/engine_utils_screenshot.js +1 -0
- package/lib/engine/engine_utils_screenshot.js.map +1 -1
- package/lib/engine/engine_utils_screenshot.xr.js +1 -1
- package/lib/engine/engine_utils_screenshot.xr.js.map +1 -1
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +2 -2
- package/lib/engine/webcomponents/needle menu/needle-menu.js +18 -5
- package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.ar-overlay.js +33 -7
- package/lib/engine/webcomponents/needle-engine.ar-overlay.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.js +2 -2
- package/lib/engine/webcomponents/needle-engine.loading.js +2 -2
- package/lib/engine/webcomponents/needle-engine.loading.js.map +1 -1
- package/lib/engine/xr/NeedleXRSession.js +10 -4
- package/lib/engine/xr/NeedleXRSession.js.map +1 -1
- package/lib/engine/xr/NeedleXRSync.js +47 -47
- package/lib/engine/xr/NeedleXRSync.js.map +1 -1
- package/lib/engine/xr/TempXRContext.js +2 -2
- package/lib/engine-components/DragControls.d.ts +9 -0
- package/lib/engine-components/DragControls.js +174 -73
- package/lib/engine-components/DragControls.js.map +1 -1
- package/lib/engine-components/DragControlsConstraints.d.ts +11 -2
- package/lib/engine-components/DragControlsConstraints.js +18 -11
- package/lib/engine-components/DragControlsConstraints.js.map +1 -1
- package/lib/engine-components/OrbitControls.js +32 -6
- package/lib/engine-components/OrbitControls.js.map +1 -1
- package/lib/engine-components/export/usdz/USDZExporter.js +4 -4
- package/package.json +1 -1
- package/plugins/common/license.js +4 -4
- package/plugins/vite/license.js +4 -4
- package/src/engine/api.ts +1 -1
- package/src/engine/debug/debug_console.ts +33 -17
- package/src/engine/debug/debug_spatial_console.ts +15 -0
- package/src/engine/engine_init.ts +2 -2
- package/src/engine/engine_license.ts +68 -68
- package/src/engine/engine_networking_blob.ts +3 -3
- package/src/engine/engine_utils_qrcode.ts +2 -2
- package/src/engine/engine_utils_screenshot.ts +1 -0
- package/src/engine/engine_utils_screenshot.xr.ts +1 -1
- package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +2 -2
- package/src/engine/webcomponents/needle menu/needle-menu.ts +19 -5
- package/src/engine/webcomponents/needle-engine.ar-overlay.ts +33 -5
- package/src/engine/webcomponents/needle-engine.loading.ts +6 -6
- package/src/engine/webcomponents/needle-engine.ts +2 -2
- package/src/engine/xr/NeedleXRSession.ts +10 -3
- package/src/engine/xr/NeedleXRSync.ts +47 -50
- package/src/engine/xr/TempXRContext.ts +2 -2
- package/src/engine-components/DragControls.ts +189 -80
- package/src/engine-components/DragControlsConstraints.ts +20 -12
- package/src/engine-components/OrbitControls.ts +31 -4
- package/src/engine-components/export/usdz/USDZExporter.ts +4 -4
package/dist/needle-engine.d.ts
CHANGED
|
@@ -118,13 +118,13 @@ export declare const $componentName: unique symbol;
|
|
|
118
118
|
|
|
119
119
|
export declare const $physicsKey: unique symbol;
|
|
120
120
|
|
|
121
|
+
/* Excluded from this release type: $PLKRCQIf */
|
|
122
|
+
|
|
121
123
|
export declare class __Ignore {
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
export declare function __internalNotifyObjectDestroyed(obj: Object3D): void;
|
|
125
127
|
|
|
126
|
-
/* Excluded from this release type: __QhCnOwd */
|
|
127
|
-
|
|
128
128
|
/** Data describing the accessible semantics for a 3D object or component. */
|
|
129
129
|
declare type AccessibilityData = {
|
|
130
130
|
/** ARIA role (e.g. `"button"`, `"img"`, `"region"`). */
|
|
@@ -7965,6 +7965,8 @@ export declare class GltfExportBox extends BoxHelperComponent {
|
|
|
7965
7965
|
sceneRoot?: Object3D;
|
|
7966
7966
|
}
|
|
7967
7967
|
|
|
7968
|
+
/* Excluded from this release type: _gNHPUn */
|
|
7969
|
+
|
|
7968
7970
|
/** Projects the grabbed attachment point back onto a plane after position is resolved,
|
|
7969
7971
|
* with optional grid snapping on that plane.
|
|
7970
7972
|
* Owned by the strategy that requires plane-clamping (e.g. {@link XZPlaneDragStrategy}). */
|
|
@@ -10557,8 +10559,6 @@ declare type KF_2<V> = AnimationKeyframe<V>[] | Tween<V>;
|
|
|
10557
10559
|
/** Keyframe array or tween shorthand */
|
|
10558
10560
|
declare type KF_3<V> = AnimationKeyframe<V>[] | Tween<V>;
|
|
10559
10561
|
|
|
10560
|
-
/* Excluded from this release type: KLaEb */
|
|
10561
|
-
|
|
10562
10562
|
declare type LabelHandle = {
|
|
10563
10563
|
setText(str: string): any;
|
|
10564
10564
|
};
|
|
@@ -14735,6 +14735,8 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
14735
14735
|
immediate?: boolean;
|
|
14736
14736
|
};
|
|
14737
14737
|
|
|
14738
|
+
/* Excluded from this release type: otIKt */
|
|
14739
|
+
|
|
14738
14740
|
/**
|
|
14739
14741
|
* [Outline](https://engine.needle.tools/docs/api/Outline) is a UI component that adds an outline effect to UI elements.
|
|
14740
14742
|
* You can customize the outline color and distance to create a visual border around the UI element.
|
|
@@ -19871,8 +19873,11 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19871
19873
|
|
|
19872
19874
|
/**
|
|
19873
19875
|
* Used by {@link SnapToSurfacesDragStrategy} for two-pointer (multi-touch) drags.
|
|
19874
|
-
*
|
|
19875
|
-
*
|
|
19876
|
+
* Each frame `MultiTouchDragHandler` aims the snap ray from the pointer origin(s) through the
|
|
19877
|
+
* current two-finger grab midpoint (see {@link setRay}); apply() casts that ray into the scene
|
|
19878
|
+
* and places the follow object so its bounding-box contact face rests on the hit surface with
|
|
19879
|
+
* the object origin at the hit point — the same "snap to what the pointer points at" semantics
|
|
19880
|
+
* as the single-pointer surface raycast.
|
|
19876
19881
|
*
|
|
19877
19882
|
* Only injected into the constraint pipeline for multi-touch; the single-pointer path
|
|
19878
19883
|
* continues to use {@link SnapToSurfacesDragStrategy.update} (pointer ray + drag plane
|
|
@@ -19882,12 +19887,18 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
19882
19887
|
private readonly _context;
|
|
19883
19888
|
private _gameObject;
|
|
19884
19889
|
private _boundsAtScaleOne;
|
|
19890
|
+
/** Snap ray for the current frame. Valid only after {@link setRay}; apply() is a no-op until then. */
|
|
19891
|
+
private readonly _ray;
|
|
19892
|
+
private _hasRay;
|
|
19885
19893
|
private readonly _t1;
|
|
19886
19894
|
private readonly _t2;
|
|
19887
19895
|
private readonly _t3;
|
|
19888
19896
|
private readonly _t4;
|
|
19889
19897
|
constructor(_context: Context);
|
|
19890
19898
|
init(ctx: IDragConstraintContext): void;
|
|
19899
|
+
/** Sets the world-space snap ray for this frame. Called by `MultiTouchDragHandler` before the
|
|
19900
|
+
* constraint pipeline runs. `direction` must be normalized. */
|
|
19901
|
+
setRay(origin: Vector3, direction: Vector3): void;
|
|
19891
19902
|
apply(followObject: GameObject): void;
|
|
19892
19903
|
}
|
|
19893
19904
|
|
|
@@ -24799,8 +24810,6 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
24799
24810
|
constructor(context: WebXRImageTracking, trackedImage: WebXRImageTrackingModel, bitmap: ImageBitmap, measuredSize: number, state: "tracked" | "emulated", pose: any);
|
|
24800
24811
|
}
|
|
24801
24812
|
|
|
24802
|
-
/* Excluded from this release type: wPA */
|
|
24803
|
-
|
|
24804
24813
|
export declare type WriteCallback = (data: any, prop: string) => void;
|
|
24805
24814
|
|
|
24806
24815
|
/** Button names as used in the xr profile */
|
|
@@ -25121,28 +25130,6 @@ export declare class OrbitControls extends Component implements ICameraControlle
|
|
|
25121
25130
|
export { }
|
|
25122
25131
|
|
|
25123
25132
|
|
|
25124
|
-
declare module 'three' {
|
|
25125
|
-
interface SkinnedMesh {
|
|
25126
|
-
staticGenerator?: StaticGeometryGenerator;
|
|
25127
|
-
staticGeometry?: BufferGeometry;
|
|
25128
|
-
staticGeometryLastUpdate?: number;
|
|
25129
|
-
}
|
|
25130
|
-
interface Mesh {
|
|
25131
|
-
acceleratedRaycast?: any;
|
|
25132
|
-
}
|
|
25133
|
-
interface SkinnedMesh {
|
|
25134
|
-
/** @deprecated use autoUpdateMeshBvhInterval */
|
|
25135
|
-
autoUpdateMeshBVH?: boolean;
|
|
25136
|
-
/**
|
|
25137
|
-
* Interval in milliseconds to automatically update the mesh BVH. When set to >= 0 the BVH will be updated every x milliseconds.
|
|
25138
|
-
* @default undefined (disabled)
|
|
25139
|
-
*/
|
|
25140
|
-
autoUpdateMeshBvhInterval?: number;
|
|
25141
|
-
bvhNeedsUpdate?: boolean;
|
|
25142
|
-
}
|
|
25143
|
-
}
|
|
25144
|
-
|
|
25145
|
-
|
|
25146
25133
|
declare module 'three' {
|
|
25147
25134
|
interface Object3D {
|
|
25148
25135
|
get guid(): string | undefined;
|
|
@@ -25290,6 +25277,28 @@ declare module 'three' {
|
|
|
25290
25277
|
}
|
|
25291
25278
|
|
|
25292
25279
|
|
|
25280
|
+
declare module 'three' {
|
|
25281
|
+
interface SkinnedMesh {
|
|
25282
|
+
staticGenerator?: StaticGeometryGenerator;
|
|
25283
|
+
staticGeometry?: BufferGeometry;
|
|
25284
|
+
staticGeometryLastUpdate?: number;
|
|
25285
|
+
}
|
|
25286
|
+
interface Mesh {
|
|
25287
|
+
acceleratedRaycast?: any;
|
|
25288
|
+
}
|
|
25289
|
+
interface SkinnedMesh {
|
|
25290
|
+
/** @deprecated use autoUpdateMeshBvhInterval */
|
|
25291
|
+
autoUpdateMeshBVH?: boolean;
|
|
25292
|
+
/**
|
|
25293
|
+
* Interval in milliseconds to automatically update the mesh BVH. When set to >= 0 the BVH will be updated every x milliseconds.
|
|
25294
|
+
* @default undefined (disabled)
|
|
25295
|
+
*/
|
|
25296
|
+
autoUpdateMeshBvhInterval?: number;
|
|
25297
|
+
bvhNeedsUpdate?: boolean;
|
|
25298
|
+
}
|
|
25299
|
+
}
|
|
25300
|
+
|
|
25301
|
+
|
|
25293
25302
|
declare module 'three/examples/jsm/controls/OrbitControls.js' {
|
|
25294
25303
|
interface OrbitControls {
|
|
25295
25304
|
_sphericalDelta: import("three").Spherical;
|