render()

in bindings/jupyter-modules/jupyter-ma-causal/src/components/slidebar-svg/index.js [29:48]


  render() {
    const {width, height, style, ...rest} = this.props;
    return (
      <svg
        ref={input => (this.svg = input)}
        width={width}
        height={height}
        style={style}
      >
        <Slidebar
          {...rest}
          getEventMouse={event => {
            const {clientX, clientY} = event;
            const {left, top} = this.svg.getBoundingClientRect();
            return [clientX - left, clientY - top];
          }}
        />
      </svg>
    );
  }