25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

events.md 1.4 KiB

8 yıl önce
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # API Events
  2. ## `load`
  3. Fired when a panorama finishes loading.
  4. ## `scenechange`
  5. Fired when a scene change is initiated. A `load` event will be fired when the
  6. new scene finishes loading. Passes scene ID string to handler.
  7. ## `fullscreenchange`
  8. Fired when browser fullscreen status changed. Passes status boolean to handler.
  9. ## `zoomchange`
  10. Fired when scene hfov update. Passes new HFOV value to handler.
  11. ## `scenechangefadedone`
  12. If a scene transition fade interval is specified, this event is fired when the
  13. fading is completed after changing scenes.
  14. ## `animatefinished`
  15. Fired when any movements / animations finish, i.e. when the renderer stops
  16. rendering new frames. Passes final pitch, yaw, and HFOV values to handler.
  17. ## `error`
  18. Fired when an error occured. The error message string is passed to the
  19. event listener.
  20. ## `errorcleared`
  21. Fired when an error is cleared.
  22. ## `mousedown`
  23. Fired when the mouse button is pressed. Passes `MouseEvent` to handler.
  24. ## `mouseup`
  25. Fired when the mouse button is released. Passes `MouseEvent` to handler.
  26. ## `touchstart`
  27. Fired when a touch starts. Passes `TouchEvent` to handler.
  28. ## `touchend`
  29. Fired when a touch ends. Passes `TouchEvent` to handler.
  30. ## `messageshown`
  31. Fired when a message, e.g., for needing `ctrl` + scroll to zoom, is shown.
  32. ## `messagecleared`
  33. Fired when a previously shown message is cleared.