 
   render: ->
     d = @props.target
+    {clipPath} = @context
 
     if @props.hover
       extraWidth = 10

    <path stroke={d.color}
          style={style}
          fill={if d.lineMode is 'area' then d.color}
          d={d.lineFn(d.lineValues)}/>


ScatterComponent = React.createClass

Q = require 'q'
React = require('react')
Components = require('./components')

# jump through some hoops to add clip-path since SVGDOMPropertyConfig is useless
MUST_USE_ATTRIBUTE = require('react/lib/DOMProperty').MUST_USE_ATTRIBUTE
require('react/lib/ReactInjection').DOMProperty.injectDOMPropertyConfig
  Properties: clipPath: MUST_USE_ATTRIBUTE
  DOMAttributeNames: clipPath: 'clip-path'


clearExtent = (v) -> _.extend {}, v, {extent: null}
setBrushing = (v) -> _.extend {}, v, {brushing: true}
