@urso/core 0.7.56 → 0.7.57
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/build/js/index.js +1 -1
- package/package.json +1 -1
- package/src/js/lib/helper.js +3 -2
package/package.json
CHANGED
package/src/js/lib/helper.js
CHANGED
|
@@ -522,6 +522,7 @@ class LibHelper {
|
|
|
522
522
|
|
|
523
523
|
if (a !== 0 && b !== 0) {
|
|
524
524
|
const cornerRcos = (a * a + b * b - c * c) / (2 * a * b);
|
|
525
|
+
Urso.math.intMakeBetween(cornerRcos, -1, 1);
|
|
525
526
|
angle = Math.acos(cornerRcos);
|
|
526
527
|
}
|
|
527
528
|
|
|
@@ -606,7 +607,7 @@ class LibHelper {
|
|
|
606
607
|
* @returns { Object }
|
|
607
608
|
*/
|
|
608
609
|
getRGB(color) {
|
|
609
|
-
return
|
|
610
|
+
return {
|
|
610
611
|
alpha: 16777215 < color ? color >>> 24 : 255,
|
|
611
612
|
red: color >> 16 & 255,
|
|
612
613
|
green: color >> 8 & 255,
|
|
@@ -634,7 +635,7 @@ class LibHelper {
|
|
|
634
635
|
* @returns { Number }
|
|
635
636
|
*/
|
|
636
637
|
interpolateColor32(startColor, targetColor, step) {
|
|
637
|
-
if(startColor === targetColor)
|
|
638
|
+
if (startColor === targetColor)
|
|
638
639
|
return startColor;
|
|
639
640
|
|
|
640
641
|
const startColorRGB = this.getRGB(startColor);
|