You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add arrow start offset option for improved arrow positioning
- Introduced a new `arrowStartOffset` property to control the starting position of arrows relative to the square's center.
- Updated the ArrowOptions story to include a range input for adjusting the start offset.
- Modified arrow rendering logic to account for the new start offset, enhancing visual accuracy.
* chore: add back old comments and update variable names
* refactor: prettier fomatting
activeArrowWidthMultiplier: 0.9,// the multiplier for the arrow width when it is being drawn
74
74
opacity: 0.65,// opacity of arrow when not being drawn
75
75
activeOpacity: 0.5,// opacity of arrow when it is being drawn
76
+
arrowStartOffset: 0,// how far from the center of the start square the arrow begins, as a fraction of square width (0 = center, 0.5 = edge). Values between 0.3-0.4 give a chess.com-like look where the arrow starts near the base of the piece. Values above 0.5 will start outside the square.
0 commit comments