kdeloach / react-lineto

Draw a line between two elements in React
MIT License
234 stars 63 forks source link

LineTo only drawing a horizontal line #51

Open dhebert-dev opened 3 years ago

dhebert-dev commented 3 years ago

When I place LineTo into my React app and set the to and from it will only render a horizontal line rather than rendering it from a specified location to a specified location. In addition, I am unable to change the color of the line by saying borderColor="red" inside the LineTo tag. Code below

`div className="a">

{x.date}

          </div>
          <LineTo
            delay={0}
            from="a"
            to="b"
            fromAnchor="bottom center"
            toAnchor="center"
            borderColor="red"
            orientation="v"
          />
          <div className="b">
            <p className="time">
              <span id="time" style={{ marginRight: "0.75rem" }}>
                {x.time}
              </span>
            </p>
          </div>`