mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
* abstract Space component to switch out Map * basic viewing possible * restructure components dir * all jsx --> js * App.jsx --> App.js * comment out 3d for now
28 lines
436 B
JavaScript
28 lines
436 B
JavaScript
import React from "react";
|
|
|
|
const DatetimeStar = ({
|
|
x,
|
|
y,
|
|
r,
|
|
transform,
|
|
onSelect,
|
|
styleProps,
|
|
extraRender,
|
|
}) => {
|
|
const s = (r * 2) / 3;
|
|
return (
|
|
<polygon
|
|
onClick={onSelect}
|
|
className="event"
|
|
x={x}
|
|
y={y - r}
|
|
style={styleProps}
|
|
points={`${x},${y + s} ${x - s},${y - s} ${x + s},${y} ${x - s},${y} ${
|
|
x + s
|
|
},${y - s}`}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default DatetimeStar;
|