import React from "react"; import { ConfigData } from "../../config"; import { Blip } from "../../model"; type VisualBlipProps = { className: string; fill: string; "data-background-color": string; "data-text-color": string; "data-tip": string; key: number; }; export const ChangedBlip: React.FC< { blip: Blip; config: ConfigData } & VisualBlipProps > = ({ blip, config, ...props }) => { const centeredX = blip.coordinates.x - config.chartConfig.blipSize / 2, centeredY = blip.coordinates.y - config.chartConfig.blipSize / 2; return ( ); }; export const NewBlip: React.FC< { blip: Blip; config: ConfigData } & VisualBlipProps > = ({ blip, config, ...props }) => { const centeredX = blip.coordinates.x - config.chartConfig.blipSize / 2, centeredY = blip.coordinates.y - config.chartConfig.blipSize / 2; /* The below is a predefined path of a triangle with rounded corners. I didn't find any more human friendly way of doing this as all examples I found have tons of lines of code e.g. https://observablehq.com/@perlmonger42/interactive-rounded-corners-on-svg-polygons-using-d3-js */ return ( ); }; export const DefaultBlip: React.FC< { blip: Blip; config: ConfigData } & VisualBlipProps > = ({ blip, config, ...props }) => { return ( ); };