Skip to main content

progress

An event that fires while the 3D model is loading.
This extends the native ProgressEvent.
To get total bytes, you should serve the 3D model with the Content-Length header.

PropertyTypeDescription
typestringThe type of event
targetView3DAn instance of View3D that triggered this event
lengthComputablebooleanA boolean flag indicating if the total work to be done, and the amount of work already done, by the underlying process is calculable. In other words, it tells if the progress is measurable or not
loadednumberA 64-bit unsigned integer value indicating the amount of work already performed by the underlying process. The ratio of work done can be calculated by dividing total by the value of this property. When downloading a resource using HTTP, this only counts the body of the HTTP message, and doesn't include headers and other overhead
totalnumberA 64-bit unsigned integer representing the total amount of work that the underlying process is in the progress of performing. When downloading a resource using HTTP, this is the Content-Length (the size of the body of the message), and doesn't include the headers and other overhead
Load 3D model
Events Triggered
{
src: "/egjs-view3d/model/draco/alarm.glb",
poster: "/egjs-view3d/poster/alarm_default.png"
}