@khanacademy/perseus 65.3.5 → 65.3.7

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.
@@ -89,9 +89,7 @@ type RenderProps = {
89
89
  */
90
90
  graph: PerseusGraphType;
91
91
  /**
92
- * The correct answer for this widget. Will be undefined if the graph is
93
- * being provided answerless data (e.g. because the learner has not yet
94
- * submitted their guess).
92
+ * The correct answer for this widget.
95
93
  */
96
94
  correct?: PerseusGraphType;
97
95
  /**
@@ -1,7 +1,7 @@
1
1
  import { vec } from "mafs";
2
2
  import type { SnapTo } from "./types";
3
3
  import type { Coord } from "../../interactive2/types";
4
- import type { AxisLabelLocation, CollinearTuple, LockedFigureColor, LockedFigureFillType, LockedLineStyle, MarkingsType, PerseusRenderer } from "@khanacademy/perseus-core";
4
+ import type { AxisLabelLocation, CollinearTuple, LockedFigureColor, LockedFigureFillType, LockedLineStyle, MarkingsType, PerseusRenderer, StrokeWeight } from "@khanacademy/perseus-core";
5
5
  export type LockedFunctionOptions = {
6
6
  color?: LockedFigureColor;
7
7
  strokeStyle?: LockedLineStyle;
@@ -143,7 +143,8 @@ declare class InteractiveGraphQuestionBuilder {
143
143
  color?: LockedFigureColor;
144
144
  showVertices?: boolean;
145
145
  fillStyle?: LockedFigureFillType;
146
- strokeStyle?: "solid" | "dashed";
146
+ strokeStyle?: LockedLineStyle;
147
+ weight?: StrokeWeight;
147
148
  labels?: LockedFigureLabelOptions[];
148
149
  ariaLabel?: string;
149
150
  }): InteractiveGraphQuestionBuilder;
@@ -1 +1,3 @@
1
+ import type { StrokeWeight } from "@khanacademy/perseus-core";
2
+ export declare const strokeWeights: Record<StrokeWeight, number>;
1
3
  export declare function clampDomain(domain: [number, number], graphBounds: [number, number]): [number, number] | null;
@@ -6,9 +6,7 @@ export type StatefulMafsGraphProps = {
6
6
  backgroundImage?: InteractiveGraphProps["backgroundImage"];
7
7
  graph: PerseusGraphType;
8
8
  /**
9
- * The correct answer for this widget. Will be undefined if the graph is
10
- * being provided answerless data (e.g. because the learner has not yet
11
- * submitted their guess).
9
+ * The correct answer for this widget.
12
10
  */
13
11
  correct?: PerseusGraphType;
14
12
  lockedFigures: InteractiveGraphProps["lockedFigures"];
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": "65.3.5",
6
+ "version": "65.3.7",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -42,12 +42,12 @@
42
42
  "tiny-invariant": "1.3.1",
43
43
  "uuid": "^10.0.0",
44
44
  "@khanacademy/kas": "2.0.9",
45
- "@khanacademy/keypad-context": "3.0.21",
46
- "@khanacademy/kmath": "2.0.21",
47
- "@khanacademy/math-input": "26.0.10",
48
- "@khanacademy/perseus-core": "16.0.0",
49
- "@khanacademy/perseus-linter": "4.0.8",
50
- "@khanacademy/perseus-score": "7.1.8",
45
+ "@khanacademy/keypad-context": "3.0.22",
46
+ "@khanacademy/kmath": "2.0.22",
47
+ "@khanacademy/math-input": "26.0.11",
48
+ "@khanacademy/perseus-core": "16.1.0",
49
+ "@khanacademy/perseus-linter": "4.0.9",
50
+ "@khanacademy/perseus-score": "7.1.9",
51
51
  "@khanacademy/perseus-utils": "2.0.5",
52
52
  "@khanacademy/pure-markdown": "2.0.9",
53
53
  "@khanacademy/simple-markdown": "2.0.9"