bimspot / xeokit-react

Integratation of the xeokit viewer into a React application.
32 stars 22 forks source link

Make NavCubeSettings responsive #18

Open chloesun opened 4 years ago

chloesun commented 4 years ago

Is it possible to make the canvasWidth and canvasHeight a responsive size based on the screen width/height?

export const sampleNavCubeSettings = {
    canvasId: "myNavCubeCanvas",
    visible: true,
    cameraFly: true,
    cameraFitFOV: 45,
    cameraFlyDuration: 0.5,
    canvasWidth: 250,
    canvasHeight: 250
};