/** * Copyright (c) 2019-2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ import { Model } from '../../../mol-model/structure.js'; import { ParamDefinition as PD } from '../../../mol-util/param-definition.js'; import { Vec3 } from '../../../mol-math/linear-algebra.js'; import { Cell } from '../../../mol-math/geometry/spacegroup/cell.js'; import { RepresentationParamsGetter, Representation, RepresentationContext } from '../../representation.js'; interface UnitcellData { cell: Cell; ref: Vec3; } export declare const UnitcellParams: { cellColor: PD.Color; cellScale: PD.Numeric; ref: PD.Select<"origin" | "model">; attachment: PD.Select<"center" | "corner">; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; solidInterior: PD.BooleanParam; 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; }; export type UnitcellParams = typeof UnitcellParams; export type UnitcellProps = PD.Values; export declare function getUnitcellLabel(cell: Cell): string; export declare function getUnitcellData(model: Model, cell: Cell, props: UnitcellProps): { cell: Cell; ref: Vec3; }; /** * Like `getUnitcellData` but takes an explicit cartesian `center` instead of a `Model`. * Useful for data that is not backed by a `Model`, e.g. a `ParticleList`. */ export declare function getUnitcellDataFromSymmetry(cell: Cell, center: Vec3, props: UnitcellProps): { cell: Cell; ref: Vec3; }; export type UnitcellRepresentation = Representation; export declare function UnitcellRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter): UnitcellRepresentation; export {};