s-holst / gds2webgl Goto Github PK
View Code? Open in Web Editor NEWTranslates GDSII into HTML/JS that can be viewed in WebGL-capable web browsers.
License: MIT License
Translates GDSII into HTML/JS that can be viewed in WebGL-capable web browsers.
License: MIT License
This is awesome!
See the work I'm doing here: https://tinytapeout.com
Just tried it on my GitHub action here: https://github.com/mattvenn/tinytapeout-7seg-seconds-counter/actions/runs/2913772759
It would be great to pass a lef as well and then all the standard cells could be highlighted and named. Great for exploring the gds.
I wanted to look at the layers individually, so I changed 'data' in the javascript in the generated html file to not be a const and repeatedly executed data=data.slice(0,-1) in the javascript console to hide the top most layers. It would be nice if this was made into a feature, e.g. press 'Q' to move the view down a layer and 'E' to go up a layer.
a way to edit z_scale would also be nice, setting z_scale to a small value like 0.0000000000001 removes perspective (as was mentioned in another issue) and a large value like 0.0001 makes the view 'explode' which is cool to look at in 3D
I'm concerned that if I use this, veteran designers will be confused and assume there are problems with the design if the perspective distortion is present. Can you link to a section (or multiple if present) of the code where this is performed, such that I could work on hooking up a UI toggle for enabling/disabling the feature?
I held down CTRL, ALT, SHIFT, combinations of those... but no matter what I can only pan left/right and up/down and zoom with the mousewheel. Is there any way to tilt the view?
thanks alot!!!
i follow the docs and run command as follow, the gds is built by GDSPY https://github.com/heitzmann/gdspy
python .\gds2webgl.py -i .\spinQ_2qubit_initial_version.gds -o file.html
python .\gds2webgl.py -i .\spinQ_2qubit_initial_version.gds -o data.js
but gds parse a cell into html, which cell 's points_str is 'AQ==' and triangles_str is 'AA=='
saddly ,nothing is in canvas.
it is different from the demo , i guess something lost after parsing
How can I make it work? Please help me, or please give my some advise.
MYSOURCE:
link:
https://static-cdn.spinq.cn/static/spinQ_2qubit_initial_version.gds
file.html and data.js
https://static-cdn.spinq.cn/parsedhtml/data.js
https://static-cdn.spinq.cn/parsedhtml/file.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.