@khanacademy/perseus-editor 14.6.4 → 14.6.5

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.
@@ -486,7 +486,9 @@ declare const InteractiveGraph: {
486
486
  areAngleGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle): boolean;
487
487
  arePointGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint): boolean;
488
488
  arePolygonGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
489
- areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
489
+ areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean; /**
490
+ * The background image to display in the graph area and its properties.
491
+ */
490
492
  _lineStroke: () => {
491
493
  "stroke-width"?: number | undefined;
492
494
  };
@@ -505,6 +507,15 @@ declare const InteractiveGraph: {
505
507
  addCircleControls: () => void;
506
508
  removeCircleControls: () => void;
507
509
  addLinearSystemControls: () => void;
510
+ /**
511
+ * The current correct answer for the graph. Updated by this component
512
+ * when the graph is changed.
513
+ *
514
+ * Note that the "Correct answer:" textbox is not an interactive
515
+ * element. Instead, it is a representation of the correct answer based
516
+ * on the state of the interactive graph previewed at the bottom of the
517
+ * editor page.
518
+ */
508
519
  removeLinearSystemControls: () => void;
509
520
  isCoordInTrash: (arg1: import("@khanacademy/perseus").Coord) => boolean;
510
521
  createPointForPointsType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
@@ -2299,7 +2310,9 @@ declare const InteractiveGraph: {
2299
2310
  areAngleGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle): boolean;
2300
2311
  arePointGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint): boolean;
2301
2312
  arePolygonGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
2302
- areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
2313
+ areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean; /**
2314
+ * The background image to display in the graph area and its properties.
2315
+ */
2303
2316
  _lineStroke: () => {
2304
2317
  "stroke-width"?: number | undefined;
2305
2318
  };
@@ -2318,6 +2331,15 @@ declare const InteractiveGraph: {
2318
2331
  addCircleControls: () => void;
2319
2332
  removeCircleControls: () => void;
2320
2333
  addLinearSystemControls: () => void;
2334
+ /**
2335
+ * The current correct answer for the graph. Updated by this component
2336
+ * when the graph is changed.
2337
+ *
2338
+ * Note that the "Correct answer:" textbox is not an interactive
2339
+ * element. Instead, it is a representation of the correct answer based
2340
+ * on the state of the interactive graph previewed at the bottom of the
2341
+ * editor page.
2342
+ */
2321
2343
  removeLinearSystemControls: () => void;
2322
2344
  isCoordInTrash: (arg1: import("@khanacademy/perseus").Coord) => boolean;
2323
2345
  createPointForPointsType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
@@ -3,6 +3,7 @@ import type { Coord } from "@khanacademy/perseus";
3
3
  type AngleCoords = [Coord, Coord, Coord];
4
4
  type Props = {
5
5
  startCoords: AngleCoords;
6
+ allowReflexAngles?: boolean;
6
7
  onChange: (startCoords: AngleCoords) => void;
7
8
  };
8
9
  declare const StartCoordsAngle: (props: Props) => React.JSX.Element;
@@ -4,6 +4,7 @@ import type { PerseusGraphType, Range } from "@khanacademy/perseus";
4
4
  type Props = PerseusGraphType & {
5
5
  range: [x: Range, y: Range];
6
6
  step: [x: number, y: number];
7
+ allowReflexAngles?: boolean;
7
8
  onChange: (startCoords: StartCoords) => void;
8
9
  };
9
10
  declare const StartCoordsSettings: (props: Props) => React.JSX.Element;
@@ -4,5 +4,5 @@ export declare function getStartCoords(graph: PerseusGraphType): StartCoords;
4
4
  export declare function getDefaultGraphStartCoords(graph: PerseusGraphType, range: [x: Range, y: Range], step: [x: number, y: number]): StartCoords;
5
5
  export declare const getSinusoidEquation: (startCoords: [Coord, Coord]) => string;
6
6
  export declare const getQuadraticEquation: (startCoords: [Coord, Coord, Coord]) => string;
7
- export declare const getAngleEquation: (startCoords: [Coord, Coord, Coord]) => string;
7
+ export declare const getAngleEquation: (startCoords: [Coord, Coord, Coord], allowReflexAngles?: boolean) => string;
8
8
  export declare const shouldShowStartCoordsUI: (graph: PerseusGraphType, isStatic?: boolean) => boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "14.6.4",
6
+ "version": "14.6.5",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -34,12 +34,12 @@
34
34
  "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
35
35
  },
36
36
  "dependencies": {
37
- "@khanacademy/kas": "^0.3.13",
38
- "@khanacademy/keypad-context": "^1.0.2",
39
- "@khanacademy/kmath": "^0.1.14",
40
- "@khanacademy/math-input": "^21.0.3",
41
- "@khanacademy/perseus": "^36.1.1",
42
- "@khanacademy/perseus-core": "1.5.1",
37
+ "@khanacademy/kas": "^0.3.14",
38
+ "@khanacademy/keypad-context": "^1.0.3",
39
+ "@khanacademy/kmath": "^0.1.15",
40
+ "@khanacademy/math-input": "^21.0.4",
41
+ "@khanacademy/perseus": "^36.1.2",
42
+ "@khanacademy/perseus-core": "1.5.2",
43
43
  "mafs": "^0.19.0"
44
44
  },
45
45
  "devDependencies": {