@khanacademy/perseus 20.1.0 → 20.2.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.
- package/dist/components/graph.d.ts +1 -2
- package/dist/es/index.css +57 -3
- package/dist/es/index.js +127 -69
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +57 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +116 -59
- package/dist/index.js.map +1 -1
- package/dist/perseus-types.d.ts +1 -0
- package/dist/util.d.ts +1 -0
- package/dist/widgets/interactive-graphs/graph-locked-layer.d.ts +7 -0
- package/dist/widgets/interactive-graphs/movable-point.d.ts +8 -0
- package/package.json +1 -1
package/dist/perseus-types.d.ts
CHANGED
|
@@ -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
|