@ericchen1990/pano-view 5.0.0 → 5.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.cjs +293 -138
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +272 -117
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +4 -3
- package/docs/dialogs.md +4 -0
- package/docs/dialogs.zh-CN.md +4 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -396,7 +396,7 @@ type PanoSpatialControlAdapter = {
|
|
|
396
396
|
};
|
|
397
397
|
|
|
398
398
|
type PanoMediaController = Pick<PanoVideoController, "subscribe" | "play" | "pause" | "seek" | "setVolume" | "setMuted"> & {
|
|
399
|
-
getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "volume" | "volumeAdjustable" | "muted">;
|
|
399
|
+
getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "hasAudio" | "volume" | "volumeAdjustable" | "muted">;
|
|
400
400
|
};
|
|
401
401
|
type PanoControlAction = {
|
|
402
402
|
id: string;
|
|
@@ -492,6 +492,8 @@ type PanoVideoPlaybackSnapshot = {
|
|
|
492
492
|
ended: boolean;
|
|
493
493
|
currentTime: number;
|
|
494
494
|
duration: number;
|
|
495
|
+
/** Undefined when audio track presence is unknown. */
|
|
496
|
+
hasAudio?: boolean;
|
|
495
497
|
volume: number;
|
|
496
498
|
/** False when the element ignores `volume` (iOS Safari). Mute still works. */
|
|
497
499
|
volumeAdjustable: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -396,7 +396,7 @@ type PanoSpatialControlAdapter = {
|
|
|
396
396
|
};
|
|
397
397
|
|
|
398
398
|
type PanoMediaController = Pick<PanoVideoController, "subscribe" | "play" | "pause" | "seek" | "setVolume" | "setMuted"> & {
|
|
399
|
-
getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "volume" | "volumeAdjustable" | "muted">;
|
|
399
|
+
getSnapshot: () => Pick<PanoVideoPlaybackSnapshot, "ready" | "playing" | "currentTime" | "duration" | "hasAudio" | "volume" | "volumeAdjustable" | "muted">;
|
|
400
400
|
};
|
|
401
401
|
type PanoControlAction = {
|
|
402
402
|
id: string;
|
|
@@ -492,6 +492,8 @@ type PanoVideoPlaybackSnapshot = {
|
|
|
492
492
|
ended: boolean;
|
|
493
493
|
currentTime: number;
|
|
494
494
|
duration: number;
|
|
495
|
+
/** Undefined when audio track presence is unknown. */
|
|
496
|
+
hasAudio?: boolean;
|
|
495
497
|
volume: number;
|
|
496
498
|
/** False when the element ignores `volume` (iOS Safari). Mute still works. */
|
|
497
499
|
volumeAdjustable: boolean;
|