+
+ {tooltip.object ? (
+ {tooltip.object.type}
+ ) : (
+ <>Agent>
+ )}
+
+ {tooltip.object && tooltip.object.position && (
+
+ Position: ({Math.round(tooltip.object.position[0])},{' '}
+ {Math.round(tooltip.object.position[1])})
+
+ )}
+ {tooltip.agent && tooltip.agent.position && (
+
+ Position: ({Math.round(tooltip.agent.position[0])},{' '}
+ {Math.round(tooltip.agent.position[1])})
+
+ )}
+