gemini-viewer-examples icon indicating copy to clipboard operation
gemini-viewer-examples copied to clipboard

script import

Open Super-Xiao opened this issue 1 year ago • 4 comments

Hello, how to use script import instead of NPM installation

Super-Xiao avatar Apr 16 '24 02:04 Super-Xiao

Directly using the min.js file resulted in an error

Super-Xiao avatar Apr 16 '24 02:04 Super-Xiao

@yanzexuan1

Super-Xiao avatar Apr 16 '24 08:04 Super-Xiao

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";

yanzexuan1 avatar Apr 17 '24 00:04 yanzexuan1

Can we introduce it this way ?

Super-Xiao avatar Apr 17 '24 02:04 Super-Xiao