Code Monkey home page Code Monkey logo

Comments (13)

BlackHole1 avatar BlackHole1 commented on September 28, 2024 1

This is a known whiteboard issue that we will fix in the next release.

The reason is that your browser does not have a window.ResizeObserver method

We will fix this issue and release a version that is compatible without window.ResizeObserver by next week

from flat.

BlackHole1 avatar BlackHole1 commented on September 28, 2024

Thank you for your feedback, we will be investigating in the near future

from flat.

parallelmedical avatar parallelmedical commented on September 28, 2024

thanks, ive updated to white-sdk 2.13.19 and it fixed the issue.

from flat.

parallelmedical avatar parallelmedical commented on September 28, 2024

spoke to soon, seems to be some kind of race condition as its no longer working.

from flat.

BlackHole1 avatar BlackHole1 commented on September 28, 2024

spoke to soon, seems to be some kind of race condition as its no longer working.

Can you elaborate on that?

from flat.

parallelmedical avatar parallelmedical commented on September 28, 2024

i updated to 2.13.19, reloaded the application, when i entered a room that previously had whiteboard content i was able to grab the window corner and re-size. the images and drawing re-size appropriately as-well as the scale percentage update on the netless zoom controller. refresh the page and it no longer works, when i try to re-size the images and drawings move on the canvas to fit but dont reduce in size. ill try and capture some screenshots.

from flat.

BlackHole1 avatar BlackHole1 commented on September 28, 2024

ok, it would be nice to have a video

from flat.

parallelmedical avatar parallelmedical commented on September 28, 2024

sorry for the delay, i have updated the white-sdk and window manager. You can see from the video that both clients when resizing window don't rescale the annotation however after changing the vision control any follower clients scale correctly, is this expected behaviour?

https://vimeo.com/618749466

from flat.

hyrious avatar hyrious commented on September 28, 2024

Yes, it is as expected. The follower side will always be scaled to be able to see full content of the host side when the vision control is turned on.

from flat.

parallelmedical avatar parallelmedical commented on September 28, 2024

thanks @hyrious, is there a way to always force scaling?

from flat.

hyrious avatar hyrious commented on September 28, 2024

You can call room.moveCameraToContain(rect) to turn on auto scaling.

from flat.

parallelmedical avatar parallelmedical commented on September 28, 2024

calling this requires multiviews to be false, then I'm unable to call WindowManager.mount

index.js?c37d:52530 Uncaught (in promise) Error: you can only read views when useMultiViews is true
at ho.get (index.js?c37d:52530)
at xe.createMainView (index.es.js?545f:1)
at new xe (index.es.js?545f:1)
at new ye (index.es.js?545f:1)
at Function.mount (index.es.js?545f:1)
at mountWindowManager (Whiteboard.tsx?6296:116)

from flat.

hyrious avatar hyrious commented on September 28, 2024

WindowManager.mount() should be run before calling this method. It is View.moveCameraToContain() in fact in multiview. (source)

from flat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.