import type { D3InterpolateName } from '../colors'; import type { ShowControlsProp } from '../controls'; import type { TooltipConfig } from '../tooltip'; import type { Snippet } from 'svelte'; import type { HTMLAttributes } from 'svelte/elements'; import type { EnergySourceMode } from './hull-state.svelte'; import type { ConvexHullConfig, ConvexHullControlsType, EntryCategoryConfig, GasSpecies, GasThermodynamicsConfig, HighlightStyle, HoverData3D, HullFaceColorMode, PhaseData, PhaseStats } from './types'; export { composition_to_barycentric_nd, composition_to_simplex_coords, TETRAHEDRON_VERTICES, TRIANGLE_VERTICES, } from './barycentric-coords'; export { default as ConvexHull } from './ConvexHull.svelte'; export { default as ConvexHull2D } from './ConvexHull2D.svelte'; export { default as ConvexHullCanvas } from './ConvexHullCanvas.svelte'; export { default as ConvexHullControls } from './ConvexHullControls.svelte'; export { default as ConvexHullInfoPane } from './ConvexHullInfoPane.svelte'; export { default as ConvexHullStats } from './ConvexHullStats.svelte'; export { default as ConvexHullTooltip } from './ConvexHullTooltip.svelte'; export * from './gas-thermodynamics'; export { default as GasPressureControls } from './GasPressureControls.svelte'; export { analyze_temperature_data, apply_category_markers, build_entry_tooltip_text, compute_all_polymorph_stats, compute_hull_stability, entry_is_stable, filter_entries_at_temperature, get_arity, get_composition_label_entries, get_energy_color_scale, get_entry_category, get_entry_label, get_point_color_for_entry, HULL_STABILITY_TOL, interpolate_energy_at_temperature, is_entry_highlighted, is_on_hull, is_unary_entry, merge_highlight_style, visible_entries, } from './helpers'; export type { PolymorphStats, TemperatureAnalysis, TemperatureFilterOptions } from './helpers'; export type { EnergyModeInfo, EnergySourceMode } from './hull-state.svelte'; export { default as StructurePopup } from './StructurePopup.svelte'; export { default as TemperatureSlider } from './TemperatureSlider.svelte'; export { calculate_e_above_hull, compute_e_above_hull_nd, compute_e_form_per_atom, compute_lower_hull_nd, compute_quickhull_nd, find_lowest_energy_unary_refs, get_convex_hull_stats, normalize_hull_composition_keys, process_hull_entries, process_hull_for_stats, } from './thermodynamics'; export type { HighDimHullResult, HullFacet } from './thermodynamics'; export * from './types'; interface BaseConvexHullChildrenProps { stable_entries: AnyDimEntry[]; unstable_entries: AnyDimEntry[]; highlighted_entries: (string | AnyDimEntry)[]; selected_entry: AnyDimEntry | null; } export interface TooltipSnippetProps { entry: AnyDimEntry; highlight_style?: HighlightStyle; } type ConvexHullTooltipConfig = TooltipConfig; export type ConvexHullTooltipProp = Snippet<[TooltipSnippetProps]> | ConvexHullTooltipConfig; type ConvexHullControlName = `reset` | `info-pane` | `fullscreen` | `controls`; export interface BaseConvexHullProps extends Omit, `entries` | `children`> { entries?: PhaseData[]; components?: readonly string[]; controls?: Partial; config?: Partial; show_controls?: ShowControlsProp; on_point_click?: (entry: AnyDimEntry) => void; on_point_hover?: (data: HoverData3D | null) => void; fullscreen?: boolean; fullscreen_toggle?: boolean; enable_info_pane?: boolean; wrapper?: HTMLDivElement; label_threshold?: number; show_stable?: boolean; show_unstable?: boolean; entry_category?: EntryCategoryConfig | null; hidden_categories?: string[]; color_mode?: `stability` | `energy`; color_scale?: D3InterpolateName; info_pane_open?: boolean; controls_open?: boolean; max_hull_dist_show_phases?: number; max_hull_dist_show_labels?: number; show_stable_labels?: boolean; show_unstable_labels?: boolean; allow_file_drop?: boolean; on_file_drop?: (entries: PhaseData[]) => void; enable_click_selection?: boolean; enable_structure_preview?: boolean; energy_source_mode?: EnergySourceMode; phase_stats?: PhaseStats | null; display?: { x_grid?: boolean; y_grid?: boolean; }; stable_entries?: AnyDimEntry[]; unstable_entries?: AnyDimEntry[]; highlighted_entries?: (string | AnyDimEntry)[]; highlight_style?: HighlightStyle; selected_entry?: AnyDimEntry | null; children?: Snippet<[BaseConvexHullChildrenProps]>; tooltip?: ConvexHullTooltipProp; temperature?: number; interpolate_temperature?: boolean; max_interpolation_gap?: number; gas_config?: GasThermodynamicsConfig; gas_pressures?: Partial>; } export interface Hull3DProps { show_hull_faces?: boolean; hull_face_opacity?: number; hull_face_color_mode?: HullFaceColorMode; gizmo?: boolean | ConvexHullGizmoOptions; } export type GizmoPlacement = `top-right` | `bottom-right` | `top-left` | `bottom-left`; export type ConvexHullGizmoOptions = Record & { placement?: GizmoPlacement; size?: number; }; export declare const default_controls: ConvexHullControlsType; export declare const default_hull_config: ConvexHullConfig; export declare const merge_hull_config: (config: ConvexHullConfig) => ConvexHullConfig; export declare const CONVEX_HULL_STYLE: Readonly<{ structure_line: Readonly<{ color: "rgba(128, 128, 128, 0.6)"; dash: number[]; line_width: 2; }>; z_index: Readonly<{ tooltip: 6; copy_feedback: 10; }>; }>;