@khanacademy/perseus-editor 11.0.2 → 11.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.
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  type Props = {
3
- showM2Features: boolean;
4
3
  showM2bFeatures: boolean;
5
4
  id: string;
6
5
  onChange: (value: string) => void;
@@ -2,7 +2,6 @@ import * as React from "react";
2
2
  import type { LockedFigureType } from "@khanacademy/perseus";
3
3
  export type LockedFigureSettingsMovementType = "back" | "backward" | "forward" | "front";
4
4
  type Props = {
5
- showM2Features?: boolean;
6
5
  figureType: LockedFigureType;
7
6
  onMove: (movement: LockedFigureSettingsMovementType) => void;
8
7
  onRemove: () => void;
@@ -12,7 +12,6 @@ import type { Props as LockedPointProps } from "./locked-point-settings";
12
12
  import type { Props as LockedPolygonProps } from "./locked-polygon-settings";
13
13
  import type { Props as LockedVectorProps } from "./locked-vector-settings";
14
14
  export type LockedFigureSettingsCommonProps = {
15
- showM2Features?: boolean;
16
15
  showM2bFeatures?: boolean;
17
16
  /**
18
17
  * Called when a movement button (top, up, down, bottom) is pressed.
@@ -2,7 +2,6 @@ import * as React from "react";
2
2
  import type { Props as InteractiveGraphEditorProps } from "../../widgets/interactive-graph-editor";
3
3
  import type { LockedFigure } from "@khanacademy/perseus";
4
4
  type Props = {
5
- showM2Features: boolean;
6
5
  showM2bFeatures: boolean;
7
6
  figures?: Array<LockedFigure>;
8
7
  onChange: (props: Partial<InteractiveGraphEditorProps>) => void;
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import type { Coord, PerseusGraphType } from "@khanacademy/perseus";
3
+ type Props = {
4
+ startCoords: {
5
+ center: Coord;
6
+ radius: number;
7
+ };
8
+ onChange: (startCoords: PerseusGraphType["startCoords"]) => void;
9
+ };
10
+ declare const StartCoordsCircle: (props: Props) => React.JSX.Element;
11
+ export default StartCoordsCircle;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import type { Coord, PerseusGraphType } from "@khanacademy/perseus";
3
+ type Props = {
4
+ startCoords: [Coord, Coord, Coord];
5
+ onChange: (startCoords: PerseusGraphType["startCoords"]) => void;
6
+ };
7
+ declare const StartCoordsQuadratic: (props: Props) => React.JSX.Element;
8
+ export default StartCoordsQuadratic;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import type { Coord, PerseusGraphType } from "@khanacademy/perseus";
3
+ type Props = {
4
+ startCoords: [Coord, Coord];
5
+ onChange: (startCoords: PerseusGraphType["startCoords"]) => void;
6
+ };
7
+ declare const StartCoordsSinusoid: (props: Props) => React.JSX.Element;
8
+ export default StartCoordsSinusoid;
@@ -1,4 +1,4 @@
1
- import type { Range, LockedFigure, LockedFigureType, LockedPointType, LockedLineType, LockedEllipseType, LockedVectorType, LockedPolygonType, LockedFunctionType, PerseusGraphType } from "@khanacademy/perseus";
1
+ import type { Range, LockedFigure, LockedFigureType, LockedPointType, LockedLineType, LockedEllipseType, LockedVectorType, LockedPolygonType, LockedFunctionType, PerseusGraphType, Coord } from "@khanacademy/perseus";
2
2
  export declare function focusWithChromeStickyFocusBugWorkaround(element: Element): void;
3
3
  export declare function getDefaultFigureForType(type: "point"): LockedPointType;
4
4
  export declare function getDefaultFigureForType(type: "line"): LockedLineType;
@@ -10,3 +10,5 @@ export declare function getDefaultFigureForType(type: LockedFigureType): LockedF
10
10
  export declare function degreeToRadian(degrees: number): number;
11
11
  export declare function radianToDegree(radians: number): number;
12
12
  export declare function getDefaultGraphStartCoords(graph: PerseusGraphType, range: [x: Range, y: Range], step: [x: number, y: number]): PerseusGraphType["startCoords"];
13
+ export declare const getSinusoidEquation: (startCoords: [Coord, Coord]) => string;
14
+ export declare const getQuadraticEquation: (startCoords: [Coord, Coord, Coord]) => string;