AI-native design editor. Open-source Figma alternative.
lint: - Add parentheses in bezier-math.ts ternary conditions - Add parentheses in editor.ts align calculation expression
Ilya Nikitin98c682641b21
diff --git a/packages/core/src/bezier-math.ts b/packages/core/src/bezier-math.tsindex 6cef07ef3..ff288e37a 100644--- a/packages/core/src/bezier-math.ts+++ b/packages/core/src/bezier-math.ts@@ -522,12 +522,12 @@ function solveMergedTangents(const inner = { x: b1 * toRA.x + b2 * toRB.x, y: b1 * toRA.y + b2 * toRB.y }const c =Math.abs(inner.x) > Math.abs(inner.y)- ? inner.x !== 0+ ? (inner.x !== 0? rhs.x / inner.x- : 1- : inner.y !== 0+ : 1)+ : (inner.y !== 0? rhs.y / inner.y- : 1+ : 1)return {tangentStart: { x: c * toRA.x, y: c * toRA.y },tangentEnd: { x: c * toRB.x, y: c * toRB.y }diff --git a/src/stores/editor.ts b/src/stores/editor.tsindex 3ff1c9722..487777d79 100644--- a/src/stores/editor.ts+++ b/src/stores/editor.ts@@ -790,7 +790,7 @@ export function createEditorStore(initialGraph?: SceneGraph) {if (v > hi) hi = v}- const target = align === 'min' ? lo : align === 'max' ? hi : (lo + hi) / 2+ const target = align === 'min' ? lo : (align === 'max' ? hi : (lo + hi) / 2)for (const i of indices) {es.vertices[i] = { ...es.vertices[i], [prop]: target }}