@virtualdisplay.io/client 3.5.1 → 3.6.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +36 -1
- package/dist/virtualdisplay.client.cjs.js +3 -3
- package/dist/virtualdisplay.client.cjs.js.map +1 -1
- package/dist/virtualdisplay.client.es.js +60 -16
- package/dist/virtualdisplay.client.es.js.map +1 -1
- package/dist/virtualdisplay.client.umd.js +3 -3
- package/dist/virtualdisplay.client.umd.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.6.0](https://github.com/virtualdisplay-io/client/compare/v3.5.1...v3.6.0) (2025-07-23)
|
|
6
|
+
|
|
7
|
+
### ✨ Features
|
|
8
|
+
|
|
9
|
+
* add camera configuration support ([#6](https://github.com/virtualdisplay-io/client/issues/6)) ([a6bce4b](https://github.com/virtualdisplay-io/client/commit/a6bce4bfd0d55362e76c893ddf5ed28409dc8bec))
|
|
10
|
+
|
|
5
11
|
## [3.5.1](https://github.com/virtualdisplay-io/client/compare/v3.5.0...v3.5.1) (2025-07-18)
|
|
6
12
|
|
|
7
13
|
### ♻️ Code Refactoring
|
package/dist/index.d.ts
CHANGED
|
@@ -163,6 +163,19 @@ export declare interface CameraCommand {
|
|
|
163
163
|
readonly value?: number;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Camera configuration options
|
|
168
|
+
*/
|
|
169
|
+
export declare interface CameraConfig {
|
|
170
|
+
readonly initialRotate?: number;
|
|
171
|
+
readonly initialTilt?: number;
|
|
172
|
+
readonly initialZoom?: number;
|
|
173
|
+
readonly minZoom?: number;
|
|
174
|
+
readonly maxZoom?: number;
|
|
175
|
+
readonly minTilt?: number;
|
|
176
|
+
readonly maxTilt?: number;
|
|
177
|
+
}
|
|
178
|
+
|
|
166
179
|
/**
|
|
167
180
|
* Camera message sent to server
|
|
168
181
|
*/
|
|
@@ -183,6 +196,8 @@ export declare interface ClientOptions {
|
|
|
183
196
|
readonly arEnabled?: boolean;
|
|
184
197
|
readonly fullscreenEnabled?: boolean;
|
|
185
198
|
readonly loadingIndicatorEnabled?: boolean;
|
|
199
|
+
readonly ui?: UIConfig;
|
|
200
|
+
readonly camera?: CameraConfig;
|
|
186
201
|
}
|
|
187
202
|
|
|
188
203
|
/**
|
|
@@ -602,6 +617,7 @@ export declare interface UIConfig {
|
|
|
602
617
|
*/
|
|
603
618
|
export declare interface ViewerConfig {
|
|
604
619
|
readonly ui?: UIConfig;
|
|
620
|
+
readonly camera?: CameraConfig;
|
|
605
621
|
}
|
|
606
622
|
|
|
607
623
|
/**
|
|
@@ -687,9 +703,24 @@ export declare class VirtualdisplayViewerService {
|
|
|
687
703
|
constructor(eventBus: EventBus);
|
|
688
704
|
/**
|
|
689
705
|
* Send initial configuration based on client options
|
|
690
|
-
*
|
|
706
|
+
* Supports both individual properties and ui object
|
|
691
707
|
*/
|
|
692
708
|
sendInitialConfig(options: ClientOptions): void;
|
|
709
|
+
/**
|
|
710
|
+
* Build UI configuration from client options
|
|
711
|
+
*
|
|
712
|
+
* Supports both legacy properties (options.arEnabled) and the newer ui object
|
|
713
|
+
* for backward compatibility. Legacy properties take precedence when both exist.
|
|
714
|
+
*/
|
|
715
|
+
private buildUIConfig;
|
|
716
|
+
/**
|
|
717
|
+
* Extract UI values from options, with legacy properties taking precedence
|
|
718
|
+
*/
|
|
719
|
+
private extractUIValues;
|
|
720
|
+
/**
|
|
721
|
+
* Build viewer configuration from UI config and camera config
|
|
722
|
+
*/
|
|
723
|
+
private buildViewerConfig;
|
|
693
724
|
/**
|
|
694
725
|
* Update AR button visibility
|
|
695
726
|
*/
|
|
@@ -718,6 +749,10 @@ export declare class VirtualdisplayViewerService {
|
|
|
718
749
|
* Send UI configuration to server
|
|
719
750
|
*/
|
|
720
751
|
private sendUIConfig;
|
|
752
|
+
/**
|
|
753
|
+
* Send full viewer configuration to server
|
|
754
|
+
*/
|
|
755
|
+
private sendConfig;
|
|
721
756
|
}
|
|
722
757
|
|
|
723
758
|
declare interface VoidEvent {
|