mitevpi / gh-web-ui Goto Github PK
View Code? Open in Web Editor NEWPackage for building web-based User Interfaces (UI) in Rhino Grasshopper.
License: GNU General Public License v3.0
Package for building web-based User Interfaces (UI) in Rhino Grasshopper.
License: GNU General Public License v3.0
Petr
If you close the UI window, the component breaks and i cannot find a way to reopen / trigger the UI window to open.
Hi y'all,
thanks for this great development!
Is it possible to display the web gui window without title bar and borders?
Mouse events for moving the window around need to be rewritten then as well I guess.
Hi, I know it is a WIP project, but let me share the issues that I found checking the example files so it can help you to make quick fixes.
When I open each file I got "Input parameter chunk is missing. Archive is corrupt." gh messages.
SampleScriptVanilla.gh doesn't contain any of your components, it is this intentional?
Openning SampleScriptHardCoded.gh I got an OutOfRange exception (SettersDefineComponent class, line 50), since the merge component only receive 2 values instead of 3. IMO you should include a component error if ids.Count != vals.Count instead of let GH (or VS while debugging) handle this error, because normal users won't know what's going on. I am adding these validators myself in case you want to do a merge later.
The file CreateInterfaceComplex.gh contains what it seams other version of text component called "Create Label", which its last input is "css" but the data type is number so it throws a conversion error. It is fixed in CreateInterfaceMoreComplex.gh file.
Closing windows doesn't work until I set to false the show input.
It is compiled for RH7, there is some reason or it can be compiled for RH6 as well?
Components with Id input, should not be empty as default and optional? It is confusing having id="slider".
Components with name input, should not be its component name rather than "slider"?
As a suggestion that I bet you already thought, components to have css preset styles.
Hi!
I compiled the code and when I show my first window I got this:
I tried installing WebView2 from here: https://developer.microsoft.com/en-us/microsoft-edge/webview2/ and it works now. But this seems to be a problem because it could mean that the dependencies are not being referenced correctly or that something is missing, I don't know, but I guess you don't want users to have to download this to make it work. You had installed this? maybe if you try uninstalling it you can reproduce the error on your machine.
Since your ServerInterface.gh file references a path on your local machine and the button value is set to true I got another error that crashed Rhino. I had to open the definition with the solver locked to change it to my local path and it works now. I think you should set the buttons that launch windows to false before saving and a few notes explaining that they reference the path on their computer.
I had started playing with web interfaces for my Peacock plugin a while ago and coming across this made my day ๐. I'm going to keep exploring and give you more feedback, it would be awesome to use it as the face of my plugin. ๐ฅ ๐ฅ ๐ฅ
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.