Home / Class/ DrawBox Class — react Architecture

DrawBox Class — react Architecture

Architecture documentation for the DrawBox class in hover-box.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b62f15b5_98c7_79a6_926d_62a8d7a558a6["DrawBox"]
  f3324925_dc09_1a9b_424a_455190eb7f99["hover-box.js"]
  b62f15b5_98c7_79a6_926d_62a8d7a558a6 -->|defined in| f3324925_dc09_1a9b_424a_455190eb7f99
  72537beb_1cf5_b1e5_b064_82b02c2169af["render()"]
  b62f15b5_98c7_79a6_926d_62a8d7a558a6 -->|method| 72537beb_1cf5_b1e5_b064_82b02c2169af

Relationship Graph

Source Code

fixtures/dom/src/components/fixtures/pointer-events/hover-box.js lines 3–32

class DrawBox extends React.Component {
  render() {
    const boxStyle = {
      border: '1px solid #d9d9d9',
      margin: '10px 0 20px',
      padding: '20px 20px',
      touchAction: 'none',
    };

    const obstacleStyle = {
      border: '1px solid #d9d9d9',
      width: '25%',
      height: '200px',
      margin: '12.5%',
      display: 'inline-block',
    };

    return (
      <div
        style={boxStyle}
        onPointerOver={this.props.onOver}
        onPointerOut={this.props.onOut}
        onPointerEnter={this.props.onEnter}
        onPointerLeave={this.props.onLeave}>
        <div style={obstacleStyle} />
        <div style={obstacleStyle} />
      </div>
    );
  }
}

Domain

Frequently Asked Questions

What is the DrawBox class?
DrawBox is a class in the react codebase, defined in fixtures/dom/src/components/fixtures/pointer-events/hover-box.js.
Where is DrawBox defined?
DrawBox is defined in fixtures/dom/src/components/fixtures/pointer-events/hover-box.js at line 3.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free