     x = (e.pageX - @state.sizeRect?.left) / scale.horizontal || 0
     y = (e.pageY - @state.sizeRect?.top) / scale.vertical || 0
     {x, y}
+  
+  toggleWarning: ->
+    @setState showWarning: not @state.showWarning
 
   render: ->
     taskDescription = @props.workflow.tasks[@props.annotation?.task]

            <PersistInsideSubject key={anyTaskName} {...hookProps} />}
        </svg>
        {@props.children}

        {if AfterSubject?
          <AfterSubject {...hookProps} />}

    naturalHeight: 0
    showWarning: false
    sizeRect: null
    alreadySeen: false
    showWarning: false

  componentDidMount: ->
    addEventListener 'resize', @updateSize
