Class ModelViewer

java.lang.Object
com.vaadin.flow.component.Component
All Implemented Interfaces:
HasSize, ResourcedComponent, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

@NpmPackage(value="@google/model-viewer", version="v4.1.0") @JsModule("@google/model-viewer/dist/model-viewer.min.js") @Tag("model-viewer") public class ModelViewer extends AbstractResourcedComponent
A component for rendering 3D models using the `@google/model-viewer` library. It supports various media sources and enables camera controls by default for model interaction. This class extends AbstractResourcedComponent and allows sources to be specified via URLs, media files, or streamable data resources. Features: - Renders 3D models using a browser-supported viewer. - Provides camera controls by default for interactive model viewing. - Supports multiple constructors for various source types including media files and stream data.
See Also: