@ray-js/lock-sdk 1.2.1-beta.4 → 1.2.1-beta.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/lib/feature/misc/capability.js +19 -0
- package/lib/interface.d.ts +4 -0
- package/package.json +1 -1
|
@@ -97,6 +97,7 @@ export const getDeviceAdvancedAbilitiesForRuntime = async (rt) => {
|
|
|
97
97
|
defaultMode: "VR",
|
|
98
98
|
modes: [],
|
|
99
99
|
coverMode: "VR",
|
|
100
|
+
options: {},
|
|
100
101
|
},
|
|
101
102
|
ai: {
|
|
102
103
|
support: false,
|
|
@@ -165,6 +166,24 @@ export const getDeviceAdvancedAbilitiesForRuntime = async (rt) => {
|
|
|
165
166
|
deviceAdvanceAbilityCache.vr.modes?.[0]?.mode;
|
|
166
167
|
}
|
|
167
168
|
deviceAdvanceAbilityCache.vr.coverMode = data.photo_cover_format;
|
|
169
|
+
if (data.configs) {
|
|
170
|
+
let options;
|
|
171
|
+
try {
|
|
172
|
+
options = JSON.parse(data.configs);
|
|
173
|
+
}
|
|
174
|
+
catch (e) {
|
|
175
|
+
}
|
|
176
|
+
if (options.zoomIn) {
|
|
177
|
+
deviceAdvanceAbilityCache.vr.options.zoomIn =
|
|
178
|
+
Number(options.zoomIn?.value) > 0
|
|
179
|
+
? Number(options.zoomIn?.value)
|
|
180
|
+
: undefined;
|
|
181
|
+
deviceAdvanceAbilityCache.vr.options.radialEmphasis =
|
|
182
|
+
Number(options.radialEmphasis?.value) > 0
|
|
183
|
+
? Number(options.radialEmphasis?.value)
|
|
184
|
+
: undefined;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
168
187
|
}
|
|
169
188
|
break;
|
|
170
189
|
}
|
package/lib/interface.d.ts
CHANGED