From 0578c127d57d7f5197cd750e61a005197f4c249c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EA=B2=BD?= Date: Fri, 20 Nov 2026 11:44:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=95=B4=EB=8F=8B=EC=9D=B4=C2=B7?= =?UTF-8?q?=EC=B2=AB=EB=88=88=20=EC=A7=80=EB=8F=84=20=EB=8B=A4=EB=93=AC?= =?UTF-8?q?=EA=B8=B0=20=E2=80=94=20=EA=B7=B8=EB=A6=BC=20=EA=B7=80=ED=89=81?= =?UTF-8?q?=EC=9D=B4=EC=9D=98=20=EB=8B=A8=ED=92=8D=EC=9E=8E=20=EC=9E=A5?= =?UTF-8?q?=EC=8B=9D=EC=9D=B4=20=EC=9E=98=EB=A0=A4=20=EB=B3=B4=EC=9D=B4?= =?UTF-8?q?=EB=8D=98=20=EA=B2=83(=EC=98=A4=EB=A5=B8=EC=AA=BD=EC=9D=80=20?= =?UTF-8?q?=EC=9C=84=C2=B7=EC=95=84=EB=9E=98=20=EA=B7=80=ED=89=81=EC=9D=B4?= =?UTF-8?q?=EB=A7=8C=20=EC=9E=98=EB=9D=BC=20=EB=8F=85=EB=8F=84=EB=8A=94=20?= =?UTF-8?q?=EB=82=A8=EA=B9=80),=20=ED=95=B4=EB=8F=8B=EC=9D=B4=20=EC=A7=80?= =?UTF-8?q?=EB=8F=84=20=EC=83=89=EC=9D=84=20=EC=82=B4=EA=B5=AC=EB=B9=9B=20?= =?UTF-8?q?=EB=B0=94=ED=83=95=C2=B7=EC=A3=BC=ED=99=A9=EB=B9=9B=20=EB=95=85?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C,=20=EC=B2=98=EC=9D=8C=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=ED=95=9C=20=EB=8B=A8=EA=B3=84=20=EB=8D=94?= =?UTF-8?q?=20=EC=B6=95=EC=86=8C(=EC=9A=B8=EB=A6=89=EB=8F=84=C2=B7?= =?UTF-8?q?=EB=8F=85=EB=8F=84=EA=B9=8C=EC=A7=80=20=EC=A0=84=EC=B2=B4=20?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/FirstSnowPage.tsx | 4 +++- frontend/src/b/SunrisePage.tsx | 8 +++++--- frontend/src/b/firstSnow.ts | 4 ++-- frontend/src/b/mapView.ts | 17 +++++++++-------- frontend/src/b/shareCards.tsx | 10 +++++----- frontend/src/b/sunrise.ts | 6 ++++-- frontend/src/b/sunriseMap.tsx | 6 +++--- 7 files changed, 31 insertions(+), 24 deletions(-) diff --git a/frontend/src/b/FirstSnowPage.tsx b/frontend/src/b/FirstSnowPage.tsx index c6e4ecc..d721f12 100644 --- a/frontend/src/b/FirstSnowPage.tsx +++ b/frontend/src/b/FirstSnowPage.tsx @@ -14,6 +14,8 @@ const DOT_R = 4 // 눈 예보도 없고 대표 지점도 아닌 곳의 이름이 나오기 시작하는 배율(처음 화면 대비): 처음엔 차분하게 const LABEL_FROM = 2.2 const TAP_R = 24 +// 처음 화면에서 − 를 한 번 더 누를 수 있다: 울릉도·독도까지 전체가 보인다 +const MIN_ZOOM = 1 / 1.6 const SHARE_ICON = 'relative grid size-9 shrink-0 cursor-pointer place-items-center rounded-full [&_svg]:size-[19px] [&_svg]:fill-none [&_svg]:stroke-(--ink2) [&_svg]:stroke-[1.9]' const SHARE_BTN = `${SHARE_ICON} bg-white/80` const GROUPS: [SnowStage, string][] = [ @@ -72,7 +74,7 @@ export function FirstSnowPage() { } setSel((cur) => (best && best !== cur ? best : null)) }, []) - const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt) + const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt, MIN_ZOOM) const pts = useMemo( () => spread(spots.map((m) => ({ m, x: view.tx + m.x * box.W * view.s, y: view.ty + m.y * box.W * view.s, r: m.stage === 'soon' ? ICON_R : DOT_R }))), diff --git a/frontend/src/b/SunrisePage.tsx b/frontend/src/b/SunrisePage.tsx index 04f16dc..03ab84b 100644 --- a/frontend/src/b/SunrisePage.tsx +++ b/frontend/src/b/SunrisePage.tsx @@ -5,7 +5,7 @@ import { ICON_R, LABEL, MAP_SRC, PROVINCE, PROVINCES, labelBoxes, md, placeLabel import { useMapView } from './mapView' import { useSheet } from './sheetContext' import { SunriseMapShare, SunriseSpotShare } from './shareCards' -import { clock, COAST, direction, dokdoRise, SUN_DOT, SUN_LABEL_INK, SUN_MAP_IMG, SUN_SHADOW, sunriseHeadline, useSunrise, type Coast, type SunSpot } from './sunrise' +import { clock, COAST, direction, dokdoRise, SUN_DOT, SUN_LABEL_INK, SUN_MAP_IMG, SUN_PAPER, SUN_SHADOW, sunriseHeadline, useSunrise, type Coast, type SunSpot } from './sunrise' import { SendIcon } from './svg' import { Chips, Ic, TAP44 } from './ui' import { track } from '../lib/analytics' @@ -16,6 +16,8 @@ const DOT_R = 4 // 대표 명소가 아닌 곳의 이름이 나오기 시작하는 배율(처음 화면 대비): 처음엔 대표 명소 이름만 보여 차분하게 const LABEL_FROM = 2.2 const TAP_R = 24 +// 처음 화면에서 − 를 한 번 더 누를 수 있다: 울릉도·독도까지 전체가 보인다 +const MIN_ZOOM = 1 / 1.6 const SHARE_ICON = 'relative grid size-9 shrink-0 cursor-pointer place-items-center rounded-full [&_svg]:size-[19px] [&_svg]:fill-none [&_svg]:stroke-(--ink2) [&_svg]:stroke-[1.9]' const SHARE_BTN = `${SHARE_ICON} bg-white/80` const FILTERS: [Filter, string][] = [['all', '전체'], ...(Object.entries(COAST) as [Coast, string][])] @@ -66,7 +68,7 @@ export function SunrisePage() { } setSel((cur) => (best && best !== cur ? best : null)) }, []) - const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt) + const { box, view, fit, zoomAt, focus } = useMapView(vpRef, spots, params.get('spot'), pickAt, MIN_ZOOM) const pts = useMemo( () => spread(shown.map((m) => ({ m, x: view.tx + m.x * box.W * view.s, y: view.ty + m.y * box.W * view.s, r: m.top ? ICON_R : DOT_R }))), @@ -135,7 +137,7 @@ export function SunrisePage() { {days.length > 1 && [d.key, `${d.label} ${md(d.date)}`] as const)} value={day.key} onChange={pickDay} />} -
+
해돋이 지도 {provs.map((v) => (