File tree Expand file tree Collapse file tree 4 files changed +9
-13
lines changed
Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import * as xb from 'xrblocks';
66import { AISimulator } from './AISimulator.js' ;
77
88const options = new xb . Options ( ) ;
9- options . enableGeminiLive ( ) ;
9+ options . simulator . geminiLivePanel . enabled = true ;
1010options . depth . enabled = true ;
1111options . depth . depthTexture . enabled = true ;
1212options . depth . occlusion . enabled = true ;
Original file line number Diff line number Diff line change @@ -236,15 +236,6 @@ export class Options {
236236 return this ;
237237 }
238238
239- /**
240- * Enables the Gemini Live feature.
241- * @returns The instance for chaining.
242- */
243- enableGeminiLive ( ) {
244- this . simulator . geminilive = true ;
245- return this ;
246- }
247-
248239 /**
249240 * Enables a standard set of AI features, including Gemini Live.
250241 * @returns The instance for chaining.
Original file line number Diff line number Diff line change @@ -57,8 +57,10 @@ export class SimulatorInterface {
5757 }
5858
5959 showGeminiLivePanel ( simulatorOptions : SimulatorOptions ) {
60- if ( simulatorOptions . geminilive ) {
61- const element = document . createElement ( 'xrblocks-simulator-geminilive' ) ;
60+ if ( simulatorOptions . geminiLivePanel . enabled ) {
61+ const element = document . createElement (
62+ simulatorOptions . geminiLivePanel . element
63+ ) ;
6264 document . body . appendChild ( element ) ;
6365 this . elements . push ( element ) ;
6466 }
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ export class SimulatorOptions {
4343 enabled : true ,
4444 element : 'xrblocks-simulator-hand-pose-panel' ,
4545 } ;
46- geminilive = false ;
46+ geminiLivePanel = {
47+ enabled : false ,
48+ element : 'xrblocks-simulator-geminilive' ,
49+ } ;
4750 stereo = {
4851 enabled : false ,
4952 } ;
You can’t perform that action at this time.
0 commit comments