Peek in segment tab

Move peek 2D functionality to peek.js

FX_fcn.cpp: always erase customMappingTable if non existent ledmap

wled_server.cpp: add peek.js

index.js:
- add canvasPeek
- change resize of canvas
This commit is contained in:
Ewoud
2023-02-15 12:41:15 +01:00
parent 515c872770
commit 6e187dd5aa
12 changed files with 2447 additions and 2377 deletions

View File

@@ -1973,8 +1973,8 @@ void WS2812FX::deserializeMap(uint8_t n) {
}
if (!isFile) {
// erase custom mapping if selecting nonexistent ledmap.json (n==0)
if (!n && customMappingTable != nullptr) {
// erase custom mapping if selecting nonexistent ledmap.json (n==0) //WLEDM always erase if nonexistant
if (customMappingTable != nullptr) {
//WLEDMM: if isMatrix then not erase but back to matrix default
if (isMatrix)
setUpMatrix(true);