@khanacademy/perseus-editor 14.0.1 → 14.1.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.
- package/dist/all-editors.d.ts +1 -1
- package/dist/components/graph-locked-figures/locked-figure-select.d.ts +0 -1
- package/dist/components/graph-locked-figures/locked-figure-settings.d.ts +0 -1
- package/dist/components/graph-locked-figures/locked-figures-section.d.ts +1 -2
- package/dist/components/graph-locked-figures/locked-function-examples.d.ts +4 -0
- package/dist/components/interactive-graph-description.d.ts +9 -0
- package/dist/components/util.d.ts +1 -1
- package/dist/es/index.js +682 -323
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +736 -337
- package/dist/index.js.map +1 -1
- package/dist/widgets/interaction-editor/arrow-picker.d.ts +12 -0
- package/dist/widgets/interaction-editor/color-picker.d.ts +14 -0
- package/dist/widgets/interaction-editor/dash-picker.d.ts +12 -0
- package/dist/widgets/interaction-editor/element-container.d.ts +22 -0
- package/dist/widgets/{interactive-graph-editor.d.ts → interactive-graph-editor/interactive-graph-editor.d.ts} +288 -729
- package/package.json +2 -2
package/dist/all-editors.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import IframeEditor from "./widgets/iframe-editor";
|
|
|
13
13
|
import ImageEditor from "./widgets/image-editor";
|
|
14
14
|
import InputNumberEditor from "./widgets/input-number-editor";
|
|
15
15
|
import InteractionEditor from "./widgets/interaction-editor";
|
|
16
|
-
import InteractiveGraphEditor from "./widgets/interactive-graph-editor";
|
|
16
|
+
import InteractiveGraphEditor from "./widgets/interactive-graph-editor/interactive-graph-editor";
|
|
17
17
|
import LabelImageEditor from "./widgets/label-image-editor";
|
|
18
18
|
import MatcherEditor from "./widgets/matcher-editor";
|
|
19
19
|
import MatrixEditor from "./widgets/matrix-editor";
|
|
@@ -14,7 +14,6 @@ import type { Props as LockedPointProps } from "./locked-point-settings";
|
|
|
14
14
|
import type { Props as LockedPolygonProps } from "./locked-polygon-settings";
|
|
15
15
|
import type { Props as LockedVectorProps } from "./locked-vector-settings";
|
|
16
16
|
export type LockedFigureSettingsCommonProps = {
|
|
17
|
-
showM2bFeatures?: boolean;
|
|
18
17
|
showLabelsFlag?: boolean;
|
|
19
18
|
/**
|
|
20
19
|
* Called when a movement button (top, up, down, bottom) is pressed.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { Props as InteractiveGraphEditorProps } from "../../widgets/interactive-graph-editor";
|
|
2
|
+
import type { Props as InteractiveGraphEditorProps } from "../../widgets/interactive-graph-editor/interactive-graph-editor";
|
|
3
3
|
import type { LockedFigure } from "@khanacademy/perseus";
|
|
4
4
|
type Props = {
|
|
5
|
-
showM2bFeatures: boolean;
|
|
6
5
|
showLabelsFlag?: boolean;
|
|
7
6
|
figures?: Array<LockedFigure>;
|
|
8
7
|
onChange: (props: Partial<InteractiveGraphEditorProps>) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Props as EditorProps } from "../widgets/interactive-graph-editor/interactive-graph-editor";
|
|
3
|
+
type Props = {
|
|
4
|
+
ariaLabelValue: string;
|
|
5
|
+
ariaDescriptionValue: string;
|
|
6
|
+
onChange: (graphProps: Partial<EditorProps>) => void;
|
|
7
|
+
};
|
|
8
|
+
export default function InteractiveGraphDescription(props: Props): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -14,4 +14,4 @@ export declare function getDefaultGraphStartCoords(graph: PerseusGraphType, rang
|
|
|
14
14
|
export declare const getSinusoidEquation: (startCoords: [Coord, Coord]) => string;
|
|
15
15
|
export declare const getQuadraticEquation: (startCoords: [Coord, Coord, Coord]) => string;
|
|
16
16
|
export declare const getAngleEquation: (startCoords: [Coord, Coord, Coord]) => string;
|
|
17
|
-
export declare const shouldShowStartCoordsUI: (
|
|
17
|
+
export declare const shouldShowStartCoordsUI: (graph: PerseusGraphType, isStatic?: boolean) => boolean;
|