How to add full screen in viewer

Hi , i have question about how add full screen mode in viewer as we have in demo.

Thanking you in advance.

Kind Regards,

Hello @waqdev,

in the demo we’re just making use of the provided Fullscreen browser api. As you can see in this reference page, you can do the following:

function toggleFullScreen() {
  if (!document.fullscreenElement) {
  } else {
    if (document.exitFullscreen) {


1 Like

thanks you for you prompt reply!!! i have question do i need to recall the rendering of diagram once we are in full-screen mode because reason we need full screen some diagram activity font looks very small then we decide to make full screen.