@khanacademy/perseus 23.6.0 → 24.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
- import type { LockedFigureFillType, LockedFigureColor, PerseusRenderer } from "../../perseus-types";
1
+ import type { LockedFigureFillType, LockedFigureColor, PerseusRenderer, CollinearTuple } from "../../perseus-types";
2
+ import type { Coord } from "@khanacademy/perseus";
2
3
  import type { vec } from "mafs";
3
4
  export declare function interactiveGraphQuestionBuilder(): InteractiveGraphQuestionBuilder;
4
5
  declare class InteractiveGraphQuestionBuilder {
@@ -19,8 +20,14 @@ declare class InteractiveGraphQuestionBuilder {
19
20
  withYRange(min: number, max: number): InteractiveGraphQuestionBuilder;
20
21
  withSnapStep(x: number, y: number): InteractiveGraphQuestionBuilder;
21
22
  withTickStep(x: number, y: number): InteractiveGraphQuestionBuilder;
22
- withSegments(numSegments: number): InteractiveGraphQuestionBuilder;
23
- withCircle(): InteractiveGraphQuestionBuilder;
23
+ withSegments(startCoords: CollinearTuple[]): InteractiveGraphQuestionBuilder;
24
+ withNumSegments(numSegments: number): InteractiveGraphQuestionBuilder;
25
+ withLinear(startCoords?: CollinearTuple): InteractiveGraphQuestionBuilder;
26
+ withLinearSystem(startCoords?: CollinearTuple[]): InteractiveGraphQuestionBuilder;
27
+ withRay(startCoords?: CollinearTuple): InteractiveGraphQuestionBuilder;
28
+ withCircle(startCoords?: Coord): InteractiveGraphQuestionBuilder;
29
+ withQuadratic(startCoords?: [Coord, Coord, Coord]): InteractiveGraphQuestionBuilder;
30
+ withSinusoid(startCoords?: [Coord, Coord]): InteractiveGraphQuestionBuilder;
24
31
  withPolygon(snapTo: "grid" | "angles" | "sides"): InteractiveGraphQuestionBuilder;
25
32
  addLockedPointAt(x: number, y: number): InteractiveGraphQuestionBuilder;
26
33
  addLockedLine(point1: vec.Vector2, point2: vec.Vector2): InteractiveGraphQuestionBuilder;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core Perseus API (includes renderers and widgets)",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "23.6.0",
6
+ "version": "24.0.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },