daybrush / ruler

A Ruler component that can draw grids and scroll infinitely.
https://daybrush.com/ruler/
MIT License
334 stars 39 forks source link

React Ruler transparent background not working #43

Closed AhsanSarwar45 closed 1 year ago

AhsanSarwar45 commented 1 year ago

Environments

Description

I was previously using react-ruler 0.9.1 and was setting the ruler's background as transparent like so:

 <Ruler
      type="horizontal"
      unit={1}
      zoom={wholeNoteDivisions * columnWidth}
      ref={scaleGridMinor}
      backgroundColor={"rgba(0,0,0,0)"}
      segment={wholeNoteDivisions}
      mainLineSize={0}
      shortLineSize={gridHeight}
      longLineSize={gridHeight}
      height={gridHeight}
      lineColor="rgba(255,255,255,0.1)"
      textColor="rgba(0,0,0,0)"
  />

This worked well, but today I updated to react-ruler 0.17.1 and this not longer works, instead showing a black background. Has there any changes since then that makes this not possible, or am I doing something wrong in the new version?

daybrush commented 1 year ago

@AhsanSarwar45

react-ruler 0.18.0 is released. Try it again.

Thank you

AhsanSarwar45 commented 1 year ago

Yup its fixed now. Thank you.