Bezier-rs: Add a pivot point to the 'rotate' function (#792)

* Add function to rotate around a point

* Update svg

* Improve rotation line-to-center styling

* Add second angle of lines

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Hannah Li
2022-11-06 20:52:58 -08:00
committed by Keavon Chambers
co-authored by Keavon Chambers
parent 9eb2b9f6a3
commit a695584d36
4 changed files with 40 additions and 6 deletions
+1 -1
View File
@@ -409,7 +409,7 @@ export default defineComponent({
},
{
name: "Rotate",
callback: (bezier: WasmBezierInstance, options: Record<string, number>): string => bezier.rotate(options.angle * Math.PI),
callback: (bezier: WasmBezierInstance, options: Record<string, number>): string => bezier.rotate(options.angle * Math.PI, 100, 100),
exampleOptions: {
[BezierCurveType.Quadratic]: {
sliderOptions: [