Skip to content

Commit

Permalink
feat(geom-api): add CubicOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jul 11, 2019
1 parent 1284f37 commit 81ac728
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/geom-api/src/cubic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export interface CubicOpts {
/**
* Set to true (default false) to interpret original vertices as
* breakpoints
*/
breakPoints: boolean;
/**
* True, to enable uniform tangent scaling. If false (default), each
* tangent will be also scaled by the length of its related parent
* edge in the source shape.
*/
uniform: boolean;
/**
* Tangent scale factor. Actual length in uniform scaling mode, else
* should be a value between [0..1.33333]
*/
scale: number;
}
1 change: 1 addition & 0 deletions packages/geom-api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from "./accel";
export * from "./convex";
export * from "./cubic";
export * from "./isec";
export * from "./path";
export * from "./sample";
Expand Down

0 comments on commit 81ac728

Please sign in to comment.