mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
fix(wind): decode in bounded virtual storage and test real canvas retention
This commit is contained in:
1 parent
26354d5ae1
commit
430dcd4c55
8 files changed
+89
-47
No files matched your search
+13
-3
@@ -226,11 +226,18 @@ export class LayerPanel {
|
||||
const chips = controls?.chips || [];
|
||||
const legend = controls?.legend || [];
|
||||
this._syncRowList(listContainer, controls?.list || null);
|
||||
container.hidden = chips.length === 0 && legend.length === 0 && !controls?.info;
|
||||
container.hidden =
|
||||
chips.length === 0 && legend.length === 0 && !controls?.info;
|
||||
|
||||
for (const node of [...container.children]) {
|
||||
if (
|
||||
String(node.className).split(/\s+/).some((name) => ['data-toggle-legend-item', 'data-toggle-controls-info'].includes(name))
|
||||
String(node.className)
|
||||
.split(/\s+/)
|
||||
.some((name) =>
|
||||
['data-toggle-legend-item', 'data-toggle-controls-info'].includes(
|
||||
name,
|
||||
),
|
||||
)
|
||||
)
|
||||
node.remove();
|
||||
}
|
||||
@@ -267,7 +274,10 @@ export class LayerPanel {
|
||||
swatch.className = 'data-toggle-legend-swatch';
|
||||
swatch.style.background = item.color;
|
||||
const text = document.createElement('span');
|
||||
text.textContent = item.count == null ? String(item.label) : `${item.label} ${this._formatCount(item.count)}`;
|
||||
text.textContent =
|
||||
item.count == null
|
||||
? String(item.label)
|
||||
: `${item.label} ${this._formatCount(item.count)}`;
|
||||
entry.append(swatch, text);
|
||||
container.appendChild(entry);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user