@khanacademy/perseus-editor 5.0.3 → 5.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/components/locked-figure-select.d.ts +7 -0
- package/dist/components/locked-figure-settings.d.ts +11 -0
- package/dist/components/locked-figures-section.d.ts +9 -0
- package/dist/components/locked-point-settings.d.ts +8 -0
- package/dist/components/util.d.ts +3 -0
- package/dist/es/index.js +419 -137
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +417 -132
- package/dist/index.js.map +1 -1
- package/dist/widgets/interactive-graph-editor.d.ts +466 -660
- package/package.json +4 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LockedFigureSettings takes in a figure and renders the
|
|
3
|
+
* respective settings for that figure type.
|
|
4
|
+
*
|
|
5
|
+
* Used in the interactive graph editor's locked figures section.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props as LockedPointProps } from "./locked-point-settings";
|
|
9
|
+
type Props = LockedPointProps;
|
|
10
|
+
declare const LockedFigureSettings: (props: Props) => JSX.Element | null;
|
|
11
|
+
export default LockedFigureSettings;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Props as InteractiveGraphEditorProps } from "../widgets/interactive-graph-editor";
|
|
3
|
+
import type { LockedFigure } from "@khanacademy/perseus";
|
|
4
|
+
type Props = {
|
|
5
|
+
figures?: Array<LockedFigure>;
|
|
6
|
+
onChange: (props: Partial<InteractiveGraphEditorProps>) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const LockedFiguresSection: (props: Props) => JSX.Element;
|
|
9
|
+
export default LockedFiguresSection;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LockedPoint } from "@khanacademy/perseus";
|
|
3
|
+
export type Props = LockedPoint & {
|
|
4
|
+
onRemove: () => void;
|
|
5
|
+
onChangeCoord: (coord: [number, number]) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const LockedPointSettings: (props: Props) => JSX.Element;
|
|
8
|
+
export default LockedPointSettings;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
+
import type { LockedFigure, LockedFigureType } from "@khanacademy/perseus";
|
|
1
2
|
export declare function focusWithChromeStickyFocusBugWorkaround(element: Element): void;
|
|
3
|
+
export declare function getValidNumberFromString(value: string): number;
|
|
4
|
+
export declare function getDefaultFigureForFigureType(type: LockedFigureType): LockedFigure;
|