Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions labellab-client/src/components/labeller/Figure.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, Fragment } from 'react'
import { Polyline, Polygon, CircleMarker } from 'react-leaflet'
import { Polyline, Polygon, CircleMarker, Tooltip } from 'react-leaflet'

class Figure extends Component {
constructor(props) {
Expand Down Expand Up @@ -128,14 +128,18 @@ class Figure extends Component {
fillColor={fillColor}
opacity={sketch ? '0.7' : '1.0'}
dashArray={dashArray}
interactive={id !== 'trace'} // always set interactive to true, to avoid bugs in leaflet-react
interactive={id !== 'trace'}
onClick={() => {
if (interactive) {
onSelect()
skipNextClick()
}
}}
/>
>
<Tooltip permanent direction="center">
{figure.label_name}
</Tooltip>
</PolyComp>
{guideLines}
{this.makeExtraElements()}
{!finished || editing ? vertices : null}
Expand Down
1 change: 1 addition & 0 deletions labellab-client/src/components/labeller/LabelingApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ class LabelingApp extends Component {
points: figure.points,
id: figure.id,
label_type: label.label_type,
label_name: label.label_name,
tracingOptions: figure.tracingOptions
})
// if (figure.id === selectedFigureId) {
Expand Down