@ericchen1990/pano-view 3.6.0 → 3.6.1
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 +3 -1
- package/README.zh-CN.md +1 -1
- package/dist/index.cjs +487 -321
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +367 -201
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -510,7 +510,7 @@ type MouseControlButton = "left" | "middle" | "right";
|
|
|
510
510
|
type MouseControlsOptions = {
|
|
511
511
|
/** Whether mouse handling is active. Defaults to true. */
|
|
512
512
|
enabled?: boolean;
|
|
513
|
-
/** Pointer drag
|
|
513
|
+
/** Pointer drag speed: 0.35 (default) tracks 1:1; other values scale displacement relative to it. */
|
|
514
514
|
rotateSpeed?: number;
|
|
515
515
|
/** Wheel zoom multiplier. Defaults to 0.08. */
|
|
516
516
|
zoomSpeed?: number;
|
|
@@ -525,7 +525,7 @@ type MouseControlsOptions = {
|
|
|
525
525
|
type TouchControlsOptions = {
|
|
526
526
|
/** Whether touch handling is active. Defaults to true. */
|
|
527
527
|
enabled?: boolean;
|
|
528
|
-
/** Pointer drag
|
|
528
|
+
/** Pointer drag speed: 0.35 (default) tracks 1:1; other values scale displacement relative to it. */
|
|
529
529
|
rotateSpeed?: number;
|
|
530
530
|
/** Inverts drag direction. Defaults to the all-mode `invert` value. */
|
|
531
531
|
invert?: boolean;
|
|
@@ -565,7 +565,7 @@ type PanoramaControlsOptions = {
|
|
|
565
565
|
*/
|
|
566
566
|
frictionStop?: number;
|
|
567
567
|
/**
|
|
568
|
-
* Default pointer drag
|
|
568
|
+
* Default pointer drag speed for mouse and touch. 0.35 tracks 1:1; other values scale displacement relative to it.
|
|
569
569
|
* Prefer `controls.mouse` / `controls.touch` for per-channel overrides.
|
|
570
570
|
*/
|
|
571
571
|
rotateSpeed?: number;
|
|
@@ -575,7 +575,7 @@ type PanoramaControlsOptions = {
|
|
|
575
575
|
*/
|
|
576
576
|
zoomSpeed?: number;
|
|
577
577
|
/**
|
|
578
|
-
* Rotation target-following speed in seconds^-1. Defaults to 14; use 0 for
|
|
578
|
+
* Rotation target-following speed outside anchored pointer drags, in seconds^-1. Defaults to 14; use 0 for
|
|
579
579
|
* immediate response. Must be a non-negative finite number.
|
|
580
580
|
*/
|
|
581
581
|
rotateDamping?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -510,7 +510,7 @@ type MouseControlButton = "left" | "middle" | "right";
|
|
|
510
510
|
type MouseControlsOptions = {
|
|
511
511
|
/** Whether mouse handling is active. Defaults to true. */
|
|
512
512
|
enabled?: boolean;
|
|
513
|
-
/** Pointer drag
|
|
513
|
+
/** Pointer drag speed: 0.35 (default) tracks 1:1; other values scale displacement relative to it. */
|
|
514
514
|
rotateSpeed?: number;
|
|
515
515
|
/** Wheel zoom multiplier. Defaults to 0.08. */
|
|
516
516
|
zoomSpeed?: number;
|
|
@@ -525,7 +525,7 @@ type MouseControlsOptions = {
|
|
|
525
525
|
type TouchControlsOptions = {
|
|
526
526
|
/** Whether touch handling is active. Defaults to true. */
|
|
527
527
|
enabled?: boolean;
|
|
528
|
-
/** Pointer drag
|
|
528
|
+
/** Pointer drag speed: 0.35 (default) tracks 1:1; other values scale displacement relative to it. */
|
|
529
529
|
rotateSpeed?: number;
|
|
530
530
|
/** Inverts drag direction. Defaults to the all-mode `invert` value. */
|
|
531
531
|
invert?: boolean;
|
|
@@ -565,7 +565,7 @@ type PanoramaControlsOptions = {
|
|
|
565
565
|
*/
|
|
566
566
|
frictionStop?: number;
|
|
567
567
|
/**
|
|
568
|
-
* Default pointer drag
|
|
568
|
+
* Default pointer drag speed for mouse and touch. 0.35 tracks 1:1; other values scale displacement relative to it.
|
|
569
569
|
* Prefer `controls.mouse` / `controls.touch` for per-channel overrides.
|
|
570
570
|
*/
|
|
571
571
|
rotateSpeed?: number;
|
|
@@ -575,7 +575,7 @@ type PanoramaControlsOptions = {
|
|
|
575
575
|
*/
|
|
576
576
|
zoomSpeed?: number;
|
|
577
577
|
/**
|
|
578
|
-
* Rotation target-following speed in seconds^-1. Defaults to 14; use 0 for
|
|
578
|
+
* Rotation target-following speed outside anchored pointer drags, in seconds^-1. Defaults to 14; use 0 for
|
|
579
579
|
* immediate response. Must be a non-negative finite number.
|
|
580
580
|
*/
|
|
581
581
|
rotateDamping?: number;
|