@khanacademy/perseus 20.1.0 → 20.3.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.
@@ -345,6 +345,7 @@ export type PerseusInteractiveGraphWidgetOptions = {
345
345
  lockedFigures?: ReadonlyArray<LockedFigure>;
346
346
  };
347
347
  export type LockedFigure = LockedPoint;
348
+ export type LockedFigureType = "point";
348
349
  export type LockedPoint = {
349
350
  type: "point";
350
351
  coord: Coord;
package/dist/util.d.ts CHANGED
@@ -45,6 +45,7 @@ declare function shuffle<T>(array: ReadonlyArray<T>, randomSeed: number | RNG, e
45
45
  * if one is wrong, the total score is wrong, etc.
46
46
  */
47
47
  declare function combineScores(scoreA: PerseusScore, scoreB: PerseusScore): PerseusScore;
48
+ export declare function isCorrect(score: PerseusScore): boolean;
48
49
  declare function keScoreFromPerseusScore(score: PerseusScore, guess: any, state: any): KEScore;
49
50
  /**
50
51
  * Return the first valid interpretation of 'text' as a number, in the form
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { LockedFigure } from "../../perseus-types";
3
+ type Props = {
4
+ lockedFigures: ReadonlyArray<LockedFigure>;
5
+ };
6
+ declare const GraphLockedLayer: (props: Props) => JSX.Element;
7
+ export default GraphLockedLayer;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { vec } from "mafs";
3
+ type Props = {
4
+ point: vec.Vector2;
5
+ onMove: (newPoint: vec.Vector2) => unknown;
6
+ };
7
+ export declare const MovablePoint: (props: Props) => JSX.Element;
8
+ export {};
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": "20.1.0",
6
+ "version": "20.3.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },