molstar
Version:
A comprehensive macromolecular library.
281 lines (280 loc) • 10.3 kB
TypeScript
/**
* Copyright (c) 2025-2026 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Ludovic Autin <autin@scripps.edu>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { ParamDefinition as PD } from '../../../mol-util/param-definition.js';
import { Volume } from '../../../mol-model/volume.js';
import { VolumeRepresentation, VolumeRepresentationProvider } from '../../../mol-repr/volume/representation.js';
import { ThemeRegistryContext } from '../../../mol-theme/theme.js';
import { RepresentationContext, RepresentationParamsGetter } from '../../../mol-repr/representation.js';
import { VolumeVisual } from '../../../mol-repr/volume/visual.js';
export declare const StreamlinesLinesParams: {
useLineStrips: PD.BooleanParam;
sizeFactor: PD.Numeric;
lineSizeAttenuation: PD.BooleanParam;
alpha: PD.Numeric;
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
material: PD.Group<PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>>;
clip: PD.Group<PD.Normalize<{
variant: import("../../../mol-util/clip.js").Clip.Variant;
objects: PD.Normalize<{
type: /*elided*/ any;
invert: /*elided*/ any;
position: /*elided*/ any;
rotation: /*elided*/ any;
scale: /*elided*/ any;
transform: /*elided*/ any;
}>[];
}>>;
emissive: PD.Numeric;
density: PD.Numeric;
instanceGranularity: PD.BooleanParam;
lod: PD.Vec3;
cellSize: PD.Numeric;
batchSize: PD.Numeric;
anchorEnabled: PD.BooleanParam;
anchorCenter: PD.Vec3;
anchorRadius: PD.Numeric;
dashEnabled: PD.BooleanParam;
dashPoints: PD.Numeric;
dashShift: PD.BooleanParam;
};
export type StreamlinesLinesParams = typeof StreamlinesLinesParams;
export type StreamlinesLinesProps = PD.Values<StreamlinesLinesParams>;
export declare function VolumeStreamlinesLinesVisual(materialId: number): VolumeVisual<StreamlinesLinesParams>;
export declare const StreamlinesTubeMeshParams: {
tubeSizeFactor: PD.Numeric;
radialSegments: PD.Numeric;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: PD.BooleanParam;
ignoreLight: PD.BooleanParam;
celShaded: PD.BooleanParam;
xrayShaded: PD.Select<boolean | "inverted">;
transparentBackfaces: PD.Select<"off" | "on" | "opaque">;
bumpFrequency: PD.Numeric;
bumpAmplitude: PD.Numeric;
interior: PD.Group<PD.Normalize<{
color: import("../../../mol-util/color/index.js").Color;
colorStrength: number;
substance: PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>;
substanceStrength: number;
}>>;
alpha: PD.Numeric;
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
material: PD.Group<PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>>;
clip: PD.Group<PD.Normalize<{
variant: import("../../../mol-util/clip.js").Clip.Variant;
objects: PD.Normalize<{
type: /*elided*/ any;
invert: /*elided*/ any;
position: /*elided*/ any;
rotation: /*elided*/ any;
scale: /*elided*/ any;
transform: /*elided*/ any;
}>[];
}>>;
emissive: PD.Numeric;
density: PD.Numeric;
instanceGranularity: PD.BooleanParam;
lod: PD.Vec3;
cellSize: PD.Numeric;
batchSize: PD.Numeric;
anchorEnabled: PD.BooleanParam;
anchorCenter: PD.Vec3;
anchorRadius: PD.Numeric;
dashEnabled: PD.BooleanParam;
dashPoints: PD.Numeric;
dashShift: PD.BooleanParam;
};
export type StreamlinesTubeMeshParams = typeof StreamlinesTubeMeshParams;
export type StreamlinesTubeMeshProps = PD.Values<StreamlinesTubeMeshParams>;
export declare function VolumeStreamlinesTubeMeshVisual(materialId: number): VolumeVisual<StreamlinesTubeMeshParams>;
export declare const StreamlinesParams: {
visuals: PD.MultiSelect<"lines" | "tube-mesh">;
density: PD.Numeric;
tubeSizeFactor: PD.Numeric;
radialSegments: PD.Numeric;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: PD.BooleanParam;
ignoreLight: PD.BooleanParam;
celShaded: PD.BooleanParam;
xrayShaded: PD.Select<boolean | "inverted">;
transparentBackfaces: PD.Select<"off" | "on" | "opaque">;
bumpFrequency: PD.Numeric;
bumpAmplitude: PD.Numeric;
interior: PD.Group<PD.Normalize<{
color: import("../../../mol-util/color/index.js").Color;
colorStrength: number;
substance: PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>;
substanceStrength: number;
}>>;
alpha: PD.Numeric;
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
material: PD.Group<PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>>;
clip: PD.Group<PD.Normalize<{
variant: import("../../../mol-util/clip.js").Clip.Variant;
objects: PD.Normalize<{
type: /*elided*/ any;
invert: /*elided*/ any;
position: /*elided*/ any;
rotation: /*elided*/ any;
scale: /*elided*/ any;
transform: /*elided*/ any;
}>[];
}>>;
emissive: PD.Numeric;
instanceGranularity: PD.BooleanParam;
lod: PD.Vec3;
cellSize: PD.Numeric;
batchSize: PD.Numeric;
anchorEnabled: PD.BooleanParam;
anchorCenter: PD.Vec3;
anchorRadius: PD.Numeric;
dashEnabled: PD.BooleanParam;
dashPoints: PD.Numeric;
dashShift: PD.BooleanParam;
useLineStrips: PD.BooleanParam;
sizeFactor: PD.Numeric;
lineSizeAttenuation: PD.BooleanParam;
};
export type StreamlinesParams = typeof StreamlinesParams;
export declare function getStreamlinesParams(ctx: ThemeRegistryContext, volume: Volume): {
visuals: PD.MultiSelect<"lines" | "tube-mesh">;
density: PD.Numeric;
tubeSizeFactor: PD.Numeric;
radialSegments: PD.Numeric;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: PD.BooleanParam;
ignoreLight: PD.BooleanParam;
celShaded: PD.BooleanParam;
xrayShaded: PD.Select<boolean | "inverted">;
transparentBackfaces: PD.Select<"off" | "on" | "opaque">;
bumpFrequency: PD.Numeric;
bumpAmplitude: PD.Numeric;
interior: PD.Group<PD.Normalize<{
color: import("../../../mol-util/color/index.js").Color;
colorStrength: number;
substance: PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>;
substanceStrength: number;
}>>;
alpha: PD.Numeric;
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
material: PD.Group<PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>>;
clip: PD.Group<PD.Normalize<{
variant: import("../../../mol-util/clip.js").Clip.Variant;
objects: PD.Normalize<{
type: /*elided*/ any;
invert: /*elided*/ any;
position: /*elided*/ any;
rotation: /*elided*/ any;
scale: /*elided*/ any;
transform: /*elided*/ any;
}>[];
}>>;
emissive: PD.Numeric;
instanceGranularity: PD.BooleanParam;
lod: PD.Vec3;
cellSize: PD.Numeric;
batchSize: PD.Numeric;
anchorEnabled: PD.BooleanParam;
anchorCenter: PD.Vec3;
anchorRadius: PD.Numeric;
dashEnabled: PD.BooleanParam;
dashPoints: PD.Numeric;
dashShift: PD.BooleanParam;
useLineStrips: PD.BooleanParam;
sizeFactor: PD.Numeric;
lineSizeAttenuation: PD.BooleanParam;
};
export type StreamlinesRepresentation = VolumeRepresentation<StreamlinesParams>;
export declare function StreamlinesRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Volume, StreamlinesParams>): StreamlinesRepresentation;
export declare const StreamlinesRepresentationProvider: VolumeRepresentationProvider<{
visuals: PD.MultiSelect<"lines" | "tube-mesh">;
density: PD.Numeric;
tubeSizeFactor: PD.Numeric;
radialSegments: PD.Numeric;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: PD.BooleanParam;
ignoreLight: PD.BooleanParam;
celShaded: PD.BooleanParam;
xrayShaded: PD.Select<boolean | "inverted">;
transparentBackfaces: PD.Select<"off" | "on" | "opaque">;
bumpFrequency: PD.Numeric;
bumpAmplitude: PD.Numeric;
interior: PD.Group<PD.Normalize<{
color: import("../../../mol-util/color/index.js").Color;
colorStrength: number;
substance: PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>;
substanceStrength: number;
}>>;
alpha: PD.Numeric;
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
material: PD.Group<PD.Normalize<{
metalness: number;
roughness: number;
bumpiness: number;
}>>;
clip: PD.Group<PD.Normalize<{
variant: import("../../../mol-util/clip.js").Clip.Variant;
objects: PD.Normalize<{
type: /*elided*/ any;
invert: /*elided*/ any;
position: /*elided*/ any;
rotation: /*elided*/ any;
scale: /*elided*/ any;
transform: /*elided*/ any;
}>[];
}>>;
emissive: PD.Numeric;
instanceGranularity: PD.BooleanParam;
lod: PD.Vec3;
cellSize: PD.Numeric;
batchSize: PD.Numeric;
anchorEnabled: PD.BooleanParam;
anchorCenter: PD.Vec3;
anchorRadius: PD.Numeric;
dashEnabled: PD.BooleanParam;
dashPoints: PD.Numeric;
dashShift: PD.BooleanParam;
useLineStrips: PD.BooleanParam;
sizeFactor: PD.Numeric;
lineSizeAttenuation: PD.BooleanParam;
}, "streamlines">;