mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-05 18:58:12 +08:00
Bezier-rs: Add split for Subpath (#988)
* Add subpath split * Update comment and colors * Address comments * Improve visualization clarity * Code review --------- Co-authored-by: Rob Nadal <Robnadal44@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
Rob Nadal
Keavon Chambers
parent
511a8aa164
commit
a328e7d3ef
@@ -56,6 +56,12 @@ const subpathFeatures = {
|
||||
[175, 140],
|
||||
]),
|
||||
},
|
||||
Split: {
|
||||
callback: (subpath: WasmSubpathInstance, options: Record<string, number>, _: undefined, computeType: ComputeType): string => subpath.split(options.computeArgument, computeType),
|
||||
sliderOptions: [{ ...tSliderOptions, variable: "computeArgument" }],
|
||||
// TODO: Uncomment this after implementing the Euclidean version
|
||||
// chooseComputeType: true,
|
||||
},
|
||||
};
|
||||
|
||||
export type SubpathFeatureName = keyof typeof subpathFeatures;
|
||||
|
||||
Reference in New Issue
Block a user