Viewer API Change Log

api

#1

We occasionally update the Viewer API to fix issues and add new features.

You can always find the latest in the Viewer API documentation:

No commenting on this thread

We disabled commenting to keep this thread compact. To reply to a specific change log entry, hover over it and click the ‘Reply as Linked Topic’ link:

image

Subscribe to this thread to receive updates

Would you like to receive an email when we post new entries? Scroll to the bottom of this page, click the ‘Tracking’ button and change it to ‘Watching’.

image

Or use the button below the timeline/scrollbar. That’s all!


Viewer-1.2.0 mouse events not working
#2

#3

#4

16 May 2018 - Version 1.2.0

https://sketchfab.com/developers/viewer/functions

  • New Annotation Events

    • annotationMouseEnter
    • annotationMouseLeaves
    • annotationSelect
  • New Camera Movement Events

    • cameraStart
    • cameraStop
  • New Viewer Events

    • Viewerplay
    • ViewerStop
  • Updated click Event: now fires with null values when clicking on nothing

  • New unselectAnnotation() method: unselect current selected annotation


Subscribe to this thread to receive updates:


Website Change Log
#5

6 August 2018 - Version 1.3.0

Viewer API v 1.3 is a pretty big update. You’ll be able to create and edit annotations on the fly, perform raycasting calculations, use new easing options for animations, add video textures, and more!

New

Changes

  • Removes “noAnnotation” event (i.e. returning -1 when entering/leaving an annotation)
  • Hidden nodes can now be transformed while remaining hidden
  • An error will be thrown if the browser has WebGL disabled and the “fallback” 360° viewer loads

Fixes

  • Annotation events now fire correctly from annotation menu clicks
  • Mouse event pick option is now optional (defaults to fast)

Subscribe to this thread to receive updates:


#6

17 December 2018 - Version 1.4.0

New

  • Lights / Env

    • setLight
    • getLight
    • setEnvironment
    • getEnvironment
  • Camera

    • getFov
  • Inspector

    • setShadingStyle
    • getShadingStyle
    • setWireframe
    • getWireframe

Changes

  • The click event is no longer sent if the user drags the camera.
  • Nodes now use stable IDs, so applications are resilient to models being re-uploaded/reprocessed.
  • You can now go to the Static Pose of an animation by passing -1 as the animation ID.

Subscribe to this thread to receive updates:


Viewer API request: access all 'Model Inspector' render modes.. please
Viewer API: toggle wireframe and other render modes from API?
Light open by data.api
Website Change Log