@khanacademy/perseus-editor 30.1.1 → 30.2.1

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.
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import type { Coord } from "@khanacademy/perseus";
3
+ type LogarithmStartCoords = {
4
+ coords: [Coord, Coord];
5
+ asymptote: number;
6
+ };
7
+ type Props = {
8
+ startCoords: LogarithmStartCoords;
9
+ onChange: (startCoords: LogarithmStartCoords) => void;
10
+ };
11
+ declare const StartCoordsLogarithm: (props: Props) => React.JSX.Element;
12
+ export default StartCoordsLogarithm;
@@ -23,6 +23,8 @@ type GraphTypesThatHaveStartCoords = {
23
23
  type: "sinusoid";
24
24
  } | {
25
25
  type: "exponential";
26
+ } | {
27
+ type: "logarithm";
26
28
  } | {
27
29
  type: "tangent";
28
30
  };
@@ -5,5 +5,6 @@ export declare function getDefaultGraphStartCoords(graph: PerseusGraphType, rang
5
5
  export declare const getSinusoidEquation: (startCoords: [Coord, Coord]) => string;
6
6
  export declare const getTangentEquation: (startCoords: [Coord, Coord]) => string;
7
7
  export declare const getQuadraticEquation: (startCoords: [Coord, Coord, Coord]) => string;
8
+ export declare const getLogarithmEquation: (coords: [Coord, Coord], asymptote: number) => string;
8
9
  export declare const getAngleEquation: (startCoords: [Coord, Coord, Coord], allowReflexAngles?: boolean) => string;
9
10
  export declare const shouldShowStartCoordsUI: (graph: PerseusGraphType, isStatic?: boolean) => boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "30.1.1",
6
+ "version": "30.2.1",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -36,13 +36,13 @@
36
36
  "mafs": "^0.19.0",
37
37
  "tiny-invariant": "1.3.1",
38
38
  "@khanacademy/kas": "2.2.1",
39
- "@khanacademy/keypad-context": "3.2.41",
40
- "@khanacademy/kmath": "2.3.1",
41
- "@khanacademy/math-input": "26.4.12",
42
- "@khanacademy/perseus": "77.1.0",
43
- "@khanacademy/perseus-core": "24.0.0",
44
- "@khanacademy/perseus-linter": "4.9.1",
45
- "@khanacademy/perseus-score": "8.5.0",
39
+ "@khanacademy/keypad-context": "3.2.42",
40
+ "@khanacademy/kmath": "2.4.0",
41
+ "@khanacademy/math-input": "26.4.13",
42
+ "@khanacademy/perseus": "77.2.1",
43
+ "@khanacademy/perseus-score": "8.6.0",
44
+ "@khanacademy/perseus-core": "24.1.0",
45
+ "@khanacademy/perseus-linter": "4.9.3",
46
46
  "@khanacademy/perseus-utils": "2.1.5"
47
47
  },
48
48
  "devDependencies": {
@@ -74,8 +74,8 @@
74
74
  "react": "18.2.0",
75
75
  "react-dom": "18.2.0",
76
76
  "underscore": "1.4.4",
77
- "jsdiff": "1.0.2",
78
- "perseus-build-settings": "0.9.0"
77
+ "perseus-build-settings": "0.9.0",
78
+ "jsdiff": "1.0.2"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@khanacademy/mathjax-renderer": "^3.0.0",