feat(스프레드시트): 329-2 손잡이 select(범위, 시트?) — 범위 글 → 고름(병합 늘림 · 여럿) · 그 시트 탭으로 · 보이게 굴림 · 틀린 글 false
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XWh5wNNycMkbwMpACz1rte
This commit is contained in:
@@ -65,6 +65,11 @@ const out = {
|
||||
})(),
|
||||
cycleSingle: sel.cycle(s1, cell(3, 2), 1, 0),
|
||||
usedEnd: addr.toA1(sel.usedEnd(s1).r, sel.usedEnd(s1).c),
|
||||
// 손잡이 select(범위) — 범위 글 → 고름(병합 늘림 · 여럿 · 틀린 글 null)
|
||||
ranges: [["B20:O24"], ["D4"], ["B20:O24", "A1:A2"], ["가1"], []].map((t) => {
|
||||
const s = sel.selectRanges(s1, t);
|
||||
return s && [addr.toA1(s.활성.r, s.활성.c), ...s.범위.map(addr.rangeToA1)].join("|");
|
||||
}),
|
||||
// 입력 글 → 칸
|
||||
textToCell: ["12", "1,234.5", "50%", "-1e3", "true", "'=12", "=", "=A1+1", "", "1,23", "abc"].map(
|
||||
(t) => ed.textToCell(t, { 서식: 4 }),
|
||||
|
||||
@@ -46,6 +46,11 @@ def test_cycle_in_selection(r):
|
||||
assert r["cycleSingle"] is None
|
||||
|
||||
|
||||
def test_select_ranges(r):
|
||||
# 엑셀 보기 창(329-2) 호표 영역 강조 — 활성 = 왼위 · 병합 C4:F4 · A1:H1 걸치면 늘림 · 틀린 글 · 빈 목록 null
|
||||
assert r["ranges"] == ["B20|B20:O24", "C4|C4:F4", "B20|B20:O24|A1:H2", None, None]
|
||||
|
||||
|
||||
def test_text_to_cell(r):
|
||||
got = r["textToCell"]
|
||||
assert [c.get("값", c.get("식")) for c in got] == [
|
||||
|
||||
Reference in New Issue
Block a user