eulumdat-ui 0.5.0

Shared egui UI components for Eulumdat viewer/editor
Documentation

Shared egui UI components for Eulumdat viewer/editor

This crate provides reusable egui widgets for visualizing and editing EULUMDAT (LDT) and IES photometric data. It's designed to be used by:

  • Desktop applications (via eframe)
  • Web applications (via eframe WASM or embedded in Leptos)

Features

  • 3d - Enable 3D viewer using three-d
  • persistence - Enable state persistence via serde

Example

use eulumdat::Eulumdat;
use eulumdat_ui::{EulumdatEditor, Theme};

// In your egui app
fn update(&mut self, ctx: &egui::Context) {
    egui::CentralPanel::default().show(ctx, |ui| {
        self.editor.show(ui, &mut self.ldt);
    });
}