lecodes-sdk 2.4.3 → 2.4.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.
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { HitTarget } from "../contract";
|
|
1
|
+
import { type Node, type Scene } from "../../../../plugin";
|
|
3
2
|
export type ControlsOptions = {
|
|
4
3
|
/** Smallest uniform scale the pinch gesture allows (default 0.08). */
|
|
5
4
|
minScale?: number;
|
|
6
5
|
/** Largest uniform scale the pinch gesture allows (default 2). */
|
|
7
6
|
maxScale?: number;
|
|
8
|
-
/** One-finger drag moves the target
|
|
7
|
+
/** One-finger drag moves the target across the ground plane, at its height (default true). */
|
|
9
8
|
pan?: boolean;
|
|
10
9
|
/** Two-finger pinch scales the target (default true). */
|
|
11
10
|
pinch?: boolean;
|
|
@@ -16,13 +15,4 @@ export type ControlsOptions = {
|
|
|
16
15
|
export type ControlsHandle = {
|
|
17
16
|
remove(): void;
|
|
18
17
|
};
|
|
19
|
-
|
|
20
|
-
type PlacingScene = Scene & {
|
|
21
|
-
hitTest(x: number, y: number, target?: HitTarget): Promise<{
|
|
22
|
-
pose: {
|
|
23
|
-
position: Vec3;
|
|
24
|
-
};
|
|
25
|
-
}[]>;
|
|
26
|
-
};
|
|
27
|
-
export declare const attachControls: (scene: PlacingScene, target: Node, options?: ControlsOptions) => ControlsHandle;
|
|
28
|
-
export {};
|
|
18
|
+
export declare const attachControls: (scene: Scene, target: Node, options?: ControlsOptions) => ControlsHandle;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.4.
|
|
1
|
+
export declare const SDK_VERSION = "2.4.4";
|
|
2
2
|
/** The major of a semver string, or null when it is not one. */
|
|
3
3
|
export declare const sdkMajor: (version: string | null | undefined) => number | null;
|
|
4
4
|
/** The `// sdk: <version>` line of a compiled bundle's header (sdk/src/compile/header.ts), read from
|