The wasm version of gldr-rs
GLDF-RS-WASM is a WebAssembly (Wasm) version of the Global Lighting Data Format (GLDF) library. It allows you to work with GLDF data directly in the browser by leveraging WebAssembly technology. GLDF is a standardized format for describing lighting products and their technical details.
- 0.2.1 usage of new gldf-rs 0.2.1
- Inheritance and overwriting of properties (needed bcs of reqwest)
- Deserialize GLDF files on the client-side using WebAssembly.
- Interact with GLDF data directly within web applications.
- Use GLDF data for dynamic visualization and analysis in the browser.
- Include the GLDF-RS-WASM JavaScript module in your HTML:
<!DOCTYPE html><html lang="en"><head>
<meta charset="utf-8">
<title>GLDF • File Upload</title>
<script type="module">import init from '/gldf-rs-wasm-e633e9b682fa57a5.js';init('/gldf-rs-wasm-e633e9b682fa57a5_bg.wasm');</script>
<link rel="stylesheet" href="/styles-a8c36e60fd065d7c.css">
<link rel="stylesheet" href="/font-awesome.min.css">
<link rel="preload" href="/gldf-rs-wasm-e633e9b682fa57a5_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/gldf-rs-wasm-e633e9b682fa57a5.js"></head>
<body>
</body></html>
That's it! You can now use the gldf-rs-wasm
module in your JavaScript code.
The working example can be found here:
There you have the advantage, that included eulumdat files, can be directly opened into
which is an WASM Eulumdat Editor and Viewer, which can as well export to IESNA Format.