@khanacademy/perseus 27.1.0 → 27.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.
@@ -104,10 +104,10 @@ export declare const ApiOptions: {
104
104
  ray?: boolean | undefined;
105
105
  segment?: boolean | undefined;
106
106
  } & {
107
- "interactive-graph-locked-features-m2"?: boolean | undefined;
108
107
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
109
108
  } & {
110
- "start-coords-ui"?: boolean | undefined;
109
+ "start-coords-ui-phase-1"?: boolean | undefined;
110
+ "start-coords-ui-phase-2"?: boolean | undefined;
111
111
  }) | undefined;
112
112
  } | undefined;
113
113
  onWidgetStartProps?: ((widgets: import("./perseus-types").PerseusWidgetsMap) => void) | undefined;
@@ -151,10 +151,10 @@ declare const ref: React.ForwardRefExoticComponent<Omit<Pick<OwnProps & HOCProps
151
151
  ray?: boolean | undefined;
152
152
  segment?: boolean | undefined;
153
153
  } & {
154
- "interactive-graph-locked-features-m2"?: boolean | undefined;
155
154
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
156
155
  } & {
157
- "start-coords-ui"?: boolean | undefined;
156
+ "start-coords-ui-phase-1"?: boolean | undefined;
157
+ "start-coords-ui-phase-2"?: boolean | undefined;
158
158
  }) | undefined;
159
159
  } | undefined;
160
160
  onWidgetStartProps?: ((widgets: import("./perseus-types").PerseusWidgetsMap) => void) | undefined;
package/dist/types.d.ts CHANGED
@@ -78,8 +78,8 @@ type TrackInteractionArgs = {
78
78
  correct?: boolean;
79
79
  } & Partial<TrackingGradedGroupExtraArguments> & Partial<TrackingSequenceExtraArguments>;
80
80
  export declare const MafsGraphTypeFlags: readonly ["angle", "segment", "linear", "linear-system", "ray", "polygon", "circle", "quadratic", "sinusoid", "point"];
81
- export declare const InteractiveGraphLockedFeaturesFlags: readonly ["interactive-graph-locked-features-m2", "interactive-graph-locked-features-m2b"];
82
- export declare const InteractiveGraphEditorFlags: readonly ["start-coords-ui"];
81
+ export declare const InteractiveGraphLockedFeaturesFlags: readonly ["interactive-graph-locked-features-m2b"];
82
+ export declare const InteractiveGraphEditorFlags: readonly ["start-coords-ui-phase-1", "start-coords-ui-phase-2"];
83
83
  /**
84
84
  * APIOptions provides different ways to customize the behaviour of Perseus.
85
85
  *
@@ -150,10 +150,10 @@ declare const _default: Readonly<{
150
150
  ray?: boolean | undefined;
151
151
  segment?: boolean | undefined;
152
152
  } & {
153
- "interactive-graph-locked-features-m2"?: boolean | undefined;
154
153
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
155
154
  } & {
156
- "start-coords-ui"?: boolean | undefined;
155
+ "start-coords-ui-phase-1"?: boolean | undefined;
156
+ "start-coords-ui-phase-2"?: boolean | undefined;
157
157
  }) | undefined;
158
158
  } | undefined;
159
159
  onWidgetStartProps?: ((widgets: import("../perseus-types").PerseusWidgetsMap) => void) | undefined;
@@ -232,10 +232,10 @@ declare const _default: Readonly<{
232
232
  ray?: boolean | undefined;
233
233
  segment?: boolean | undefined;
234
234
  } & {
235
- "interactive-graph-locked-features-m2"?: boolean | undefined;
236
235
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
237
236
  } & {
238
- "start-coords-ui"?: boolean | undefined;
237
+ "start-coords-ui-phase-1"?: boolean | undefined;
238
+ "start-coords-ui-phase-2"?: boolean | undefined;
239
239
  }) | undefined;
240
240
  } | undefined;
241
241
  onWidgetStartProps?: ((widgets: import("../perseus-types").PerseusWidgetsMap) => void) | undefined;
@@ -315,10 +315,10 @@ declare const _default: Readonly<{
315
315
  ray?: boolean | undefined;
316
316
  segment?: boolean | undefined;
317
317
  } & {
318
- "interactive-graph-locked-features-m2"?: boolean | undefined;
319
318
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
320
319
  } & {
321
- "start-coords-ui"?: boolean | undefined;
320
+ "start-coords-ui-phase-1"?: boolean | undefined;
321
+ "start-coords-ui-phase-2"?: boolean | undefined;
322
322
  }) | undefined;
323
323
  } | undefined;
324
324
  onWidgetStartProps?: ((widgets: import("../perseus-types").PerseusWidgetsMap) => void) | undefined;
@@ -393,10 +393,10 @@ declare const _default: Readonly<{
393
393
  ray?: boolean | undefined;
394
394
  segment?: boolean | undefined;
395
395
  } & {
396
- "interactive-graph-locked-features-m2"?: boolean | undefined;
397
396
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
398
397
  } & {
399
- "start-coords-ui"?: boolean | undefined;
398
+ "start-coords-ui-phase-1"?: boolean | undefined;
399
+ "start-coords-ui-phase-2"?: boolean | undefined;
400
400
  }) | undefined;
401
401
  } | undefined;
402
402
  onWidgetStartProps?: ((widgets: import("../perseus-types").PerseusWidgetsMap) => void) | undefined;
@@ -475,10 +475,10 @@ declare const _default: Readonly<{
475
475
  ray?: boolean | undefined;
476
476
  segment?: boolean | undefined;
477
477
  } & {
478
- "interactive-graph-locked-features-m2"?: boolean | undefined;
479
478
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
480
479
  } & {
481
- "start-coords-ui"?: boolean | undefined;
480
+ "start-coords-ui-phase-1"?: boolean | undefined;
481
+ "start-coords-ui-phase-2"?: boolean | undefined;
482
482
  }) | undefined;
483
483
  } | undefined;
484
484
  onWidgetStartProps?: ((widgets: import("../perseus-types").PerseusWidgetsMap) => void) | undefined;
@@ -558,10 +558,10 @@ declare const _default: Readonly<{
558
558
  ray?: boolean | undefined;
559
559
  segment?: boolean | undefined;
560
560
  } & {
561
- "interactive-graph-locked-features-m2"?: boolean | undefined;
562
561
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
563
562
  } & {
564
- "start-coords-ui"?: boolean | undefined;
563
+ "start-coords-ui-phase-1"?: boolean | undefined;
564
+ "start-coords-ui-phase-2"?: boolean | undefined;
565
565
  }) | undefined;
566
566
  } | undefined;
567
567
  onWidgetStartProps?: ((widgets: import("../perseus-types").PerseusWidgetsMap) => void) | undefined;
@@ -1,4 +1,4 @@
1
- import type { PerseusGraphType, PerseusGraphTypeCircle, PerseusGraphTypeLinear, PerseusGraphTypeLinearSystem, PerseusGraphTypeRay, PerseusGraphTypeSegment } from "../../../perseus-types";
1
+ import type { PerseusGraphType, PerseusGraphTypeCircle, PerseusGraphTypeLinear, PerseusGraphTypeLinearSystem, PerseusGraphTypeQuadratic, PerseusGraphTypeRay, PerseusGraphTypeSegment, PerseusGraphTypeSinusoid } from "../../../perseus-types";
2
2
  import type { InteractiveGraphState, PairOfPoints } from "../types";
3
3
  import type { Coord } from "@khanacademy/perseus";
4
4
  import type { Interval } from "mafs";
@@ -12,6 +12,8 @@ export declare function initializeGraphState(params: InitializeGraphStateParams)
12
12
  export declare function getSegmentCoords(graph: PerseusGraphTypeSegment, range: [x: Interval, y: Interval], step: [x: number, y: number]): PairOfPoints[];
13
13
  export declare function getLineCoords(graph: PerseusGraphTypeRay | PerseusGraphTypeLinear, range: [x: Interval, y: Interval], step: [x: number, y: number]): PairOfPoints;
14
14
  export declare function getLinearSystemCoords(graph: PerseusGraphTypeLinearSystem, range: [x: Interval, y: Interval], step: [x: number, y: number]): PairOfPoints[];
15
+ export declare function getSinusoidCoords(graph: PerseusGraphTypeSinusoid, range: [x: Interval, y: Interval], step: [x: number, y: number]): [Coord, Coord];
16
+ export declare function getQuadraticCoords(graph: PerseusGraphTypeQuadratic, range: [x: Interval, y: Interval], step: [x: number, y: number]): [Coord, Coord, Coord];
15
17
  export declare function getCircleCoords(graph: PerseusGraphTypeCircle): {
16
18
  center: Coord;
17
19
  radiusPoint: Coord;
@@ -142,10 +142,10 @@ declare const _default: Readonly<{
142
142
  ray?: boolean | undefined;
143
143
  segment?: boolean | undefined;
144
144
  } & {
145
- "interactive-graph-locked-features-m2"?: boolean | undefined;
146
145
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
147
146
  } & {
148
- "start-coords-ui"?: boolean | undefined;
147
+ "start-coords-ui-phase-1"?: boolean | undefined;
148
+ "start-coords-ui-phase-2"?: boolean | undefined;
149
149
  }) | undefined;
150
150
  } | undefined;
151
151
  onWidgetStartProps?: ((widgets: import("..").PerseusWidgetsMap) => void) | undefined;
@@ -207,10 +207,10 @@ declare const _default: Readonly<{
207
207
  ray?: boolean | undefined;
208
208
  segment?: boolean | undefined;
209
209
  } & {
210
- "interactive-graph-locked-features-m2"?: boolean | undefined;
211
210
  "interactive-graph-locked-features-m2b"?: boolean | undefined;
212
211
  } & {
213
- "start-coords-ui"?: boolean | undefined;
212
+ "start-coords-ui-phase-1"?: boolean | undefined;
213
+ "start-coords-ui-phase-2"?: boolean | undefined;
214
214
  }) | undefined;
215
215
  } | undefined;
216
216
  onWidgetStartProps?: ((widgets: import("..").PerseusWidgetsMap) => void) | undefined;
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": "27.1.0",
6
+ "version": "27.2.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },