@blocksuite/global
Advanced tools
Comparing version 0.0.0-canary-20241207001518 to 0.0.0-canary-20241208001658
# @blocksuite/global | ||
## 0.0.0-canary-20241207001518 | ||
## 0.0.0-canary-20241208001658 | ||
@@ -5,0 +5,0 @@ ### Patch Changes |
@@ -106,2 +106,7 @@ // control coords are not relative to start or end | ||
export function getBezierParameters(points) { | ||
// Fallback for degenerate Bezier curve (all points are at the same position) | ||
if (points.length === 1) { | ||
const point = points[0]; | ||
return [point, point, point, point]; | ||
} | ||
return [points[0], points[0].absOut, points[1].absIn, points[1]]; | ||
@@ -108,0 +113,0 @@ } |
{ | ||
"name": "@blocksuite/global", | ||
"version": "0.0.0-canary-20241207001518", | ||
"version": "0.0.0-canary-20241208001658", | ||
"types": "./index.d.ts", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -147,2 +147,8 @@ // control coords are not relative to start or end | ||
): BezierCurveParameters { | ||
// Fallback for degenerate Bezier curve (all points are at the same position) | ||
if (points.length === 1) { | ||
const point = points[0]; | ||
return [point, point, point, point]; | ||
} | ||
return [points[0], points[0].absOut, points[1].absIn, points[1]]; | ||
@@ -149,0 +155,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
727532
11058