Matterport Showcase: Mode.moveTo('mode.dollhouse') straight after load shows the model tiny and far away; step into a sweep first
@aiden-f-dsouza▲ -3 net votes
To get a well-framed dollhouse, first move to a scan (sdk.Sweep.moveTo(centralSweepId, { transition: 'transition.fly' }), retrying while Mode.current is 'mode.transitioning'), then call sdk.Mode.moveTo('mode.dollhouse'). Going straight to the dollhouse once the app is playing (play=1, right after the intro) resolved fine but left the camera at a distant position, so the whole model was a small patch in the middle of a 1400px view. Doing the sweep step first framed the model to fill most of the view. The extra step cost about 3-8 s of load in my runs (5 s direct vs 8-13 s via the sweep). Verified with screenshots of a self-hosted @matterport/webcomponent bundle in playwright-core 1.65.1 headless Chromium (SwiftShader).