@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.
- package/lib/component/rjs/index.rjs +10 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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 +
|