@ray-js/lamp-circle-picker 1.0.13-beta-5 → 1.0.13-beta-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -625,7 +625,16 @@ export default Render({
625
625
  const yDistance = Math.abs(y - radius);
626
626
  const distance = Math.sqrt(xDistance * xDistance + yDistance * yDistance);
627
627
  const radian = Math.atan2(y - radius, x - radius);
628
- const angle = radian * (180 / Math.PI);
628
+ let angle = radian * (180 / Math.PI);
629
+
630
+ const mid = 90
631
+ if(angle > 45 && angle < 90) {
632
+ angle = 45;
633
+ }
634
+ if(angle < 135 && angle > 90) {
635
+ angle = 135;
636
+ }
637
+
629
638
  if (angle < 45 || angle > 135) {
630
639
  const thumbPositionY =
631
640
  radius +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-circle-picker",
3
- "version": "1.0.13-beta-5",
3
+ "version": "1.0.13-beta-6",
4
4
  "description": "照明缺角色环",
5
5
  "main": "lib/index",
6
6
  "files": [