How to adjust Aspect ratio of scene

How to adjust aspect ratio of the scene 16:9 into 9:16?

And I have few questions about Shapespark for developer coding

  1. Can I use inner code of Shapespark to call the Three.js code?
    For example:
  var viewer = WALK.getViewer();
  //PerspectiveCamera() is the function of Three.js
  var camera = new viewer.PerspectiveCamera();

So is the variable "camera " available?

  1. Can body-end code or extension in Shapespark call external code base?
    For example:jQuery.js.min

How to adjust aspect ratio of the scene 16:9 into 9:16?

When the scene is opened directly, it always occupies the whole screen, so uses aspect ratio of the display. When the scene is embedded in another page via an iframe, you can modify iframe width and height parameters to change the aspect ratio: https://help.shapespark.com/hc/en-us/articles/360008918897-Embed-a-scene-in-a-website

Can I use inner code of Shapespark to call the Three.js code?

No, Shapespark doesn’t expose Three.js compatible API.

Can body-end code or extension in Shapespark call external code base?

Yes, you can link external JavaScript libraries, such as jQuery, and use them within the body-end.html.