File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
packages/perseus/src/widget-ai-utils/interactive-graph Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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+
95100type NoneGraphOptions = Record < string , never > ;
96101
97102type GraphOptions =
@@ -109,7 +114,8 @@ type GraphOptions =
109114 | SegmentGraphOptions
110115 | SinusoidGraphOptions
111116 | TangentGraphOptions
112- | LogarithmGraphOptions ;
117+ | LogarithmGraphOptions
118+ | VectorGraphOptions ;
113119
114120type 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+
178188type 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.
You can’t perform that action at this time.
0 commit comments