import React from 'react'; /** * This renders the name of a keypoint and its current visibility setting. */ export class KeypointInfo extends React.Component { constructor(props) { super(props); this.onVisibilityChange = this.onVisibilityChange.bind(this); } onVisibilityChange(visibility){ this.props.visibilityChanged(this.props.id, visibility); } render(){ let radio_name = this.props.name + " vis_anno_" + this.props.annotation_id; return ( ○ {this.props.name} this.onVisibilityChange(0)} /> this.onVisibilityChange(1)} /> this.onVisibilityChange(2)} /> ); } }