Skip to content

Commit ea67f91

Browse files
[LEMS-3971/vector-pr1] Resolve regressions lost in rebase
1 parent 269dbf4 commit ea67f91

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ type LogarithmGraphOptions = {
9292
startCoords?: {coords: readonly [Coord, Coord]; asymptote: number};
9393
};
9494

95+
type VectorGraphOptions = {
96+
type: "vector";
97+
startCoords?: CollinearTuple;
98+
};
99+
95100
type NoneGraphOptions = Record<string, never>;
96101

97102
type GraphOptions =
@@ -109,7 +114,8 @@ type GraphOptions =
109114
| SegmentGraphOptions
110115
| SinusoidGraphOptions
111116
| TangentGraphOptions
112-
| LogarithmGraphOptions;
117+
| LogarithmGraphOptions
118+
| VectorGraphOptions;
113119

114120
type AngleUserInput = {
115121
coords?: readonly [Coord, Coord, Coord];
@@ -175,6 +181,10 @@ type TangentUserInput = {
175181
coords?: readonly Coord[] | null;
176182
};
177183

184+
type VectorUserInput = {
185+
coords?: CollinearTuple | null;
186+
};
187+
178188
type UserInput =
179189
| AbsoluteValueUserInput
180190
| AngleUserInput
@@ -189,7 +199,8 @@ type UserInput =
189199
| SegmentUserInput
190200
| SinusoidUserInput
191201
| TangentUserInput
192-
| LogarithmUserInput;
202+
| LogarithmUserInput
203+
| VectorUserInput;
193204

194205
/**
195206
* JSON describing an interactive graph widget. Intended for consumption by AI tools.

0 commit comments

Comments
 (0)