velxio/frontend/public/component-svgs
David Montero Crespo 20eabd8c4c fix(scripts): generate-component-svgs no longer skips bmp280 / fails on ssd1306
Two distinct issues hit the component SVG generation step:

1. `velxio-bmp280` was in ELEMENTS but tries to require
   bmp280-element.js from the wokwi-elements CJS dist — that file
   doesn't exist because BMP280 is a velxio-native component, not a
   wokwi one. Its SVG already ships hand-authored at
   frontend/public/component-svgs/bmp280.svg, so the script should
   never have tried to extract it. Drop the row and leave a comment
   explaining why.

2. `wokwi-ssd1306` failed with "ImageData is not defined" because the
   element constructor seeds an off-screen canvas with
   `new ImageData(width, height)` — a browser API absent in Node.
   We never invoke putImageData (renderSVG() draws the static frame
   from scratch), so a minimal global stub that doesn't throw is all
   that's needed. Polyfill it on globalThis next to the existing
   customElements stub.

After this:
- 38 generated, 0 skipped, 0 failed (was: 1 skip, 1 fail).
- ssd1306.svg now ships in frontend/public/component-svgs/.
2026-05-09 00:05:28 -03:00
..
7segment.svg
analog-joystick.svg
arduino-mega-board.svg
arduino-mega.svg
arduino-nano-board.svg
arduino-nano.svg
arduino-uno-board.svg
arduino-uno.svg
attiny85.svg feat(components): swap BMP280 + ATtiny85 to fritzing art 2026-05-08 23:06:44 -03:00
bmp280.svg feat(components): swap BMP280 + ATtiny85 to fritzing art 2026-05-08 23:06:44 -03:00
buzzer.svg
dht22.svg
ds1307.svg
esp32-board.svg
esp32-devkit-v1.svg
hc-sr04.svg
ili9341.svg
lcd2004.svg
led-blue.svg
led-green.svg
led-ring.svg
led-yellow.svg
led.svg
mpu6050.svg
nano-rp2040-connect.svg
neopixel-matrix.svg
neopixel.svg
ntc-temperature-sensor.svg
photoresistor-sensor.svg
pir-motion-sensor.svg
potentiometer.svg
pushbutton-6mm.svg
pushbutton.svg
raspberry-pi-3.svg
raspberry-pi-pico-w.svg
raspberry-pi-pico.svg
resistor.svg
rgb-led.svg
servo.svg
ssd1306.svg fix(scripts): generate-component-svgs no longer skips bmp280 / fails on ssd1306 2026-05-09 00:05:28 -03:00
test.html
velxio-raspberry-pi-3.svg