/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Ludovic Autin * @author Alexander Rose * @author Gianluca Tomasello */ import { ParamDefinition as PD } from '../../../mol-util/param-definition.js'; import { ThemeRegistryContext } from '../../../mol-theme/theme.js'; import { ParticleList } from '../../../mol-model/particles/particle-list.js'; import { WebGLContext } from '../../../mol-gl/webgl/context.js'; import { RepresentationContext, RepresentationParamsGetter } from '../../representation.js'; import { ParticleRepresentation, ParticleRepresentationProvider } from '../representation.js'; import { ParticleVisual } from '../visual.js'; export declare const SpacefillParticlesParams: { solidInterior: PD.BooleanParam; tryUseImpostor: PD.BooleanParam; detail: PD.Numeric; excludeFibers: PD.BooleanParam; excludeTargets: PD.BooleanParam; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; animation: PD.Group>; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.Select; renderMerged: PD.Select; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; sizeFactor: PD.Numeric; clipPrimitive: PD.BooleanParam; approximate: PD.BooleanParam; alphaThickness: PD.Numeric; lodLevels: PD.ObjectList>; }; export type SpacefillParticlesParams = typeof SpacefillParticlesParams; export type SpacefillParticlesProps = PD.Values; export declare function SpacefillParticlesImpostorVisual(materialId: number): ParticleVisual; export declare function SpacefillParticlesMeshVisual(materialId: number): ParticleVisual; /** Dispatch: returns an impostor visual when WebGL + required extensions are available, mesh otherwise. */ export declare function SpacefillParticlesVisual(materialId: number, _particles: ParticleList, props: PD.Values, webgl?: WebGLContext): ParticleVisual; export declare const SpacefillParticlesParamsGet: (_ctx: ThemeRegistryContext, _data: ParticleList) => { solidInterior: PD.BooleanParam; tryUseImpostor: PD.BooleanParam; detail: PD.Numeric; excludeFibers: PD.BooleanParam; excludeTargets: PD.BooleanParam; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; animation: PD.Group>; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.Select; renderMerged: PD.Select; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; sizeFactor: PD.Numeric; clipPrimitive: PD.BooleanParam; approximate: PD.BooleanParam; alphaThickness: PD.Numeric; lodLevels: PD.ObjectList>; }; export type SpacefillParticlesRepresentation = ParticleRepresentation; export declare function SpacefillParticlesRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter): SpacefillParticlesRepresentation; export declare const SpacefillParticlesRepresentationProvider: ParticleRepresentationProvider<{ solidInterior: PD.BooleanParam; tryUseImpostor: PD.BooleanParam; detail: PD.Numeric; excludeFibers: PD.BooleanParam; excludeTargets: PD.BooleanParam; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; animation: PD.Group>; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.Select; renderMerged: PD.Select; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; sizeFactor: PD.Numeric; clipPrimitive: PD.BooleanParam; approximate: PD.BooleanParam; alphaThickness: PD.Numeric; lodLevels: PD.ObjectList>; }, "spacefill">;