From 332f35b55300b41a9995517038076c87e75309a5 Mon Sep 17 00:00:00 2001 From: Iu Date: Wed, 21 Oct 2026 20:00:30 +0300 Subject: [PATCH] =?UTF-8?q?feat(web):=20=D1=81=D0=B2=D0=BE=D1=80=D0=B0?= =?UTF-8?q?=D1=87=D0=B8=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=BB=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=20=C2=AB=D0=9A=D1=80=D0=B8=D0=B2=D0=B0=D1=8F=C2=BB?= =?UTF-8?q?=20=D0=B2=20=D0=B8=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=20=C2=AB=D0=A1=D0=B2=D0=B5=D1=82=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Заголовок «Кривая» стал кнопкой со стрелкой: график с гистограммой и точками сворачивается и разворачивается, кнопки выбора канала остаются видны всегда, чтобы канал можно было переключить и в свёрнутом виде. --- .../src/lib/components/PhotoEditPanel.svelte | 135 ++++++++++-------- 1 file changed, 76 insertions(+), 59 deletions(-) diff --git a/frontend/src/lib/components/PhotoEditPanel.svelte b/frontend/src/lib/components/PhotoEditPanel.svelte index df98d2c..095f3d9 100644 --- a/frontend/src/lib/components/PhotoEditPanel.svelte +++ b/frontend/src/lib/components/PhotoEditPanel.svelte @@ -30,6 +30,7 @@ let busy = $state(false); let error = $state(''); let collapsed = $state(false); + let curveCollapsed = $state(false); let channel = $state('rgb'); const saved = $derived(readEditParams(photo)); @@ -401,7 +402,19 @@
- Кривая +
{#each CURVE_CHANNELS as ch (ch)}
- - - {#if histogram} - {#each visibleChannels as ch (ch)} + {#if !curveCollapsed} +
+ + + {#if histogram} + {#each visibleChannels as ch (ch)} + + {/each} + {/if} + {#each [25, 50, 75] as step (step)} + + + {/each} - {/each} - {/if} - {#each [25, 50, 75] as step (step)} - - - {/each} - - {#each channelPoints(channel) as point, index (index)} - onPointDown(e, index)} - onkeydown={(e) => onPointKey(e, index)} - > - {/each} - + {#each channelPoints(channel) as point, index (index)} + onPointDown(e, index)} + onkeydown={(e) => onPointKey(e, index)} + > + {/each} + -
- Точечная кривая · линейная - -
+
+ Точечная кривая · линейная + +
+
+ {/if}
{#if busy}