@keneth80/k-chart 1.26.1 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +129 -1100
- package/docs/code-graph-handoff.md +19 -37
- package/docs/configuration-reference.md +8 -1
- package/docs/functional-api.md +77 -0
- package/docs/react-nextjs.md +62 -8
- package/docs/refactor-plan.md +39 -23
- package/docs/release.md +9 -4
- package/examples/stackblitz-simple-api-basic/package-lock.json +96 -4
- package/examples/stackblitz-simple-api-basic/package.json +1 -1
- package/examples/stackblitz-subcell-heatmap-basic/README.md +48 -0
- package/examples/stackblitz-subcell-heatmap-basic/index.html +13 -0
- package/examples/stackblitz-subcell-heatmap-basic/package-lock.json +1788 -0
- package/examples/stackblitz-subcell-heatmap-basic/package.json +23 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/app.ts +212 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/component.css +169 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/heatmap-demo-core.ts +505 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/heatmap-demo.ts +23 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/main.ts +15 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/maplibre-compat.ts +6 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/model.ts +242 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/raster.ts +121 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/style.css +15 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/synthetic.ts +72 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/vendor.d.ts +3 -0
- package/examples/stackblitz-subcell-heatmap-basic/src/vite-env.d.ts +1 -0
- package/examples/stackblitz-topology-basic/package-lock.json +96 -4
- package/examples/stackblitz-topology-basic/package.json +1 -1
- package/examples/stackblitz-webgl-line-basic/package-lock.json +96 -4
- package/examples/stackblitz-webgl-line-basic/package.json +1 -1
- package/examples/stackblitz-world-activity-map/package.json +1 -1
- package/lib/core/contracts.d.ts +6 -2
- package/lib/core/contracts.d.ts.map +1 -1
- package/lib/series/svg-graph.d.ts +29 -0
- package/lib/series/svg-graph.d.ts.map +1 -1
- package/lib/series/svg-graph.js +509 -80
- package/lib/series/svg-graph.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kchart-stackblitz-subcell-heatmap-basic",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite --host 0.0.0.0",
|
|
8
|
+
"typecheck": "tsc --noEmit",
|
|
9
|
+
"test": "tsc -p tsconfig.tests.json && node --test tests/*.test.mjs",
|
|
10
|
+
"build": "npm run typecheck && vite build",
|
|
11
|
+
"preview": "vite preview --host 0.0.0.0"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@keneth80/k-chart": "1.26.1",
|
|
15
|
+
"@keneth80/k-chart-maplibre": "0.2.0",
|
|
16
|
+
"maplibre-gl": "6.11.2"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/geojson": "^7946.0.16",
|
|
20
|
+
"typescript": "^6.0.3",
|
|
21
|
+
"vite": "^7.1.12"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import {frameStats, type FieldFrame} from './model';
|
|
2
|
+
import {makeFrame, SELECTED_CELL_ID} from './synthetic';
|
|
3
|
+
import type {
|
|
4
|
+
HeatmapOptions,
|
|
5
|
+
SubcellHeatmapController
|
|
6
|
+
} from './heatmap-demo-core';
|
|
7
|
+
|
|
8
|
+
export type SubcellHeatmapFactory = (
|
|
9
|
+
container: string | HTMLElement,
|
|
10
|
+
options?: HeatmapOptions
|
|
11
|
+
) => Promise<SubcellHeatmapController>;
|
|
12
|
+
|
|
13
|
+
export interface MountedSubcellHeatmapApp {
|
|
14
|
+
demo: SubcellHeatmapController;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface MountSubcellHeatmapOptions {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function appMarkup(): string {
|
|
23
|
+
return `
|
|
24
|
+
<section class="subcell-app" aria-label="셀 내부 히트맵 예제">
|
|
25
|
+
<header class="subcell-header">
|
|
26
|
+
<div>
|
|
27
|
+
<p class="subcell-eyebrow">KCHART + MAPLIBRE</p>
|
|
28
|
+
<h2>0.5° 셀 내부 강도 분포</h2>
|
|
29
|
+
<p>한 격자 안의 51 × 51 관측 노드를 연속 스칼라 필드로 표현합니다.</p>
|
|
30
|
+
</div>
|
|
31
|
+
<span class="subcell-tag">Synthetic · 0–100</span>
|
|
32
|
+
</header>
|
|
33
|
+
<div class="subcell-toolbar">
|
|
34
|
+
<div class="subcell-segmented" aria-label="지도 보기 범위">
|
|
35
|
+
<button type="button" data-subcell-view="world">세계</button>
|
|
36
|
+
<button type="button" data-subcell-view="region">지역</button>
|
|
37
|
+
<button type="button" data-subcell-view="cell">선택 셀</button>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="subcell-actions">
|
|
40
|
+
<button class="subcell-toggle" type="button" role="switch" aria-checked="false" data-subcell-grid>격자선</button>
|
|
41
|
+
<button class="subcell-toggle" type="button" role="switch" aria-checked="false" data-subcell-outline>셀 테두리</button>
|
|
42
|
+
<button class="subcell-toggle" type="button" role="switch" aria-checked="false" data-subcell-background>배경 채움</button>
|
|
43
|
+
<button class="subcell-toggle" type="button" role="switch" aria-checked="false" data-subcell-samples>표본점</button>
|
|
44
|
+
<button type="button" data-subcell-next>다음 프레임</button>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="subcell-layout">
|
|
48
|
+
<div class="subcell-map-panel">
|
|
49
|
+
<div class="subcell-map" data-subcell-map aria-label="MapLibre 스칼라 필드 지도"></div>
|
|
50
|
+
<output class="subcell-status" data-subcell-status aria-live="polite">지도와 외부 타일을 불러오는 중입니다.</output>
|
|
51
|
+
</div>
|
|
52
|
+
<aside class="subcell-details">
|
|
53
|
+
<p class="subcell-kicker">SELECTED CELL</p>
|
|
54
|
+
<h3>셀 내부 분포</h3>
|
|
55
|
+
<p class="subcell-bounds" data-subcell-bounds></p>
|
|
56
|
+
<div class="subcell-stats" data-subcell-stats></div>
|
|
57
|
+
<div class="subcell-legend" aria-label="강도 색상 범례"></div>
|
|
58
|
+
<div class="subcell-legend-label"><span>0 낮음</span><span>50</span><span>100 높음</span></div>
|
|
59
|
+
<div class="subcell-missing-key"><span aria-hidden="true"></span>미관측 · 투명</div>
|
|
60
|
+
<hr />
|
|
61
|
+
<p class="subcell-small" data-subcell-clock></p>
|
|
62
|
+
<p class="subcell-small" data-subcell-picked>지도를 클릭하면 보간된 표시값을 확인할 수 있습니다.</p>
|
|
63
|
+
<p class="subcell-note">합성 데이터이며 재난 확률이나 실제 관측값이 아닙니다.</p>
|
|
64
|
+
</aside>
|
|
65
|
+
</div>
|
|
66
|
+
</section>`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export async function mountSubcellHeatmapApp(
|
|
70
|
+
host: HTMLElement,
|
|
71
|
+
createDemo: SubcellHeatmapFactory,
|
|
72
|
+
options: MountSubcellHeatmapOptions = {}
|
|
73
|
+
): Promise<MountedSubcellHeatmapApp> {
|
|
74
|
+
host.innerHTML = appMarkup();
|
|
75
|
+
host.dataset.subcellReady = 'loading';
|
|
76
|
+
const query = <T extends HTMLElement>(selector: string): T => {
|
|
77
|
+
const node = host.querySelector<T>(selector);
|
|
78
|
+
if (!node) throw new Error(`Missing example element: ${selector}`);
|
|
79
|
+
return node;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const root = query<HTMLElement>('.subcell-app');
|
|
83
|
+
|
|
84
|
+
const mapHost = query<HTMLElement>('[data-subcell-map]');
|
|
85
|
+
const status = query<HTMLOutputElement>('[data-subcell-status]');
|
|
86
|
+
const bounds = query<HTMLElement>('[data-subcell-bounds]');
|
|
87
|
+
const stats = query<HTMLElement>('[data-subcell-stats]');
|
|
88
|
+
const clock = query<HTMLElement>('[data-subcell-clock]');
|
|
89
|
+
const picked = query<HTMLElement>('[data-subcell-picked]');
|
|
90
|
+
const grid = query<HTMLButtonElement>('[data-subcell-grid]');
|
|
91
|
+
const outline = query<HTMLButtonElement>('[data-subcell-outline]');
|
|
92
|
+
const background = query<HTMLButtonElement>('[data-subcell-background]');
|
|
93
|
+
const samples = query<HTMLButtonElement>('[data-subcell-samples]');
|
|
94
|
+
const next = query<HTMLButtonElement>('[data-subcell-next]');
|
|
95
|
+
let step = 0;
|
|
96
|
+
let selectedId = SELECTED_CELL_ID;
|
|
97
|
+
let lastFrame: FieldFrame = makeFrame(0);
|
|
98
|
+
|
|
99
|
+
const updateDetails = (): void => {
|
|
100
|
+
const cell = lastFrame.cells.find((candidate) => candidate.id === selectedId)
|
|
101
|
+
?? lastFrame.cells[0];
|
|
102
|
+
const summary = frameStats(cell);
|
|
103
|
+
bounds.textContent = `${cell.bounds.west}–${cell.bounds.east}°E / ${cell.bounds.south}–${cell.bounds.north}°N`;
|
|
104
|
+
stats.innerHTML = `
|
|
105
|
+
<div><span>최솟값</span><b>${summary.min?.toFixed(1) ?? '—'}</b></div>
|
|
106
|
+
<div><span>표본 평균</span><b>${summary.sampleMean?.toFixed(1) ?? '—'}</b></div>
|
|
107
|
+
<div><span>최댓값</span><b>${summary.max?.toFixed(1) ?? '—'}</b></div>`;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
let demo: SubcellHeatmapController;
|
|
111
|
+
try {
|
|
112
|
+
demo = await createDemo(mapHost, {
|
|
113
|
+
showGrid: false,
|
|
114
|
+
showCellOutline: false,
|
|
115
|
+
showLowValueBackground: false,
|
|
116
|
+
signal: options.signal,
|
|
117
|
+
onFrame(frame) {
|
|
118
|
+
lastFrame = frame;
|
|
119
|
+
clock.textContent = `합성 프레임 · ${frame.time} · 전환 중간값도 동일한 고정 범례를 사용합니다.`;
|
|
120
|
+
updateDetails();
|
|
121
|
+
host.dataset.subcellFrame = frame.time;
|
|
122
|
+
},
|
|
123
|
+
onPick(selection) {
|
|
124
|
+
if (selection.cellId) selectedId = selection.cellId;
|
|
125
|
+
updateDetails();
|
|
126
|
+
picked.textContent = `경도 ${selection.longitude.toFixed(4)}, 위도 ${selection.latitude.toFixed(4)} · 보간 강도 ${selection.value?.toFixed(1) ?? '미관측'} · ${selection.cellId ?? '데이터 범위 밖'}`;
|
|
127
|
+
},
|
|
128
|
+
onError(error) {
|
|
129
|
+
if (root.parentElement !== host) return;
|
|
130
|
+
host.dataset.subcellReady = 'warning';
|
|
131
|
+
status.textContent = `지도 타일 또는 스타일 오류: ${error.message}. 네트워크와 외부 타일 접근을 확인하세요.`;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
} catch (error) {
|
|
135
|
+
if (root.parentElement === host) {
|
|
136
|
+
host.dataset.subcellReady = 'error';
|
|
137
|
+
}
|
|
138
|
+
status.textContent = `지도 초기화 실패: ${error instanceof Error ? error.message : String(error)}. 네트워크, 외부 타일 접근, WebGL 지원을 확인하세요.`;
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// A slower MapLibre load may finish after the playground has selected another
|
|
143
|
+
// example. Release that stale map without touching the newer host contents.
|
|
144
|
+
if (root.parentElement !== host) {
|
|
145
|
+
demo.destroy();
|
|
146
|
+
throw new Error('Subcell heatmap mount was superseded.');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
status.textContent = 'KChart MapLibre 어댑터 연결 완료 · 셀 내부 스칼라 분포';
|
|
150
|
+
host.dataset.subcellReady = 'true';
|
|
151
|
+
host.dataset.subcellGrid = grid.getAttribute('aria-checked') ?? 'false';
|
|
152
|
+
host.dataset.subcellOutline = outline.getAttribute('aria-checked') ?? 'false';
|
|
153
|
+
host.dataset.subcellBackground = background.getAttribute('aria-checked') ?? 'false';
|
|
154
|
+
updateDetails();
|
|
155
|
+
|
|
156
|
+
grid.addEventListener('click', () => {
|
|
157
|
+
const visible = grid.getAttribute('aria-checked') !== 'true';
|
|
158
|
+
grid.setAttribute('aria-checked', String(visible));
|
|
159
|
+
demo.setGridVisible(visible);
|
|
160
|
+
host.dataset.subcellGrid = String(visible);
|
|
161
|
+
status.textContent = visible
|
|
162
|
+
? '격자선을 표시했습니다. 내부 분포와 지점은 유지됩니다.'
|
|
163
|
+
: '격자선만 숨겼습니다. 내부 분포와 지점은 유지됩니다.';
|
|
164
|
+
});
|
|
165
|
+
samples.addEventListener('click', () => {
|
|
166
|
+
const visible = samples.getAttribute('aria-checked') !== 'true';
|
|
167
|
+
samples.setAttribute('aria-checked', String(visible));
|
|
168
|
+
demo.setSamplesVisible(visible);
|
|
169
|
+
host.dataset.subcellSamples = String(visible);
|
|
170
|
+
});
|
|
171
|
+
outline.addEventListener('click', () => {
|
|
172
|
+
const visible = outline.getAttribute('aria-checked') !== 'true';
|
|
173
|
+
outline.setAttribute('aria-checked', String(visible));
|
|
174
|
+
demo.setCellOutlineVisible(visible);
|
|
175
|
+
host.dataset.subcellOutline = String(visible);
|
|
176
|
+
status.textContent = visible
|
|
177
|
+
? '선택 셀 테두리를 표시했습니다.'
|
|
178
|
+
: '선택 셀 테두리를 숨겼습니다. 내부 분포는 유지됩니다.';
|
|
179
|
+
});
|
|
180
|
+
background.addEventListener('click', () => {
|
|
181
|
+
const visible = background.getAttribute('aria-checked') !== 'true';
|
|
182
|
+
background.setAttribute('aria-checked', String(visible));
|
|
183
|
+
demo.setLowValueBackgroundVisible(visible);
|
|
184
|
+
host.dataset.subcellBackground = String(visible);
|
|
185
|
+
status.textContent = visible
|
|
186
|
+
? '낮은 값의 배경 채움을 표시했습니다.'
|
|
187
|
+
: '낮은 값의 알파를 낮춰 사각형 배경을 숨겼습니다.';
|
|
188
|
+
});
|
|
189
|
+
next.addEventListener('click', () => {
|
|
190
|
+
step = (step + 1) % 3;
|
|
191
|
+
demo.setFrame(makeFrame(step));
|
|
192
|
+
});
|
|
193
|
+
host.querySelectorAll<HTMLButtonElement>('[data-subcell-view]').forEach((button) => {
|
|
194
|
+
button.addEventListener('click', () => {
|
|
195
|
+
demo.focus(button.dataset.subcellView as 'world' | 'region' | 'cell');
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
let destroyed = false;
|
|
200
|
+
return {
|
|
201
|
+
demo,
|
|
202
|
+
destroy() {
|
|
203
|
+
if (destroyed) return;
|
|
204
|
+
destroyed = true;
|
|
205
|
+
demo.destroy();
|
|
206
|
+
if (root.parentElement === host) {
|
|
207
|
+
host.dataset.subcellReady = 'destroyed';
|
|
208
|
+
root.remove();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
.subcell-app, .subcell-app * { box-sizing: border-box; }
|
|
2
|
+
.subcell-app button, .subcell-app input { font: inherit; }
|
|
3
|
+
.subcell-app {
|
|
4
|
+
width: min(1420px, 100%);
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
color: #e4eef1;
|
|
7
|
+
background: #07131c;
|
|
8
|
+
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
|
|
9
|
+
}
|
|
10
|
+
.subcell-header {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
gap: 24px;
|
|
15
|
+
padding-bottom: 18px;
|
|
16
|
+
border-bottom: 1px solid #29404e;
|
|
17
|
+
}
|
|
18
|
+
.subcell-header h2 { margin: 4px 0 5px; font-size: 26px; letter-spacing: 0; }
|
|
19
|
+
.subcell-header p { margin: 0; color: #9eb5be; line-height: 1.55; }
|
|
20
|
+
.subcell-eyebrow, .subcell-kicker {
|
|
21
|
+
color: #62d8cb !important;
|
|
22
|
+
font-size: 11px;
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
letter-spacing: 2px;
|
|
25
|
+
}
|
|
26
|
+
.subcell-tag {
|
|
27
|
+
flex: 0 0 auto;
|
|
28
|
+
padding: 7px 11px;
|
|
29
|
+
border: 1px solid #756c44;
|
|
30
|
+
border-radius: 6px;
|
|
31
|
+
color: #ddc97d;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
.subcell-toolbar {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 14px;
|
|
39
|
+
padding: 14px 0;
|
|
40
|
+
}
|
|
41
|
+
.subcell-segmented, .subcell-actions { display: flex; align-items: center; gap: 8px; }
|
|
42
|
+
.subcell-segmented { gap: 0; }
|
|
43
|
+
.subcell-segmented button:first-child { border-radius: 6px 0 0 6px; }
|
|
44
|
+
.subcell-segmented button:last-child { border-radius: 0 6px 6px 0; }
|
|
45
|
+
.subcell-segmented button:not(:first-child) { margin-left: -1px; }
|
|
46
|
+
.subcell-toggle {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: 7px;
|
|
50
|
+
min-height: 32px;
|
|
51
|
+
padding: 0 10px;
|
|
52
|
+
border: 1px solid #506576;
|
|
53
|
+
border-radius: 5px;
|
|
54
|
+
background: #172936;
|
|
55
|
+
color: #c3d0d8;
|
|
56
|
+
font: inherit;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
|
|
60
|
+
}
|
|
61
|
+
.subcell-toggle::before {
|
|
62
|
+
content: '';
|
|
63
|
+
width: 8px;
|
|
64
|
+
height: 8px;
|
|
65
|
+
border-radius: 50%;
|
|
66
|
+
background: #718692;
|
|
67
|
+
box-shadow: 0 0 0 2px #243b49;
|
|
68
|
+
}
|
|
69
|
+
.subcell-toggle[aria-checked='true'] {
|
|
70
|
+
border-color: #45d6c3;
|
|
71
|
+
background: #173d3b;
|
|
72
|
+
color: #f4fffd;
|
|
73
|
+
}
|
|
74
|
+
.subcell-toggle[aria-checked='true']::before {
|
|
75
|
+
background: #45d6c3;
|
|
76
|
+
box-shadow: 0 0 0 2px #265d59;
|
|
77
|
+
}
|
|
78
|
+
.subcell-toggle:focus-visible {
|
|
79
|
+
outline: 2px solid #83eadb;
|
|
80
|
+
outline-offset: 2px;
|
|
81
|
+
}
|
|
82
|
+
.subcell-toolbar button {
|
|
83
|
+
min-height: 34px;
|
|
84
|
+
padding: 7px 11px;
|
|
85
|
+
border: 1px solid #315666;
|
|
86
|
+
border-radius: 6px;
|
|
87
|
+
color: #e3f5f7;
|
|
88
|
+
background: #122d3c;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
.subcell-toolbar button:hover { background: #1d4657; }
|
|
92
|
+
.subcell-toolbar button:focus-visible, .subcell-toolbar input:focus-visible {
|
|
93
|
+
outline: 3px solid #5bd9ca;
|
|
94
|
+
outline-offset: 2px;
|
|
95
|
+
}
|
|
96
|
+
.subcell-layout {
|
|
97
|
+
display: grid;
|
|
98
|
+
grid-template-columns: minmax(0, 1fr) 275px;
|
|
99
|
+
min-height: 620px;
|
|
100
|
+
border: 1px solid #2b4957;
|
|
101
|
+
border-radius: 8px;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
}
|
|
104
|
+
.subcell-map-panel { position: relative; min-width: 0; min-height: 620px; }
|
|
105
|
+
.subcell-map { position: absolute; inset: 0; }
|
|
106
|
+
.subcell-status {
|
|
107
|
+
position: absolute;
|
|
108
|
+
z-index: 5;
|
|
109
|
+
left: 12px;
|
|
110
|
+
bottom: 12px;
|
|
111
|
+
max-width: calc(100% - 24px);
|
|
112
|
+
padding: 6px 9px;
|
|
113
|
+
border: 1px solid rgba(159, 205, 216, 0.24);
|
|
114
|
+
border-radius: 4px;
|
|
115
|
+
color: #d7e7eb;
|
|
116
|
+
background: rgba(7, 25, 35, 0.9);
|
|
117
|
+
font-size: 11px;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
.subcell-details {
|
|
121
|
+
padding: 20px;
|
|
122
|
+
border-left: 1px solid #294754;
|
|
123
|
+
background: #0d222e;
|
|
124
|
+
}
|
|
125
|
+
.subcell-details h3 { margin: 8px 0; font-size: 20px; }
|
|
126
|
+
.subcell-bounds, .subcell-small, .subcell-note { color: #9eb5be; font-size: 12px; line-height: 1.55; }
|
|
127
|
+
.subcell-note { margin-top: 22px; color: #d6c888; }
|
|
128
|
+
.subcell-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 22px 0; }
|
|
129
|
+
.subcell-stats span { display: block; min-height: 28px; color: #8faab5; font-size: 10px; }
|
|
130
|
+
.subcell-stats b { color: #f1b375; font-size: 21px; font-weight: 650; }
|
|
131
|
+
.subcell-legend {
|
|
132
|
+
height: 12px;
|
|
133
|
+
margin-top: 26px;
|
|
134
|
+
border-radius: 6px;
|
|
135
|
+
background: linear-gradient(90deg, #0e3144, #187983, #5fb59d, #f2d177, #ef773c, #b8233c);
|
|
136
|
+
}
|
|
137
|
+
.subcell-legend-label { display: flex; justify-content: space-between; margin-top: 7px; color: #9eb5be; font-size: 10px; }
|
|
138
|
+
.subcell-missing-key {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: 7px;
|
|
142
|
+
margin-top: 10px;
|
|
143
|
+
color: #9eb5be;
|
|
144
|
+
font-size: 10px;
|
|
145
|
+
}
|
|
146
|
+
.subcell-missing-key span {
|
|
147
|
+
width: 12px;
|
|
148
|
+
height: 12px;
|
|
149
|
+
border: 1px solid #718692;
|
|
150
|
+
background: repeating-linear-gradient(135deg, #f3f1e9 0 3px, #d7dde0 3px 6px);
|
|
151
|
+
}
|
|
152
|
+
.subcell-details hr { margin: 20px 0; border: 0; border-top: 1px solid #294754; }
|
|
153
|
+
.subcell-map .maplibregl-ctrl button { border-radius: 0; }
|
|
154
|
+
|
|
155
|
+
@media (max-width: 860px) {
|
|
156
|
+
.subcell-header { display: block; }
|
|
157
|
+
.subcell-tag { display: inline-block; margin-top: 10px; }
|
|
158
|
+
.subcell-toolbar { align-items: flex-start; flex-direction: column; }
|
|
159
|
+
.subcell-actions { flex-wrap: wrap; }
|
|
160
|
+
.subcell-layout { grid-template-columns: 1fr; }
|
|
161
|
+
.subcell-map-panel { min-height: 500px; }
|
|
162
|
+
.subcell-details { border-top: 1px solid #294754; border-left: 0; }
|
|
163
|
+
}
|
|
164
|
+
@media (max-width: 520px) {
|
|
165
|
+
.subcell-header h2 { font-size: 21px; }
|
|
166
|
+
.subcell-layout { min-height: 0; }
|
|
167
|
+
.subcell-map-panel { min-height: 430px; }
|
|
168
|
+
.subcell-actions { width: 100%; justify-content: space-between; }
|
|
169
|
+
}
|