Git Product home page Git Product logo

Comments (7)

hildogjr avatar hildogjr commented on May 27, 2024

This have to wait the GUI as you propose. In the GUI a comboBox could allow choose between dark / light theme, collapse references or not.

from interactivehtmlbom.

hildogjr avatar hildogjr commented on May 27, 2024

I like to your way to keep just one file (because this I did #19). So maybe create different CSS styles on the plugin folder and merge it inside the html on the final process.

from interactivehtmlbom.

hildogjr avatar hildogjr commented on May 27, 2024

Even the java script and other could be a external file added by the python code in the final HTML. This will allow some users to easy modify the HTML template adding some personal logo (example).
But most important you could keep the *.js file format indented and remove the '\n' in the moment before add at the html.

from interactivehtmlbom.

qu1ck avatar qu1ck commented on May 27, 2024

I was thinking to have dark/light mode be a toggle in html itself so that you could change it dynamically.

On splitting js and css, that is a good idea, although not because of indentation. Js that is not indented is minified anyway.

from interactivehtmlbom.

hildogjr avatar hildogjr commented on May 27, 2024

Agree with your way, keep light and dark selected by a checkbox on final HTML file will be better.
Split the files is just a try to help you with maintenance, since the PCB data is injected on '///PCB///', the same could be done with the CSSs (the already existent and the dark one), even minified (minimize spaces and '\n"=') through a python replace / regular expression function.
Because of the size of the example project the I sent on other discussion, I am always concern about file size and light interpretation.

from interactivehtmlbom.

qu1ck avatar qu1ck commented on May 27, 2024

Rendering of the canvas is the biggest CPU/GPU consumer, parsing the file is nothing in comparison so I won't spend too much time on it.
Also in the large board you posted in the other issue, 99% of the html file volume is the pcbdata, which is already compact as it is. Some corners can be cut there like using shorter string keys and reducing floating point precision, but ultimately not much, unless I switch to a compact serialization protocol, something like protobuf. But that is a huge dependency to pull in, which I will only do if wins are really justified.
Anyway, we digress :) Lets keep this bug about dark mode.

from interactivehtmlbom.

hildogjr avatar hildogjr commented on May 27, 2024

When in dark mode, the board edge should go white? Just a question about the better contrast to visualize.

from interactivehtmlbom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.