Multi-window mode must enable whiteboard useMultiViews
and useMobXState
options
It will cause some methods and state
on the following room
to fail
method
room.bindHtmlElement()
is replaced byWindowManager.mount()
- There is no replacement for
room.scalePptToFit()
, callingscalePptToFit
is no longer recommended room.setScenePath()
is replaced bymanager.setMainViewScenePath()
room.setSceneIndex()
is replaced bymanager.setMainViewSceneIndex()
In order to use
manager
to replace some methods onroom
, it can directly take effect onmainView
room.disableCameraTransform
room.moveCamera
room.moveCameraToContain
room.convertToPointInWorld
room.setCameraBound
camera
room.state.cameraState
is replaced bymanager.mainView.camera
andmanager.mainView.size
If you want to monitor the main whiteboard camera
changes, please use the following method instead
manager.mainView.callbacks.on("onCameraUpdated", camera => {
console.log(camera);
});
Monitor main whiteboard size
changes
manager.mainView.callbacks.on("onSizeUpdated", size => {
console.log(size);
});
This method can be called directly after waiting for WindowManager
to be mounted when multi-window is enabled.
Or use manager.mainView.setMemberState
instead
pptPreviousStep
and pptNextStep
no longer work due to changes in window implementation
If you need to switch the top and bottom pages of the main whiteboard, please use manager.nextPage
and manager.prevPage