Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script import #132

Open
Super-Xiao opened this issue Apr 16, 2024 · 4 comments
Open

script import #132

Super-Xiao opened this issue Apr 16, 2024 · 4 comments

Comments

@Super-Xiao
Copy link

Hello, how to use script import instead of NPM installation

@Super-Xiao
Copy link
Author

Directly using the min.js file resulted in an error

@Super-Xiao
Copy link
Author

@yanzexuan1

@yanzexuan1
Copy link
Collaborator

Just like what we did in https://github.com/pattern-x/gemini-viewer-examples/blob/main/public/demo/dxf_0.html, copy gemini-viewer.esm.min.js to some where, then:

        import { DxfViewer } from "./gemini-viewer.esm.min.js";

@Super-Xiao
Copy link
Author

Can we introduce it this way ? <script src='js/gemini-viewer.esm.min.js'></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants