Blazor3D icon indicating copy to clipboard operation
Blazor3D copied to clipboard

There are errors when we resize window and if the container id is not "blazorview3d"

Open shivaramkrs opened this issue 2 years ago • 3 comments

I have used a different id name for the Blazor3D Viewer. When I resize the window I get errors.

image

shivaramkrs avatar Aug 05 '23 11:08 shivaramkrs

It's very strange Example1 also has a different containerId. And resizing works as expected. https://homaggroup.github.io/Blazor3D/example01 https://github.com/HomagGroup/Blazor3D/blob/main/Examples/Blazor3D.Examples.WebAsm/Pages/Example01.razor

 private ViewerSettings settings = new ViewerSettings()
        {
            ContainerId = "example1",
            CanSelect = true,// default is false
            SelectedColor = "yellow",
            ShowViewHelper = false,//default is true
            WebGLRendererSettings = new WebGLRendererSettings
            {
                Antialias = false // if you need poor quality for some reasons
            }
        };

what is lockdown-install.js?

simutaroman avatar Aug 05 '23 15:08 simutaroman

lockdown-install.js is not part of my project. I can only see it in the browser. Strange that you don't get the error with the custom id. Can you expose the "id" and "style" of the canvas?

shivaramkrs avatar Aug 05 '23 17:08 shivaramkrs

what do you mean "expose"?

simutaroman avatar Aug 06 '23 17:08 simutaroman