@khanacademy/perseus-editor 14.0.0 → 14.1.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/all-editors.d.ts +1 -1
- package/dist/components/graph-locked-figures/locked-figures-section.d.ts +1 -1
- 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/es/index.js +671 -299
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +723 -314
- 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} +527 -290
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SizingUtils } from "@khanacademy/perseus";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import type { PerseusImageBackground, PerseusInteractiveGraphWidgetOptions,
|
|
3
|
+
import type { APIOptionsWithDefaults, LockedFigure, PerseusImageBackground, PerseusInteractiveGraphWidgetOptions, PerseusGraphType } from "@khanacademy/perseus";
|
|
4
4
|
import type { PropsFor } from "@khanacademy/wonder-blocks-core";
|
|
5
5
|
declare const InteractiveGraph: {
|
|
6
6
|
new (props: PerseusInteractiveGraphWidgetOptions & {
|
|
@@ -9,6 +9,10 @@ declare const InteractiveGraph: {
|
|
|
9
9
|
static: boolean | null | undefined;
|
|
10
10
|
problemNum: number | null | undefined;
|
|
11
11
|
apiOptions: Readonly<Readonly<{
|
|
12
|
+
/**
|
|
13
|
+
* An error message to display in the graph area, or true if the
|
|
14
|
+
* graph is valid.
|
|
15
|
+
*/
|
|
12
16
|
isArticle?: boolean | undefined;
|
|
13
17
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
14
18
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -26,12 +30,12 @@ declare const InteractiveGraph: {
|
|
|
26
30
|
baseElements?: {
|
|
27
31
|
Link: React.ComponentType<any>;
|
|
28
32
|
} | undefined;
|
|
29
|
-
imagePreloader?: ((dimensions: import("
|
|
33
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
30
34
|
trackInteraction?: ((args: {
|
|
31
35
|
type: string;
|
|
32
36
|
id: string;
|
|
33
37
|
correct?: boolean | undefined;
|
|
34
|
-
} & Partial<import("
|
|
38
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
35
39
|
customKeypad?: boolean | undefined;
|
|
36
40
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
37
41
|
isMobile?: boolean | undefined;
|
|
@@ -86,8 +90,8 @@ declare const InteractiveGraph: {
|
|
|
86
90
|
questionCompleted?: boolean | undefined;
|
|
87
91
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
88
92
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
89
|
-
findWidgets: (arg1: import("
|
|
90
|
-
reviewModeRubric: import("
|
|
93
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
94
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
91
95
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
92
96
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
93
97
|
isLastUsedWidget: boolean;
|
|
@@ -96,7 +100,7 @@ declare const InteractiveGraph: {
|
|
|
96
100
|
}): {
|
|
97
101
|
legacyGraphRef: React.RefObject<{
|
|
98
102
|
context: {
|
|
99
|
-
strings: import("
|
|
103
|
+
strings: import("../../../../perseus/src/strings").PerseusStrings;
|
|
100
104
|
locale: string;
|
|
101
105
|
};
|
|
102
106
|
angle: any;
|
|
@@ -116,7 +120,6 @@ declare const InteractiveGraph: {
|
|
|
116
120
|
trashCan: any;
|
|
117
121
|
vertHairline: any;
|
|
118
122
|
state: any;
|
|
119
|
-
UNSAFE_componentWillMount(): void;
|
|
120
123
|
componentDidMount(): void;
|
|
121
124
|
UNSAFE_componentWillReceiveProps(nextProps: PerseusInteractiveGraphWidgetOptions & {
|
|
122
125
|
widgetId: string;
|
|
@@ -124,6 +127,10 @@ declare const InteractiveGraph: {
|
|
|
124
127
|
static: boolean | null | undefined;
|
|
125
128
|
problemNum: number | null | undefined;
|
|
126
129
|
apiOptions: Readonly<Readonly<{
|
|
130
|
+
/**
|
|
131
|
+
* An error message to display in the graph area, or true if the
|
|
132
|
+
* graph is valid.
|
|
133
|
+
*/
|
|
127
134
|
isArticle?: boolean | undefined;
|
|
128
135
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
129
136
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -141,12 +148,12 @@ declare const InteractiveGraph: {
|
|
|
141
148
|
baseElements?: {
|
|
142
149
|
Link: React.ComponentType<any>;
|
|
143
150
|
} | undefined;
|
|
144
|
-
imagePreloader?: ((dimensions: import("
|
|
151
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
145
152
|
trackInteraction?: ((args: {
|
|
146
153
|
type: string;
|
|
147
154
|
id: string;
|
|
148
155
|
correct?: boolean | undefined;
|
|
149
|
-
} & Partial<import("
|
|
156
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
150
157
|
customKeypad?: boolean | undefined;
|
|
151
158
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
152
159
|
isMobile?: boolean | undefined;
|
|
@@ -201,8 +208,8 @@ declare const InteractiveGraph: {
|
|
|
201
208
|
questionCompleted?: boolean | undefined;
|
|
202
209
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
203
210
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
204
|
-
findWidgets: (arg1: import("
|
|
205
|
-
reviewModeRubric: import("
|
|
211
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
212
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
206
213
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
207
214
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
208
215
|
isLastUsedWidget: boolean;
|
|
@@ -215,6 +222,10 @@ declare const InteractiveGraph: {
|
|
|
215
222
|
static: boolean | null | undefined;
|
|
216
223
|
problemNum: number | null | undefined;
|
|
217
224
|
apiOptions: Readonly<Readonly<{
|
|
225
|
+
/**
|
|
226
|
+
* An error message to display in the graph area, or true if the
|
|
227
|
+
* graph is valid.
|
|
228
|
+
*/
|
|
218
229
|
isArticle?: boolean | undefined;
|
|
219
230
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
220
231
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -232,12 +243,12 @@ declare const InteractiveGraph: {
|
|
|
232
243
|
baseElements?: {
|
|
233
244
|
Link: React.ComponentType<any>;
|
|
234
245
|
} | undefined;
|
|
235
|
-
imagePreloader?: ((dimensions: import("
|
|
246
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
236
247
|
trackInteraction?: ((args: {
|
|
237
248
|
type: string;
|
|
238
249
|
id: string;
|
|
239
250
|
correct?: boolean | undefined;
|
|
240
|
-
} & Partial<import("
|
|
251
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
241
252
|
customKeypad?: boolean | undefined;
|
|
242
253
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
243
254
|
isMobile?: boolean | undefined;
|
|
@@ -292,8 +303,8 @@ declare const InteractiveGraph: {
|
|
|
292
303
|
questionCompleted?: boolean | undefined;
|
|
293
304
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
294
305
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
295
|
-
findWidgets: (arg1: import("
|
|
296
|
-
reviewModeRubric: import("
|
|
306
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
307
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
297
308
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
298
309
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
299
310
|
isLastUsedWidget: boolean;
|
|
@@ -306,6 +317,10 @@ declare const InteractiveGraph: {
|
|
|
306
317
|
static: boolean | null | undefined;
|
|
307
318
|
problemNum: number | null | undefined;
|
|
308
319
|
apiOptions: Readonly<Readonly<{
|
|
320
|
+
/**
|
|
321
|
+
* An error message to display in the graph area, or true if the
|
|
322
|
+
* graph is valid.
|
|
323
|
+
*/
|
|
309
324
|
isArticle?: boolean | undefined;
|
|
310
325
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
311
326
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -323,12 +338,12 @@ declare const InteractiveGraph: {
|
|
|
323
338
|
baseElements?: {
|
|
324
339
|
Link: React.ComponentType<any>;
|
|
325
340
|
} | undefined;
|
|
326
|
-
imagePreloader?: ((dimensions: import("
|
|
341
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
327
342
|
trackInteraction?: ((args: {
|
|
328
343
|
type: string;
|
|
329
344
|
id: string;
|
|
330
345
|
correct?: boolean | undefined;
|
|
331
|
-
} & Partial<import("
|
|
346
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
332
347
|
customKeypad?: boolean | undefined;
|
|
333
348
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
334
349
|
isMobile?: boolean | undefined;
|
|
@@ -383,15 +398,14 @@ declare const InteractiveGraph: {
|
|
|
383
398
|
questionCompleted?: boolean | undefined;
|
|
384
399
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
385
400
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
386
|
-
findWidgets: (arg1: import("
|
|
387
|
-
reviewModeRubric: import("
|
|
401
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
402
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
388
403
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
389
404
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
390
405
|
isLastUsedWidget: boolean;
|
|
391
406
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
392
407
|
containerSizeClass: SizingUtils.SizeClass;
|
|
393
408
|
}) | null | undefined) => boolean;
|
|
394
|
-
deprecatedProps: any;
|
|
395
409
|
setGraphie: (arg1: any) => void;
|
|
396
410
|
handleAddPointsMouseDown: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
397
411
|
resetGraphie: () => void;
|
|
@@ -405,6 +419,10 @@ declare const InteractiveGraph: {
|
|
|
405
419
|
static: boolean | null | undefined;
|
|
406
420
|
problemNum: number | null | undefined;
|
|
407
421
|
apiOptions: Readonly<Readonly<{
|
|
422
|
+
/**
|
|
423
|
+
* An error message to display in the graph area, or true if the
|
|
424
|
+
* graph is valid.
|
|
425
|
+
*/
|
|
408
426
|
isArticle?: boolean | undefined;
|
|
409
427
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
410
428
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -422,12 +440,12 @@ declare const InteractiveGraph: {
|
|
|
422
440
|
baseElements?: {
|
|
423
441
|
Link: React.ComponentType<any>;
|
|
424
442
|
} | undefined;
|
|
425
|
-
imagePreloader?: ((dimensions: import("
|
|
443
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
426
444
|
trackInteraction?: ((args: {
|
|
427
445
|
type: string;
|
|
428
446
|
id: string;
|
|
429
447
|
correct?: boolean | undefined;
|
|
430
|
-
} & Partial<import("
|
|
448
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
431
449
|
customKeypad?: boolean | undefined;
|
|
432
450
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
433
451
|
isMobile?: boolean | undefined;
|
|
@@ -482,18 +500,18 @@ declare const InteractiveGraph: {
|
|
|
482
500
|
questionCompleted?: boolean | undefined;
|
|
483
501
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
484
502
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
485
|
-
findWidgets: (arg1: import("
|
|
486
|
-
reviewModeRubric: import("
|
|
503
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
504
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
487
505
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
488
506
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
489
507
|
isLastUsedWidget: boolean;
|
|
490
508
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
491
509
|
containerSizeClass: SizingUtils.SizeClass;
|
|
492
510
|
}) | null | undefined) => boolean;
|
|
493
|
-
areAngleGraphsEqual(prevGraph: import("
|
|
494
|
-
arePointGraphsEqual(prevGraph: import("
|
|
495
|
-
arePolygonGraphsEqual(prevGraph: import("
|
|
496
|
-
areSegmentGraphsEqual(prevGraph: import("
|
|
511
|
+
areAngleGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle): boolean;
|
|
512
|
+
arePointGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint): boolean;
|
|
513
|
+
arePolygonGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
|
|
514
|
+
areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
|
|
497
515
|
_lineStroke: () => {
|
|
498
516
|
"stroke-width"?: number | undefined;
|
|
499
517
|
};
|
|
@@ -530,8 +548,8 @@ declare const InteractiveGraph: {
|
|
|
530
548
|
addAngleControls: () => void;
|
|
531
549
|
removeAngleControls: () => void;
|
|
532
550
|
toggleShowSides: () => void;
|
|
533
|
-
getUserInput():
|
|
534
|
-
simpleValidate(rubric: import("
|
|
551
|
+
getUserInput(): PerseusGraphType;
|
|
552
|
+
simpleValidate(rubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric): import("@khanacademy/perseus").PerseusScore;
|
|
535
553
|
focus: () => void;
|
|
536
554
|
render(): React.ReactNode;
|
|
537
555
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -542,6 +560,10 @@ declare const InteractiveGraph: {
|
|
|
542
560
|
static: boolean | null | undefined;
|
|
543
561
|
problemNum: number | null | undefined;
|
|
544
562
|
apiOptions: Readonly<Readonly<{
|
|
563
|
+
/**
|
|
564
|
+
* An error message to display in the graph area, or true if the
|
|
565
|
+
* graph is valid.
|
|
566
|
+
*/
|
|
545
567
|
isArticle?: boolean | undefined;
|
|
546
568
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
547
569
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -559,12 +581,12 @@ declare const InteractiveGraph: {
|
|
|
559
581
|
baseElements?: {
|
|
560
582
|
Link: React.ComponentType<any>;
|
|
561
583
|
} | undefined;
|
|
562
|
-
imagePreloader?: ((dimensions: import("
|
|
584
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
563
585
|
trackInteraction?: ((args: {
|
|
564
586
|
type: string;
|
|
565
587
|
id: string;
|
|
566
588
|
correct?: boolean | undefined;
|
|
567
|
-
} & Partial<import("
|
|
589
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
568
590
|
customKeypad?: boolean | undefined;
|
|
569
591
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
570
592
|
isMobile?: boolean | undefined;
|
|
@@ -619,8 +641,8 @@ declare const InteractiveGraph: {
|
|
|
619
641
|
questionCompleted?: boolean | undefined;
|
|
620
642
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
621
643
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
622
|
-
findWidgets: (arg1: import("
|
|
623
|
-
reviewModeRubric: import("
|
|
644
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
645
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
624
646
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
625
647
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
626
648
|
isLastUsedWidget: boolean;
|
|
@@ -636,6 +658,10 @@ declare const InteractiveGraph: {
|
|
|
636
658
|
static: boolean | null | undefined;
|
|
637
659
|
problemNum: number | null | undefined;
|
|
638
660
|
apiOptions: Readonly<Readonly<{
|
|
661
|
+
/**
|
|
662
|
+
* An error message to display in the graph area, or true if the
|
|
663
|
+
* graph is valid.
|
|
664
|
+
*/
|
|
639
665
|
isArticle?: boolean | undefined;
|
|
640
666
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
641
667
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -653,12 +679,12 @@ declare const InteractiveGraph: {
|
|
|
653
679
|
baseElements?: {
|
|
654
680
|
Link: React.ComponentType<any>;
|
|
655
681
|
} | undefined;
|
|
656
|
-
imagePreloader?: ((dimensions: import("
|
|
682
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
657
683
|
trackInteraction?: ((args: {
|
|
658
684
|
type: string;
|
|
659
685
|
id: string;
|
|
660
686
|
correct?: boolean | undefined;
|
|
661
|
-
} & Partial<import("
|
|
687
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
662
688
|
customKeypad?: boolean | undefined;
|
|
663
689
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
664
690
|
isMobile?: boolean | undefined;
|
|
@@ -713,8 +739,8 @@ declare const InteractiveGraph: {
|
|
|
713
739
|
questionCompleted?: boolean | undefined;
|
|
714
740
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
715
741
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
716
|
-
findWidgets: (arg1: import("
|
|
717
|
-
reviewModeRubric: import("
|
|
742
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
743
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
718
744
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
719
745
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
720
746
|
isLastUsedWidget: boolean;
|
|
@@ -729,6 +755,10 @@ declare const InteractiveGraph: {
|
|
|
729
755
|
static: boolean | null | undefined;
|
|
730
756
|
problemNum: number | null | undefined;
|
|
731
757
|
apiOptions: Readonly<Readonly<{
|
|
758
|
+
/**
|
|
759
|
+
* An error message to display in the graph area, or true if the
|
|
760
|
+
* graph is valid.
|
|
761
|
+
*/
|
|
732
762
|
isArticle?: boolean | undefined;
|
|
733
763
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
734
764
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -746,12 +776,12 @@ declare const InteractiveGraph: {
|
|
|
746
776
|
baseElements?: {
|
|
747
777
|
Link: React.ComponentType<any>;
|
|
748
778
|
} | undefined;
|
|
749
|
-
imagePreloader?: ((dimensions: import("
|
|
779
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
750
780
|
trackInteraction?: ((args: {
|
|
751
781
|
type: string;
|
|
752
782
|
id: string;
|
|
753
783
|
correct?: boolean | undefined;
|
|
754
|
-
} & Partial<import("
|
|
784
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
755
785
|
customKeypad?: boolean | undefined;
|
|
756
786
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
757
787
|
isMobile?: boolean | undefined;
|
|
@@ -806,8 +836,8 @@ declare const InteractiveGraph: {
|
|
|
806
836
|
questionCompleted?: boolean | undefined;
|
|
807
837
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
808
838
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
809
|
-
findWidgets: (arg1: import("
|
|
810
|
-
reviewModeRubric: import("
|
|
839
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
840
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
811
841
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
812
842
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
813
843
|
isLastUsedWidget: boolean;
|
|
@@ -815,12 +845,17 @@ declare const InteractiveGraph: {
|
|
|
815
845
|
containerSizeClass: SizingUtils.SizeClass;
|
|
816
846
|
}>, prevState: Readonly<any>): any;
|
|
817
847
|
componentWillMount?(): void;
|
|
848
|
+
UNSAFE_componentWillMount?(): void;
|
|
818
849
|
componentWillReceiveProps?(nextProps: Readonly<PerseusInteractiveGraphWidgetOptions & {
|
|
819
850
|
widgetId: string;
|
|
820
851
|
alignment: string | null | undefined;
|
|
821
852
|
static: boolean | null | undefined;
|
|
822
853
|
problemNum: number | null | undefined;
|
|
823
854
|
apiOptions: Readonly<Readonly<{
|
|
855
|
+
/**
|
|
856
|
+
* An error message to display in the graph area, or true if the
|
|
857
|
+
* graph is valid.
|
|
858
|
+
*/
|
|
824
859
|
isArticle?: boolean | undefined;
|
|
825
860
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
826
861
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -838,12 +873,12 @@ declare const InteractiveGraph: {
|
|
|
838
873
|
baseElements?: {
|
|
839
874
|
Link: React.ComponentType<any>;
|
|
840
875
|
} | undefined;
|
|
841
|
-
imagePreloader?: ((dimensions: import("
|
|
876
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
842
877
|
trackInteraction?: ((args: {
|
|
843
878
|
type: string;
|
|
844
879
|
id: string;
|
|
845
880
|
correct?: boolean | undefined;
|
|
846
|
-
} & Partial<import("
|
|
881
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
847
882
|
customKeypad?: boolean | undefined;
|
|
848
883
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
849
884
|
isMobile?: boolean | undefined;
|
|
@@ -898,8 +933,8 @@ declare const InteractiveGraph: {
|
|
|
898
933
|
questionCompleted?: boolean | undefined;
|
|
899
934
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
900
935
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
901
|
-
findWidgets: (arg1: import("
|
|
902
|
-
reviewModeRubric: import("
|
|
936
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
937
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
903
938
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
904
939
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
905
940
|
isLastUsedWidget: boolean;
|
|
@@ -912,6 +947,10 @@ declare const InteractiveGraph: {
|
|
|
912
947
|
static: boolean | null | undefined;
|
|
913
948
|
problemNum: number | null | undefined;
|
|
914
949
|
apiOptions: Readonly<Readonly<{
|
|
950
|
+
/**
|
|
951
|
+
* An error message to display in the graph area, or true if the
|
|
952
|
+
* graph is valid.
|
|
953
|
+
*/
|
|
915
954
|
isArticle?: boolean | undefined;
|
|
916
955
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
917
956
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -929,12 +968,12 @@ declare const InteractiveGraph: {
|
|
|
929
968
|
baseElements?: {
|
|
930
969
|
Link: React.ComponentType<any>;
|
|
931
970
|
} | undefined;
|
|
932
|
-
imagePreloader?: ((dimensions: import("
|
|
971
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
933
972
|
trackInteraction?: ((args: {
|
|
934
973
|
type: string;
|
|
935
974
|
id: string;
|
|
936
975
|
correct?: boolean | undefined;
|
|
937
|
-
} & Partial<import("
|
|
976
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
938
977
|
customKeypad?: boolean | undefined;
|
|
939
978
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
940
979
|
isMobile?: boolean | undefined;
|
|
@@ -989,8 +1028,8 @@ declare const InteractiveGraph: {
|
|
|
989
1028
|
questionCompleted?: boolean | undefined;
|
|
990
1029
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
991
1030
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
992
|
-
findWidgets: (arg1: import("
|
|
993
|
-
reviewModeRubric: import("
|
|
1031
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1032
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
994
1033
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
995
1034
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
996
1035
|
isLastUsedWidget: boolean;
|
|
@@ -1003,6 +1042,10 @@ declare const InteractiveGraph: {
|
|
|
1003
1042
|
static: boolean | null | undefined;
|
|
1004
1043
|
problemNum: number | null | undefined;
|
|
1005
1044
|
apiOptions: Readonly<Readonly<{
|
|
1045
|
+
/**
|
|
1046
|
+
* An error message to display in the graph area, or true if the
|
|
1047
|
+
* graph is valid.
|
|
1048
|
+
*/
|
|
1006
1049
|
isArticle?: boolean | undefined;
|
|
1007
1050
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1008
1051
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1020,12 +1063,12 @@ declare const InteractiveGraph: {
|
|
|
1020
1063
|
baseElements?: {
|
|
1021
1064
|
Link: React.ComponentType<any>;
|
|
1022
1065
|
} | undefined;
|
|
1023
|
-
imagePreloader?: ((dimensions: import("
|
|
1066
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1024
1067
|
trackInteraction?: ((args: {
|
|
1025
1068
|
type: string;
|
|
1026
1069
|
id: string;
|
|
1027
1070
|
correct?: boolean | undefined;
|
|
1028
|
-
} & Partial<import("
|
|
1071
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1029
1072
|
customKeypad?: boolean | undefined;
|
|
1030
1073
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1031
1074
|
isMobile?: boolean | undefined;
|
|
@@ -1080,8 +1123,8 @@ declare const InteractiveGraph: {
|
|
|
1080
1123
|
questionCompleted?: boolean | undefined;
|
|
1081
1124
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1082
1125
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1083
|
-
findWidgets: (arg1: import("
|
|
1084
|
-
reviewModeRubric: import("
|
|
1126
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1127
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1085
1128
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1086
1129
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1087
1130
|
isLastUsedWidget: boolean;
|
|
@@ -1089,9 +1132,9 @@ declare const InteractiveGraph: {
|
|
|
1089
1132
|
containerSizeClass: SizingUtils.SizeClass;
|
|
1090
1133
|
}>, nextState: Readonly<any>, nextContext: any): void;
|
|
1091
1134
|
}>;
|
|
1092
|
-
mafsRef: React.RefObject<import("
|
|
1135
|
+
mafsRef: React.RefObject<import("../../../../perseus/src/renderer").Widget>;
|
|
1093
1136
|
getUserInput: (() => any) | undefined;
|
|
1094
|
-
simpleValidate(rubric: import("
|
|
1137
|
+
simpleValidate(rubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric): import("@khanacademy/perseus").PerseusScore;
|
|
1095
1138
|
render(): React.JSX.Element;
|
|
1096
1139
|
context: unknown;
|
|
1097
1140
|
setState<K_1 extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -1102,6 +1145,10 @@ declare const InteractiveGraph: {
|
|
|
1102
1145
|
static: boolean | null | undefined;
|
|
1103
1146
|
problemNum: number | null | undefined;
|
|
1104
1147
|
apiOptions: Readonly<Readonly<{
|
|
1148
|
+
/**
|
|
1149
|
+
* An error message to display in the graph area, or true if the
|
|
1150
|
+
* graph is valid.
|
|
1151
|
+
*/
|
|
1105
1152
|
isArticle?: boolean | undefined;
|
|
1106
1153
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1107
1154
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1119,12 +1166,12 @@ declare const InteractiveGraph: {
|
|
|
1119
1166
|
baseElements?: {
|
|
1120
1167
|
Link: React.ComponentType<any>;
|
|
1121
1168
|
} | undefined;
|
|
1122
|
-
imagePreloader?: ((dimensions: import("
|
|
1169
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1123
1170
|
trackInteraction?: ((args: {
|
|
1124
1171
|
type: string;
|
|
1125
1172
|
id: string;
|
|
1126
1173
|
correct?: boolean | undefined;
|
|
1127
|
-
} & Partial<import("
|
|
1174
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1128
1175
|
customKeypad?: boolean | undefined;
|
|
1129
1176
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1130
1177
|
isMobile?: boolean | undefined;
|
|
@@ -1179,8 +1226,8 @@ declare const InteractiveGraph: {
|
|
|
1179
1226
|
questionCompleted?: boolean | undefined;
|
|
1180
1227
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1181
1228
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1182
|
-
findWidgets: (arg1: import("
|
|
1183
|
-
reviewModeRubric: import("
|
|
1229
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1230
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1184
1231
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1185
1232
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1186
1233
|
isLastUsedWidget: boolean;
|
|
@@ -1198,6 +1245,10 @@ declare const InteractiveGraph: {
|
|
|
1198
1245
|
static: boolean | null | undefined;
|
|
1199
1246
|
problemNum: number | null | undefined;
|
|
1200
1247
|
apiOptions: Readonly<Readonly<{
|
|
1248
|
+
/**
|
|
1249
|
+
* An error message to display in the graph area, or true if the
|
|
1250
|
+
* graph is valid.
|
|
1251
|
+
*/
|
|
1201
1252
|
isArticle?: boolean | undefined;
|
|
1202
1253
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1203
1254
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1215,12 +1266,12 @@ declare const InteractiveGraph: {
|
|
|
1215
1266
|
baseElements?: {
|
|
1216
1267
|
Link: React.ComponentType<any>;
|
|
1217
1268
|
} | undefined;
|
|
1218
|
-
imagePreloader?: ((dimensions: import("
|
|
1269
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1219
1270
|
trackInteraction?: ((args: {
|
|
1220
1271
|
type: string;
|
|
1221
1272
|
id: string;
|
|
1222
1273
|
correct?: boolean | undefined;
|
|
1223
|
-
} & Partial<import("
|
|
1274
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1224
1275
|
customKeypad?: boolean | undefined;
|
|
1225
1276
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1226
1277
|
isMobile?: boolean | undefined;
|
|
@@ -1275,8 +1326,8 @@ declare const InteractiveGraph: {
|
|
|
1275
1326
|
questionCompleted?: boolean | undefined;
|
|
1276
1327
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1277
1328
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1278
|
-
findWidgets: (arg1: import("
|
|
1279
|
-
reviewModeRubric: import("
|
|
1329
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1330
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1280
1331
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1281
1332
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1282
1333
|
isLastUsedWidget: boolean;
|
|
@@ -1291,6 +1342,10 @@ declare const InteractiveGraph: {
|
|
|
1291
1342
|
static: boolean | null | undefined;
|
|
1292
1343
|
problemNum: number | null | undefined;
|
|
1293
1344
|
apiOptions: Readonly<Readonly<{
|
|
1345
|
+
/**
|
|
1346
|
+
* An error message to display in the graph area, or true if the
|
|
1347
|
+
* graph is valid.
|
|
1348
|
+
*/
|
|
1294
1349
|
isArticle?: boolean | undefined;
|
|
1295
1350
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1296
1351
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1308,12 +1363,12 @@ declare const InteractiveGraph: {
|
|
|
1308
1363
|
baseElements?: {
|
|
1309
1364
|
Link: React.ComponentType<any>;
|
|
1310
1365
|
} | undefined;
|
|
1311
|
-
imagePreloader?: ((dimensions: import("
|
|
1366
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1312
1367
|
trackInteraction?: ((args: {
|
|
1313
1368
|
type: string;
|
|
1314
1369
|
id: string;
|
|
1315
1370
|
correct?: boolean | undefined;
|
|
1316
|
-
} & Partial<import("
|
|
1371
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1317
1372
|
customKeypad?: boolean | undefined;
|
|
1318
1373
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1319
1374
|
isMobile?: boolean | undefined;
|
|
@@ -1368,8 +1423,8 @@ declare const InteractiveGraph: {
|
|
|
1368
1423
|
questionCompleted?: boolean | undefined;
|
|
1369
1424
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1370
1425
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1371
|
-
findWidgets: (arg1: import("
|
|
1372
|
-
reviewModeRubric: import("
|
|
1426
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1427
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1373
1428
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1374
1429
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1375
1430
|
isLastUsedWidget: boolean;
|
|
@@ -1382,6 +1437,10 @@ declare const InteractiveGraph: {
|
|
|
1382
1437
|
static: boolean | null | undefined;
|
|
1383
1438
|
problemNum: number | null | undefined;
|
|
1384
1439
|
apiOptions: Readonly<Readonly<{
|
|
1440
|
+
/**
|
|
1441
|
+
* An error message to display in the graph area, or true if the
|
|
1442
|
+
* graph is valid.
|
|
1443
|
+
*/
|
|
1385
1444
|
isArticle?: boolean | undefined;
|
|
1386
1445
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1387
1446
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1399,12 +1458,12 @@ declare const InteractiveGraph: {
|
|
|
1399
1458
|
baseElements?: {
|
|
1400
1459
|
Link: React.ComponentType<any>;
|
|
1401
1460
|
} | undefined;
|
|
1402
|
-
imagePreloader?: ((dimensions: import("
|
|
1461
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1403
1462
|
trackInteraction?: ((args: {
|
|
1404
1463
|
type: string;
|
|
1405
1464
|
id: string;
|
|
1406
1465
|
correct?: boolean | undefined;
|
|
1407
|
-
} & Partial<import("
|
|
1466
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1408
1467
|
customKeypad?: boolean | undefined;
|
|
1409
1468
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1410
1469
|
isMobile?: boolean | undefined;
|
|
@@ -1459,8 +1518,8 @@ declare const InteractiveGraph: {
|
|
|
1459
1518
|
questionCompleted?: boolean | undefined;
|
|
1460
1519
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1461
1520
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1462
|
-
findWidgets: (arg1: import("
|
|
1463
|
-
reviewModeRubric: import("
|
|
1521
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1522
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1464
1523
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1465
1524
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1466
1525
|
isLastUsedWidget: boolean;
|
|
@@ -1475,6 +1534,10 @@ declare const InteractiveGraph: {
|
|
|
1475
1534
|
static: boolean | null | undefined;
|
|
1476
1535
|
problemNum: number | null | undefined;
|
|
1477
1536
|
apiOptions: Readonly<Readonly<{
|
|
1537
|
+
/**
|
|
1538
|
+
* An error message to display in the graph area, or true if the
|
|
1539
|
+
* graph is valid.
|
|
1540
|
+
*/
|
|
1478
1541
|
isArticle?: boolean | undefined;
|
|
1479
1542
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1480
1543
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1492,12 +1555,12 @@ declare const InteractiveGraph: {
|
|
|
1492
1555
|
baseElements?: {
|
|
1493
1556
|
Link: React.ComponentType<any>;
|
|
1494
1557
|
} | undefined;
|
|
1495
|
-
imagePreloader?: ((dimensions: import("
|
|
1558
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1496
1559
|
trackInteraction?: ((args: {
|
|
1497
1560
|
type: string;
|
|
1498
1561
|
id: string;
|
|
1499
1562
|
correct?: boolean | undefined;
|
|
1500
|
-
} & Partial<import("
|
|
1563
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1501
1564
|
customKeypad?: boolean | undefined;
|
|
1502
1565
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1503
1566
|
isMobile?: boolean | undefined;
|
|
@@ -1552,8 +1615,8 @@ declare const InteractiveGraph: {
|
|
|
1552
1615
|
questionCompleted?: boolean | undefined;
|
|
1553
1616
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1554
1617
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1555
|
-
findWidgets: (arg1: import("
|
|
1556
|
-
reviewModeRubric: import("
|
|
1618
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1619
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1557
1620
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1558
1621
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1559
1622
|
isLastUsedWidget: boolean;
|
|
@@ -1566,6 +1629,10 @@ declare const InteractiveGraph: {
|
|
|
1566
1629
|
static: boolean | null | undefined;
|
|
1567
1630
|
problemNum: number | null | undefined;
|
|
1568
1631
|
apiOptions: Readonly<Readonly<{
|
|
1632
|
+
/**
|
|
1633
|
+
* An error message to display in the graph area, or true if the
|
|
1634
|
+
* graph is valid.
|
|
1635
|
+
*/
|
|
1569
1636
|
isArticle?: boolean | undefined;
|
|
1570
1637
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1571
1638
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1583,12 +1650,12 @@ declare const InteractiveGraph: {
|
|
|
1583
1650
|
baseElements?: {
|
|
1584
1651
|
Link: React.ComponentType<any>;
|
|
1585
1652
|
} | undefined;
|
|
1586
|
-
imagePreloader?: ((dimensions: import("
|
|
1653
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1587
1654
|
trackInteraction?: ((args: {
|
|
1588
1655
|
type: string;
|
|
1589
1656
|
id: string;
|
|
1590
1657
|
correct?: boolean | undefined;
|
|
1591
|
-
} & Partial<import("
|
|
1658
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1592
1659
|
customKeypad?: boolean | undefined;
|
|
1593
1660
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1594
1661
|
isMobile?: boolean | undefined;
|
|
@@ -1643,8 +1710,8 @@ declare const InteractiveGraph: {
|
|
|
1643
1710
|
questionCompleted?: boolean | undefined;
|
|
1644
1711
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1645
1712
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1646
|
-
findWidgets: (arg1: import("
|
|
1647
|
-
reviewModeRubric: import("
|
|
1713
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1714
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1648
1715
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1649
1716
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1650
1717
|
isLastUsedWidget: boolean;
|
|
@@ -1657,6 +1724,10 @@ declare const InteractiveGraph: {
|
|
|
1657
1724
|
static: boolean | null | undefined;
|
|
1658
1725
|
problemNum: number | null | undefined;
|
|
1659
1726
|
apiOptions: Readonly<Readonly<{
|
|
1727
|
+
/**
|
|
1728
|
+
* An error message to display in the graph area, or true if the
|
|
1729
|
+
* graph is valid.
|
|
1730
|
+
*/
|
|
1660
1731
|
isArticle?: boolean | undefined;
|
|
1661
1732
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1662
1733
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1674,12 +1745,12 @@ declare const InteractiveGraph: {
|
|
|
1674
1745
|
baseElements?: {
|
|
1675
1746
|
Link: React.ComponentType<any>;
|
|
1676
1747
|
} | undefined;
|
|
1677
|
-
imagePreloader?: ((dimensions: import("
|
|
1748
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1678
1749
|
trackInteraction?: ((args: {
|
|
1679
1750
|
type: string;
|
|
1680
1751
|
id: string;
|
|
1681
1752
|
correct?: boolean | undefined;
|
|
1682
|
-
} & Partial<import("
|
|
1753
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1683
1754
|
customKeypad?: boolean | undefined;
|
|
1684
1755
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1685
1756
|
isMobile?: boolean | undefined;
|
|
@@ -1734,8 +1805,8 @@ declare const InteractiveGraph: {
|
|
|
1734
1805
|
questionCompleted?: boolean | undefined;
|
|
1735
1806
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1736
1807
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1737
|
-
findWidgets: (arg1: import("
|
|
1738
|
-
reviewModeRubric: import("
|
|
1808
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1809
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1739
1810
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1740
1811
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1741
1812
|
isLastUsedWidget: boolean;
|
|
@@ -1748,6 +1819,10 @@ declare const InteractiveGraph: {
|
|
|
1748
1819
|
static: boolean | null | undefined;
|
|
1749
1820
|
problemNum: number | null | undefined;
|
|
1750
1821
|
apiOptions: Readonly<Readonly<{
|
|
1822
|
+
/**
|
|
1823
|
+
* An error message to display in the graph area, or true if the
|
|
1824
|
+
* graph is valid.
|
|
1825
|
+
*/
|
|
1751
1826
|
isArticle?: boolean | undefined;
|
|
1752
1827
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1753
1828
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1765,12 +1840,12 @@ declare const InteractiveGraph: {
|
|
|
1765
1840
|
baseElements?: {
|
|
1766
1841
|
Link: React.ComponentType<any>;
|
|
1767
1842
|
} | undefined;
|
|
1768
|
-
imagePreloader?: ((dimensions: import("
|
|
1843
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1769
1844
|
trackInteraction?: ((args: {
|
|
1770
1845
|
type: string;
|
|
1771
1846
|
id: string;
|
|
1772
1847
|
correct?: boolean | undefined;
|
|
1773
|
-
} & Partial<import("
|
|
1848
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1774
1849
|
customKeypad?: boolean | undefined;
|
|
1775
1850
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1776
1851
|
isMobile?: boolean | undefined;
|
|
@@ -1825,8 +1900,8 @@ declare const InteractiveGraph: {
|
|
|
1825
1900
|
questionCompleted?: boolean | undefined;
|
|
1826
1901
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1827
1902
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1828
|
-
findWidgets: (arg1: import("
|
|
1829
|
-
reviewModeRubric: import("
|
|
1903
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
1904
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1830
1905
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1831
1906
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1832
1907
|
isLastUsedWidget: boolean;
|
|
@@ -1840,6 +1915,10 @@ declare const InteractiveGraph: {
|
|
|
1840
1915
|
static: boolean | null | undefined;
|
|
1841
1916
|
problemNum: number | null | undefined;
|
|
1842
1917
|
apiOptions: Readonly<Readonly<{
|
|
1918
|
+
/**
|
|
1919
|
+
* An error message to display in the graph area, or true if the
|
|
1920
|
+
* graph is valid.
|
|
1921
|
+
*/
|
|
1843
1922
|
isArticle?: boolean | undefined;
|
|
1844
1923
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1845
1924
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1857,12 +1936,12 @@ declare const InteractiveGraph: {
|
|
|
1857
1936
|
baseElements?: {
|
|
1858
1937
|
Link: React.ComponentType<any>;
|
|
1859
1938
|
} | undefined;
|
|
1860
|
-
imagePreloader?: ((dimensions: import("
|
|
1939
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1861
1940
|
trackInteraction?: ((args: {
|
|
1862
1941
|
type: string;
|
|
1863
1942
|
id: string;
|
|
1864
1943
|
correct?: boolean | undefined;
|
|
1865
|
-
} & Partial<import("
|
|
1944
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1866
1945
|
customKeypad?: boolean | undefined;
|
|
1867
1946
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1868
1947
|
isMobile?: boolean | undefined;
|
|
@@ -1917,8 +1996,8 @@ declare const InteractiveGraph: {
|
|
|
1917
1996
|
questionCompleted?: boolean | undefined;
|
|
1918
1997
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1919
1998
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
1920
|
-
findWidgets: (arg1: import("
|
|
1921
|
-
reviewModeRubric: import("
|
|
1999
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2000
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
1922
2001
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1923
2002
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
1924
2003
|
isLastUsedWidget: boolean;
|
|
@@ -1927,7 +2006,7 @@ declare const InteractiveGraph: {
|
|
|
1927
2006
|
}, context: any): {
|
|
1928
2007
|
legacyGraphRef: React.RefObject<{
|
|
1929
2008
|
context: {
|
|
1930
|
-
strings: import("
|
|
2009
|
+
strings: import("../../../../perseus/src/strings").PerseusStrings;
|
|
1931
2010
|
locale: string;
|
|
1932
2011
|
};
|
|
1933
2012
|
angle: any;
|
|
@@ -1947,7 +2026,6 @@ declare const InteractiveGraph: {
|
|
|
1947
2026
|
trashCan: any;
|
|
1948
2027
|
vertHairline: any;
|
|
1949
2028
|
state: any;
|
|
1950
|
-
UNSAFE_componentWillMount(): void;
|
|
1951
2029
|
componentDidMount(): void;
|
|
1952
2030
|
UNSAFE_componentWillReceiveProps(nextProps: PerseusInteractiveGraphWidgetOptions & {
|
|
1953
2031
|
widgetId: string;
|
|
@@ -1955,6 +2033,10 @@ declare const InteractiveGraph: {
|
|
|
1955
2033
|
static: boolean | null | undefined;
|
|
1956
2034
|
problemNum: number | null | undefined;
|
|
1957
2035
|
apiOptions: Readonly<Readonly<{
|
|
2036
|
+
/**
|
|
2037
|
+
* An error message to display in the graph area, or true if the
|
|
2038
|
+
* graph is valid.
|
|
2039
|
+
*/
|
|
1958
2040
|
isArticle?: boolean | undefined;
|
|
1959
2041
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
1960
2042
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -1972,12 +2054,12 @@ declare const InteractiveGraph: {
|
|
|
1972
2054
|
baseElements?: {
|
|
1973
2055
|
Link: React.ComponentType<any>;
|
|
1974
2056
|
} | undefined;
|
|
1975
|
-
imagePreloader?: ((dimensions: import("
|
|
2057
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1976
2058
|
trackInteraction?: ((args: {
|
|
1977
2059
|
type: string;
|
|
1978
2060
|
id: string;
|
|
1979
2061
|
correct?: boolean | undefined;
|
|
1980
|
-
} & Partial<import("
|
|
2062
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1981
2063
|
customKeypad?: boolean | undefined;
|
|
1982
2064
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1983
2065
|
isMobile?: boolean | undefined;
|
|
@@ -2032,8 +2114,8 @@ declare const InteractiveGraph: {
|
|
|
2032
2114
|
questionCompleted?: boolean | undefined;
|
|
2033
2115
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2034
2116
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2035
|
-
findWidgets: (arg1: import("
|
|
2036
|
-
reviewModeRubric: import("
|
|
2117
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2118
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2037
2119
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2038
2120
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2039
2121
|
isLastUsedWidget: boolean;
|
|
@@ -2046,6 +2128,10 @@ declare const InteractiveGraph: {
|
|
|
2046
2128
|
static: boolean | null | undefined;
|
|
2047
2129
|
problemNum: number | null | undefined;
|
|
2048
2130
|
apiOptions: Readonly<Readonly<{
|
|
2131
|
+
/**
|
|
2132
|
+
* An error message to display in the graph area, or true if the
|
|
2133
|
+
* graph is valid.
|
|
2134
|
+
*/
|
|
2049
2135
|
isArticle?: boolean | undefined;
|
|
2050
2136
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2051
2137
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2063,12 +2149,12 @@ declare const InteractiveGraph: {
|
|
|
2063
2149
|
baseElements?: {
|
|
2064
2150
|
Link: React.ComponentType<any>;
|
|
2065
2151
|
} | undefined;
|
|
2066
|
-
imagePreloader?: ((dimensions: import("
|
|
2152
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2067
2153
|
trackInteraction?: ((args: {
|
|
2068
2154
|
type: string;
|
|
2069
2155
|
id: string;
|
|
2070
2156
|
correct?: boolean | undefined;
|
|
2071
|
-
} & Partial<import("
|
|
2157
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2072
2158
|
customKeypad?: boolean | undefined;
|
|
2073
2159
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2074
2160
|
isMobile?: boolean | undefined;
|
|
@@ -2123,8 +2209,8 @@ declare const InteractiveGraph: {
|
|
|
2123
2209
|
questionCompleted?: boolean | undefined;
|
|
2124
2210
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2125
2211
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2126
|
-
findWidgets: (arg1: import("
|
|
2127
|
-
reviewModeRubric: import("
|
|
2212
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2213
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2128
2214
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2129
2215
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2130
2216
|
isLastUsedWidget: boolean;
|
|
@@ -2137,6 +2223,10 @@ declare const InteractiveGraph: {
|
|
|
2137
2223
|
static: boolean | null | undefined;
|
|
2138
2224
|
problemNum: number | null | undefined;
|
|
2139
2225
|
apiOptions: Readonly<Readonly<{
|
|
2226
|
+
/**
|
|
2227
|
+
* An error message to display in the graph area, or true if the
|
|
2228
|
+
* graph is valid.
|
|
2229
|
+
*/
|
|
2140
2230
|
isArticle?: boolean | undefined;
|
|
2141
2231
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2142
2232
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2154,12 +2244,12 @@ declare const InteractiveGraph: {
|
|
|
2154
2244
|
baseElements?: {
|
|
2155
2245
|
Link: React.ComponentType<any>;
|
|
2156
2246
|
} | undefined;
|
|
2157
|
-
imagePreloader?: ((dimensions: import("
|
|
2247
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2158
2248
|
trackInteraction?: ((args: {
|
|
2159
2249
|
type: string;
|
|
2160
2250
|
id: string;
|
|
2161
2251
|
correct?: boolean | undefined;
|
|
2162
|
-
} & Partial<import("
|
|
2252
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2163
2253
|
customKeypad?: boolean | undefined;
|
|
2164
2254
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2165
2255
|
isMobile?: boolean | undefined;
|
|
@@ -2214,15 +2304,14 @@ declare const InteractiveGraph: {
|
|
|
2214
2304
|
questionCompleted?: boolean | undefined;
|
|
2215
2305
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2216
2306
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2217
|
-
findWidgets: (arg1: import("
|
|
2218
|
-
reviewModeRubric: import("
|
|
2307
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2308
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2219
2309
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2220
2310
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2221
2311
|
isLastUsedWidget: boolean;
|
|
2222
2312
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
2223
2313
|
containerSizeClass: SizingUtils.SizeClass;
|
|
2224
2314
|
}) | null | undefined) => boolean;
|
|
2225
|
-
deprecatedProps: any;
|
|
2226
2315
|
setGraphie: (arg1: any) => void;
|
|
2227
2316
|
handleAddPointsMouseDown: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
2228
2317
|
resetGraphie: () => void;
|
|
@@ -2236,6 +2325,10 @@ declare const InteractiveGraph: {
|
|
|
2236
2325
|
static: boolean | null | undefined;
|
|
2237
2326
|
problemNum: number | null | undefined;
|
|
2238
2327
|
apiOptions: Readonly<Readonly<{
|
|
2328
|
+
/**
|
|
2329
|
+
* An error message to display in the graph area, or true if the
|
|
2330
|
+
* graph is valid.
|
|
2331
|
+
*/
|
|
2239
2332
|
isArticle?: boolean | undefined;
|
|
2240
2333
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2241
2334
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2253,12 +2346,12 @@ declare const InteractiveGraph: {
|
|
|
2253
2346
|
baseElements?: {
|
|
2254
2347
|
Link: React.ComponentType<any>;
|
|
2255
2348
|
} | undefined;
|
|
2256
|
-
imagePreloader?: ((dimensions: import("
|
|
2349
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2257
2350
|
trackInteraction?: ((args: {
|
|
2258
2351
|
type: string;
|
|
2259
2352
|
id: string;
|
|
2260
2353
|
correct?: boolean | undefined;
|
|
2261
|
-
} & Partial<import("
|
|
2354
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2262
2355
|
customKeypad?: boolean | undefined;
|
|
2263
2356
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2264
2357
|
isMobile?: boolean | undefined;
|
|
@@ -2313,18 +2406,18 @@ declare const InteractiveGraph: {
|
|
|
2313
2406
|
questionCompleted?: boolean | undefined;
|
|
2314
2407
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2315
2408
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2316
|
-
findWidgets: (arg1: import("
|
|
2317
|
-
reviewModeRubric: import("
|
|
2409
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2410
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2318
2411
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2319
2412
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2320
2413
|
isLastUsedWidget: boolean;
|
|
2321
2414
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
2322
2415
|
containerSizeClass: SizingUtils.SizeClass;
|
|
2323
2416
|
}) | null | undefined) => boolean;
|
|
2324
|
-
areAngleGraphsEqual(prevGraph: import("
|
|
2325
|
-
arePointGraphsEqual(prevGraph: import("
|
|
2326
|
-
arePolygonGraphsEqual(prevGraph: import("
|
|
2327
|
-
areSegmentGraphsEqual(prevGraph: import("
|
|
2417
|
+
areAngleGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle): boolean;
|
|
2418
|
+
arePointGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint): boolean;
|
|
2419
|
+
arePolygonGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
|
|
2420
|
+
areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
|
|
2328
2421
|
_lineStroke: () => {
|
|
2329
2422
|
"stroke-width"?: number | undefined;
|
|
2330
2423
|
};
|
|
@@ -2361,8 +2454,8 @@ declare const InteractiveGraph: {
|
|
|
2361
2454
|
addAngleControls: () => void;
|
|
2362
2455
|
removeAngleControls: () => void;
|
|
2363
2456
|
toggleShowSides: () => void;
|
|
2364
|
-
getUserInput():
|
|
2365
|
-
simpleValidate(rubric: import("
|
|
2457
|
+
getUserInput(): PerseusGraphType;
|
|
2458
|
+
simpleValidate(rubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric): import("@khanacademy/perseus").PerseusScore;
|
|
2366
2459
|
focus: () => void;
|
|
2367
2460
|
render(): React.ReactNode;
|
|
2368
2461
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -2373,6 +2466,10 @@ declare const InteractiveGraph: {
|
|
|
2373
2466
|
static: boolean | null | undefined;
|
|
2374
2467
|
problemNum: number | null | undefined;
|
|
2375
2468
|
apiOptions: Readonly<Readonly<{
|
|
2469
|
+
/**
|
|
2470
|
+
* An error message to display in the graph area, or true if the
|
|
2471
|
+
* graph is valid.
|
|
2472
|
+
*/
|
|
2376
2473
|
isArticle?: boolean | undefined;
|
|
2377
2474
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2378
2475
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2390,12 +2487,12 @@ declare const InteractiveGraph: {
|
|
|
2390
2487
|
baseElements?: {
|
|
2391
2488
|
Link: React.ComponentType<any>;
|
|
2392
2489
|
} | undefined;
|
|
2393
|
-
imagePreloader?: ((dimensions: import("
|
|
2490
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2394
2491
|
trackInteraction?: ((args: {
|
|
2395
2492
|
type: string;
|
|
2396
2493
|
id: string;
|
|
2397
2494
|
correct?: boolean | undefined;
|
|
2398
|
-
} & Partial<import("
|
|
2495
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2399
2496
|
customKeypad?: boolean | undefined;
|
|
2400
2497
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2401
2498
|
isMobile?: boolean | undefined;
|
|
@@ -2450,8 +2547,8 @@ declare const InteractiveGraph: {
|
|
|
2450
2547
|
questionCompleted?: boolean | undefined;
|
|
2451
2548
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2452
2549
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2453
|
-
findWidgets: (arg1: import("
|
|
2454
|
-
reviewModeRubric: import("
|
|
2550
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2551
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2455
2552
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2456
2553
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2457
2554
|
isLastUsedWidget: boolean;
|
|
@@ -2467,6 +2564,10 @@ declare const InteractiveGraph: {
|
|
|
2467
2564
|
static: boolean | null | undefined;
|
|
2468
2565
|
problemNum: number | null | undefined;
|
|
2469
2566
|
apiOptions: Readonly<Readonly<{
|
|
2567
|
+
/**
|
|
2568
|
+
* An error message to display in the graph area, or true if the
|
|
2569
|
+
* graph is valid.
|
|
2570
|
+
*/
|
|
2470
2571
|
isArticle?: boolean | undefined;
|
|
2471
2572
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2472
2573
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2484,12 +2585,12 @@ declare const InteractiveGraph: {
|
|
|
2484
2585
|
baseElements?: {
|
|
2485
2586
|
Link: React.ComponentType<any>;
|
|
2486
2587
|
} | undefined;
|
|
2487
|
-
imagePreloader?: ((dimensions: import("
|
|
2588
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2488
2589
|
trackInteraction?: ((args: {
|
|
2489
2590
|
type: string;
|
|
2490
2591
|
id: string;
|
|
2491
2592
|
correct?: boolean | undefined;
|
|
2492
|
-
} & Partial<import("
|
|
2593
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2493
2594
|
customKeypad?: boolean | undefined;
|
|
2494
2595
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2495
2596
|
isMobile?: boolean | undefined;
|
|
@@ -2544,8 +2645,8 @@ declare const InteractiveGraph: {
|
|
|
2544
2645
|
questionCompleted?: boolean | undefined;
|
|
2545
2646
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2546
2647
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2547
|
-
findWidgets: (arg1: import("
|
|
2548
|
-
reviewModeRubric: import("
|
|
2648
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2649
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2549
2650
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2550
2651
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2551
2652
|
isLastUsedWidget: boolean;
|
|
@@ -2560,6 +2661,10 @@ declare const InteractiveGraph: {
|
|
|
2560
2661
|
static: boolean | null | undefined;
|
|
2561
2662
|
problemNum: number | null | undefined;
|
|
2562
2663
|
apiOptions: Readonly<Readonly<{
|
|
2664
|
+
/**
|
|
2665
|
+
* An error message to display in the graph area, or true if the
|
|
2666
|
+
* graph is valid.
|
|
2667
|
+
*/
|
|
2563
2668
|
isArticle?: boolean | undefined;
|
|
2564
2669
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2565
2670
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2577,12 +2682,12 @@ declare const InteractiveGraph: {
|
|
|
2577
2682
|
baseElements?: {
|
|
2578
2683
|
Link: React.ComponentType<any>;
|
|
2579
2684
|
} | undefined;
|
|
2580
|
-
imagePreloader?: ((dimensions: import("
|
|
2685
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2581
2686
|
trackInteraction?: ((args: {
|
|
2582
2687
|
type: string;
|
|
2583
2688
|
id: string;
|
|
2584
2689
|
correct?: boolean | undefined;
|
|
2585
|
-
} & Partial<import("
|
|
2690
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2586
2691
|
customKeypad?: boolean | undefined;
|
|
2587
2692
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2588
2693
|
isMobile?: boolean | undefined;
|
|
@@ -2637,8 +2742,8 @@ declare const InteractiveGraph: {
|
|
|
2637
2742
|
questionCompleted?: boolean | undefined;
|
|
2638
2743
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2639
2744
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2640
|
-
findWidgets: (arg1: import("
|
|
2641
|
-
reviewModeRubric: import("
|
|
2745
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2746
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2642
2747
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2643
2748
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2644
2749
|
isLastUsedWidget: boolean;
|
|
@@ -2646,12 +2751,17 @@ declare const InteractiveGraph: {
|
|
|
2646
2751
|
containerSizeClass: SizingUtils.SizeClass;
|
|
2647
2752
|
}>, prevState: Readonly<any>): any;
|
|
2648
2753
|
componentWillMount?(): void;
|
|
2754
|
+
UNSAFE_componentWillMount?(): void;
|
|
2649
2755
|
componentWillReceiveProps?(nextProps: Readonly<PerseusInteractiveGraphWidgetOptions & {
|
|
2650
2756
|
widgetId: string;
|
|
2651
2757
|
alignment: string | null | undefined;
|
|
2652
2758
|
static: boolean | null | undefined;
|
|
2653
2759
|
problemNum: number | null | undefined;
|
|
2654
2760
|
apiOptions: Readonly<Readonly<{
|
|
2761
|
+
/**
|
|
2762
|
+
* An error message to display in the graph area, or true if the
|
|
2763
|
+
* graph is valid.
|
|
2764
|
+
*/
|
|
2655
2765
|
isArticle?: boolean | undefined;
|
|
2656
2766
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2657
2767
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2669,12 +2779,12 @@ declare const InteractiveGraph: {
|
|
|
2669
2779
|
baseElements?: {
|
|
2670
2780
|
Link: React.ComponentType<any>;
|
|
2671
2781
|
} | undefined;
|
|
2672
|
-
imagePreloader?: ((dimensions: import("
|
|
2782
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2673
2783
|
trackInteraction?: ((args: {
|
|
2674
2784
|
type: string;
|
|
2675
2785
|
id: string;
|
|
2676
2786
|
correct?: boolean | undefined;
|
|
2677
|
-
} & Partial<import("
|
|
2787
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2678
2788
|
customKeypad?: boolean | undefined;
|
|
2679
2789
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2680
2790
|
isMobile?: boolean | undefined;
|
|
@@ -2729,8 +2839,8 @@ declare const InteractiveGraph: {
|
|
|
2729
2839
|
questionCompleted?: boolean | undefined;
|
|
2730
2840
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2731
2841
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2732
|
-
findWidgets: (arg1: import("
|
|
2733
|
-
reviewModeRubric: import("
|
|
2842
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2843
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2734
2844
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2735
2845
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2736
2846
|
isLastUsedWidget: boolean;
|
|
@@ -2743,6 +2853,10 @@ declare const InteractiveGraph: {
|
|
|
2743
2853
|
static: boolean | null | undefined;
|
|
2744
2854
|
problemNum: number | null | undefined;
|
|
2745
2855
|
apiOptions: Readonly<Readonly<{
|
|
2856
|
+
/**
|
|
2857
|
+
* An error message to display in the graph area, or true if the
|
|
2858
|
+
* graph is valid.
|
|
2859
|
+
*/
|
|
2746
2860
|
isArticle?: boolean | undefined;
|
|
2747
2861
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2748
2862
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2760,12 +2874,12 @@ declare const InteractiveGraph: {
|
|
|
2760
2874
|
baseElements?: {
|
|
2761
2875
|
Link: React.ComponentType<any>;
|
|
2762
2876
|
} | undefined;
|
|
2763
|
-
imagePreloader?: ((dimensions: import("
|
|
2877
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2764
2878
|
trackInteraction?: ((args: {
|
|
2765
2879
|
type: string;
|
|
2766
2880
|
id: string;
|
|
2767
2881
|
correct?: boolean | undefined;
|
|
2768
|
-
} & Partial<import("
|
|
2882
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2769
2883
|
customKeypad?: boolean | undefined;
|
|
2770
2884
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2771
2885
|
isMobile?: boolean | undefined;
|
|
@@ -2820,8 +2934,8 @@ declare const InteractiveGraph: {
|
|
|
2820
2934
|
questionCompleted?: boolean | undefined;
|
|
2821
2935
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2822
2936
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2823
|
-
findWidgets: (arg1: import("
|
|
2824
|
-
reviewModeRubric: import("
|
|
2937
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
2938
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2825
2939
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2826
2940
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2827
2941
|
isLastUsedWidget: boolean;
|
|
@@ -2834,6 +2948,10 @@ declare const InteractiveGraph: {
|
|
|
2834
2948
|
static: boolean | null | undefined;
|
|
2835
2949
|
problemNum: number | null | undefined;
|
|
2836
2950
|
apiOptions: Readonly<Readonly<{
|
|
2951
|
+
/**
|
|
2952
|
+
* An error message to display in the graph area, or true if the
|
|
2953
|
+
* graph is valid.
|
|
2954
|
+
*/
|
|
2837
2955
|
isArticle?: boolean | undefined;
|
|
2838
2956
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2839
2957
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2851,12 +2969,12 @@ declare const InteractiveGraph: {
|
|
|
2851
2969
|
baseElements?: {
|
|
2852
2970
|
Link: React.ComponentType<any>;
|
|
2853
2971
|
} | undefined;
|
|
2854
|
-
imagePreloader?: ((dimensions: import("
|
|
2972
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2855
2973
|
trackInteraction?: ((args: {
|
|
2856
2974
|
type: string;
|
|
2857
2975
|
id: string;
|
|
2858
2976
|
correct?: boolean | undefined;
|
|
2859
|
-
} & Partial<import("
|
|
2977
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2860
2978
|
customKeypad?: boolean | undefined;
|
|
2861
2979
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2862
2980
|
isMobile?: boolean | undefined;
|
|
@@ -2911,8 +3029,8 @@ declare const InteractiveGraph: {
|
|
|
2911
3029
|
questionCompleted?: boolean | undefined;
|
|
2912
3030
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2913
3031
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
2914
|
-
findWidgets: (arg1: import("
|
|
2915
|
-
reviewModeRubric: import("
|
|
3032
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3033
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
2916
3034
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
2917
3035
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
2918
3036
|
isLastUsedWidget: boolean;
|
|
@@ -2920,9 +3038,9 @@ declare const InteractiveGraph: {
|
|
|
2920
3038
|
containerSizeClass: SizingUtils.SizeClass;
|
|
2921
3039
|
}>, nextState: Readonly<any>, nextContext: any): void;
|
|
2922
3040
|
}>;
|
|
2923
|
-
mafsRef: React.RefObject<import("
|
|
3041
|
+
mafsRef: React.RefObject<import("../../../../perseus/src/renderer").Widget>;
|
|
2924
3042
|
getUserInput: (() => any) | undefined;
|
|
2925
|
-
simpleValidate(rubric: import("
|
|
3043
|
+
simpleValidate(rubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric): import("@khanacademy/perseus").PerseusScore;
|
|
2926
3044
|
render(): React.JSX.Element;
|
|
2927
3045
|
context: unknown;
|
|
2928
3046
|
setState<K_1 extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -2933,6 +3051,10 @@ declare const InteractiveGraph: {
|
|
|
2933
3051
|
static: boolean | null | undefined;
|
|
2934
3052
|
problemNum: number | null | undefined;
|
|
2935
3053
|
apiOptions: Readonly<Readonly<{
|
|
3054
|
+
/**
|
|
3055
|
+
* An error message to display in the graph area, or true if the
|
|
3056
|
+
* graph is valid.
|
|
3057
|
+
*/
|
|
2936
3058
|
isArticle?: boolean | undefined;
|
|
2937
3059
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
2938
3060
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -2950,12 +3072,12 @@ declare const InteractiveGraph: {
|
|
|
2950
3072
|
baseElements?: {
|
|
2951
3073
|
Link: React.ComponentType<any>;
|
|
2952
3074
|
} | undefined;
|
|
2953
|
-
imagePreloader?: ((dimensions: import("
|
|
3075
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2954
3076
|
trackInteraction?: ((args: {
|
|
2955
3077
|
type: string;
|
|
2956
3078
|
id: string;
|
|
2957
3079
|
correct?: boolean | undefined;
|
|
2958
|
-
} & Partial<import("
|
|
3080
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2959
3081
|
customKeypad?: boolean | undefined;
|
|
2960
3082
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2961
3083
|
isMobile?: boolean | undefined;
|
|
@@ -3010,8 +3132,8 @@ declare const InteractiveGraph: {
|
|
|
3010
3132
|
questionCompleted?: boolean | undefined;
|
|
3011
3133
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3012
3134
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3013
|
-
findWidgets: (arg1: import("
|
|
3014
|
-
reviewModeRubric: import("
|
|
3135
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3136
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3015
3137
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3016
3138
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3017
3139
|
isLastUsedWidget: boolean;
|
|
@@ -3029,6 +3151,10 @@ declare const InteractiveGraph: {
|
|
|
3029
3151
|
static: boolean | null | undefined;
|
|
3030
3152
|
problemNum: number | null | undefined;
|
|
3031
3153
|
apiOptions: Readonly<Readonly<{
|
|
3154
|
+
/**
|
|
3155
|
+
* An error message to display in the graph area, or true if the
|
|
3156
|
+
* graph is valid.
|
|
3157
|
+
*/
|
|
3032
3158
|
isArticle?: boolean | undefined;
|
|
3033
3159
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3034
3160
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3046,12 +3172,12 @@ declare const InteractiveGraph: {
|
|
|
3046
3172
|
baseElements?: {
|
|
3047
3173
|
Link: React.ComponentType<any>;
|
|
3048
3174
|
} | undefined;
|
|
3049
|
-
imagePreloader?: ((dimensions: import("
|
|
3175
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3050
3176
|
trackInteraction?: ((args: {
|
|
3051
3177
|
type: string;
|
|
3052
3178
|
id: string;
|
|
3053
3179
|
correct?: boolean | undefined;
|
|
3054
|
-
} & Partial<import("
|
|
3180
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3055
3181
|
customKeypad?: boolean | undefined;
|
|
3056
3182
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3057
3183
|
isMobile?: boolean | undefined;
|
|
@@ -3106,8 +3232,8 @@ declare const InteractiveGraph: {
|
|
|
3106
3232
|
questionCompleted?: boolean | undefined;
|
|
3107
3233
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3108
3234
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3109
|
-
findWidgets: (arg1: import("
|
|
3110
|
-
reviewModeRubric: import("
|
|
3235
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3236
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3111
3237
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3112
3238
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3113
3239
|
isLastUsedWidget: boolean;
|
|
@@ -3122,6 +3248,10 @@ declare const InteractiveGraph: {
|
|
|
3122
3248
|
static: boolean | null | undefined;
|
|
3123
3249
|
problemNum: number | null | undefined;
|
|
3124
3250
|
apiOptions: Readonly<Readonly<{
|
|
3251
|
+
/**
|
|
3252
|
+
* An error message to display in the graph area, or true if the
|
|
3253
|
+
* graph is valid.
|
|
3254
|
+
*/
|
|
3125
3255
|
isArticle?: boolean | undefined;
|
|
3126
3256
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3127
3257
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3139,12 +3269,12 @@ declare const InteractiveGraph: {
|
|
|
3139
3269
|
baseElements?: {
|
|
3140
3270
|
Link: React.ComponentType<any>;
|
|
3141
3271
|
} | undefined;
|
|
3142
|
-
imagePreloader?: ((dimensions: import("
|
|
3272
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3143
3273
|
trackInteraction?: ((args: {
|
|
3144
3274
|
type: string;
|
|
3145
3275
|
id: string;
|
|
3146
3276
|
correct?: boolean | undefined;
|
|
3147
|
-
} & Partial<import("
|
|
3277
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3148
3278
|
customKeypad?: boolean | undefined;
|
|
3149
3279
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3150
3280
|
isMobile?: boolean | undefined;
|
|
@@ -3199,8 +3329,8 @@ declare const InteractiveGraph: {
|
|
|
3199
3329
|
questionCompleted?: boolean | undefined;
|
|
3200
3330
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3201
3331
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3202
|
-
findWidgets: (arg1: import("
|
|
3203
|
-
reviewModeRubric: import("
|
|
3332
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3333
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3204
3334
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3205
3335
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3206
3336
|
isLastUsedWidget: boolean;
|
|
@@ -3213,6 +3343,10 @@ declare const InteractiveGraph: {
|
|
|
3213
3343
|
static: boolean | null | undefined;
|
|
3214
3344
|
problemNum: number | null | undefined;
|
|
3215
3345
|
apiOptions: Readonly<Readonly<{
|
|
3346
|
+
/**
|
|
3347
|
+
* An error message to display in the graph area, or true if the
|
|
3348
|
+
* graph is valid.
|
|
3349
|
+
*/
|
|
3216
3350
|
isArticle?: boolean | undefined;
|
|
3217
3351
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3218
3352
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3230,12 +3364,12 @@ declare const InteractiveGraph: {
|
|
|
3230
3364
|
baseElements?: {
|
|
3231
3365
|
Link: React.ComponentType<any>;
|
|
3232
3366
|
} | undefined;
|
|
3233
|
-
imagePreloader?: ((dimensions: import("
|
|
3367
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3234
3368
|
trackInteraction?: ((args: {
|
|
3235
3369
|
type: string;
|
|
3236
3370
|
id: string;
|
|
3237
3371
|
correct?: boolean | undefined;
|
|
3238
|
-
} & Partial<import("
|
|
3372
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3239
3373
|
customKeypad?: boolean | undefined;
|
|
3240
3374
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3241
3375
|
isMobile?: boolean | undefined;
|
|
@@ -3290,8 +3424,8 @@ declare const InteractiveGraph: {
|
|
|
3290
3424
|
questionCompleted?: boolean | undefined;
|
|
3291
3425
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3292
3426
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3293
|
-
findWidgets: (arg1: import("
|
|
3294
|
-
reviewModeRubric: import("
|
|
3427
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3428
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3295
3429
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3296
3430
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3297
3431
|
isLastUsedWidget: boolean;
|
|
@@ -3306,6 +3440,10 @@ declare const InteractiveGraph: {
|
|
|
3306
3440
|
static: boolean | null | undefined;
|
|
3307
3441
|
problemNum: number | null | undefined;
|
|
3308
3442
|
apiOptions: Readonly<Readonly<{
|
|
3443
|
+
/**
|
|
3444
|
+
* An error message to display in the graph area, or true if the
|
|
3445
|
+
* graph is valid.
|
|
3446
|
+
*/
|
|
3309
3447
|
isArticle?: boolean | undefined;
|
|
3310
3448
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3311
3449
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3323,12 +3461,12 @@ declare const InteractiveGraph: {
|
|
|
3323
3461
|
baseElements?: {
|
|
3324
3462
|
Link: React.ComponentType<any>;
|
|
3325
3463
|
} | undefined;
|
|
3326
|
-
imagePreloader?: ((dimensions: import("
|
|
3464
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3327
3465
|
trackInteraction?: ((args: {
|
|
3328
3466
|
type: string;
|
|
3329
3467
|
id: string;
|
|
3330
3468
|
correct?: boolean | undefined;
|
|
3331
|
-
} & Partial<import("
|
|
3469
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3332
3470
|
customKeypad?: boolean | undefined;
|
|
3333
3471
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3334
3472
|
isMobile?: boolean | undefined;
|
|
@@ -3383,8 +3521,8 @@ declare const InteractiveGraph: {
|
|
|
3383
3521
|
questionCompleted?: boolean | undefined;
|
|
3384
3522
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3385
3523
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3386
|
-
findWidgets: (arg1: import("
|
|
3387
|
-
reviewModeRubric: import("
|
|
3524
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3525
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3388
3526
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3389
3527
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3390
3528
|
isLastUsedWidget: boolean;
|
|
@@ -3397,6 +3535,10 @@ declare const InteractiveGraph: {
|
|
|
3397
3535
|
static: boolean | null | undefined;
|
|
3398
3536
|
problemNum: number | null | undefined;
|
|
3399
3537
|
apiOptions: Readonly<Readonly<{
|
|
3538
|
+
/**
|
|
3539
|
+
* An error message to display in the graph area, or true if the
|
|
3540
|
+
* graph is valid.
|
|
3541
|
+
*/
|
|
3400
3542
|
isArticle?: boolean | undefined;
|
|
3401
3543
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3402
3544
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3414,12 +3556,12 @@ declare const InteractiveGraph: {
|
|
|
3414
3556
|
baseElements?: {
|
|
3415
3557
|
Link: React.ComponentType<any>;
|
|
3416
3558
|
} | undefined;
|
|
3417
|
-
imagePreloader?: ((dimensions: import("
|
|
3559
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3418
3560
|
trackInteraction?: ((args: {
|
|
3419
3561
|
type: string;
|
|
3420
3562
|
id: string;
|
|
3421
3563
|
correct?: boolean | undefined;
|
|
3422
|
-
} & Partial<import("
|
|
3564
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3423
3565
|
customKeypad?: boolean | undefined;
|
|
3424
3566
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3425
3567
|
isMobile?: boolean | undefined;
|
|
@@ -3474,8 +3616,8 @@ declare const InteractiveGraph: {
|
|
|
3474
3616
|
questionCompleted?: boolean | undefined;
|
|
3475
3617
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3476
3618
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3477
|
-
findWidgets: (arg1: import("
|
|
3478
|
-
reviewModeRubric: import("
|
|
3619
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3620
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3479
3621
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3480
3622
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3481
3623
|
isLastUsedWidget: boolean;
|
|
@@ -3488,6 +3630,10 @@ declare const InteractiveGraph: {
|
|
|
3488
3630
|
static: boolean | null | undefined;
|
|
3489
3631
|
problemNum: number | null | undefined;
|
|
3490
3632
|
apiOptions: Readonly<Readonly<{
|
|
3633
|
+
/**
|
|
3634
|
+
* An error message to display in the graph area, or true if the
|
|
3635
|
+
* graph is valid.
|
|
3636
|
+
*/
|
|
3491
3637
|
isArticle?: boolean | undefined;
|
|
3492
3638
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3493
3639
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3505,12 +3651,12 @@ declare const InteractiveGraph: {
|
|
|
3505
3651
|
baseElements?: {
|
|
3506
3652
|
Link: React.ComponentType<any>;
|
|
3507
3653
|
} | undefined;
|
|
3508
|
-
imagePreloader?: ((dimensions: import("
|
|
3654
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3509
3655
|
trackInteraction?: ((args: {
|
|
3510
3656
|
type: string;
|
|
3511
3657
|
id: string;
|
|
3512
3658
|
correct?: boolean | undefined;
|
|
3513
|
-
} & Partial<import("
|
|
3659
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3514
3660
|
customKeypad?: boolean | undefined;
|
|
3515
3661
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3516
3662
|
isMobile?: boolean | undefined;
|
|
@@ -3565,8 +3711,8 @@ declare const InteractiveGraph: {
|
|
|
3565
3711
|
questionCompleted?: boolean | undefined;
|
|
3566
3712
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3567
3713
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3568
|
-
findWidgets: (arg1: import("
|
|
3569
|
-
reviewModeRubric: import("
|
|
3714
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3715
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3570
3716
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3571
3717
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3572
3718
|
isLastUsedWidget: boolean;
|
|
@@ -3579,6 +3725,10 @@ declare const InteractiveGraph: {
|
|
|
3579
3725
|
static: boolean | null | undefined;
|
|
3580
3726
|
problemNum: number | null | undefined;
|
|
3581
3727
|
apiOptions: Readonly<Readonly<{
|
|
3728
|
+
/**
|
|
3729
|
+
* An error message to display in the graph area, or true if the
|
|
3730
|
+
* graph is valid.
|
|
3731
|
+
*/
|
|
3582
3732
|
isArticle?: boolean | undefined;
|
|
3583
3733
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3584
3734
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3596,12 +3746,12 @@ declare const InteractiveGraph: {
|
|
|
3596
3746
|
baseElements?: {
|
|
3597
3747
|
Link: React.ComponentType<any>;
|
|
3598
3748
|
} | undefined;
|
|
3599
|
-
imagePreloader?: ((dimensions: import("
|
|
3749
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3600
3750
|
trackInteraction?: ((args: {
|
|
3601
3751
|
type: string;
|
|
3602
3752
|
id: string;
|
|
3603
3753
|
correct?: boolean | undefined;
|
|
3604
|
-
} & Partial<import("
|
|
3754
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3605
3755
|
customKeypad?: boolean | undefined;
|
|
3606
3756
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3607
3757
|
isMobile?: boolean | undefined;
|
|
@@ -3656,8 +3806,8 @@ declare const InteractiveGraph: {
|
|
|
3656
3806
|
questionCompleted?: boolean | undefined;
|
|
3657
3807
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3658
3808
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3659
|
-
findWidgets: (arg1: import("
|
|
3660
|
-
reviewModeRubric: import("
|
|
3809
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3810
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3661
3811
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3662
3812
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3663
3813
|
isLastUsedWidget: boolean;
|
|
@@ -3667,22 +3817,26 @@ declare const InteractiveGraph: {
|
|
|
3667
3817
|
};
|
|
3668
3818
|
defaultProps: {
|
|
3669
3819
|
labels: readonly string[];
|
|
3670
|
-
range: import("
|
|
3820
|
+
range: import("../../../../perseus/src/perseus-types").GraphRange;
|
|
3671
3821
|
step: [number, number];
|
|
3672
3822
|
backgroundImage: PerseusImageBackground | undefined;
|
|
3673
3823
|
markings: "none" | "grid" | "graph";
|
|
3674
3824
|
showTooltips: boolean | undefined;
|
|
3675
3825
|
showProtractor: boolean;
|
|
3676
|
-
graph:
|
|
3826
|
+
graph: PerseusGraphType;
|
|
3677
3827
|
};
|
|
3678
|
-
getQuadraticCoefficients(coords: readonly import("@khanacademy/perseus").Coord[]): import("
|
|
3679
|
-
getSinusoidCoefficients(coords: readonly import("@khanacademy/perseus").Coord[]): import("
|
|
3680
|
-
getLineCoords(graph:
|
|
3828
|
+
getQuadraticCoefficients(coords: readonly import("@khanacademy/perseus").Coord[]): import("../../../../perseus/src/util/geometry").QuadraticCoefficient;
|
|
3829
|
+
getSinusoidCoefficients(coords: readonly import("@khanacademy/perseus").Coord[]): import("../../../../perseus/src/util/geometry").SineCoefficient;
|
|
3830
|
+
getLineCoords(graph: PerseusGraphType, props: PerseusInteractiveGraphWidgetOptions & {
|
|
3681
3831
|
widgetId: string;
|
|
3682
3832
|
alignment: string | null | undefined;
|
|
3683
3833
|
static: boolean | null | undefined;
|
|
3684
3834
|
problemNum: number | null | undefined;
|
|
3685
3835
|
apiOptions: Readonly<Readonly<{
|
|
3836
|
+
/**
|
|
3837
|
+
* An error message to display in the graph area, or true if the
|
|
3838
|
+
* graph is valid.
|
|
3839
|
+
*/
|
|
3686
3840
|
isArticle?: boolean | undefined;
|
|
3687
3841
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3688
3842
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3700,12 +3854,12 @@ declare const InteractiveGraph: {
|
|
|
3700
3854
|
baseElements?: {
|
|
3701
3855
|
Link: React.ComponentType<any>;
|
|
3702
3856
|
} | undefined;
|
|
3703
|
-
imagePreloader?: ((dimensions: import("
|
|
3857
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3704
3858
|
trackInteraction?: ((args: {
|
|
3705
3859
|
type: string;
|
|
3706
3860
|
id: string;
|
|
3707
3861
|
correct?: boolean | undefined;
|
|
3708
|
-
} & Partial<import("
|
|
3862
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3709
3863
|
customKeypad?: boolean | undefined;
|
|
3710
3864
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3711
3865
|
isMobile?: boolean | undefined;
|
|
@@ -3760,20 +3914,24 @@ declare const InteractiveGraph: {
|
|
|
3760
3914
|
questionCompleted?: boolean | undefined;
|
|
3761
3915
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3762
3916
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3763
|
-
findWidgets: (arg1: import("
|
|
3764
|
-
reviewModeRubric: import("
|
|
3917
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
3918
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3765
3919
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3766
3920
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3767
3921
|
isLastUsedWidget: boolean;
|
|
3768
3922
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
3769
3923
|
containerSizeClass: SizingUtils.SizeClass;
|
|
3770
3924
|
}): readonly import("@khanacademy/perseus").Coord[];
|
|
3771
|
-
getPointCoords(graph: import("
|
|
3925
|
+
getPointCoords(graph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint, props: PerseusInteractiveGraphWidgetOptions & {
|
|
3772
3926
|
widgetId: string;
|
|
3773
3927
|
alignment: string | null | undefined;
|
|
3774
3928
|
static: boolean | null | undefined;
|
|
3775
3929
|
problemNum: number | null | undefined;
|
|
3776
3930
|
apiOptions: Readonly<Readonly<{
|
|
3931
|
+
/**
|
|
3932
|
+
* An error message to display in the graph area, or true if the
|
|
3933
|
+
* graph is valid.
|
|
3934
|
+
*/
|
|
3777
3935
|
isArticle?: boolean | undefined;
|
|
3778
3936
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3779
3937
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3791,12 +3949,12 @@ declare const InteractiveGraph: {
|
|
|
3791
3949
|
baseElements?: {
|
|
3792
3950
|
Link: React.ComponentType<any>;
|
|
3793
3951
|
} | undefined;
|
|
3794
|
-
imagePreloader?: ((dimensions: import("
|
|
3952
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3795
3953
|
trackInteraction?: ((args: {
|
|
3796
3954
|
type: string;
|
|
3797
3955
|
id: string;
|
|
3798
3956
|
correct?: boolean | undefined;
|
|
3799
|
-
} & Partial<import("
|
|
3957
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3800
3958
|
customKeypad?: boolean | undefined;
|
|
3801
3959
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3802
3960
|
isMobile?: boolean | undefined;
|
|
@@ -3851,20 +4009,24 @@ declare const InteractiveGraph: {
|
|
|
3851
4009
|
questionCompleted?: boolean | undefined;
|
|
3852
4010
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3853
4011
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3854
|
-
findWidgets: (arg1: import("
|
|
3855
|
-
reviewModeRubric: import("
|
|
4012
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4013
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3856
4014
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3857
4015
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3858
4016
|
isLastUsedWidget: boolean;
|
|
3859
4017
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
3860
4018
|
containerSizeClass: SizingUtils.SizeClass;
|
|
3861
4019
|
}): readonly import("@khanacademy/perseus").Coord[];
|
|
3862
|
-
getLinearSystemCoords(graph:
|
|
4020
|
+
getLinearSystemCoords(graph: PerseusGraphType, props: PerseusInteractiveGraphWidgetOptions & {
|
|
3863
4021
|
widgetId: string;
|
|
3864
4022
|
alignment: string | null | undefined;
|
|
3865
4023
|
static: boolean | null | undefined;
|
|
3866
4024
|
problemNum: number | null | undefined;
|
|
3867
4025
|
apiOptions: Readonly<Readonly<{
|
|
4026
|
+
/**
|
|
4027
|
+
* An error message to display in the graph area, or true if the
|
|
4028
|
+
* graph is valid.
|
|
4029
|
+
*/
|
|
3868
4030
|
isArticle?: boolean | undefined;
|
|
3869
4031
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3870
4032
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3882,12 +4044,12 @@ declare const InteractiveGraph: {
|
|
|
3882
4044
|
baseElements?: {
|
|
3883
4045
|
Link: React.ComponentType<any>;
|
|
3884
4046
|
} | undefined;
|
|
3885
|
-
imagePreloader?: ((dimensions: import("
|
|
4047
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3886
4048
|
trackInteraction?: ((args: {
|
|
3887
4049
|
type: string;
|
|
3888
4050
|
id: string;
|
|
3889
4051
|
correct?: boolean | undefined;
|
|
3890
|
-
} & Partial<import("
|
|
4052
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3891
4053
|
customKeypad?: boolean | undefined;
|
|
3892
4054
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3893
4055
|
isMobile?: boolean | undefined;
|
|
@@ -3942,20 +4104,24 @@ declare const InteractiveGraph: {
|
|
|
3942
4104
|
questionCompleted?: boolean | undefined;
|
|
3943
4105
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3944
4106
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
3945
|
-
findWidgets: (arg1: import("
|
|
3946
|
-
reviewModeRubric: import("
|
|
4107
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4108
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
3947
4109
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
3948
4110
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
3949
4111
|
isLastUsedWidget: boolean;
|
|
3950
4112
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
3951
4113
|
containerSizeClass: SizingUtils.SizeClass;
|
|
3952
4114
|
}): readonly (readonly import("@khanacademy/perseus").Coord[])[];
|
|
3953
|
-
getPolygonCoords(graph:
|
|
4115
|
+
getPolygonCoords(graph: PerseusGraphType, props: PerseusInteractiveGraphWidgetOptions & {
|
|
3954
4116
|
widgetId: string;
|
|
3955
4117
|
alignment: string | null | undefined;
|
|
3956
4118
|
static: boolean | null | undefined;
|
|
3957
4119
|
problemNum: number | null | undefined;
|
|
3958
4120
|
apiOptions: Readonly<Readonly<{
|
|
4121
|
+
/**
|
|
4122
|
+
* An error message to display in the graph area, or true if the
|
|
4123
|
+
* graph is valid.
|
|
4124
|
+
*/
|
|
3959
4125
|
isArticle?: boolean | undefined;
|
|
3960
4126
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
3961
4127
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -3973,12 +4139,12 @@ declare const InteractiveGraph: {
|
|
|
3973
4139
|
baseElements?: {
|
|
3974
4140
|
Link: React.ComponentType<any>;
|
|
3975
4141
|
} | undefined;
|
|
3976
|
-
imagePreloader?: ((dimensions: import("
|
|
4142
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3977
4143
|
trackInteraction?: ((args: {
|
|
3978
4144
|
type: string;
|
|
3979
4145
|
id: string;
|
|
3980
4146
|
correct?: boolean | undefined;
|
|
3981
|
-
} & Partial<import("
|
|
4147
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3982
4148
|
customKeypad?: boolean | undefined;
|
|
3983
4149
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3984
4150
|
isMobile?: boolean | undefined;
|
|
@@ -4033,20 +4199,24 @@ declare const InteractiveGraph: {
|
|
|
4033
4199
|
questionCompleted?: boolean | undefined;
|
|
4034
4200
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4035
4201
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4036
|
-
findWidgets: (arg1: import("
|
|
4037
|
-
reviewModeRubric: import("
|
|
4202
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4203
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4038
4204
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4039
4205
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4040
4206
|
isLastUsedWidget: boolean;
|
|
4041
4207
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
4042
4208
|
containerSizeClass: SizingUtils.SizeClass;
|
|
4043
4209
|
}): readonly import("@khanacademy/perseus").Coord[];
|
|
4044
|
-
getSegmentCoords(graph: import("
|
|
4210
|
+
getSegmentCoords(graph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, props: PerseusInteractiveGraphWidgetOptions & {
|
|
4045
4211
|
widgetId: string;
|
|
4046
4212
|
alignment: string | null | undefined;
|
|
4047
4213
|
static: boolean | null | undefined;
|
|
4048
4214
|
problemNum: number | null | undefined;
|
|
4049
4215
|
apiOptions: Readonly<Readonly<{
|
|
4216
|
+
/**
|
|
4217
|
+
* An error message to display in the graph area, or true if the
|
|
4218
|
+
* graph is valid.
|
|
4219
|
+
*/
|
|
4050
4220
|
isArticle?: boolean | undefined;
|
|
4051
4221
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4052
4222
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4064,12 +4234,12 @@ declare const InteractiveGraph: {
|
|
|
4064
4234
|
baseElements?: {
|
|
4065
4235
|
Link: React.ComponentType<any>;
|
|
4066
4236
|
} | undefined;
|
|
4067
|
-
imagePreloader?: ((dimensions: import("
|
|
4237
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4068
4238
|
trackInteraction?: ((args: {
|
|
4069
4239
|
type: string;
|
|
4070
4240
|
id: string;
|
|
4071
4241
|
correct?: boolean | undefined;
|
|
4072
|
-
} & Partial<import("
|
|
4242
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4073
4243
|
customKeypad?: boolean | undefined;
|
|
4074
4244
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4075
4245
|
isMobile?: boolean | undefined;
|
|
@@ -4124,20 +4294,24 @@ declare const InteractiveGraph: {
|
|
|
4124
4294
|
questionCompleted?: boolean | undefined;
|
|
4125
4295
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4126
4296
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4127
|
-
findWidgets: (arg1: import("
|
|
4128
|
-
reviewModeRubric: import("
|
|
4297
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4298
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4129
4299
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4130
4300
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4131
4301
|
isLastUsedWidget: boolean;
|
|
4132
4302
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
4133
4303
|
containerSizeClass: SizingUtils.SizeClass;
|
|
4134
4304
|
}): readonly (readonly import("@khanacademy/perseus").Coord[])[];
|
|
4135
|
-
getAngleCoords(graph: import("
|
|
4305
|
+
getAngleCoords(graph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle, props: PerseusInteractiveGraphWidgetOptions & {
|
|
4136
4306
|
widgetId: string;
|
|
4137
4307
|
alignment: string | null | undefined;
|
|
4138
4308
|
static: boolean | null | undefined;
|
|
4139
4309
|
problemNum: number | null | undefined;
|
|
4140
4310
|
apiOptions: Readonly<Readonly<{
|
|
4311
|
+
/**
|
|
4312
|
+
* An error message to display in the graph area, or true if the
|
|
4313
|
+
* graph is valid.
|
|
4314
|
+
*/
|
|
4141
4315
|
isArticle?: boolean | undefined;
|
|
4142
4316
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4143
4317
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4155,12 +4329,12 @@ declare const InteractiveGraph: {
|
|
|
4155
4329
|
baseElements?: {
|
|
4156
4330
|
Link: React.ComponentType<any>;
|
|
4157
4331
|
} | undefined;
|
|
4158
|
-
imagePreloader?: ((dimensions: import("
|
|
4332
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4159
4333
|
trackInteraction?: ((args: {
|
|
4160
4334
|
type: string;
|
|
4161
4335
|
id: string;
|
|
4162
4336
|
correct?: boolean | undefined;
|
|
4163
|
-
} & Partial<import("
|
|
4337
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4164
4338
|
customKeypad?: boolean | undefined;
|
|
4165
4339
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4166
4340
|
isMobile?: boolean | undefined;
|
|
@@ -4215,21 +4389,25 @@ declare const InteractiveGraph: {
|
|
|
4215
4389
|
questionCompleted?: boolean | undefined;
|
|
4216
4390
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4217
4391
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4218
|
-
findWidgets: (arg1: import("
|
|
4219
|
-
reviewModeRubric: import("
|
|
4392
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4393
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4220
4394
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4221
4395
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4222
4396
|
isLastUsedWidget: boolean;
|
|
4223
4397
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
4224
4398
|
containerSizeClass: SizingUtils.SizeClass;
|
|
4225
4399
|
}): [import("@khanacademy/perseus").Coord, import("@khanacademy/perseus").Coord, import("@khanacademy/perseus").Coord];
|
|
4226
|
-
normalizeCoords(coordsList: readonly import("@khanacademy/perseus").Coord[], ranges: [import("
|
|
4400
|
+
normalizeCoords(coordsList: readonly import("@khanacademy/perseus").Coord[], ranges: [import("../../../../perseus/src/util/geometry").Range, import("../../../../perseus/src/util/geometry").Range]): readonly import("@khanacademy/perseus").Coord[];
|
|
4227
4401
|
getEquationString(props: PerseusInteractiveGraphWidgetOptions & {
|
|
4228
4402
|
widgetId: string;
|
|
4229
4403
|
alignment: string | null | undefined;
|
|
4230
4404
|
static: boolean | null | undefined;
|
|
4231
4405
|
problemNum: number | null | undefined;
|
|
4232
4406
|
apiOptions: Readonly<Readonly<{
|
|
4407
|
+
/**
|
|
4408
|
+
* An error message to display in the graph area, or true if the
|
|
4409
|
+
* graph is valid.
|
|
4410
|
+
*/
|
|
4233
4411
|
isArticle?: boolean | undefined;
|
|
4234
4412
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4235
4413
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4247,12 +4425,12 @@ declare const InteractiveGraph: {
|
|
|
4247
4425
|
baseElements?: {
|
|
4248
4426
|
Link: React.ComponentType<any>;
|
|
4249
4427
|
} | undefined;
|
|
4250
|
-
imagePreloader?: ((dimensions: import("
|
|
4428
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4251
4429
|
trackInteraction?: ((args: {
|
|
4252
4430
|
type: string;
|
|
4253
4431
|
id: string;
|
|
4254
4432
|
correct?: boolean | undefined;
|
|
4255
|
-
} & Partial<import("
|
|
4433
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4256
4434
|
customKeypad?: boolean | undefined;
|
|
4257
4435
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4258
4436
|
isMobile?: boolean | undefined;
|
|
@@ -4307,8 +4485,8 @@ declare const InteractiveGraph: {
|
|
|
4307
4485
|
questionCompleted?: boolean | undefined;
|
|
4308
4486
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4309
4487
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4310
|
-
findWidgets: (arg1: import("
|
|
4311
|
-
reviewModeRubric: import("
|
|
4488
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4489
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4312
4490
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4313
4491
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4314
4492
|
isLastUsedWidget: boolean;
|
|
@@ -4321,6 +4499,10 @@ declare const InteractiveGraph: {
|
|
|
4321
4499
|
static: boolean | null | undefined;
|
|
4322
4500
|
problemNum: number | null | undefined;
|
|
4323
4501
|
apiOptions: Readonly<Readonly<{
|
|
4502
|
+
/**
|
|
4503
|
+
* An error message to display in the graph area, or true if the
|
|
4504
|
+
* graph is valid.
|
|
4505
|
+
*/
|
|
4324
4506
|
isArticle?: boolean | undefined;
|
|
4325
4507
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4326
4508
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4338,12 +4520,12 @@ declare const InteractiveGraph: {
|
|
|
4338
4520
|
baseElements?: {
|
|
4339
4521
|
Link: React.ComponentType<any>;
|
|
4340
4522
|
} | undefined;
|
|
4341
|
-
imagePreloader?: ((dimensions: import("
|
|
4523
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4342
4524
|
trackInteraction?: ((args: {
|
|
4343
4525
|
type: string;
|
|
4344
4526
|
id: string;
|
|
4345
4527
|
correct?: boolean | undefined;
|
|
4346
|
-
} & Partial<import("
|
|
4528
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4347
4529
|
customKeypad?: boolean | undefined;
|
|
4348
4530
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4349
4531
|
isMobile?: boolean | undefined;
|
|
@@ -4398,8 +4580,8 @@ declare const InteractiveGraph: {
|
|
|
4398
4580
|
questionCompleted?: boolean | undefined;
|
|
4399
4581
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4400
4582
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4401
|
-
findWidgets: (arg1: import("
|
|
4402
|
-
reviewModeRubric: import("
|
|
4583
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4584
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4403
4585
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4404
4586
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4405
4587
|
isLastUsedWidget: boolean;
|
|
@@ -4412,6 +4594,10 @@ declare const InteractiveGraph: {
|
|
|
4412
4594
|
static: boolean | null | undefined;
|
|
4413
4595
|
problemNum: number | null | undefined;
|
|
4414
4596
|
apiOptions: Readonly<Readonly<{
|
|
4597
|
+
/**
|
|
4598
|
+
* An error message to display in the graph area, or true if the
|
|
4599
|
+
* graph is valid.
|
|
4600
|
+
*/
|
|
4415
4601
|
isArticle?: boolean | undefined;
|
|
4416
4602
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4417
4603
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4429,12 +4615,12 @@ declare const InteractiveGraph: {
|
|
|
4429
4615
|
baseElements?: {
|
|
4430
4616
|
Link: React.ComponentType<any>;
|
|
4431
4617
|
} | undefined;
|
|
4432
|
-
imagePreloader?: ((dimensions: import("
|
|
4618
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4433
4619
|
trackInteraction?: ((args: {
|
|
4434
4620
|
type: string;
|
|
4435
4621
|
id: string;
|
|
4436
4622
|
correct?: boolean | undefined;
|
|
4437
|
-
} & Partial<import("
|
|
4623
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4438
4624
|
customKeypad?: boolean | undefined;
|
|
4439
4625
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4440
4626
|
isMobile?: boolean | undefined;
|
|
@@ -4489,8 +4675,8 @@ declare const InteractiveGraph: {
|
|
|
4489
4675
|
questionCompleted?: boolean | undefined;
|
|
4490
4676
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4491
4677
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4492
|
-
findWidgets: (arg1: import("
|
|
4493
|
-
reviewModeRubric: import("
|
|
4678
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4679
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4494
4680
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4495
4681
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4496
4682
|
isLastUsedWidget: boolean;
|
|
@@ -4503,6 +4689,10 @@ declare const InteractiveGraph: {
|
|
|
4503
4689
|
static: boolean | null | undefined;
|
|
4504
4690
|
problemNum: number | null | undefined;
|
|
4505
4691
|
apiOptions: Readonly<Readonly<{
|
|
4692
|
+
/**
|
|
4693
|
+
* An error message to display in the graph area, or true if the
|
|
4694
|
+
* graph is valid.
|
|
4695
|
+
*/
|
|
4506
4696
|
isArticle?: boolean | undefined;
|
|
4507
4697
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4508
4698
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4520,12 +4710,12 @@ declare const InteractiveGraph: {
|
|
|
4520
4710
|
baseElements?: {
|
|
4521
4711
|
Link: React.ComponentType<any>;
|
|
4522
4712
|
} | undefined;
|
|
4523
|
-
imagePreloader?: ((dimensions: import("
|
|
4713
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4524
4714
|
trackInteraction?: ((args: {
|
|
4525
4715
|
type: string;
|
|
4526
4716
|
id: string;
|
|
4527
4717
|
correct?: boolean | undefined;
|
|
4528
|
-
} & Partial<import("
|
|
4718
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4529
4719
|
customKeypad?: boolean | undefined;
|
|
4530
4720
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4531
4721
|
isMobile?: boolean | undefined;
|
|
@@ -4580,20 +4770,24 @@ declare const InteractiveGraph: {
|
|
|
4580
4770
|
questionCompleted?: boolean | undefined;
|
|
4581
4771
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4582
4772
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4583
|
-
findWidgets: (arg1: import("
|
|
4584
|
-
reviewModeRubric: import("
|
|
4773
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4774
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4585
4775
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4586
4776
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4587
4777
|
isLastUsedWidget: boolean;
|
|
4588
4778
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
4589
4779
|
containerSizeClass: SizingUtils.SizeClass;
|
|
4590
|
-
}): import("
|
|
4780
|
+
}): import("../../../../perseus/src/util/geometry").QuadraticCoefficient;
|
|
4591
4781
|
defaultQuadraticCoords(props: PerseusInteractiveGraphWidgetOptions & {
|
|
4592
4782
|
widgetId: string;
|
|
4593
4783
|
alignment: string | null | undefined;
|
|
4594
4784
|
static: boolean | null | undefined;
|
|
4595
4785
|
problemNum: number | null | undefined;
|
|
4596
4786
|
apiOptions: Readonly<Readonly<{
|
|
4787
|
+
/**
|
|
4788
|
+
* An error message to display in the graph area, or true if the
|
|
4789
|
+
* graph is valid.
|
|
4790
|
+
*/
|
|
4597
4791
|
isArticle?: boolean | undefined;
|
|
4598
4792
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4599
4793
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4611,12 +4805,12 @@ declare const InteractiveGraph: {
|
|
|
4611
4805
|
baseElements?: {
|
|
4612
4806
|
Link: React.ComponentType<any>;
|
|
4613
4807
|
} | undefined;
|
|
4614
|
-
imagePreloader?: ((dimensions: import("
|
|
4808
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4615
4809
|
trackInteraction?: ((args: {
|
|
4616
4810
|
type: string;
|
|
4617
4811
|
id: string;
|
|
4618
4812
|
correct?: boolean | undefined;
|
|
4619
|
-
} & Partial<import("
|
|
4813
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4620
4814
|
customKeypad?: boolean | undefined;
|
|
4621
4815
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4622
4816
|
isMobile?: boolean | undefined;
|
|
@@ -4671,8 +4865,8 @@ declare const InteractiveGraph: {
|
|
|
4671
4865
|
questionCompleted?: boolean | undefined;
|
|
4672
4866
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4673
4867
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4674
|
-
findWidgets: (arg1: import("
|
|
4675
|
-
reviewModeRubric: import("
|
|
4868
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4869
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4676
4870
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4677
4871
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4678
4872
|
isLastUsedWidget: boolean;
|
|
@@ -4685,6 +4879,10 @@ declare const InteractiveGraph: {
|
|
|
4685
4879
|
static: boolean | null | undefined;
|
|
4686
4880
|
problemNum: number | null | undefined;
|
|
4687
4881
|
apiOptions: Readonly<Readonly<{
|
|
4882
|
+
/**
|
|
4883
|
+
* An error message to display in the graph area, or true if the
|
|
4884
|
+
* graph is valid.
|
|
4885
|
+
*/
|
|
4688
4886
|
isArticle?: boolean | undefined;
|
|
4689
4887
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4690
4888
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4702,12 +4900,12 @@ declare const InteractiveGraph: {
|
|
|
4702
4900
|
baseElements?: {
|
|
4703
4901
|
Link: React.ComponentType<any>;
|
|
4704
4902
|
} | undefined;
|
|
4705
|
-
imagePreloader?: ((dimensions: import("
|
|
4903
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4706
4904
|
trackInteraction?: ((args: {
|
|
4707
4905
|
type: string;
|
|
4708
4906
|
id: string;
|
|
4709
4907
|
correct?: boolean | undefined;
|
|
4710
|
-
} & Partial<import("
|
|
4908
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4711
4909
|
customKeypad?: boolean | undefined;
|
|
4712
4910
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4713
4911
|
isMobile?: boolean | undefined;
|
|
@@ -4762,8 +4960,8 @@ declare const InteractiveGraph: {
|
|
|
4762
4960
|
questionCompleted?: boolean | undefined;
|
|
4763
4961
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4764
4962
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4765
|
-
findWidgets: (arg1: import("
|
|
4766
|
-
reviewModeRubric: import("
|
|
4963
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
4964
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4767
4965
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4768
4966
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4769
4967
|
isLastUsedWidget: boolean;
|
|
@@ -4776,6 +4974,10 @@ declare const InteractiveGraph: {
|
|
|
4776
4974
|
static: boolean | null | undefined;
|
|
4777
4975
|
problemNum: number | null | undefined;
|
|
4778
4976
|
apiOptions: Readonly<Readonly<{
|
|
4977
|
+
/**
|
|
4978
|
+
* An error message to display in the graph area, or true if the
|
|
4979
|
+
* graph is valid.
|
|
4980
|
+
*/
|
|
4779
4981
|
isArticle?: boolean | undefined;
|
|
4780
4982
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4781
4983
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4793,12 +4995,12 @@ declare const InteractiveGraph: {
|
|
|
4793
4995
|
baseElements?: {
|
|
4794
4996
|
Link: React.ComponentType<any>;
|
|
4795
4997
|
} | undefined;
|
|
4796
|
-
imagePreloader?: ((dimensions: import("
|
|
4998
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4797
4999
|
trackInteraction?: ((args: {
|
|
4798
5000
|
type: string;
|
|
4799
5001
|
id: string;
|
|
4800
5002
|
correct?: boolean | undefined;
|
|
4801
|
-
} & Partial<import("
|
|
5003
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4802
5004
|
customKeypad?: boolean | undefined;
|
|
4803
5005
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4804
5006
|
isMobile?: boolean | undefined;
|
|
@@ -4853,20 +5055,24 @@ declare const InteractiveGraph: {
|
|
|
4853
5055
|
questionCompleted?: boolean | undefined;
|
|
4854
5056
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4855
5057
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4856
|
-
findWidgets: (arg1: import("
|
|
4857
|
-
reviewModeRubric: import("
|
|
5058
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5059
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4858
5060
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4859
5061
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4860
5062
|
isLastUsedWidget: boolean;
|
|
4861
5063
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
4862
5064
|
containerSizeClass: SizingUtils.SizeClass;
|
|
4863
|
-
}): import("
|
|
5065
|
+
}): import("../../../../perseus/src/util/geometry").SineCoefficient;
|
|
4864
5066
|
defaultSinusoidCoords(props: PerseusInteractiveGraphWidgetOptions & {
|
|
4865
5067
|
widgetId: string;
|
|
4866
5068
|
alignment: string | null | undefined;
|
|
4867
5069
|
static: boolean | null | undefined;
|
|
4868
5070
|
problemNum: number | null | undefined;
|
|
4869
5071
|
apiOptions: Readonly<Readonly<{
|
|
5072
|
+
/**
|
|
5073
|
+
* An error message to display in the graph area, or true if the
|
|
5074
|
+
* graph is valid.
|
|
5075
|
+
*/
|
|
4870
5076
|
isArticle?: boolean | undefined;
|
|
4871
5077
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4872
5078
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4884,12 +5090,12 @@ declare const InteractiveGraph: {
|
|
|
4884
5090
|
baseElements?: {
|
|
4885
5091
|
Link: React.ComponentType<any>;
|
|
4886
5092
|
} | undefined;
|
|
4887
|
-
imagePreloader?: ((dimensions: import("
|
|
5093
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4888
5094
|
trackInteraction?: ((args: {
|
|
4889
5095
|
type: string;
|
|
4890
5096
|
id: string;
|
|
4891
5097
|
correct?: boolean | undefined;
|
|
4892
|
-
} & Partial<import("
|
|
5098
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4893
5099
|
customKeypad?: boolean | undefined;
|
|
4894
5100
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4895
5101
|
isMobile?: boolean | undefined;
|
|
@@ -4944,8 +5150,8 @@ declare const InteractiveGraph: {
|
|
|
4944
5150
|
questionCompleted?: boolean | undefined;
|
|
4945
5151
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4946
5152
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
4947
|
-
findWidgets: (arg1: import("
|
|
4948
|
-
reviewModeRubric: import("
|
|
5153
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5154
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
4949
5155
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
4950
5156
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
4951
5157
|
isLastUsedWidget: boolean;
|
|
@@ -4958,6 +5164,10 @@ declare const InteractiveGraph: {
|
|
|
4958
5164
|
static: boolean | null | undefined;
|
|
4959
5165
|
problemNum: number | null | undefined;
|
|
4960
5166
|
apiOptions: Readonly<Readonly<{
|
|
5167
|
+
/**
|
|
5168
|
+
* An error message to display in the graph area, or true if the
|
|
5169
|
+
* graph is valid.
|
|
5170
|
+
*/
|
|
4961
5171
|
isArticle?: boolean | undefined;
|
|
4962
5172
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
4963
5173
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -4975,12 +5185,12 @@ declare const InteractiveGraph: {
|
|
|
4975
5185
|
baseElements?: {
|
|
4976
5186
|
Link: React.ComponentType<any>;
|
|
4977
5187
|
} | undefined;
|
|
4978
|
-
imagePreloader?: ((dimensions: import("
|
|
5188
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
4979
5189
|
trackInteraction?: ((args: {
|
|
4980
5190
|
type: string;
|
|
4981
5191
|
id: string;
|
|
4982
5192
|
correct?: boolean | undefined;
|
|
4983
|
-
} & Partial<import("
|
|
5193
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
4984
5194
|
customKeypad?: boolean | undefined;
|
|
4985
5195
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
4986
5196
|
isMobile?: boolean | undefined;
|
|
@@ -5035,8 +5245,8 @@ declare const InteractiveGraph: {
|
|
|
5035
5245
|
questionCompleted?: boolean | undefined;
|
|
5036
5246
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5037
5247
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5038
|
-
findWidgets: (arg1: import("
|
|
5039
|
-
reviewModeRubric: import("
|
|
5248
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5249
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5040
5250
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5041
5251
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5042
5252
|
isLastUsedWidget: boolean;
|
|
@@ -5049,6 +5259,10 @@ declare const InteractiveGraph: {
|
|
|
5049
5259
|
static: boolean | null | undefined;
|
|
5050
5260
|
problemNum: number | null | undefined;
|
|
5051
5261
|
apiOptions: Readonly<Readonly<{
|
|
5262
|
+
/**
|
|
5263
|
+
* An error message to display in the graph area, or true if the
|
|
5264
|
+
* graph is valid.
|
|
5265
|
+
*/
|
|
5052
5266
|
isArticle?: boolean | undefined;
|
|
5053
5267
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5054
5268
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5066,12 +5280,12 @@ declare const InteractiveGraph: {
|
|
|
5066
5280
|
baseElements?: {
|
|
5067
5281
|
Link: React.ComponentType<any>;
|
|
5068
5282
|
} | undefined;
|
|
5069
|
-
imagePreloader?: ((dimensions: import("
|
|
5283
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5070
5284
|
trackInteraction?: ((args: {
|
|
5071
5285
|
type: string;
|
|
5072
5286
|
id: string;
|
|
5073
5287
|
correct?: boolean | undefined;
|
|
5074
|
-
} & Partial<import("
|
|
5288
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5075
5289
|
customKeypad?: boolean | undefined;
|
|
5076
5290
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5077
5291
|
isMobile?: boolean | undefined;
|
|
@@ -5126,8 +5340,8 @@ declare const InteractiveGraph: {
|
|
|
5126
5340
|
questionCompleted?: boolean | undefined;
|
|
5127
5341
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5128
5342
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5129
|
-
findWidgets: (arg1: import("
|
|
5130
|
-
reviewModeRubric: import("
|
|
5343
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5344
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5131
5345
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5132
5346
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5133
5347
|
isLastUsedWidget: boolean;
|
|
@@ -5140,6 +5354,10 @@ declare const InteractiveGraph: {
|
|
|
5140
5354
|
static: boolean | null | undefined;
|
|
5141
5355
|
problemNum: number | null | undefined;
|
|
5142
5356
|
apiOptions: Readonly<Readonly<{
|
|
5357
|
+
/**
|
|
5358
|
+
* An error message to display in the graph area, or true if the
|
|
5359
|
+
* graph is valid.
|
|
5360
|
+
*/
|
|
5143
5361
|
isArticle?: boolean | undefined;
|
|
5144
5362
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5145
5363
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5157,12 +5375,12 @@ declare const InteractiveGraph: {
|
|
|
5157
5375
|
baseElements?: {
|
|
5158
5376
|
Link: React.ComponentType<any>;
|
|
5159
5377
|
} | undefined;
|
|
5160
|
-
imagePreloader?: ((dimensions: import("
|
|
5378
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5161
5379
|
trackInteraction?: ((args: {
|
|
5162
5380
|
type: string;
|
|
5163
5381
|
id: string;
|
|
5164
5382
|
correct?: boolean | undefined;
|
|
5165
|
-
} & Partial<import("
|
|
5383
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5166
5384
|
customKeypad?: boolean | undefined;
|
|
5167
5385
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5168
5386
|
isMobile?: boolean | undefined;
|
|
@@ -5217,8 +5435,8 @@ declare const InteractiveGraph: {
|
|
|
5217
5435
|
questionCompleted?: boolean | undefined;
|
|
5218
5436
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5219
5437
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5220
|
-
findWidgets: (arg1: import("
|
|
5221
|
-
reviewModeRubric: import("
|
|
5438
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5439
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5222
5440
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5223
5441
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5224
5442
|
isLastUsedWidget: boolean;
|
|
@@ -5231,6 +5449,10 @@ declare const InteractiveGraph: {
|
|
|
5231
5449
|
static: boolean | null | undefined;
|
|
5232
5450
|
problemNum: number | null | undefined;
|
|
5233
5451
|
apiOptions: Readonly<Readonly<{
|
|
5452
|
+
/**
|
|
5453
|
+
* An error message to display in the graph area, or true if the
|
|
5454
|
+
* graph is valid.
|
|
5455
|
+
*/
|
|
5234
5456
|
isArticle?: boolean | undefined;
|
|
5235
5457
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5236
5458
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5248,12 +5470,12 @@ declare const InteractiveGraph: {
|
|
|
5248
5470
|
baseElements?: {
|
|
5249
5471
|
Link: React.ComponentType<any>;
|
|
5250
5472
|
} | undefined;
|
|
5251
|
-
imagePreloader?: ((dimensions: import("
|
|
5473
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5252
5474
|
trackInteraction?: ((args: {
|
|
5253
5475
|
type: string;
|
|
5254
5476
|
id: string;
|
|
5255
5477
|
correct?: boolean | undefined;
|
|
5256
|
-
} & Partial<import("
|
|
5478
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5257
5479
|
customKeypad?: boolean | undefined;
|
|
5258
5480
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5259
5481
|
isMobile?: boolean | undefined;
|
|
@@ -5308,8 +5530,8 @@ declare const InteractiveGraph: {
|
|
|
5308
5530
|
questionCompleted?: boolean | undefined;
|
|
5309
5531
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5310
5532
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5311
|
-
findWidgets: (arg1: import("
|
|
5312
|
-
reviewModeRubric: import("
|
|
5533
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5534
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5313
5535
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5314
5536
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5315
5537
|
isLastUsedWidget: boolean;
|
|
@@ -5322,6 +5544,10 @@ declare const InteractiveGraph: {
|
|
|
5322
5544
|
static: boolean | null | undefined;
|
|
5323
5545
|
problemNum: number | null | undefined;
|
|
5324
5546
|
apiOptions: Readonly<Readonly<{
|
|
5547
|
+
/**
|
|
5548
|
+
* An error message to display in the graph area, or true if the
|
|
5549
|
+
* graph is valid.
|
|
5550
|
+
*/
|
|
5325
5551
|
isArticle?: boolean | undefined;
|
|
5326
5552
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5327
5553
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5339,12 +5565,12 @@ declare const InteractiveGraph: {
|
|
|
5339
5565
|
baseElements?: {
|
|
5340
5566
|
Link: React.ComponentType<any>;
|
|
5341
5567
|
} | undefined;
|
|
5342
|
-
imagePreloader?: ((dimensions: import("
|
|
5568
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5343
5569
|
trackInteraction?: ((args: {
|
|
5344
5570
|
type: string;
|
|
5345
5571
|
id: string;
|
|
5346
5572
|
correct?: boolean | undefined;
|
|
5347
|
-
} & Partial<import("
|
|
5573
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5348
5574
|
customKeypad?: boolean | undefined;
|
|
5349
5575
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5350
5576
|
isMobile?: boolean | undefined;
|
|
@@ -5399,8 +5625,8 @@ declare const InteractiveGraph: {
|
|
|
5399
5625
|
questionCompleted?: boolean | undefined;
|
|
5400
5626
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5401
5627
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5402
|
-
findWidgets: (arg1: import("
|
|
5403
|
-
reviewModeRubric: import("
|
|
5628
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5629
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5404
5630
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5405
5631
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5406
5632
|
isLastUsedWidget: boolean;
|
|
@@ -5413,6 +5639,10 @@ declare const InteractiveGraph: {
|
|
|
5413
5639
|
static: boolean | null | undefined;
|
|
5414
5640
|
problemNum: number | null | undefined;
|
|
5415
5641
|
apiOptions: Readonly<Readonly<{
|
|
5642
|
+
/**
|
|
5643
|
+
* An error message to display in the graph area, or true if the
|
|
5644
|
+
* graph is valid.
|
|
5645
|
+
*/
|
|
5416
5646
|
isArticle?: boolean | undefined;
|
|
5417
5647
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5418
5648
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5430,12 +5660,12 @@ declare const InteractiveGraph: {
|
|
|
5430
5660
|
baseElements?: {
|
|
5431
5661
|
Link: React.ComponentType<any>;
|
|
5432
5662
|
} | undefined;
|
|
5433
|
-
imagePreloader?: ((dimensions: import("
|
|
5663
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5434
5664
|
trackInteraction?: ((args: {
|
|
5435
5665
|
type: string;
|
|
5436
5666
|
id: string;
|
|
5437
5667
|
correct?: boolean | undefined;
|
|
5438
|
-
} & Partial<import("
|
|
5668
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5439
5669
|
customKeypad?: boolean | undefined;
|
|
5440
5670
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5441
5671
|
isMobile?: boolean | undefined;
|
|
@@ -5490,8 +5720,8 @@ declare const InteractiveGraph: {
|
|
|
5490
5720
|
questionCompleted?: boolean | undefined;
|
|
5491
5721
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5492
5722
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5493
|
-
findWidgets: (arg1: import("
|
|
5494
|
-
reviewModeRubric: import("
|
|
5723
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5724
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5495
5725
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5496
5726
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5497
5727
|
isLastUsedWidget: boolean;
|
|
@@ -5504,6 +5734,10 @@ declare const InteractiveGraph: {
|
|
|
5504
5734
|
static: boolean | null | undefined;
|
|
5505
5735
|
problemNum: number | null | undefined;
|
|
5506
5736
|
apiOptions: Readonly<Readonly<{
|
|
5737
|
+
/**
|
|
5738
|
+
* An error message to display in the graph area, or true if the
|
|
5739
|
+
* graph is valid.
|
|
5740
|
+
*/
|
|
5507
5741
|
isArticle?: boolean | undefined;
|
|
5508
5742
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5509
5743
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5521,12 +5755,12 @@ declare const InteractiveGraph: {
|
|
|
5521
5755
|
baseElements?: {
|
|
5522
5756
|
Link: React.ComponentType<any>;
|
|
5523
5757
|
} | undefined;
|
|
5524
|
-
imagePreloader?: ((dimensions: import("
|
|
5758
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5525
5759
|
trackInteraction?: ((args: {
|
|
5526
5760
|
type: string;
|
|
5527
5761
|
id: string;
|
|
5528
5762
|
correct?: boolean | undefined;
|
|
5529
|
-
} & Partial<import("
|
|
5763
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5530
5764
|
customKeypad?: boolean | undefined;
|
|
5531
5765
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5532
5766
|
isMobile?: boolean | undefined;
|
|
@@ -5581,8 +5815,8 @@ declare const InteractiveGraph: {
|
|
|
5581
5815
|
questionCompleted?: boolean | undefined;
|
|
5582
5816
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5583
5817
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5584
|
-
findWidgets: (arg1: import("
|
|
5585
|
-
reviewModeRubric: import("
|
|
5818
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5819
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5586
5820
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5587
5821
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5588
5822
|
isLastUsedWidget: boolean;
|
|
@@ -5595,6 +5829,10 @@ declare const InteractiveGraph: {
|
|
|
5595
5829
|
static: boolean | null | undefined;
|
|
5596
5830
|
problemNum: number | null | undefined;
|
|
5597
5831
|
apiOptions: Readonly<Readonly<{
|
|
5832
|
+
/**
|
|
5833
|
+
* An error message to display in the graph area, or true if the
|
|
5834
|
+
* graph is valid.
|
|
5835
|
+
*/
|
|
5598
5836
|
isArticle?: boolean | undefined;
|
|
5599
5837
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5600
5838
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5612,12 +5850,12 @@ declare const InteractiveGraph: {
|
|
|
5612
5850
|
baseElements?: {
|
|
5613
5851
|
Link: React.ComponentType<any>;
|
|
5614
5852
|
} | undefined;
|
|
5615
|
-
imagePreloader?: ((dimensions: import("
|
|
5853
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5616
5854
|
trackInteraction?: ((args: {
|
|
5617
5855
|
type: string;
|
|
5618
5856
|
id: string;
|
|
5619
5857
|
correct?: boolean | undefined;
|
|
5620
|
-
} & Partial<import("
|
|
5858
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5621
5859
|
customKeypad?: boolean | undefined;
|
|
5622
5860
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5623
5861
|
isMobile?: boolean | undefined;
|
|
@@ -5672,21 +5910,25 @@ declare const InteractiveGraph: {
|
|
|
5672
5910
|
questionCompleted?: boolean | undefined;
|
|
5673
5911
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5674
5912
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5675
|
-
findWidgets: (arg1: import("
|
|
5676
|
-
reviewModeRubric: import("
|
|
5913
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
5914
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5677
5915
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5678
5916
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5679
5917
|
isLastUsedWidget: boolean;
|
|
5680
5918
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
5681
5919
|
containerSizeClass: SizingUtils.SizeClass;
|
|
5682
5920
|
}): string;
|
|
5683
|
-
validate(userInput:
|
|
5921
|
+
validate(userInput: PerseusGraphType, rubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric, component: any): import("@khanacademy/perseus").PerseusScore;
|
|
5684
5922
|
getUserInputFromProps(props: PerseusInteractiveGraphWidgetOptions & {
|
|
5685
5923
|
widgetId: string;
|
|
5686
5924
|
alignment: string | null | undefined;
|
|
5687
5925
|
static: boolean | null | undefined;
|
|
5688
5926
|
problemNum: number | null | undefined;
|
|
5689
5927
|
apiOptions: Readonly<Readonly<{
|
|
5928
|
+
/**
|
|
5929
|
+
* An error message to display in the graph area, or true if the
|
|
5930
|
+
* graph is valid.
|
|
5931
|
+
*/
|
|
5690
5932
|
isArticle?: boolean | undefined;
|
|
5691
5933
|
onInputError?: ((widgetId: any, value: string, message?: string | null | undefined) => unknown) | undefined;
|
|
5692
5934
|
onFocusChange?: ((newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number | undefined, focusedElement?: HTMLElement | undefined) => unknown) | undefined;
|
|
@@ -5704,12 +5946,12 @@ declare const InteractiveGraph: {
|
|
|
5704
5946
|
baseElements?: {
|
|
5705
5947
|
Link: React.ComponentType<any>;
|
|
5706
5948
|
} | undefined;
|
|
5707
|
-
imagePreloader?: ((dimensions: import("
|
|
5949
|
+
imagePreloader?: ((dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
5708
5950
|
trackInteraction?: ((args: {
|
|
5709
5951
|
type: string;
|
|
5710
5952
|
id: string;
|
|
5711
5953
|
correct?: boolean | undefined;
|
|
5712
|
-
} & Partial<import("
|
|
5954
|
+
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
5713
5955
|
customKeypad?: boolean | undefined;
|
|
5714
5956
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
5715
5957
|
isMobile?: boolean | undefined;
|
|
@@ -5764,14 +6006,14 @@ declare const InteractiveGraph: {
|
|
|
5764
6006
|
questionCompleted?: boolean | undefined;
|
|
5765
6007
|
onFocus: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5766
6008
|
onBlur: (blurPath: import("@khanacademy/perseus").FocusPath) => void;
|
|
5767
|
-
findWidgets: (arg1: import("
|
|
5768
|
-
reviewModeRubric: import("
|
|
6009
|
+
findWidgets: (arg1: import("../../../../perseus/src/types").FilterCriterion) => readonly any[];
|
|
6010
|
+
reviewModeRubric: import("../../../../perseus/src/widgets/interactive-graph").Rubric;
|
|
5769
6011
|
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
5770
6012
|
trackInteraction: (extraData?: Empty | undefined) => void;
|
|
5771
6013
|
isLastUsedWidget: boolean;
|
|
5772
6014
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
5773
6015
|
containerSizeClass: SizingUtils.SizeClass;
|
|
5774
|
-
}):
|
|
6016
|
+
}): PerseusGraphType;
|
|
5775
6017
|
contextType?: React.Context<any> | undefined;
|
|
5776
6018
|
};
|
|
5777
6019
|
type InteractiveGraphProps = PropsFor<typeof InteractiveGraph>;
|
|
@@ -5837,13 +6079,15 @@ export type Props = {
|
|
|
5837
6079
|
* on the state of the interactive graph previewed at the bottom of the
|
|
5838
6080
|
* editor page.
|
|
5839
6081
|
*/
|
|
5840
|
-
correct:
|
|
6082
|
+
correct: PerseusGraphType;
|
|
5841
6083
|
/**
|
|
5842
6084
|
* The locked figures to display in the graph area.
|
|
5843
6085
|
* Locked figures are graph elements (points, lines, line segmeents,
|
|
5844
6086
|
* etc.) that are locked in place and not interactive.
|
|
5845
6087
|
*/
|
|
5846
6088
|
lockedFigures?: Array<LockedFigure>;
|
|
6089
|
+
fullGraphAriaLabel?: string;
|
|
6090
|
+
fullGraphAriaDescription?: string;
|
|
5847
6091
|
/**
|
|
5848
6092
|
* The graph to display in the graph area.
|
|
5849
6093
|
*/
|
|
@@ -5872,13 +6116,6 @@ declare class InteractiveGraphEditor extends React.Component<Props> {
|
|
|
5872
6116
|
displayName: string;
|
|
5873
6117
|
className: string;
|
|
5874
6118
|
static defaultProps: DefaultProps;
|
|
5875
|
-
deprecatedProps: {
|
|
5876
|
-
readonly showGraph: (props: any) => {
|
|
5877
|
-
markings: string;
|
|
5878
|
-
};
|
|
5879
|
-
};
|
|
5880
|
-
UNSAFE_componentWillMount(): void;
|
|
5881
|
-
changeMatchType: (newValue: any) => void;
|
|
5882
6119
|
changeStartCoords: (coords: any) => void;
|
|
5883
6120
|
serialize(): PerseusInteractiveGraphWidgetOptions;
|
|
5884
6121
|
getSaveWarnings: () => any[];
|