MiniMapNodeProps
export type MiniMapNodeProps = {
id: string;
x: number;
y: number;
width: number;
height: number;
borderRadius: number;
className: string;
color: string;
shapeRendering: string;
strokeColor: string;
strokeWidth: number;
style?: CSSProperties;
selected: boolean;
onClick?: (event: MouseEvent, id: string) => void;
};
フィールド
名前 | 型 |
---|---|
# id | 文字列 |
# x | 数値 |
# y | 数値 |
# width | 数値 |
# height | 数値 |
# borderRadius | 数値 |
# className | 文字列 |
# color | 文字列 |
# shapeRendering | 文字列 |
# strokeColor | 文字列 |
# strokeWidth | 数値 |
# style? | React.CSSProperties |
# selected? | ブール値 |
# onClick? | (イベント: MouseEvent,id: 文字列) => void |