-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from FMS-Cat/smaller-bezier-nodes
BREAKING: smaller bezier nodes
- Loading branch information
Showing
23 changed files
with
202 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/automaton-with-gui/src/compat/v3types/V3SerializedBezierNode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { V3SerializedBezierControlPoint } from './V3SerializedBezierControlPoint'; | ||
|
||
/** | ||
* Serialized variant of {@link BezierNode}. | ||
* Some values are optional. | ||
*/ | ||
export interface V3SerializedBezierNode { | ||
/** | ||
* Time of the node. | ||
* `0.0` by default. | ||
*/ | ||
time?: number; | ||
|
||
/** | ||
* Value of the node. | ||
* `0.0` by default. | ||
*/ | ||
value?: number; | ||
|
||
/** | ||
* Bezier control point of inlet. | ||
* `{ time: 0.0, value: 0.0 }` by default. | ||
*/ | ||
in?: V3SerializedBezierControlPoint; | ||
|
||
/** | ||
* Bezier control point of outlet. | ||
* `{ time: 0.0, value: 0.0 }` by default. | ||
*/ | ||
out?: V3SerializedBezierControlPoint; | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/automaton-with-gui/src/compat/v3types/V3SerializedCurve.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { SerializedFxSection } from '@fms-cat/automaton'; | ||
import type { V3SerializedBezierNode } from './V3SerializedBezierNode'; | ||
|
||
/** | ||
* Interface of a serialized curve. | ||
*/ | ||
export interface V3SerializedCurve { | ||
/** | ||
* Bezier nodes of the curve. | ||
*/ | ||
nodes: V3SerializedBezierNode[]; | ||
|
||
/** | ||
* Fx sections of the curve. | ||
*/ | ||
fxs?: SerializedFxSection[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.