mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-08 07:58:11 +08:00
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:
committed by
Keavon Chambers
co-authored by
Keavon Chambers
parent
9eb2b9f6a3
commit
a695584d36
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user