Crates.io | gldf-rs-wasm |
lib.rs | gldf-rs-wasm |
version | 0.2.1 |
source | src |
created_at | 2023-09-01 14:39:32.982175 |
updated_at | 2023-09-01 14:39:32.982175 |
description | The Webassembly package for the GLDF (General Lighting Data Format) parser and writer for Rust https://crates.io/crates/gldf-rs |
homepage | https://gldf.icu |
repository | https://github.com/holg/gldf-rs-wasm |
max_upload_size | |
id | 960968 |
size | 2,954,542 |
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)
<!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.