[orx-shapes] Add selection stacks and selection parameters

This commit is contained in:
Edwin Jakobs
2023-10-27 07:58:21 +02:00
parent cd44428c54
commit 598761179d
7 changed files with 232 additions and 39 deletions

View File

@@ -52,6 +52,8 @@ data class ContourAdjusterEdge(val contourAdjuster: ContourAdjuster, val segment
contourAdjuster.contour = newEdge.contour
contourAdjuster.updateSelection(newEdge.adjustments)
}
fun toLinear() = wrap { toLinear() }
fun toCubic() = wrap { toCubic() }
fun splitAt(t: Double) = wrap { splitAt(t) }
fun moveBy(translation: Vector2, updateTangents: Boolean = true) = wrap { movedBy(translation, updateTangents) }