@constela/core 0.21.3 → 0.21.4

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3082,10 +3082,10 @@ function getArcPath(cx, cy, radius, startAngle, endAngle) {
3082
3082
  if (radius <= 0) {
3083
3083
  return void 0;
3084
3084
  }
3085
- const x1 = cx + radius * Math.cos(startAngle);
3086
- const y1 = cy + radius * Math.sin(startAngle);
3087
- const x2 = cx + radius * Math.cos(endAngle);
3088
- const y2 = cy + radius * Math.sin(endAngle);
3085
+ const x1 = cx + radius * Math.cos(startAngle - Math.PI / 2);
3086
+ const y1 = cy + radius * Math.sin(startAngle - Math.PI / 2);
3087
+ const x2 = cx + radius * Math.cos(endAngle - Math.PI / 2);
3088
+ const y2 = cy + radius * Math.sin(endAngle - Math.PI / 2);
3089
3089
  const angleDiff = endAngle - startAngle;
3090
3090
  const largeArcFlag = Math.abs(angleDiff) > Math.PI ? 1 : 0;
3091
3091
  return `M${cx},${cy} L${x1},${y1} A${radius},${radius} 0 ${largeArcFlag},1 ${x2},${y2} Z`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/core",
3
- "version": "0.21.3",
3
+ "version": "0.21.4",
4
4
  "description": "Core types, schema, and validator for Constela UI framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",