# CAD preview runtime sources and modifications

This is a modified copy of occt-import-js 0.0.23, licensed LGPL-2.1.
Upstream source: https://github.com/kovacsv/occt-import-js/tree/0.0.23
Published source and build artifacts: https://www.npmjs.com/package/occt-import-js/v/0.0.23
The OpenCascade WASM file is unchanged from that package.

Forismo modified the JavaScript bindings on 2026-10-08. The two generated
Embind/Emval invocation paths and the generated global-object fallback are
replaced by static closures, preserving argument/wire conversions, return
conversions, constructors, method receivers, and destructor cleanup.
The replacements use the non-generating strategy described by Emscripten
3.1.69's DYNAMIC_EXECUTION=0 paths:
https://github.com/emscripten-core/emscripten/blob/3.1.69/src/embind/embind.js
https://github.com/emscripten-core/emscripten/blob/3.1.69/src/embind/emval.js

The complete readable adapter source is model-cad-csp-adapter.mjs alongside
this notice. The original LGPL license is preserved in LICENSE.md.

Emscripten binding strategy attribution (MIT license):
Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
