@khanacademy/perseus 33.1.0 → 33.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.
- package/dist/es/index.js +84 -34
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +84 -34
- package/dist/index.js.map +1 -1
- package/dist/util/colors.d.ts +5 -13
- package/dist/widgets/interactive-graphs/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/util/colors.d.ts
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color constants we use throughout Perseus (originally on KhanUtil).
|
|
3
|
-
*
|
|
4
|
-
* Note that if the color palette changes substantially, it may also need to be
|
|
5
|
-
* updated in khan-exercises and cherry-picked into graphie-to-png's
|
|
6
|
-
* khan-exercises submodule, as graphie-to-png still relies on the palette
|
|
7
|
-
* provided on KhanUtil.
|
|
8
|
-
*/
|
|
9
1
|
declare const KhanColors: {
|
|
10
|
-
readonly BLUE:
|
|
2
|
+
readonly BLUE: string;
|
|
11
3
|
readonly ORANGE: "#FFA500";
|
|
12
4
|
readonly PINK: "#FF00AF";
|
|
13
|
-
readonly GREEN:
|
|
5
|
+
readonly GREEN: string;
|
|
14
6
|
readonly PURPLE: "#9D38BD";
|
|
15
7
|
readonly RED: "#DF0030";
|
|
16
8
|
readonly GRAY: "gray";
|
|
@@ -82,8 +74,8 @@ declare const KhanColors: {
|
|
|
82
74
|
readonly KA_BLUE: "#314453";
|
|
83
75
|
readonly KA_GREEN: "#71B307";
|
|
84
76
|
readonly _BACKGROUND: "#FDFDFD";
|
|
85
|
-
readonly INTERACTING:
|
|
86
|
-
readonly INTERACTIVE:
|
|
87
|
-
readonly DYNAMIC:
|
|
77
|
+
readonly INTERACTING: string;
|
|
78
|
+
readonly INTERACTIVE: string;
|
|
79
|
+
readonly DYNAMIC: string;
|
|
88
80
|
};
|
|
89
81
|
export default KhanColors;
|
|
@@ -31,6 +31,7 @@ export interface PointGraphState extends InteractiveGraphStateCommon {
|
|
|
31
31
|
coords: Coord[];
|
|
32
32
|
numPoints?: number | "unlimited";
|
|
33
33
|
focusedPointIndex: number | null;
|
|
34
|
+
previouslyFocusedPointIndex: number | null;
|
|
34
35
|
}
|
|
35
36
|
export interface RayGraphState extends InteractiveGraphStateCommon {
|
|
36
37
|
type: "ray";
|