import { M as MaterialVariantGroup } from './materialVariants-DnZe9eMC.mjs'; /** * When a viewer starts its 3D view on its own. `"lazy"` waits until it's on * or near the screen and shares the page's live 3D views with the other lazy * viewers, so a page of viewers stays within the browser's limit. `"eager"` * starts at once and keeps its view. */ type ViewerLoading = "lazy" | "eager"; /** * Whether the 3D view starts on its own (`"auto"`) or waits on the poster * until the visitor asks for it with a "View in 3D" button (`"interaction"`). */ type ViewerReveal = "auto" | "interaction"; type ModelFormat = "glb" | "gltf" | "obj" | "fbx" | "usdz" | "stl" | "ply"; type ViewerModelBounds = { min: [number, number, number]; max: [number, number, number]; center: [number, number, number]; size: [number, number, number]; }; /** What `onModelLoaded` reports about a model that finished loading. */ type ViewerModelInfo = { /** Bounds in world space, where the viewer placed the model. */ bounds: ViewerModelBounds; /** Number of meshes in the loaded scene. */ objectCount: number; /** * Names of the glTF material variants (KHR_materials_variants) the model * offers, in file order; empty when it has none. Show them by setting * `sceneConfig.model.activeVariants`. */ materialVariants: string[]; /** * The same variants as option groups, with their display labels and * swatches. One variant from each group can show at once. */ materialVariantGroups: MaterialVariantGroup[]; }; export type { ModelFormat as M, ViewerLoading as V, ViewerModelBounds as a, ViewerModelInfo as b, ViewerReveal as c };