INNER CODE UNIT · Rust

set_view

rlaope/estudy · site/graph/crates/graph-wasm/src/lib.rs:168

pub fn set_view(scale: f32, tx: f32, ty: f32, width: f32, height: f32, node_scale: f32) {
    G.with(|g| {
        g.borrow_mut().view = Some(View {
            scale,
            tx,
            ty,
            width,
            height,
            node_scale,
        });
    });
}

/// 검색. 점수 내림차순 노드 id. 빈 질의 → 빈 배열.
///
/// - 제목 부분 문자열(대소문자 무시, NFC)
/// - 초성 질의(`ㅈㄱㅎ`): 초성 문자열(공백 제거)에 대한 부분 일치
/// - 음절 질의를 초성으로 바꿔 초성열과 대조 (띄어쓰기 차이 흡수)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…