Reference · Radical intersection and display forms
RadicalGrouptype
The radicals that share a stroke count, as the grid of a picker draws them.
Import it
import type { RadicalGroup } from "@johnmorrisdotca/bushu";
Definition
type RadicalGroup = {
strokes: number;
radicals: string[];
};
Members
| Name | Type | Description |
|---|---|---|
strokes | number | |
radicals | string[] |
Examples
import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
import type { RadicalGroup } from "@johnmorrisdotca/bushu";
import { radicalGroups } from "@johnmorrisdotca/bushu";
const radicals = RADKFILE.radicals;
const value: RadicalGroup = radicalGroups(radicals)[0];
console.log(value);{ strokes: 1, radicals: [ '一', '|', '丶', 'ノ', '乙', '亅' ] }What it prints (run when this page was built)