Comments (7)
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.
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.
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.
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.
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.
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.
When in dark mode, the board edge should go white? Just a question about the better contrast to visualize.
from interactivehtmlbom.
Related Issues (20)
- Coloring Nets HOT 2
- Support of KiCAD v7 Symbol attribute Do not populate HOT 1
- Strange Silkscreen Behavior HOT 10
- Component Sort Order ("Characters other than A-Z will be ignored") HOT 1
- Improve zone handling in Eagle/Fusion parser HOT 5
- Render holes in vias HOT 7
- Saved settings not remembering empty 'Whitelisted' board variant HOT 4
- Type Error: GetEffectiveTextShape() got an unexpected keyword argument 'aTriangulate' HOT 2
- Feature Request: Highlight the placed components. HOT 2
- Make the top bar collapsible HOT 2
- one small request. Please implement the same script for Altium designer. HOT 1
- Feature request: Quiet / no-dialog mode HOT 2
- Support for FreeCAD HOT 1
- Is there a tutorial on allegro? I'm looking forward to it! HOT 1
- How to use custom fields with Allegro HOT 3
- Problem with parsing full arc board cutouts (allegro) HOT 2
- EAGLE 9.6.2: Bottom side component incorrect orientation. HOT 3
- User Header Misalignment HOT 3
- Adding "kicad_dnp" for --show-fields creates exception in ibom.py line 166
- CLI Execution for Eagle Board Files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interactivehtmlbom.