@khanacademy/perseus 82.0.0 → 82.0.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.
|
@@ -15,7 +15,6 @@ export declare const pureXsMax = "567px";
|
|
|
15
15
|
export declare const pureSmMax = "767px";
|
|
16
16
|
export declare const pureMdMax = "1023px";
|
|
17
17
|
export declare const pureLgMax = "1279px";
|
|
18
|
-
export declare const tableBackgroundAccent = "#F9F9F9";
|
|
19
18
|
export declare const phoneMargin = 16;
|
|
20
19
|
export declare const negativePhoneMargin = -16;
|
|
21
20
|
export declare const hintBorderWidth = 4;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { vec } from "mafs";
|
|
3
|
+
interface Props {
|
|
4
|
+
/** Pixel-space start point of the asymptote line. */
|
|
5
|
+
start: vec.Vector2;
|
|
6
|
+
/** Pixel-space end point of the asymptote line. */
|
|
7
|
+
end: vec.Vector2;
|
|
8
|
+
/** Stroke color of the dashed line (usually the graph's interactive color). */
|
|
9
|
+
color: string | undefined;
|
|
10
|
+
/** Class applied to both lines (e.g. "movable-dragging" while dragging). */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Test id applied to the dashed line. */
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The shared visual for a graph asymptote: a dashed line drawn over a solid
|
|
17
|
+
* backing line. The backing line (in the page background color) sits underneath
|
|
18
|
+
* so the dashes stay visible on top of grid lines and axes.
|
|
19
|
+
*
|
|
20
|
+
* This is presentational only — no hit target, no drag behavior. Interactive
|
|
21
|
+
* asymptotes (exponential/logarithm) render it inside `MovableAsymptote`, which
|
|
22
|
+
* supplies the hitbox and drag handle; derived, non-interactive asymptotes
|
|
23
|
+
* (tangent) render it directly.
|
|
24
|
+
*/
|
|
25
|
+
export declare function DashedAsymptoteLine(props: Props): React.JSX.Element;
|
|
26
|
+
export {};
|
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": "82.0.
|
|
6
|
+
"version": "82.0.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"mafs": "0.19.0",
|
|
43
43
|
"tiny-invariant": "1.3.1",
|
|
44
44
|
"uuid": "^10.0.0",
|
|
45
|
-
"@khanacademy/kas": "2.2.3",
|
|
46
45
|
"@khanacademy/keypad-context": "3.2.76",
|
|
47
46
|
"@khanacademy/kmath": "2.4.35",
|
|
48
47
|
"@khanacademy/math-input": "26.6.5",
|
|
49
|
-
"@khanacademy/perseus-core": "33.0.0",
|
|
50
48
|
"@khanacademy/perseus-linter": "5.1.16",
|
|
49
|
+
"@khanacademy/kas": "2.2.3",
|
|
50
|
+
"@khanacademy/perseus-core": "33.0.0",
|
|
51
51
|
"@khanacademy/perseus-score": "8.12.8",
|
|
52
52
|
"@khanacademy/perseus-utils": "2.1.5",
|
|
53
53
|
"@khanacademy/pure-markdown": "2.3.1",
|