@khanacademy/perseus-editor 31.2.1 → 31.2.3
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/widget-editor.d.ts +2 -1
- package/dist/es/index.js +4 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/testing/feature-flags-util.d.ts +2 -2
- package/dist/widgets/image-editor/utils.d.ts +7 -0
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +436 -4620
- package/package.json +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const DEFAULT_FEATURE_FLAGS: {
|
|
2
2
|
"perseus-test-flag-1": boolean;
|
|
3
3
|
"perseus-test-flag-2": boolean;
|
|
4
|
-
"new-radio-widget": boolean;
|
|
5
4
|
"image-widget-upgrade-gif-controls": boolean;
|
|
6
5
|
"image-widget-upgrade-scale": boolean;
|
|
7
6
|
"interactive-graph-vector": boolean;
|
|
8
7
|
"interactive-graph-not-scored": boolean;
|
|
8
|
+
"input-number-to-numeric-input": boolean;
|
|
9
9
|
};
|
|
10
10
|
/** Utility to get feature flags with optional overrides for testing.
|
|
11
11
|
* sample usage:
|
|
@@ -14,10 +14,10 @@ declare const DEFAULT_FEATURE_FLAGS: {
|
|
|
14
14
|
export declare function getFeatureFlags(overrides?: Partial<typeof DEFAULT_FEATURE_FLAGS>): {
|
|
15
15
|
"perseus-test-flag-1": boolean;
|
|
16
16
|
"perseus-test-flag-2": boolean;
|
|
17
|
-
"new-radio-widget": boolean;
|
|
18
17
|
"image-widget-upgrade-gif-controls": boolean;
|
|
19
18
|
"image-widget-upgrade-scale": boolean;
|
|
20
19
|
"interactive-graph-vector": boolean;
|
|
21
20
|
"interactive-graph-not-scored": boolean;
|
|
21
|
+
"input-number-to-numeric-input": boolean;
|
|
22
22
|
};
|
|
23
23
|
export {};
|
|
@@ -30,3 +30,10 @@ export declare const wbFieldStylesWithDescription: {
|
|
|
30
30
|
* => newHeight = (newWidth * height) / width
|
|
31
31
|
*/
|
|
32
32
|
export declare function getOtherSideLengthWithPreservedAspectRatio(sideLength: number, otherSideLength: number, newSideLength: number): number;
|
|
33
|
+
/**
|
|
34
|
+
* Checks if a dimension is invalid. A dimension is valid if it's
|
|
35
|
+
* a positive, non-infinite number.
|
|
36
|
+
* @param dimension - The dimension (height or width) to check.
|
|
37
|
+
* @returns True if the dimension is invalid, false otherwise.
|
|
38
|
+
*/
|
|
39
|
+
export declare function isInvalidDimension(dimension: number): boolean;
|