Skip to the content

Bushu部首

Choose the parts you can see in a kanji, intersect their matches, and add a radical picker to your page.

Bushu is the Japanese word 部首 for a kanji radical. About the name

Contents

Reference · Native radical picker

BushuEventDetailtype

What a picker tells of itself, in bushu-change and bushu-pick events and to the callbacks.

Import it

import type { BushuEventDetail } from "@johnmorrisdotca/bushu/picker";

Definition

type BushuEventDetail = {
    chosen: string[];
    matches: number;
    kanji: string | null;
    parts: string[];
};

Members

NameTypeDescription
chosenstring[]

The parts chosen, as RADKFILE's keys, in the grid's order.

matchesnumber

How many kanji hold all of them.

kanjistring | null

The kanji whose card is open, or null.

partsstring[]

The parts of that kanji, as RADKFILE's keys, fewest strokes first.

Examples

import type { BushuEventDetail } from "@johnmorrisdotca/bushu/picker";

const value: BushuEventDetail = {chosen:["汁"],matches:2,kanji:null,parts:[]};
console.log(value);
{ chosen: [ '汁' ], matches: 2, kanji: null, parts: [] }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/bushu 1.1.0.