@khanacademy/perseus-editor 5.0.3 → 5.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/components/locked-figure-select.d.ts +7 -0
- package/dist/components/locked-figure-settings.d.ts +11 -0
- package/dist/components/locked-figures-section.d.ts +9 -0
- package/dist/components/locked-point-settings.d.ts +8 -0
- package/dist/components/util.d.ts +3 -0
- package/dist/es/index.js +419 -137
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +417 -132
- package/dist/index.js.map +1 -1
- package/dist/widgets/interactive-graph-editor.d.ts +466 -660
- package/package.json +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SizingUtils } from "@khanacademy/perseus";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import type { PerseusImageBackground, PerseusInteractiveGraphWidgetOptions, APIOptionsWithDefaults } from "@khanacademy/perseus";
|
|
3
|
+
import type { PerseusImageBackground, PerseusInteractiveGraphWidgetOptions, APIOptionsWithDefaults, LockedFigure } from "@khanacademy/perseus";
|
|
4
4
|
import type { PropsFor } from "@khanacademy/wonder-blocks-core";
|
|
5
5
|
declare const InteractiveGraph: {
|
|
6
6
|
new (props: (PerseusInteractiveGraphWidgetOptions & {
|
|
@@ -26,29 +26,24 @@ declare const InteractiveGraph: {
|
|
|
26
26
|
baseElements?: {
|
|
27
27
|
Link: React.ComponentType<any>;
|
|
28
28
|
} | undefined;
|
|
29
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
29
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
30
|
+
* Whether to show the ruler on the graph.
|
|
31
|
+
*/
|
|
30
32
|
trackInteraction?: ((args: {
|
|
31
33
|
type: string;
|
|
32
34
|
id: string;
|
|
33
35
|
correct?: boolean | undefined;
|
|
34
36
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
35
|
-
customKeypad?: boolean | undefined;
|
|
37
|
+
customKeypad?: boolean | undefined; /**
|
|
38
|
+
* Whether to show tooltips on the graph.
|
|
39
|
+
* (Currently not used, but will be in the future.)
|
|
40
|
+
*/
|
|
36
41
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
37
42
|
isMobile?: boolean | undefined;
|
|
38
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
39
|
-
* The number of ticks to display on the ruler.
|
|
40
|
-
*/
|
|
43
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
41
44
|
useDraftEditor?: boolean | undefined;
|
|
42
45
|
hintProgressColor?: string | undefined;
|
|
43
|
-
canScrollPage?: boolean | undefined;
|
|
44
|
-
* The current correct answer for the graph. Updated by this component
|
|
45
|
-
* when the graph is changed.
|
|
46
|
-
*
|
|
47
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
48
|
-
* element. Instead, it is a representation of the correct answer based
|
|
49
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
50
|
-
* editor page.
|
|
51
|
-
*/
|
|
46
|
+
canScrollPage?: boolean | undefined;
|
|
52
47
|
inModal?: boolean | undefined;
|
|
53
48
|
crossOutEnabled?: boolean | undefined;
|
|
54
49
|
editorChangeDelay?: number | undefined;
|
|
@@ -107,29 +102,24 @@ declare const InteractiveGraph: {
|
|
|
107
102
|
baseElements?: {
|
|
108
103
|
Link: React.ComponentType<any>;
|
|
109
104
|
} | undefined;
|
|
110
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
105
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
106
|
+
* Whether to show the ruler on the graph.
|
|
107
|
+
*/
|
|
111
108
|
trackInteraction?: ((args: {
|
|
112
109
|
type: string;
|
|
113
110
|
id: string;
|
|
114
111
|
correct?: boolean | undefined;
|
|
115
112
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
116
|
-
customKeypad?: boolean | undefined;
|
|
113
|
+
customKeypad?: boolean | undefined; /**
|
|
114
|
+
* Whether to show tooltips on the graph.
|
|
115
|
+
* (Currently not used, but will be in the future.)
|
|
116
|
+
*/
|
|
117
117
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
118
118
|
isMobile?: boolean | undefined;
|
|
119
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
120
|
-
* The number of ticks to display on the ruler.
|
|
121
|
-
*/
|
|
119
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
122
120
|
useDraftEditor?: boolean | undefined;
|
|
123
121
|
hintProgressColor?: string | undefined;
|
|
124
|
-
canScrollPage?: boolean | undefined;
|
|
125
|
-
* The current correct answer for the graph. Updated by this component
|
|
126
|
-
* when the graph is changed.
|
|
127
|
-
*
|
|
128
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
129
|
-
* element. Instead, it is a representation of the correct answer based
|
|
130
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
131
|
-
* editor page.
|
|
132
|
-
*/
|
|
122
|
+
canScrollPage?: boolean | undefined;
|
|
133
123
|
inModal?: boolean | undefined;
|
|
134
124
|
crossOutEnabled?: boolean | undefined;
|
|
135
125
|
editorChangeDelay?: number | undefined;
|
|
@@ -209,29 +199,24 @@ declare const InteractiveGraph: {
|
|
|
209
199
|
baseElements?: {
|
|
210
200
|
Link: React.ComponentType<any>;
|
|
211
201
|
} | undefined;
|
|
212
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
202
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
203
|
+
* Whether to show the ruler on the graph.
|
|
204
|
+
*/
|
|
213
205
|
trackInteraction?: ((args: {
|
|
214
206
|
type: string;
|
|
215
207
|
id: string;
|
|
216
208
|
correct?: boolean | undefined;
|
|
217
209
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
218
|
-
customKeypad?: boolean | undefined;
|
|
210
|
+
customKeypad?: boolean | undefined; /**
|
|
211
|
+
* Whether to show tooltips on the graph.
|
|
212
|
+
* (Currently not used, but will be in the future.)
|
|
213
|
+
*/
|
|
219
214
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
220
215
|
isMobile?: boolean | undefined;
|
|
221
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
222
|
-
* The number of ticks to display on the ruler.
|
|
223
|
-
*/
|
|
216
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
224
217
|
useDraftEditor?: boolean | undefined;
|
|
225
218
|
hintProgressColor?: string | undefined;
|
|
226
|
-
canScrollPage?: boolean | undefined;
|
|
227
|
-
* The current correct answer for the graph. Updated by this component
|
|
228
|
-
* when the graph is changed.
|
|
229
|
-
*
|
|
230
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
231
|
-
* element. Instead, it is a representation of the correct answer based
|
|
232
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
233
|
-
* editor page.
|
|
234
|
-
*/
|
|
219
|
+
canScrollPage?: boolean | undefined;
|
|
235
220
|
inModal?: boolean | undefined;
|
|
236
221
|
crossOutEnabled?: boolean | undefined;
|
|
237
222
|
editorChangeDelay?: number | undefined;
|
|
@@ -291,29 +276,24 @@ declare const InteractiveGraph: {
|
|
|
291
276
|
baseElements?: {
|
|
292
277
|
Link: React.ComponentType<any>;
|
|
293
278
|
} | undefined;
|
|
294
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
279
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
280
|
+
* Whether to show the ruler on the graph.
|
|
281
|
+
*/
|
|
295
282
|
trackInteraction?: ((args: {
|
|
296
283
|
type: string;
|
|
297
284
|
id: string;
|
|
298
285
|
correct?: boolean | undefined;
|
|
299
286
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
300
|
-
customKeypad?: boolean | undefined;
|
|
287
|
+
customKeypad?: boolean | undefined; /**
|
|
288
|
+
* Whether to show tooltips on the graph.
|
|
289
|
+
* (Currently not used, but will be in the future.)
|
|
290
|
+
*/
|
|
301
291
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
302
292
|
isMobile?: boolean | undefined;
|
|
303
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
304
|
-
* The number of ticks to display on the ruler.
|
|
305
|
-
*/
|
|
293
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
306
294
|
useDraftEditor?: boolean | undefined;
|
|
307
295
|
hintProgressColor?: string | undefined;
|
|
308
|
-
canScrollPage?: boolean | undefined;
|
|
309
|
-
* The current correct answer for the graph. Updated by this component
|
|
310
|
-
* when the graph is changed.
|
|
311
|
-
*
|
|
312
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
313
|
-
* element. Instead, it is a representation of the correct answer based
|
|
314
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
315
|
-
* editor page.
|
|
316
|
-
*/
|
|
296
|
+
canScrollPage?: boolean | undefined;
|
|
317
297
|
inModal?: boolean | undefined;
|
|
318
298
|
crossOutEnabled?: boolean | undefined;
|
|
319
299
|
editorChangeDelay?: number | undefined;
|
|
@@ -373,29 +353,24 @@ declare const InteractiveGraph: {
|
|
|
373
353
|
baseElements?: {
|
|
374
354
|
Link: React.ComponentType<any>;
|
|
375
355
|
} | undefined;
|
|
376
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
356
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
357
|
+
* Whether to show the ruler on the graph.
|
|
358
|
+
*/
|
|
377
359
|
trackInteraction?: ((args: {
|
|
378
360
|
type: string;
|
|
379
361
|
id: string;
|
|
380
362
|
correct?: boolean | undefined;
|
|
381
363
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
382
|
-
customKeypad?: boolean | undefined;
|
|
364
|
+
customKeypad?: boolean | undefined; /**
|
|
365
|
+
* Whether to show tooltips on the graph.
|
|
366
|
+
* (Currently not used, but will be in the future.)
|
|
367
|
+
*/
|
|
383
368
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
384
369
|
isMobile?: boolean | undefined;
|
|
385
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
386
|
-
* The number of ticks to display on the ruler.
|
|
387
|
-
*/
|
|
370
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
388
371
|
useDraftEditor?: boolean | undefined;
|
|
389
372
|
hintProgressColor?: string | undefined;
|
|
390
|
-
canScrollPage?: boolean | undefined;
|
|
391
|
-
* The current correct answer for the graph. Updated by this component
|
|
392
|
-
* when the graph is changed.
|
|
393
|
-
*
|
|
394
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
395
|
-
* element. Instead, it is a representation of the correct answer based
|
|
396
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
397
|
-
* editor page.
|
|
398
|
-
*/
|
|
373
|
+
canScrollPage?: boolean | undefined;
|
|
399
374
|
inModal?: boolean | undefined;
|
|
400
375
|
crossOutEnabled?: boolean | undefined;
|
|
401
376
|
editorChangeDelay?: number | undefined;
|
|
@@ -435,10 +410,16 @@ declare const InteractiveGraph: {
|
|
|
435
410
|
deprecatedProps: any;
|
|
436
411
|
setGraphie: (arg1: any) => void;
|
|
437
412
|
handleAddPointsMouseDown: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
438
|
-
resetGraphie: () => void;
|
|
413
|
+
resetGraphie: () => void; /**
|
|
414
|
+
* The range of the graph in the x and y directions.
|
|
415
|
+
*/
|
|
439
416
|
setupGraphie: () => void;
|
|
440
417
|
showHairlines: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
441
418
|
hideHairlines: () => void;
|
|
419
|
+
/**
|
|
420
|
+
* How far apart the tick marks on the axes are in the x and y
|
|
421
|
+
* directions.
|
|
422
|
+
*/
|
|
442
423
|
setTrashCanVisibility: (arg1: number) => void;
|
|
443
424
|
isClickToAddPoints: (arg1?: (PerseusInteractiveGraphWidgetOptions & {
|
|
444
425
|
widgetId: string;
|
|
@@ -463,29 +444,24 @@ declare const InteractiveGraph: {
|
|
|
463
444
|
baseElements?: {
|
|
464
445
|
Link: React.ComponentType<any>;
|
|
465
446
|
} | undefined;
|
|
466
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
447
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
448
|
+
* Whether to show the ruler on the graph.
|
|
449
|
+
*/
|
|
467
450
|
trackInteraction?: ((args: {
|
|
468
451
|
type: string;
|
|
469
452
|
id: string;
|
|
470
453
|
correct?: boolean | undefined;
|
|
471
454
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
472
|
-
customKeypad?: boolean | undefined;
|
|
455
|
+
customKeypad?: boolean | undefined; /**
|
|
456
|
+
* Whether to show tooltips on the graph.
|
|
457
|
+
* (Currently not used, but will be in the future.)
|
|
458
|
+
*/
|
|
473
459
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
474
460
|
isMobile?: boolean | undefined;
|
|
475
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
476
|
-
* The number of ticks to display on the ruler.
|
|
477
|
-
*/
|
|
461
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
478
462
|
useDraftEditor?: boolean | undefined;
|
|
479
463
|
hintProgressColor?: string | undefined;
|
|
480
|
-
canScrollPage?: boolean | undefined;
|
|
481
|
-
* The current correct answer for the graph. Updated by this component
|
|
482
|
-
* when the graph is changed.
|
|
483
|
-
*
|
|
484
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
485
|
-
* element. Instead, it is a representation of the correct answer based
|
|
486
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
487
|
-
* editor page.
|
|
488
|
-
*/
|
|
464
|
+
canScrollPage?: boolean | undefined;
|
|
489
465
|
inModal?: boolean | undefined;
|
|
490
466
|
crossOutEnabled?: boolean | undefined;
|
|
491
467
|
editorChangeDelay?: number | undefined;
|
|
@@ -527,7 +503,9 @@ declare const InteractiveGraph: {
|
|
|
527
503
|
arePolygonGraphsEqual(prevGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
|
|
528
504
|
areSegmentGraphsEqual(prevGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
|
|
529
505
|
_lineStroke: () => {
|
|
530
|
-
"stroke-width"?: number | undefined;
|
|
506
|
+
"stroke-width"?: number | undefined; /**
|
|
507
|
+
* The background image to display in the graph area and its properties.
|
|
508
|
+
*/
|
|
531
509
|
};
|
|
532
510
|
addLine: (arg1: string) => void;
|
|
533
511
|
removeLine: () => void;
|
|
@@ -546,6 +524,9 @@ declare const InteractiveGraph: {
|
|
|
546
524
|
isCoordInTrash: (arg1: import("@khanacademy/perseus").Coord) => boolean;
|
|
547
525
|
createPointForPointsType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
|
|
548
526
|
removePoint: (arg1: import("@khanacademy/perseus").Coord) => number | null | undefined;
|
|
527
|
+
/**
|
|
528
|
+
* The label to display on the ruler, if any.
|
|
529
|
+
*/
|
|
549
530
|
createPointForPolygonType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
|
|
550
531
|
updateCoordsFromPoints: () => void;
|
|
551
532
|
clearCoords: () => void;
|
|
@@ -561,8 +542,12 @@ declare const InteractiveGraph: {
|
|
|
561
542
|
removePolygonControls: () => void;
|
|
562
543
|
addAngleControls: () => void;
|
|
563
544
|
removeAngleControls: () => void;
|
|
564
|
-
toggleShowSides: () => void;
|
|
565
|
-
|
|
545
|
+
toggleShowSides: () => void; /**
|
|
546
|
+
* The locked figures to display in the graph area.
|
|
547
|
+
* Locked figures are graph elements (points, lines, line segmeents,
|
|
548
|
+
* etc.) that are locked in place and not interactive.
|
|
549
|
+
*/
|
|
550
|
+
getUserInput: () => import("@khanacademy/perseus").PerseusGraphType;
|
|
566
551
|
simpleValidate: (rubric: PerseusInteractiveGraphWidgetOptions) => import("@khanacademy/perseus").PerseusScore;
|
|
567
552
|
focus: () => void;
|
|
568
553
|
render(): React.ReactNode;
|
|
@@ -592,29 +577,24 @@ declare const InteractiveGraph: {
|
|
|
592
577
|
baseElements?: {
|
|
593
578
|
Link: React.ComponentType<any>;
|
|
594
579
|
} | undefined;
|
|
595
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
580
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
581
|
+
* Whether to show the ruler on the graph.
|
|
582
|
+
*/
|
|
596
583
|
trackInteraction?: ((args: {
|
|
597
584
|
type: string;
|
|
598
585
|
id: string;
|
|
599
586
|
correct?: boolean | undefined;
|
|
600
587
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
601
|
-
customKeypad?: boolean | undefined;
|
|
588
|
+
customKeypad?: boolean | undefined; /**
|
|
589
|
+
* Whether to show tooltips on the graph.
|
|
590
|
+
* (Currently not used, but will be in the future.)
|
|
591
|
+
*/
|
|
602
592
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
603
593
|
isMobile?: boolean | undefined;
|
|
604
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
605
|
-
* The number of ticks to display on the ruler.
|
|
606
|
-
*/
|
|
594
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
607
595
|
useDraftEditor?: boolean | undefined;
|
|
608
596
|
hintProgressColor?: string | undefined;
|
|
609
|
-
canScrollPage?: boolean | undefined;
|
|
610
|
-
* The current correct answer for the graph. Updated by this component
|
|
611
|
-
* when the graph is changed.
|
|
612
|
-
*
|
|
613
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
614
|
-
* element. Instead, it is a representation of the correct answer based
|
|
615
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
616
|
-
* editor page.
|
|
617
|
-
*/
|
|
597
|
+
canScrollPage?: boolean | undefined;
|
|
618
598
|
inModal?: boolean | undefined;
|
|
619
599
|
crossOutEnabled?: boolean | undefined;
|
|
620
600
|
editorChangeDelay?: number | undefined;
|
|
@@ -679,29 +659,24 @@ declare const InteractiveGraph: {
|
|
|
679
659
|
baseElements?: {
|
|
680
660
|
Link: React.ComponentType<any>;
|
|
681
661
|
} | undefined;
|
|
682
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
662
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
663
|
+
* Whether to show the ruler on the graph.
|
|
664
|
+
*/
|
|
683
665
|
trackInteraction?: ((args: {
|
|
684
666
|
type: string;
|
|
685
667
|
id: string;
|
|
686
668
|
correct?: boolean | undefined;
|
|
687
669
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
688
|
-
customKeypad?: boolean | undefined;
|
|
670
|
+
customKeypad?: boolean | undefined; /**
|
|
671
|
+
* Whether to show tooltips on the graph.
|
|
672
|
+
* (Currently not used, but will be in the future.)
|
|
673
|
+
*/
|
|
689
674
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
690
675
|
isMobile?: boolean | undefined;
|
|
691
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
692
|
-
* The number of ticks to display on the ruler.
|
|
693
|
-
*/
|
|
676
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
694
677
|
useDraftEditor?: boolean | undefined;
|
|
695
678
|
hintProgressColor?: string | undefined;
|
|
696
|
-
canScrollPage?: boolean | undefined;
|
|
697
|
-
* The current correct answer for the graph. Updated by this component
|
|
698
|
-
* when the graph is changed.
|
|
699
|
-
*
|
|
700
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
701
|
-
* element. Instead, it is a representation of the correct answer based
|
|
702
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
703
|
-
* editor page.
|
|
704
|
-
*/
|
|
679
|
+
canScrollPage?: boolean | undefined;
|
|
705
680
|
inModal?: boolean | undefined;
|
|
706
681
|
crossOutEnabled?: boolean | undefined;
|
|
707
682
|
editorChangeDelay?: number | undefined;
|
|
@@ -763,29 +738,24 @@ declare const InteractiveGraph: {
|
|
|
763
738
|
baseElements?: {
|
|
764
739
|
Link: React.ComponentType<any>;
|
|
765
740
|
} | undefined;
|
|
766
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
741
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
742
|
+
* Whether to show the ruler on the graph.
|
|
743
|
+
*/
|
|
767
744
|
trackInteraction?: ((args: {
|
|
768
745
|
type: string;
|
|
769
746
|
id: string;
|
|
770
747
|
correct?: boolean | undefined;
|
|
771
748
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
772
|
-
customKeypad?: boolean | undefined;
|
|
749
|
+
customKeypad?: boolean | undefined; /**
|
|
750
|
+
* Whether to show tooltips on the graph.
|
|
751
|
+
* (Currently not used, but will be in the future.)
|
|
752
|
+
*/
|
|
773
753
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
774
754
|
isMobile?: boolean | undefined;
|
|
775
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
776
|
-
* The number of ticks to display on the ruler.
|
|
777
|
-
*/
|
|
755
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
778
756
|
useDraftEditor?: boolean | undefined;
|
|
779
757
|
hintProgressColor?: string | undefined;
|
|
780
|
-
canScrollPage?: boolean | undefined;
|
|
781
|
-
* The current correct answer for the graph. Updated by this component
|
|
782
|
-
* when the graph is changed.
|
|
783
|
-
*
|
|
784
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
785
|
-
* element. Instead, it is a representation of the correct answer based
|
|
786
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
787
|
-
* editor page.
|
|
788
|
-
*/
|
|
758
|
+
canScrollPage?: boolean | undefined;
|
|
789
759
|
inModal?: boolean | undefined;
|
|
790
760
|
crossOutEnabled?: boolean | undefined;
|
|
791
761
|
editorChangeDelay?: number | undefined;
|
|
@@ -846,29 +816,24 @@ declare const InteractiveGraph: {
|
|
|
846
816
|
baseElements?: {
|
|
847
817
|
Link: React.ComponentType<any>;
|
|
848
818
|
} | undefined;
|
|
849
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
819
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
820
|
+
* Whether to show the ruler on the graph.
|
|
821
|
+
*/
|
|
850
822
|
trackInteraction?: ((args: {
|
|
851
823
|
type: string;
|
|
852
824
|
id: string;
|
|
853
825
|
correct?: boolean | undefined;
|
|
854
826
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
855
|
-
customKeypad?: boolean | undefined;
|
|
827
|
+
customKeypad?: boolean | undefined; /**
|
|
828
|
+
* Whether to show tooltips on the graph.
|
|
829
|
+
* (Currently not used, but will be in the future.)
|
|
830
|
+
*/
|
|
856
831
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
857
832
|
isMobile?: boolean | undefined;
|
|
858
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
859
|
-
* The number of ticks to display on the ruler.
|
|
860
|
-
*/
|
|
833
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
861
834
|
useDraftEditor?: boolean | undefined;
|
|
862
835
|
hintProgressColor?: string | undefined;
|
|
863
|
-
canScrollPage?: boolean | undefined;
|
|
864
|
-
* The current correct answer for the graph. Updated by this component
|
|
865
|
-
* when the graph is changed.
|
|
866
|
-
*
|
|
867
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
868
|
-
* element. Instead, it is a representation of the correct answer based
|
|
869
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
870
|
-
* editor page.
|
|
871
|
-
*/
|
|
836
|
+
canScrollPage?: boolean | undefined;
|
|
872
837
|
inModal?: boolean | undefined;
|
|
873
838
|
crossOutEnabled?: boolean | undefined;
|
|
874
839
|
editorChangeDelay?: number | undefined;
|
|
@@ -928,29 +893,24 @@ declare const InteractiveGraph: {
|
|
|
928
893
|
baseElements?: {
|
|
929
894
|
Link: React.ComponentType<any>;
|
|
930
895
|
} | undefined;
|
|
931
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
896
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
897
|
+
* Whether to show the ruler on the graph.
|
|
898
|
+
*/
|
|
932
899
|
trackInteraction?: ((args: {
|
|
933
900
|
type: string;
|
|
934
901
|
id: string;
|
|
935
902
|
correct?: boolean | undefined;
|
|
936
903
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
937
|
-
customKeypad?: boolean | undefined;
|
|
904
|
+
customKeypad?: boolean | undefined; /**
|
|
905
|
+
* Whether to show tooltips on the graph.
|
|
906
|
+
* (Currently not used, but will be in the future.)
|
|
907
|
+
*/
|
|
938
908
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
939
909
|
isMobile?: boolean | undefined;
|
|
940
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
941
|
-
* The number of ticks to display on the ruler.
|
|
942
|
-
*/
|
|
910
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
943
911
|
useDraftEditor?: boolean | undefined;
|
|
944
912
|
hintProgressColor?: string | undefined;
|
|
945
|
-
canScrollPage?: boolean | undefined;
|
|
946
|
-
* The current correct answer for the graph. Updated by this component
|
|
947
|
-
* when the graph is changed.
|
|
948
|
-
*
|
|
949
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
950
|
-
* element. Instead, it is a representation of the correct answer based
|
|
951
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
952
|
-
* editor page.
|
|
953
|
-
*/
|
|
913
|
+
canScrollPage?: boolean | undefined;
|
|
954
914
|
inModal?: boolean | undefined;
|
|
955
915
|
crossOutEnabled?: boolean | undefined;
|
|
956
916
|
editorChangeDelay?: number | undefined;
|
|
@@ -1010,29 +970,24 @@ declare const InteractiveGraph: {
|
|
|
1010
970
|
baseElements?: {
|
|
1011
971
|
Link: React.ComponentType<any>;
|
|
1012
972
|
} | undefined;
|
|
1013
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
973
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
974
|
+
* Whether to show the ruler on the graph.
|
|
975
|
+
*/
|
|
1014
976
|
trackInteraction?: ((args: {
|
|
1015
977
|
type: string;
|
|
1016
978
|
id: string;
|
|
1017
979
|
correct?: boolean | undefined;
|
|
1018
980
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1019
|
-
customKeypad?: boolean | undefined;
|
|
981
|
+
customKeypad?: boolean | undefined; /**
|
|
982
|
+
* Whether to show tooltips on the graph.
|
|
983
|
+
* (Currently not used, but will be in the future.)
|
|
984
|
+
*/
|
|
1020
985
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1021
986
|
isMobile?: boolean | undefined;
|
|
1022
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1023
|
-
* The number of ticks to display on the ruler.
|
|
1024
|
-
*/
|
|
987
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1025
988
|
useDraftEditor?: boolean | undefined;
|
|
1026
989
|
hintProgressColor?: string | undefined;
|
|
1027
|
-
canScrollPage?: boolean | undefined;
|
|
1028
|
-
* The current correct answer for the graph. Updated by this component
|
|
1029
|
-
* when the graph is changed.
|
|
1030
|
-
*
|
|
1031
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1032
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1033
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1034
|
-
* editor page.
|
|
1035
|
-
*/
|
|
990
|
+
canScrollPage?: boolean | undefined;
|
|
1036
991
|
inModal?: boolean | undefined;
|
|
1037
992
|
crossOutEnabled?: boolean | undefined;
|
|
1038
993
|
editorChangeDelay?: number | undefined;
|
|
@@ -1093,29 +1048,24 @@ declare const InteractiveGraph: {
|
|
|
1093
1048
|
baseElements?: {
|
|
1094
1049
|
Link: React.ComponentType<any>;
|
|
1095
1050
|
} | undefined;
|
|
1096
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1051
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1052
|
+
* Whether to show the ruler on the graph.
|
|
1053
|
+
*/
|
|
1097
1054
|
trackInteraction?: ((args: {
|
|
1098
1055
|
type: string;
|
|
1099
1056
|
id: string;
|
|
1100
1057
|
correct?: boolean | undefined;
|
|
1101
1058
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1102
|
-
customKeypad?: boolean | undefined;
|
|
1059
|
+
customKeypad?: boolean | undefined; /**
|
|
1060
|
+
* Whether to show tooltips on the graph.
|
|
1061
|
+
* (Currently not used, but will be in the future.)
|
|
1062
|
+
*/
|
|
1103
1063
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1104
1064
|
isMobile?: boolean | undefined;
|
|
1105
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1106
|
-
* The number of ticks to display on the ruler.
|
|
1107
|
-
*/
|
|
1065
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1108
1066
|
useDraftEditor?: boolean | undefined;
|
|
1109
1067
|
hintProgressColor?: string | undefined;
|
|
1110
|
-
canScrollPage?: boolean | undefined;
|
|
1111
|
-
* The current correct answer for the graph. Updated by this component
|
|
1112
|
-
* when the graph is changed.
|
|
1113
|
-
*
|
|
1114
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1115
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1116
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1117
|
-
* editor page.
|
|
1118
|
-
*/
|
|
1068
|
+
canScrollPage?: boolean | undefined;
|
|
1119
1069
|
inModal?: boolean | undefined;
|
|
1120
1070
|
crossOutEnabled?: boolean | undefined;
|
|
1121
1071
|
editorChangeDelay?: number | undefined;
|
|
@@ -1195,29 +1145,24 @@ declare const InteractiveGraph: {
|
|
|
1195
1145
|
baseElements?: {
|
|
1196
1146
|
Link: React.ComponentType<any>;
|
|
1197
1147
|
} | undefined;
|
|
1198
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1148
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1149
|
+
* Whether to show the ruler on the graph.
|
|
1150
|
+
*/
|
|
1199
1151
|
trackInteraction?: ((args: {
|
|
1200
1152
|
type: string;
|
|
1201
1153
|
id: string;
|
|
1202
1154
|
correct?: boolean | undefined;
|
|
1203
1155
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1204
|
-
customKeypad?: boolean | undefined;
|
|
1156
|
+
customKeypad?: boolean | undefined; /**
|
|
1157
|
+
* Whether to show tooltips on the graph.
|
|
1158
|
+
* (Currently not used, but will be in the future.)
|
|
1159
|
+
*/
|
|
1205
1160
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1206
1161
|
isMobile?: boolean | undefined;
|
|
1207
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1208
|
-
* The number of ticks to display on the ruler.
|
|
1209
|
-
*/
|
|
1162
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1210
1163
|
useDraftEditor?: boolean | undefined;
|
|
1211
1164
|
hintProgressColor?: string | undefined;
|
|
1212
|
-
canScrollPage?: boolean | undefined;
|
|
1213
|
-
* The current correct answer for the graph. Updated by this component
|
|
1214
|
-
* when the graph is changed.
|
|
1215
|
-
*
|
|
1216
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1217
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1218
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1219
|
-
* editor page.
|
|
1220
|
-
*/
|
|
1165
|
+
canScrollPage?: boolean | undefined;
|
|
1221
1166
|
inModal?: boolean | undefined;
|
|
1222
1167
|
crossOutEnabled?: boolean | undefined;
|
|
1223
1168
|
editorChangeDelay?: number | undefined;
|
|
@@ -1277,29 +1222,24 @@ declare const InteractiveGraph: {
|
|
|
1277
1222
|
baseElements?: {
|
|
1278
1223
|
Link: React.ComponentType<any>;
|
|
1279
1224
|
} | undefined;
|
|
1280
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1225
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1226
|
+
* Whether to show the ruler on the graph.
|
|
1227
|
+
*/
|
|
1281
1228
|
trackInteraction?: ((args: {
|
|
1282
1229
|
type: string;
|
|
1283
1230
|
id: string;
|
|
1284
1231
|
correct?: boolean | undefined;
|
|
1285
1232
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1286
|
-
customKeypad?: boolean | undefined;
|
|
1233
|
+
customKeypad?: boolean | undefined; /**
|
|
1234
|
+
* Whether to show tooltips on the graph.
|
|
1235
|
+
* (Currently not used, but will be in the future.)
|
|
1236
|
+
*/
|
|
1287
1237
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1288
1238
|
isMobile?: boolean | undefined;
|
|
1289
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1290
|
-
* The number of ticks to display on the ruler.
|
|
1291
|
-
*/
|
|
1239
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1292
1240
|
useDraftEditor?: boolean | undefined;
|
|
1293
1241
|
hintProgressColor?: string | undefined;
|
|
1294
|
-
canScrollPage?: boolean | undefined;
|
|
1295
|
-
* The current correct answer for the graph. Updated by this component
|
|
1296
|
-
* when the graph is changed.
|
|
1297
|
-
*
|
|
1298
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1299
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1300
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1301
|
-
* editor page.
|
|
1302
|
-
*/
|
|
1242
|
+
canScrollPage?: boolean | undefined;
|
|
1303
1243
|
inModal?: boolean | undefined;
|
|
1304
1244
|
crossOutEnabled?: boolean | undefined;
|
|
1305
1245
|
editorChangeDelay?: number | undefined;
|
|
@@ -1359,29 +1299,24 @@ declare const InteractiveGraph: {
|
|
|
1359
1299
|
baseElements?: {
|
|
1360
1300
|
Link: React.ComponentType<any>;
|
|
1361
1301
|
} | undefined;
|
|
1362
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1302
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1303
|
+
* Whether to show the ruler on the graph.
|
|
1304
|
+
*/
|
|
1363
1305
|
trackInteraction?: ((args: {
|
|
1364
1306
|
type: string;
|
|
1365
1307
|
id: string;
|
|
1366
1308
|
correct?: boolean | undefined;
|
|
1367
1309
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1368
|
-
customKeypad?: boolean | undefined;
|
|
1310
|
+
customKeypad?: boolean | undefined; /**
|
|
1311
|
+
* Whether to show tooltips on the graph.
|
|
1312
|
+
* (Currently not used, but will be in the future.)
|
|
1313
|
+
*/
|
|
1369
1314
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1370
1315
|
isMobile?: boolean | undefined;
|
|
1371
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1372
|
-
* The number of ticks to display on the ruler.
|
|
1373
|
-
*/
|
|
1316
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1374
1317
|
useDraftEditor?: boolean | undefined;
|
|
1375
1318
|
hintProgressColor?: string | undefined;
|
|
1376
|
-
canScrollPage?: boolean | undefined;
|
|
1377
|
-
* The current correct answer for the graph. Updated by this component
|
|
1378
|
-
* when the graph is changed.
|
|
1379
|
-
*
|
|
1380
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1381
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1382
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1383
|
-
* editor page.
|
|
1384
|
-
*/
|
|
1319
|
+
canScrollPage?: boolean | undefined;
|
|
1385
1320
|
inModal?: boolean | undefined;
|
|
1386
1321
|
crossOutEnabled?: boolean | undefined;
|
|
1387
1322
|
editorChangeDelay?: number | undefined;
|
|
@@ -1421,10 +1356,16 @@ declare const InteractiveGraph: {
|
|
|
1421
1356
|
deprecatedProps: any;
|
|
1422
1357
|
setGraphie: (arg1: any) => void;
|
|
1423
1358
|
handleAddPointsMouseDown: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
1424
|
-
resetGraphie: () => void;
|
|
1359
|
+
resetGraphie: () => void; /**
|
|
1360
|
+
* The range of the graph in the x and y directions.
|
|
1361
|
+
*/
|
|
1425
1362
|
setupGraphie: () => void;
|
|
1426
1363
|
showHairlines: (arg1: import("@khanacademy/perseus").Coord) => void;
|
|
1427
1364
|
hideHairlines: () => void;
|
|
1365
|
+
/**
|
|
1366
|
+
* How far apart the tick marks on the axes are in the x and y
|
|
1367
|
+
* directions.
|
|
1368
|
+
*/
|
|
1428
1369
|
setTrashCanVisibility: (arg1: number) => void;
|
|
1429
1370
|
isClickToAddPoints: (arg1?: (PerseusInteractiveGraphWidgetOptions & {
|
|
1430
1371
|
widgetId: string;
|
|
@@ -1449,29 +1390,24 @@ declare const InteractiveGraph: {
|
|
|
1449
1390
|
baseElements?: {
|
|
1450
1391
|
Link: React.ComponentType<any>;
|
|
1451
1392
|
} | undefined;
|
|
1452
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1393
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1394
|
+
* Whether to show the ruler on the graph.
|
|
1395
|
+
*/
|
|
1453
1396
|
trackInteraction?: ((args: {
|
|
1454
1397
|
type: string;
|
|
1455
1398
|
id: string;
|
|
1456
1399
|
correct?: boolean | undefined;
|
|
1457
1400
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1458
|
-
customKeypad?: boolean | undefined;
|
|
1401
|
+
customKeypad?: boolean | undefined; /**
|
|
1402
|
+
* Whether to show tooltips on the graph.
|
|
1403
|
+
* (Currently not used, but will be in the future.)
|
|
1404
|
+
*/
|
|
1459
1405
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1460
1406
|
isMobile?: boolean | undefined;
|
|
1461
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1462
|
-
* The number of ticks to display on the ruler.
|
|
1463
|
-
*/
|
|
1407
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1464
1408
|
useDraftEditor?: boolean | undefined;
|
|
1465
1409
|
hintProgressColor?: string | undefined;
|
|
1466
|
-
canScrollPage?: boolean | undefined;
|
|
1467
|
-
* The current correct answer for the graph. Updated by this component
|
|
1468
|
-
* when the graph is changed.
|
|
1469
|
-
*
|
|
1470
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1471
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1472
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1473
|
-
* editor page.
|
|
1474
|
-
*/
|
|
1410
|
+
canScrollPage?: boolean | undefined;
|
|
1475
1411
|
inModal?: boolean | undefined;
|
|
1476
1412
|
crossOutEnabled?: boolean | undefined;
|
|
1477
1413
|
editorChangeDelay?: number | undefined;
|
|
@@ -1513,7 +1449,9 @@ declare const InteractiveGraph: {
|
|
|
1513
1449
|
arePolygonGraphsEqual(prevGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
|
|
1514
1450
|
areSegmentGraphsEqual(prevGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
|
|
1515
1451
|
_lineStroke: () => {
|
|
1516
|
-
"stroke-width"?: number | undefined;
|
|
1452
|
+
"stroke-width"?: number | undefined; /**
|
|
1453
|
+
* The background image to display in the graph area and its properties.
|
|
1454
|
+
*/
|
|
1517
1455
|
};
|
|
1518
1456
|
addLine: (arg1: string) => void;
|
|
1519
1457
|
removeLine: () => void;
|
|
@@ -1532,6 +1470,9 @@ declare const InteractiveGraph: {
|
|
|
1532
1470
|
isCoordInTrash: (arg1: import("@khanacademy/perseus").Coord) => boolean;
|
|
1533
1471
|
createPointForPointsType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
|
|
1534
1472
|
removePoint: (arg1: import("@khanacademy/perseus").Coord) => number | null | undefined;
|
|
1473
|
+
/**
|
|
1474
|
+
* The label to display on the ruler, if any.
|
|
1475
|
+
*/
|
|
1535
1476
|
createPointForPolygonType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
|
|
1536
1477
|
updateCoordsFromPoints: () => void;
|
|
1537
1478
|
clearCoords: () => void;
|
|
@@ -1547,8 +1488,12 @@ declare const InteractiveGraph: {
|
|
|
1547
1488
|
removePolygonControls: () => void;
|
|
1548
1489
|
addAngleControls: () => void;
|
|
1549
1490
|
removeAngleControls: () => void;
|
|
1550
|
-
toggleShowSides: () => void;
|
|
1551
|
-
|
|
1491
|
+
toggleShowSides: () => void; /**
|
|
1492
|
+
* The locked figures to display in the graph area.
|
|
1493
|
+
* Locked figures are graph elements (points, lines, line segmeents,
|
|
1494
|
+
* etc.) that are locked in place and not interactive.
|
|
1495
|
+
*/
|
|
1496
|
+
getUserInput: () => import("@khanacademy/perseus").PerseusGraphType;
|
|
1552
1497
|
simpleValidate: (rubric: PerseusInteractiveGraphWidgetOptions) => import("@khanacademy/perseus").PerseusScore;
|
|
1553
1498
|
focus: () => void;
|
|
1554
1499
|
render(): React.ReactNode;
|
|
@@ -1578,29 +1523,24 @@ declare const InteractiveGraph: {
|
|
|
1578
1523
|
baseElements?: {
|
|
1579
1524
|
Link: React.ComponentType<any>;
|
|
1580
1525
|
} | undefined;
|
|
1581
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1526
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1527
|
+
* Whether to show the ruler on the graph.
|
|
1528
|
+
*/
|
|
1582
1529
|
trackInteraction?: ((args: {
|
|
1583
1530
|
type: string;
|
|
1584
1531
|
id: string;
|
|
1585
1532
|
correct?: boolean | undefined;
|
|
1586
1533
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1587
|
-
customKeypad?: boolean | undefined;
|
|
1534
|
+
customKeypad?: boolean | undefined; /**
|
|
1535
|
+
* Whether to show tooltips on the graph.
|
|
1536
|
+
* (Currently not used, but will be in the future.)
|
|
1537
|
+
*/
|
|
1588
1538
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1589
1539
|
isMobile?: boolean | undefined;
|
|
1590
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1591
|
-
* The number of ticks to display on the ruler.
|
|
1592
|
-
*/
|
|
1540
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1593
1541
|
useDraftEditor?: boolean | undefined;
|
|
1594
1542
|
hintProgressColor?: string | undefined;
|
|
1595
|
-
canScrollPage?: boolean | undefined;
|
|
1596
|
-
* The current correct answer for the graph. Updated by this component
|
|
1597
|
-
* when the graph is changed.
|
|
1598
|
-
*
|
|
1599
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1600
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1601
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1602
|
-
* editor page.
|
|
1603
|
-
*/
|
|
1543
|
+
canScrollPage?: boolean | undefined;
|
|
1604
1544
|
inModal?: boolean | undefined;
|
|
1605
1545
|
crossOutEnabled?: boolean | undefined;
|
|
1606
1546
|
editorChangeDelay?: number | undefined;
|
|
@@ -1665,29 +1605,24 @@ declare const InteractiveGraph: {
|
|
|
1665
1605
|
baseElements?: {
|
|
1666
1606
|
Link: React.ComponentType<any>;
|
|
1667
1607
|
} | undefined;
|
|
1668
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1608
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1609
|
+
* Whether to show the ruler on the graph.
|
|
1610
|
+
*/
|
|
1669
1611
|
trackInteraction?: ((args: {
|
|
1670
1612
|
type: string;
|
|
1671
1613
|
id: string;
|
|
1672
1614
|
correct?: boolean | undefined;
|
|
1673
1615
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1674
|
-
customKeypad?: boolean | undefined;
|
|
1616
|
+
customKeypad?: boolean | undefined; /**
|
|
1617
|
+
* Whether to show tooltips on the graph.
|
|
1618
|
+
* (Currently not used, but will be in the future.)
|
|
1619
|
+
*/
|
|
1675
1620
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1676
1621
|
isMobile?: boolean | undefined;
|
|
1677
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1678
|
-
* The number of ticks to display on the ruler.
|
|
1679
|
-
*/
|
|
1622
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1680
1623
|
useDraftEditor?: boolean | undefined;
|
|
1681
1624
|
hintProgressColor?: string | undefined;
|
|
1682
|
-
canScrollPage?: boolean | undefined;
|
|
1683
|
-
* The current correct answer for the graph. Updated by this component
|
|
1684
|
-
* when the graph is changed.
|
|
1685
|
-
*
|
|
1686
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1687
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1688
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1689
|
-
* editor page.
|
|
1690
|
-
*/
|
|
1625
|
+
canScrollPage?: boolean | undefined;
|
|
1691
1626
|
inModal?: boolean | undefined;
|
|
1692
1627
|
crossOutEnabled?: boolean | undefined;
|
|
1693
1628
|
editorChangeDelay?: number | undefined;
|
|
@@ -1749,29 +1684,24 @@ declare const InteractiveGraph: {
|
|
|
1749
1684
|
baseElements?: {
|
|
1750
1685
|
Link: React.ComponentType<any>;
|
|
1751
1686
|
} | undefined;
|
|
1752
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1687
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1688
|
+
* Whether to show the ruler on the graph.
|
|
1689
|
+
*/
|
|
1753
1690
|
trackInteraction?: ((args: {
|
|
1754
1691
|
type: string;
|
|
1755
1692
|
id: string;
|
|
1756
1693
|
correct?: boolean | undefined;
|
|
1757
1694
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1758
|
-
customKeypad?: boolean | undefined;
|
|
1695
|
+
customKeypad?: boolean | undefined; /**
|
|
1696
|
+
* Whether to show tooltips on the graph.
|
|
1697
|
+
* (Currently not used, but will be in the future.)
|
|
1698
|
+
*/
|
|
1759
1699
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1760
1700
|
isMobile?: boolean | undefined;
|
|
1761
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1762
|
-
* The number of ticks to display on the ruler.
|
|
1763
|
-
*/
|
|
1701
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1764
1702
|
useDraftEditor?: boolean | undefined;
|
|
1765
1703
|
hintProgressColor?: string | undefined;
|
|
1766
|
-
canScrollPage?: boolean | undefined;
|
|
1767
|
-
* The current correct answer for the graph. Updated by this component
|
|
1768
|
-
* when the graph is changed.
|
|
1769
|
-
*
|
|
1770
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1771
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1772
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1773
|
-
* editor page.
|
|
1774
|
-
*/
|
|
1704
|
+
canScrollPage?: boolean | undefined;
|
|
1775
1705
|
inModal?: boolean | undefined;
|
|
1776
1706
|
crossOutEnabled?: boolean | undefined;
|
|
1777
1707
|
editorChangeDelay?: number | undefined;
|
|
@@ -1832,29 +1762,24 @@ declare const InteractiveGraph: {
|
|
|
1832
1762
|
baseElements?: {
|
|
1833
1763
|
Link: React.ComponentType<any>;
|
|
1834
1764
|
} | undefined;
|
|
1835
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1765
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1766
|
+
* Whether to show the ruler on the graph.
|
|
1767
|
+
*/
|
|
1836
1768
|
trackInteraction?: ((args: {
|
|
1837
1769
|
type: string;
|
|
1838
1770
|
id: string;
|
|
1839
1771
|
correct?: boolean | undefined;
|
|
1840
1772
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1841
|
-
customKeypad?: boolean | undefined;
|
|
1773
|
+
customKeypad?: boolean | undefined; /**
|
|
1774
|
+
* Whether to show tooltips on the graph.
|
|
1775
|
+
* (Currently not used, but will be in the future.)
|
|
1776
|
+
*/
|
|
1842
1777
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1843
1778
|
isMobile?: boolean | undefined;
|
|
1844
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1845
|
-
* The number of ticks to display on the ruler.
|
|
1846
|
-
*/
|
|
1779
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1847
1780
|
useDraftEditor?: boolean | undefined;
|
|
1848
1781
|
hintProgressColor?: string | undefined;
|
|
1849
|
-
canScrollPage?: boolean | undefined;
|
|
1850
|
-
* The current correct answer for the graph. Updated by this component
|
|
1851
|
-
* when the graph is changed.
|
|
1852
|
-
*
|
|
1853
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1854
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1855
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1856
|
-
* editor page.
|
|
1857
|
-
*/
|
|
1782
|
+
canScrollPage?: boolean | undefined;
|
|
1858
1783
|
inModal?: boolean | undefined;
|
|
1859
1784
|
crossOutEnabled?: boolean | undefined;
|
|
1860
1785
|
editorChangeDelay?: number | undefined;
|
|
@@ -1914,29 +1839,24 @@ declare const InteractiveGraph: {
|
|
|
1914
1839
|
baseElements?: {
|
|
1915
1840
|
Link: React.ComponentType<any>;
|
|
1916
1841
|
} | undefined;
|
|
1917
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1842
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1843
|
+
* Whether to show the ruler on the graph.
|
|
1844
|
+
*/
|
|
1918
1845
|
trackInteraction?: ((args: {
|
|
1919
1846
|
type: string;
|
|
1920
1847
|
id: string;
|
|
1921
1848
|
correct?: boolean | undefined;
|
|
1922
1849
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
1923
|
-
customKeypad?: boolean | undefined;
|
|
1850
|
+
customKeypad?: boolean | undefined; /**
|
|
1851
|
+
* Whether to show tooltips on the graph.
|
|
1852
|
+
* (Currently not used, but will be in the future.)
|
|
1853
|
+
*/
|
|
1924
1854
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
1925
1855
|
isMobile?: boolean | undefined;
|
|
1926
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1927
|
-
* The number of ticks to display on the ruler.
|
|
1928
|
-
*/
|
|
1856
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
1929
1857
|
useDraftEditor?: boolean | undefined;
|
|
1930
1858
|
hintProgressColor?: string | undefined;
|
|
1931
|
-
canScrollPage?: boolean | undefined;
|
|
1932
|
-
* The current correct answer for the graph. Updated by this component
|
|
1933
|
-
* when the graph is changed.
|
|
1934
|
-
*
|
|
1935
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
1936
|
-
* element. Instead, it is a representation of the correct answer based
|
|
1937
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
1938
|
-
* editor page.
|
|
1939
|
-
*/
|
|
1859
|
+
canScrollPage?: boolean | undefined;
|
|
1940
1860
|
inModal?: boolean | undefined;
|
|
1941
1861
|
crossOutEnabled?: boolean | undefined;
|
|
1942
1862
|
editorChangeDelay?: number | undefined;
|
|
@@ -1996,29 +1916,24 @@ declare const InteractiveGraph: {
|
|
|
1996
1916
|
baseElements?: {
|
|
1997
1917
|
Link: React.ComponentType<any>;
|
|
1998
1918
|
} | undefined;
|
|
1999
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
1919
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
1920
|
+
* Whether to show the ruler on the graph.
|
|
1921
|
+
*/
|
|
2000
1922
|
trackInteraction?: ((args: {
|
|
2001
1923
|
type: string;
|
|
2002
1924
|
id: string;
|
|
2003
1925
|
correct?: boolean | undefined;
|
|
2004
1926
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2005
|
-
customKeypad?: boolean | undefined;
|
|
1927
|
+
customKeypad?: boolean | undefined; /**
|
|
1928
|
+
* Whether to show tooltips on the graph.
|
|
1929
|
+
* (Currently not used, but will be in the future.)
|
|
1930
|
+
*/
|
|
2006
1931
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2007
1932
|
isMobile?: boolean | undefined;
|
|
2008
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2009
|
-
* The number of ticks to display on the ruler.
|
|
2010
|
-
*/
|
|
1933
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2011
1934
|
useDraftEditor?: boolean | undefined;
|
|
2012
1935
|
hintProgressColor?: string | undefined;
|
|
2013
|
-
canScrollPage?: boolean | undefined;
|
|
2014
|
-
* The current correct answer for the graph. Updated by this component
|
|
2015
|
-
* when the graph is changed.
|
|
2016
|
-
*
|
|
2017
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2018
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2019
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2020
|
-
* editor page.
|
|
2021
|
-
*/
|
|
1936
|
+
canScrollPage?: boolean | undefined;
|
|
2022
1937
|
inModal?: boolean | undefined;
|
|
2023
1938
|
crossOutEnabled?: boolean | undefined;
|
|
2024
1939
|
editorChangeDelay?: number | undefined;
|
|
@@ -2067,11 +1982,11 @@ declare const InteractiveGraph: {
|
|
|
2067
1982
|
showRuler: boolean;
|
|
2068
1983
|
rulerLabel: string;
|
|
2069
1984
|
rulerTicks: number;
|
|
2070
|
-
graph: import("
|
|
1985
|
+
graph: import("@khanacademy/perseus").PerseusGraphType;
|
|
2071
1986
|
};
|
|
2072
1987
|
getQuadraticCoefficients(coords: readonly import("@khanacademy/perseus").Coord[]): import("../../../perseus/src/util/geometry").QuadraticCoefficient;
|
|
2073
1988
|
getSinusoidCoefficients(coords: readonly import("@khanacademy/perseus").Coord[]): import("../../../perseus/src/util/geometry").SineCoefficient;
|
|
2074
|
-
getLineCoords(graph: import("
|
|
1989
|
+
getLineCoords(graph: import("@khanacademy/perseus").PerseusGraphType, props: PerseusInteractiveGraphWidgetOptions & {
|
|
2075
1990
|
widgetId: string;
|
|
2076
1991
|
alignment: string | null | undefined;
|
|
2077
1992
|
static: boolean | null | undefined;
|
|
@@ -2094,29 +2009,24 @@ declare const InteractiveGraph: {
|
|
|
2094
2009
|
baseElements?: {
|
|
2095
2010
|
Link: React.ComponentType<any>;
|
|
2096
2011
|
} | undefined;
|
|
2097
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2012
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2013
|
+
* Whether to show the ruler on the graph.
|
|
2014
|
+
*/
|
|
2098
2015
|
trackInteraction?: ((args: {
|
|
2099
2016
|
type: string;
|
|
2100
2017
|
id: string;
|
|
2101
2018
|
correct?: boolean | undefined;
|
|
2102
2019
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2103
|
-
customKeypad?: boolean | undefined;
|
|
2020
|
+
customKeypad?: boolean | undefined; /**
|
|
2021
|
+
* Whether to show tooltips on the graph.
|
|
2022
|
+
* (Currently not used, but will be in the future.)
|
|
2023
|
+
*/
|
|
2104
2024
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2105
2025
|
isMobile?: boolean | undefined;
|
|
2106
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2107
|
-
* The number of ticks to display on the ruler.
|
|
2108
|
-
*/
|
|
2026
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2109
2027
|
useDraftEditor?: boolean | undefined;
|
|
2110
2028
|
hintProgressColor?: string | undefined;
|
|
2111
|
-
canScrollPage?: boolean | undefined;
|
|
2112
|
-
* The current correct answer for the graph. Updated by this component
|
|
2113
|
-
* when the graph is changed.
|
|
2114
|
-
*
|
|
2115
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2116
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2117
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2118
|
-
* editor page.
|
|
2119
|
-
*/
|
|
2029
|
+
canScrollPage?: boolean | undefined;
|
|
2120
2030
|
inModal?: boolean | undefined;
|
|
2121
2031
|
crossOutEnabled?: boolean | undefined;
|
|
2122
2032
|
editorChangeDelay?: number | undefined;
|
|
@@ -2176,29 +2086,24 @@ declare const InteractiveGraph: {
|
|
|
2176
2086
|
baseElements?: {
|
|
2177
2087
|
Link: React.ComponentType<any>;
|
|
2178
2088
|
} | undefined;
|
|
2179
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2089
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2090
|
+
* Whether to show the ruler on the graph.
|
|
2091
|
+
*/
|
|
2180
2092
|
trackInteraction?: ((args: {
|
|
2181
2093
|
type: string;
|
|
2182
2094
|
id: string;
|
|
2183
2095
|
correct?: boolean | undefined;
|
|
2184
2096
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2185
|
-
customKeypad?: boolean | undefined;
|
|
2097
|
+
customKeypad?: boolean | undefined; /**
|
|
2098
|
+
* Whether to show tooltips on the graph.
|
|
2099
|
+
* (Currently not used, but will be in the future.)
|
|
2100
|
+
*/
|
|
2186
2101
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2187
2102
|
isMobile?: boolean | undefined;
|
|
2188
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2189
|
-
* The number of ticks to display on the ruler.
|
|
2190
|
-
*/
|
|
2103
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2191
2104
|
useDraftEditor?: boolean | undefined;
|
|
2192
2105
|
hintProgressColor?: string | undefined;
|
|
2193
|
-
canScrollPage?: boolean | undefined;
|
|
2194
|
-
* The current correct answer for the graph. Updated by this component
|
|
2195
|
-
* when the graph is changed.
|
|
2196
|
-
*
|
|
2197
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2198
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2199
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2200
|
-
* editor page.
|
|
2201
|
-
*/
|
|
2106
|
+
canScrollPage?: boolean | undefined;
|
|
2202
2107
|
inModal?: boolean | undefined;
|
|
2203
2108
|
crossOutEnabled?: boolean | undefined;
|
|
2204
2109
|
editorChangeDelay?: number | undefined;
|
|
@@ -2235,7 +2140,7 @@ declare const InteractiveGraph: {
|
|
|
2235
2140
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
2236
2141
|
containerSizeClass: SizingUtils.SizeClass;
|
|
2237
2142
|
}): readonly import("@khanacademy/perseus").Coord[];
|
|
2238
|
-
getLinearSystemCoords(graph: import("
|
|
2143
|
+
getLinearSystemCoords(graph: import("@khanacademy/perseus").PerseusGraphType, props: PerseusInteractiveGraphWidgetOptions & {
|
|
2239
2144
|
widgetId: string;
|
|
2240
2145
|
alignment: string | null | undefined;
|
|
2241
2146
|
static: boolean | null | undefined;
|
|
@@ -2258,29 +2163,24 @@ declare const InteractiveGraph: {
|
|
|
2258
2163
|
baseElements?: {
|
|
2259
2164
|
Link: React.ComponentType<any>;
|
|
2260
2165
|
} | undefined;
|
|
2261
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2166
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2167
|
+
* Whether to show the ruler on the graph.
|
|
2168
|
+
*/
|
|
2262
2169
|
trackInteraction?: ((args: {
|
|
2263
2170
|
type: string;
|
|
2264
2171
|
id: string;
|
|
2265
2172
|
correct?: boolean | undefined;
|
|
2266
2173
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2267
|
-
customKeypad?: boolean | undefined;
|
|
2174
|
+
customKeypad?: boolean | undefined; /**
|
|
2175
|
+
* Whether to show tooltips on the graph.
|
|
2176
|
+
* (Currently not used, but will be in the future.)
|
|
2177
|
+
*/
|
|
2268
2178
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2269
2179
|
isMobile?: boolean | undefined;
|
|
2270
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2271
|
-
* The number of ticks to display on the ruler.
|
|
2272
|
-
*/
|
|
2180
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2273
2181
|
useDraftEditor?: boolean | undefined;
|
|
2274
2182
|
hintProgressColor?: string | undefined;
|
|
2275
|
-
canScrollPage?: boolean | undefined;
|
|
2276
|
-
* The current correct answer for the graph. Updated by this component
|
|
2277
|
-
* when the graph is changed.
|
|
2278
|
-
*
|
|
2279
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2280
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2281
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2282
|
-
* editor page.
|
|
2283
|
-
*/
|
|
2183
|
+
canScrollPage?: boolean | undefined;
|
|
2284
2184
|
inModal?: boolean | undefined;
|
|
2285
2185
|
crossOutEnabled?: boolean | undefined;
|
|
2286
2186
|
editorChangeDelay?: number | undefined;
|
|
@@ -2317,7 +2217,7 @@ declare const InteractiveGraph: {
|
|
|
2317
2217
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
2318
2218
|
containerSizeClass: SizingUtils.SizeClass;
|
|
2319
2219
|
}): readonly (readonly import("@khanacademy/perseus").Coord[])[];
|
|
2320
|
-
getPolygonCoords(graph: import("
|
|
2220
|
+
getPolygonCoords(graph: import("@khanacademy/perseus").PerseusGraphType, props: PerseusInteractiveGraphWidgetOptions & {
|
|
2321
2221
|
widgetId: string;
|
|
2322
2222
|
alignment: string | null | undefined;
|
|
2323
2223
|
static: boolean | null | undefined;
|
|
@@ -2340,29 +2240,24 @@ declare const InteractiveGraph: {
|
|
|
2340
2240
|
baseElements?: {
|
|
2341
2241
|
Link: React.ComponentType<any>;
|
|
2342
2242
|
} | undefined;
|
|
2343
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2243
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2244
|
+
* Whether to show the ruler on the graph.
|
|
2245
|
+
*/
|
|
2344
2246
|
trackInteraction?: ((args: {
|
|
2345
2247
|
type: string;
|
|
2346
2248
|
id: string;
|
|
2347
2249
|
correct?: boolean | undefined;
|
|
2348
2250
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2349
|
-
customKeypad?: boolean | undefined;
|
|
2251
|
+
customKeypad?: boolean | undefined; /**
|
|
2252
|
+
* Whether to show tooltips on the graph.
|
|
2253
|
+
* (Currently not used, but will be in the future.)
|
|
2254
|
+
*/
|
|
2350
2255
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2351
2256
|
isMobile?: boolean | undefined;
|
|
2352
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2353
|
-
* The number of ticks to display on the ruler.
|
|
2354
|
-
*/
|
|
2257
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2355
2258
|
useDraftEditor?: boolean | undefined;
|
|
2356
2259
|
hintProgressColor?: string | undefined;
|
|
2357
|
-
canScrollPage?: boolean | undefined;
|
|
2358
|
-
* The current correct answer for the graph. Updated by this component
|
|
2359
|
-
* when the graph is changed.
|
|
2360
|
-
*
|
|
2361
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2362
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2363
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2364
|
-
* editor page.
|
|
2365
|
-
*/
|
|
2260
|
+
canScrollPage?: boolean | undefined;
|
|
2366
2261
|
inModal?: boolean | undefined;
|
|
2367
2262
|
crossOutEnabled?: boolean | undefined;
|
|
2368
2263
|
editorChangeDelay?: number | undefined;
|
|
@@ -2422,29 +2317,24 @@ declare const InteractiveGraph: {
|
|
|
2422
2317
|
baseElements?: {
|
|
2423
2318
|
Link: React.ComponentType<any>;
|
|
2424
2319
|
} | undefined;
|
|
2425
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2320
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2321
|
+
* Whether to show the ruler on the graph.
|
|
2322
|
+
*/
|
|
2426
2323
|
trackInteraction?: ((args: {
|
|
2427
2324
|
type: string;
|
|
2428
2325
|
id: string;
|
|
2429
2326
|
correct?: boolean | undefined;
|
|
2430
2327
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2431
|
-
customKeypad?: boolean | undefined;
|
|
2328
|
+
customKeypad?: boolean | undefined; /**
|
|
2329
|
+
* Whether to show tooltips on the graph.
|
|
2330
|
+
* (Currently not used, but will be in the future.)
|
|
2331
|
+
*/
|
|
2432
2332
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2433
2333
|
isMobile?: boolean | undefined;
|
|
2434
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2435
|
-
* The number of ticks to display on the ruler.
|
|
2436
|
-
*/
|
|
2334
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2437
2335
|
useDraftEditor?: boolean | undefined;
|
|
2438
2336
|
hintProgressColor?: string | undefined;
|
|
2439
|
-
canScrollPage?: boolean | undefined;
|
|
2440
|
-
* The current correct answer for the graph. Updated by this component
|
|
2441
|
-
* when the graph is changed.
|
|
2442
|
-
*
|
|
2443
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2444
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2445
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2446
|
-
* editor page.
|
|
2447
|
-
*/
|
|
2337
|
+
canScrollPage?: boolean | undefined;
|
|
2448
2338
|
inModal?: boolean | undefined;
|
|
2449
2339
|
crossOutEnabled?: boolean | undefined;
|
|
2450
2340
|
editorChangeDelay?: number | undefined;
|
|
@@ -2504,29 +2394,24 @@ declare const InteractiveGraph: {
|
|
|
2504
2394
|
baseElements?: {
|
|
2505
2395
|
Link: React.ComponentType<any>;
|
|
2506
2396
|
} | undefined;
|
|
2507
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2397
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2398
|
+
* Whether to show the ruler on the graph.
|
|
2399
|
+
*/
|
|
2508
2400
|
trackInteraction?: ((args: {
|
|
2509
2401
|
type: string;
|
|
2510
2402
|
id: string;
|
|
2511
2403
|
correct?: boolean | undefined;
|
|
2512
2404
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2513
|
-
customKeypad?: boolean | undefined;
|
|
2405
|
+
customKeypad?: boolean | undefined; /**
|
|
2406
|
+
* Whether to show tooltips on the graph.
|
|
2407
|
+
* (Currently not used, but will be in the future.)
|
|
2408
|
+
*/
|
|
2514
2409
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2515
2410
|
isMobile?: boolean | undefined;
|
|
2516
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2517
|
-
* The number of ticks to display on the ruler.
|
|
2518
|
-
*/
|
|
2411
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2519
2412
|
useDraftEditor?: boolean | undefined;
|
|
2520
2413
|
hintProgressColor?: string | undefined;
|
|
2521
|
-
canScrollPage?: boolean | undefined;
|
|
2522
|
-
* The current correct answer for the graph. Updated by this component
|
|
2523
|
-
* when the graph is changed.
|
|
2524
|
-
*
|
|
2525
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2526
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2527
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2528
|
-
* editor page.
|
|
2529
|
-
*/
|
|
2414
|
+
canScrollPage?: boolean | undefined;
|
|
2530
2415
|
inModal?: boolean | undefined;
|
|
2531
2416
|
crossOutEnabled?: boolean | undefined;
|
|
2532
2417
|
editorChangeDelay?: number | undefined;
|
|
@@ -2587,29 +2472,24 @@ declare const InteractiveGraph: {
|
|
|
2587
2472
|
baseElements?: {
|
|
2588
2473
|
Link: React.ComponentType<any>;
|
|
2589
2474
|
} | undefined;
|
|
2590
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2475
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2476
|
+
* Whether to show the ruler on the graph.
|
|
2477
|
+
*/
|
|
2591
2478
|
trackInteraction?: ((args: {
|
|
2592
2479
|
type: string;
|
|
2593
2480
|
id: string;
|
|
2594
2481
|
correct?: boolean | undefined;
|
|
2595
2482
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2596
|
-
customKeypad?: boolean | undefined;
|
|
2483
|
+
customKeypad?: boolean | undefined; /**
|
|
2484
|
+
* Whether to show tooltips on the graph.
|
|
2485
|
+
* (Currently not used, but will be in the future.)
|
|
2486
|
+
*/
|
|
2597
2487
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2598
2488
|
isMobile?: boolean | undefined;
|
|
2599
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2600
|
-
* The number of ticks to display on the ruler.
|
|
2601
|
-
*/
|
|
2489
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2602
2490
|
useDraftEditor?: boolean | undefined;
|
|
2603
2491
|
hintProgressColor?: string | undefined;
|
|
2604
|
-
canScrollPage?: boolean | undefined;
|
|
2605
|
-
* The current correct answer for the graph. Updated by this component
|
|
2606
|
-
* when the graph is changed.
|
|
2607
|
-
*
|
|
2608
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2609
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2610
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2611
|
-
* editor page.
|
|
2612
|
-
*/
|
|
2492
|
+
canScrollPage?: boolean | undefined;
|
|
2613
2493
|
inModal?: boolean | undefined;
|
|
2614
2494
|
crossOutEnabled?: boolean | undefined;
|
|
2615
2495
|
editorChangeDelay?: number | undefined;
|
|
@@ -2669,29 +2549,24 @@ declare const InteractiveGraph: {
|
|
|
2669
2549
|
baseElements?: {
|
|
2670
2550
|
Link: React.ComponentType<any>;
|
|
2671
2551
|
} | undefined;
|
|
2672
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2552
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2553
|
+
* Whether to show the ruler on the graph.
|
|
2554
|
+
*/
|
|
2673
2555
|
trackInteraction?: ((args: {
|
|
2674
2556
|
type: string;
|
|
2675
2557
|
id: string;
|
|
2676
2558
|
correct?: boolean | undefined;
|
|
2677
2559
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2678
|
-
customKeypad?: boolean | undefined;
|
|
2560
|
+
customKeypad?: boolean | undefined; /**
|
|
2561
|
+
* Whether to show tooltips on the graph.
|
|
2562
|
+
* (Currently not used, but will be in the future.)
|
|
2563
|
+
*/
|
|
2679
2564
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2680
2565
|
isMobile?: boolean | undefined;
|
|
2681
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2682
|
-
* The number of ticks to display on the ruler.
|
|
2683
|
-
*/
|
|
2566
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2684
2567
|
useDraftEditor?: boolean | undefined;
|
|
2685
2568
|
hintProgressColor?: string | undefined;
|
|
2686
|
-
canScrollPage?: boolean | undefined;
|
|
2687
|
-
* The current correct answer for the graph. Updated by this component
|
|
2688
|
-
* when the graph is changed.
|
|
2689
|
-
*
|
|
2690
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2691
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2692
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2693
|
-
* editor page.
|
|
2694
|
-
*/
|
|
2569
|
+
canScrollPage?: boolean | undefined;
|
|
2695
2570
|
inModal?: boolean | undefined;
|
|
2696
2571
|
crossOutEnabled?: boolean | undefined;
|
|
2697
2572
|
editorChangeDelay?: number | undefined;
|
|
@@ -2751,29 +2626,24 @@ declare const InteractiveGraph: {
|
|
|
2751
2626
|
baseElements?: {
|
|
2752
2627
|
Link: React.ComponentType<any>;
|
|
2753
2628
|
} | undefined;
|
|
2754
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2629
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2630
|
+
* Whether to show the ruler on the graph.
|
|
2631
|
+
*/
|
|
2755
2632
|
trackInteraction?: ((args: {
|
|
2756
2633
|
type: string;
|
|
2757
2634
|
id: string;
|
|
2758
2635
|
correct?: boolean | undefined;
|
|
2759
2636
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2760
|
-
customKeypad?: boolean | undefined;
|
|
2637
|
+
customKeypad?: boolean | undefined; /**
|
|
2638
|
+
* Whether to show tooltips on the graph.
|
|
2639
|
+
* (Currently not used, but will be in the future.)
|
|
2640
|
+
*/
|
|
2761
2641
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2762
2642
|
isMobile?: boolean | undefined;
|
|
2763
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2764
|
-
* The number of ticks to display on the ruler.
|
|
2765
|
-
*/
|
|
2643
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2766
2644
|
useDraftEditor?: boolean | undefined;
|
|
2767
2645
|
hintProgressColor?: string | undefined;
|
|
2768
|
-
canScrollPage?: boolean | undefined;
|
|
2769
|
-
* The current correct answer for the graph. Updated by this component
|
|
2770
|
-
* when the graph is changed.
|
|
2771
|
-
*
|
|
2772
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2773
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2774
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2775
|
-
* editor page.
|
|
2776
|
-
*/
|
|
2646
|
+
canScrollPage?: boolean | undefined;
|
|
2777
2647
|
inModal?: boolean | undefined;
|
|
2778
2648
|
crossOutEnabled?: boolean | undefined;
|
|
2779
2649
|
editorChangeDelay?: number | undefined;
|
|
@@ -2833,29 +2703,24 @@ declare const InteractiveGraph: {
|
|
|
2833
2703
|
baseElements?: {
|
|
2834
2704
|
Link: React.ComponentType<any>;
|
|
2835
2705
|
} | undefined;
|
|
2836
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2706
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2707
|
+
* Whether to show the ruler on the graph.
|
|
2708
|
+
*/
|
|
2837
2709
|
trackInteraction?: ((args: {
|
|
2838
2710
|
type: string;
|
|
2839
2711
|
id: string;
|
|
2840
2712
|
correct?: boolean | undefined;
|
|
2841
2713
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2842
|
-
customKeypad?: boolean | undefined;
|
|
2714
|
+
customKeypad?: boolean | undefined; /**
|
|
2715
|
+
* Whether to show tooltips on the graph.
|
|
2716
|
+
* (Currently not used, but will be in the future.)
|
|
2717
|
+
*/
|
|
2843
2718
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2844
2719
|
isMobile?: boolean | undefined;
|
|
2845
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2846
|
-
* The number of ticks to display on the ruler.
|
|
2847
|
-
*/
|
|
2720
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2848
2721
|
useDraftEditor?: boolean | undefined;
|
|
2849
2722
|
hintProgressColor?: string | undefined;
|
|
2850
|
-
canScrollPage?: boolean | undefined;
|
|
2851
|
-
* The current correct answer for the graph. Updated by this component
|
|
2852
|
-
* when the graph is changed.
|
|
2853
|
-
*
|
|
2854
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2855
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2856
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2857
|
-
* editor page.
|
|
2858
|
-
*/
|
|
2723
|
+
canScrollPage?: boolean | undefined;
|
|
2859
2724
|
inModal?: boolean | undefined;
|
|
2860
2725
|
crossOutEnabled?: boolean | undefined;
|
|
2861
2726
|
editorChangeDelay?: number | undefined;
|
|
@@ -2915,29 +2780,24 @@ declare const InteractiveGraph: {
|
|
|
2915
2780
|
baseElements?: {
|
|
2916
2781
|
Link: React.ComponentType<any>;
|
|
2917
2782
|
} | undefined;
|
|
2918
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2783
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2784
|
+
* Whether to show the ruler on the graph.
|
|
2785
|
+
*/
|
|
2919
2786
|
trackInteraction?: ((args: {
|
|
2920
2787
|
type: string;
|
|
2921
2788
|
id: string;
|
|
2922
2789
|
correct?: boolean | undefined;
|
|
2923
2790
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
2924
|
-
customKeypad?: boolean | undefined;
|
|
2791
|
+
customKeypad?: boolean | undefined; /**
|
|
2792
|
+
* Whether to show tooltips on the graph.
|
|
2793
|
+
* (Currently not used, but will be in the future.)
|
|
2794
|
+
*/
|
|
2925
2795
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
2926
2796
|
isMobile?: boolean | undefined;
|
|
2927
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2928
|
-
* The number of ticks to display on the ruler.
|
|
2929
|
-
*/
|
|
2797
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
2930
2798
|
useDraftEditor?: boolean | undefined;
|
|
2931
2799
|
hintProgressColor?: string | undefined;
|
|
2932
|
-
canScrollPage?: boolean | undefined;
|
|
2933
|
-
* The current correct answer for the graph. Updated by this component
|
|
2934
|
-
* when the graph is changed.
|
|
2935
|
-
*
|
|
2936
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
2937
|
-
* element. Instead, it is a representation of the correct answer based
|
|
2938
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
2939
|
-
* editor page.
|
|
2940
|
-
*/
|
|
2800
|
+
canScrollPage?: boolean | undefined;
|
|
2941
2801
|
inModal?: boolean | undefined;
|
|
2942
2802
|
crossOutEnabled?: boolean | undefined;
|
|
2943
2803
|
editorChangeDelay?: number | undefined;
|
|
@@ -2997,29 +2857,24 @@ declare const InteractiveGraph: {
|
|
|
2997
2857
|
baseElements?: {
|
|
2998
2858
|
Link: React.ComponentType<any>;
|
|
2999
2859
|
} | undefined;
|
|
3000
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2860
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2861
|
+
* Whether to show the ruler on the graph.
|
|
2862
|
+
*/
|
|
3001
2863
|
trackInteraction?: ((args: {
|
|
3002
2864
|
type: string;
|
|
3003
2865
|
id: string;
|
|
3004
2866
|
correct?: boolean | undefined;
|
|
3005
2867
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3006
|
-
customKeypad?: boolean | undefined;
|
|
2868
|
+
customKeypad?: boolean | undefined; /**
|
|
2869
|
+
* Whether to show tooltips on the graph.
|
|
2870
|
+
* (Currently not used, but will be in the future.)
|
|
2871
|
+
*/
|
|
3007
2872
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3008
2873
|
isMobile?: boolean | undefined;
|
|
3009
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3010
|
-
* The number of ticks to display on the ruler.
|
|
3011
|
-
*/
|
|
2874
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3012
2875
|
useDraftEditor?: boolean | undefined;
|
|
3013
2876
|
hintProgressColor?: string | undefined;
|
|
3014
|
-
canScrollPage?: boolean | undefined;
|
|
3015
|
-
* The current correct answer for the graph. Updated by this component
|
|
3016
|
-
* when the graph is changed.
|
|
3017
|
-
*
|
|
3018
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3019
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3020
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3021
|
-
* editor page.
|
|
3022
|
-
*/
|
|
2877
|
+
canScrollPage?: boolean | undefined;
|
|
3023
2878
|
inModal?: boolean | undefined;
|
|
3024
2879
|
crossOutEnabled?: boolean | undefined;
|
|
3025
2880
|
editorChangeDelay?: number | undefined;
|
|
@@ -3079,29 +2934,24 @@ declare const InteractiveGraph: {
|
|
|
3079
2934
|
baseElements?: {
|
|
3080
2935
|
Link: React.ComponentType<any>;
|
|
3081
2936
|
} | undefined;
|
|
3082
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
2937
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
2938
|
+
* Whether to show the ruler on the graph.
|
|
2939
|
+
*/
|
|
3083
2940
|
trackInteraction?: ((args: {
|
|
3084
2941
|
type: string;
|
|
3085
2942
|
id: string;
|
|
3086
2943
|
correct?: boolean | undefined;
|
|
3087
2944
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3088
|
-
customKeypad?: boolean | undefined;
|
|
2945
|
+
customKeypad?: boolean | undefined; /**
|
|
2946
|
+
* Whether to show tooltips on the graph.
|
|
2947
|
+
* (Currently not used, but will be in the future.)
|
|
2948
|
+
*/
|
|
3089
2949
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3090
2950
|
isMobile?: boolean | undefined;
|
|
3091
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3092
|
-
* The number of ticks to display on the ruler.
|
|
3093
|
-
*/
|
|
2951
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3094
2952
|
useDraftEditor?: boolean | undefined;
|
|
3095
2953
|
hintProgressColor?: string | undefined;
|
|
3096
|
-
canScrollPage?: boolean | undefined;
|
|
3097
|
-
* The current correct answer for the graph. Updated by this component
|
|
3098
|
-
* when the graph is changed.
|
|
3099
|
-
*
|
|
3100
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3101
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3102
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3103
|
-
* editor page.
|
|
3104
|
-
*/
|
|
2954
|
+
canScrollPage?: boolean | undefined;
|
|
3105
2955
|
inModal?: boolean | undefined;
|
|
3106
2956
|
crossOutEnabled?: boolean | undefined;
|
|
3107
2957
|
editorChangeDelay?: number | undefined;
|
|
@@ -3161,29 +3011,24 @@ declare const InteractiveGraph: {
|
|
|
3161
3011
|
baseElements?: {
|
|
3162
3012
|
Link: React.ComponentType<any>;
|
|
3163
3013
|
} | undefined;
|
|
3164
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3014
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3015
|
+
* Whether to show the ruler on the graph.
|
|
3016
|
+
*/
|
|
3165
3017
|
trackInteraction?: ((args: {
|
|
3166
3018
|
type: string;
|
|
3167
3019
|
id: string;
|
|
3168
3020
|
correct?: boolean | undefined;
|
|
3169
3021
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3170
|
-
customKeypad?: boolean | undefined;
|
|
3022
|
+
customKeypad?: boolean | undefined; /**
|
|
3023
|
+
* Whether to show tooltips on the graph.
|
|
3024
|
+
* (Currently not used, but will be in the future.)
|
|
3025
|
+
*/
|
|
3171
3026
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3172
3027
|
isMobile?: boolean | undefined;
|
|
3173
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3174
|
-
* The number of ticks to display on the ruler.
|
|
3175
|
-
*/
|
|
3028
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3176
3029
|
useDraftEditor?: boolean | undefined;
|
|
3177
3030
|
hintProgressColor?: string | undefined;
|
|
3178
|
-
canScrollPage?: boolean | undefined;
|
|
3179
|
-
* The current correct answer for the graph. Updated by this component
|
|
3180
|
-
* when the graph is changed.
|
|
3181
|
-
*
|
|
3182
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3183
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3184
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3185
|
-
* editor page.
|
|
3186
|
-
*/
|
|
3031
|
+
canScrollPage?: boolean | undefined;
|
|
3187
3032
|
inModal?: boolean | undefined;
|
|
3188
3033
|
crossOutEnabled?: boolean | undefined;
|
|
3189
3034
|
editorChangeDelay?: number | undefined;
|
|
@@ -3243,29 +3088,24 @@ declare const InteractiveGraph: {
|
|
|
3243
3088
|
baseElements?: {
|
|
3244
3089
|
Link: React.ComponentType<any>;
|
|
3245
3090
|
} | undefined;
|
|
3246
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3091
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3092
|
+
* Whether to show the ruler on the graph.
|
|
3093
|
+
*/
|
|
3247
3094
|
trackInteraction?: ((args: {
|
|
3248
3095
|
type: string;
|
|
3249
3096
|
id: string;
|
|
3250
3097
|
correct?: boolean | undefined;
|
|
3251
3098
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3252
|
-
customKeypad?: boolean | undefined;
|
|
3099
|
+
customKeypad?: boolean | undefined; /**
|
|
3100
|
+
* Whether to show tooltips on the graph.
|
|
3101
|
+
* (Currently not used, but will be in the future.)
|
|
3102
|
+
*/
|
|
3253
3103
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3254
3104
|
isMobile?: boolean | undefined;
|
|
3255
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3256
|
-
* The number of ticks to display on the ruler.
|
|
3257
|
-
*/
|
|
3105
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3258
3106
|
useDraftEditor?: boolean | undefined;
|
|
3259
3107
|
hintProgressColor?: string | undefined;
|
|
3260
|
-
canScrollPage?: boolean | undefined;
|
|
3261
|
-
* The current correct answer for the graph. Updated by this component
|
|
3262
|
-
* when the graph is changed.
|
|
3263
|
-
*
|
|
3264
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3265
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3266
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3267
|
-
* editor page.
|
|
3268
|
-
*/
|
|
3108
|
+
canScrollPage?: boolean | undefined;
|
|
3269
3109
|
inModal?: boolean | undefined;
|
|
3270
3110
|
crossOutEnabled?: boolean | undefined;
|
|
3271
3111
|
editorChangeDelay?: number | undefined;
|
|
@@ -3325,29 +3165,24 @@ declare const InteractiveGraph: {
|
|
|
3325
3165
|
baseElements?: {
|
|
3326
3166
|
Link: React.ComponentType<any>;
|
|
3327
3167
|
} | undefined;
|
|
3328
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3168
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3169
|
+
* Whether to show the ruler on the graph.
|
|
3170
|
+
*/
|
|
3329
3171
|
trackInteraction?: ((args: {
|
|
3330
3172
|
type: string;
|
|
3331
3173
|
id: string;
|
|
3332
3174
|
correct?: boolean | undefined;
|
|
3333
3175
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3334
|
-
customKeypad?: boolean | undefined;
|
|
3176
|
+
customKeypad?: boolean | undefined; /**
|
|
3177
|
+
* Whether to show tooltips on the graph.
|
|
3178
|
+
* (Currently not used, but will be in the future.)
|
|
3179
|
+
*/
|
|
3335
3180
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3336
3181
|
isMobile?: boolean | undefined;
|
|
3337
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3338
|
-
* The number of ticks to display on the ruler.
|
|
3339
|
-
*/
|
|
3182
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3340
3183
|
useDraftEditor?: boolean | undefined;
|
|
3341
3184
|
hintProgressColor?: string | undefined;
|
|
3342
|
-
canScrollPage?: boolean | undefined;
|
|
3343
|
-
* The current correct answer for the graph. Updated by this component
|
|
3344
|
-
* when the graph is changed.
|
|
3345
|
-
*
|
|
3346
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3347
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3348
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3349
|
-
* editor page.
|
|
3350
|
-
*/
|
|
3185
|
+
canScrollPage?: boolean | undefined;
|
|
3351
3186
|
inModal?: boolean | undefined;
|
|
3352
3187
|
crossOutEnabled?: boolean | undefined;
|
|
3353
3188
|
editorChangeDelay?: number | undefined;
|
|
@@ -3407,29 +3242,24 @@ declare const InteractiveGraph: {
|
|
|
3407
3242
|
baseElements?: {
|
|
3408
3243
|
Link: React.ComponentType<any>;
|
|
3409
3244
|
} | undefined;
|
|
3410
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3245
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3246
|
+
* Whether to show the ruler on the graph.
|
|
3247
|
+
*/
|
|
3411
3248
|
trackInteraction?: ((args: {
|
|
3412
3249
|
type: string;
|
|
3413
3250
|
id: string;
|
|
3414
3251
|
correct?: boolean | undefined;
|
|
3415
3252
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3416
|
-
customKeypad?: boolean | undefined;
|
|
3253
|
+
customKeypad?: boolean | undefined; /**
|
|
3254
|
+
* Whether to show tooltips on the graph.
|
|
3255
|
+
* (Currently not used, but will be in the future.)
|
|
3256
|
+
*/
|
|
3417
3257
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3418
3258
|
isMobile?: boolean | undefined;
|
|
3419
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3420
|
-
* The number of ticks to display on the ruler.
|
|
3421
|
-
*/
|
|
3259
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3422
3260
|
useDraftEditor?: boolean | undefined;
|
|
3423
3261
|
hintProgressColor?: string | undefined;
|
|
3424
|
-
canScrollPage?: boolean | undefined;
|
|
3425
|
-
* The current correct answer for the graph. Updated by this component
|
|
3426
|
-
* when the graph is changed.
|
|
3427
|
-
*
|
|
3428
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3429
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3430
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3431
|
-
* editor page.
|
|
3432
|
-
*/
|
|
3262
|
+
canScrollPage?: boolean | undefined;
|
|
3433
3263
|
inModal?: boolean | undefined;
|
|
3434
3264
|
crossOutEnabled?: boolean | undefined;
|
|
3435
3265
|
editorChangeDelay?: number | undefined;
|
|
@@ -3489,29 +3319,24 @@ declare const InteractiveGraph: {
|
|
|
3489
3319
|
baseElements?: {
|
|
3490
3320
|
Link: React.ComponentType<any>;
|
|
3491
3321
|
} | undefined;
|
|
3492
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3322
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3323
|
+
* Whether to show the ruler on the graph.
|
|
3324
|
+
*/
|
|
3493
3325
|
trackInteraction?: ((args: {
|
|
3494
3326
|
type: string;
|
|
3495
3327
|
id: string;
|
|
3496
3328
|
correct?: boolean | undefined;
|
|
3497
3329
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3498
|
-
customKeypad?: boolean | undefined;
|
|
3330
|
+
customKeypad?: boolean | undefined; /**
|
|
3331
|
+
* Whether to show tooltips on the graph.
|
|
3332
|
+
* (Currently not used, but will be in the future.)
|
|
3333
|
+
*/
|
|
3499
3334
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3500
3335
|
isMobile?: boolean | undefined;
|
|
3501
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3502
|
-
* The number of ticks to display on the ruler.
|
|
3503
|
-
*/
|
|
3336
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3504
3337
|
useDraftEditor?: boolean | undefined;
|
|
3505
3338
|
hintProgressColor?: string | undefined;
|
|
3506
|
-
canScrollPage?: boolean | undefined;
|
|
3507
|
-
* The current correct answer for the graph. Updated by this component
|
|
3508
|
-
* when the graph is changed.
|
|
3509
|
-
*
|
|
3510
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3511
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3512
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3513
|
-
* editor page.
|
|
3514
|
-
*/
|
|
3339
|
+
canScrollPage?: boolean | undefined;
|
|
3515
3340
|
inModal?: boolean | undefined;
|
|
3516
3341
|
crossOutEnabled?: boolean | undefined;
|
|
3517
3342
|
editorChangeDelay?: number | undefined;
|
|
@@ -3571,29 +3396,24 @@ declare const InteractiveGraph: {
|
|
|
3571
3396
|
baseElements?: {
|
|
3572
3397
|
Link: React.ComponentType<any>;
|
|
3573
3398
|
} | undefined;
|
|
3574
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3399
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3400
|
+
* Whether to show the ruler on the graph.
|
|
3401
|
+
*/
|
|
3575
3402
|
trackInteraction?: ((args: {
|
|
3576
3403
|
type: string;
|
|
3577
3404
|
id: string;
|
|
3578
3405
|
correct?: boolean | undefined;
|
|
3579
3406
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3580
|
-
customKeypad?: boolean | undefined;
|
|
3407
|
+
customKeypad?: boolean | undefined; /**
|
|
3408
|
+
* Whether to show tooltips on the graph.
|
|
3409
|
+
* (Currently not used, but will be in the future.)
|
|
3410
|
+
*/
|
|
3581
3411
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3582
3412
|
isMobile?: boolean | undefined;
|
|
3583
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3584
|
-
* The number of ticks to display on the ruler.
|
|
3585
|
-
*/
|
|
3413
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3586
3414
|
useDraftEditor?: boolean | undefined;
|
|
3587
3415
|
hintProgressColor?: string | undefined;
|
|
3588
|
-
canScrollPage?: boolean | undefined;
|
|
3589
|
-
* The current correct answer for the graph. Updated by this component
|
|
3590
|
-
* when the graph is changed.
|
|
3591
|
-
*
|
|
3592
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3593
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3594
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3595
|
-
* editor page.
|
|
3596
|
-
*/
|
|
3416
|
+
canScrollPage?: boolean | undefined;
|
|
3597
3417
|
inModal?: boolean | undefined;
|
|
3598
3418
|
crossOutEnabled?: boolean | undefined;
|
|
3599
3419
|
editorChangeDelay?: number | undefined;
|
|
@@ -3653,29 +3473,24 @@ declare const InteractiveGraph: {
|
|
|
3653
3473
|
baseElements?: {
|
|
3654
3474
|
Link: React.ComponentType<any>;
|
|
3655
3475
|
} | undefined;
|
|
3656
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3476
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3477
|
+
* Whether to show the ruler on the graph.
|
|
3478
|
+
*/
|
|
3657
3479
|
trackInteraction?: ((args: {
|
|
3658
3480
|
type: string;
|
|
3659
3481
|
id: string;
|
|
3660
3482
|
correct?: boolean | undefined;
|
|
3661
3483
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3662
|
-
customKeypad?: boolean | undefined;
|
|
3484
|
+
customKeypad?: boolean | undefined; /**
|
|
3485
|
+
* Whether to show tooltips on the graph.
|
|
3486
|
+
* (Currently not used, but will be in the future.)
|
|
3487
|
+
*/
|
|
3663
3488
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3664
3489
|
isMobile?: boolean | undefined;
|
|
3665
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3666
|
-
* The number of ticks to display on the ruler.
|
|
3667
|
-
*/
|
|
3490
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3668
3491
|
useDraftEditor?: boolean | undefined;
|
|
3669
3492
|
hintProgressColor?: string | undefined;
|
|
3670
|
-
canScrollPage?: boolean | undefined;
|
|
3671
|
-
* The current correct answer for the graph. Updated by this component
|
|
3672
|
-
* when the graph is changed.
|
|
3673
|
-
*
|
|
3674
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3675
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3676
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3677
|
-
* editor page.
|
|
3678
|
-
*/
|
|
3493
|
+
canScrollPage?: boolean | undefined;
|
|
3679
3494
|
inModal?: boolean | undefined;
|
|
3680
3495
|
crossOutEnabled?: boolean | undefined;
|
|
3681
3496
|
editorChangeDelay?: number | undefined;
|
|
@@ -3735,29 +3550,24 @@ declare const InteractiveGraph: {
|
|
|
3735
3550
|
baseElements?: {
|
|
3736
3551
|
Link: React.ComponentType<any>;
|
|
3737
3552
|
} | undefined;
|
|
3738
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3553
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3554
|
+
* Whether to show the ruler on the graph.
|
|
3555
|
+
*/
|
|
3739
3556
|
trackInteraction?: ((args: {
|
|
3740
3557
|
type: string;
|
|
3741
3558
|
id: string;
|
|
3742
3559
|
correct?: boolean | undefined;
|
|
3743
3560
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3744
|
-
customKeypad?: boolean | undefined;
|
|
3561
|
+
customKeypad?: boolean | undefined; /**
|
|
3562
|
+
* Whether to show tooltips on the graph.
|
|
3563
|
+
* (Currently not used, but will be in the future.)
|
|
3564
|
+
*/
|
|
3745
3565
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3746
3566
|
isMobile?: boolean | undefined;
|
|
3747
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3748
|
-
* The number of ticks to display on the ruler.
|
|
3749
|
-
*/
|
|
3567
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3750
3568
|
useDraftEditor?: boolean | undefined;
|
|
3751
3569
|
hintProgressColor?: string | undefined;
|
|
3752
|
-
canScrollPage?: boolean | undefined;
|
|
3753
|
-
* The current correct answer for the graph. Updated by this component
|
|
3754
|
-
* when the graph is changed.
|
|
3755
|
-
*
|
|
3756
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3757
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3758
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3759
|
-
* editor page.
|
|
3760
|
-
*/
|
|
3570
|
+
canScrollPage?: boolean | undefined;
|
|
3761
3571
|
inModal?: boolean | undefined;
|
|
3762
3572
|
crossOutEnabled?: boolean | undefined;
|
|
3763
3573
|
editorChangeDelay?: number | undefined;
|
|
@@ -3817,29 +3627,24 @@ declare const InteractiveGraph: {
|
|
|
3817
3627
|
baseElements?: {
|
|
3818
3628
|
Link: React.ComponentType<any>;
|
|
3819
3629
|
} | undefined;
|
|
3820
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3630
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3631
|
+
* Whether to show the ruler on the graph.
|
|
3632
|
+
*/
|
|
3821
3633
|
trackInteraction?: ((args: {
|
|
3822
3634
|
type: string;
|
|
3823
3635
|
id: string;
|
|
3824
3636
|
correct?: boolean | undefined;
|
|
3825
3637
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3826
|
-
customKeypad?: boolean | undefined;
|
|
3638
|
+
customKeypad?: boolean | undefined; /**
|
|
3639
|
+
* Whether to show tooltips on the graph.
|
|
3640
|
+
* (Currently not used, but will be in the future.)
|
|
3641
|
+
*/
|
|
3827
3642
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3828
3643
|
isMobile?: boolean | undefined;
|
|
3829
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3830
|
-
* The number of ticks to display on the ruler.
|
|
3831
|
-
*/
|
|
3644
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3832
3645
|
useDraftEditor?: boolean | undefined;
|
|
3833
3646
|
hintProgressColor?: string | undefined;
|
|
3834
|
-
canScrollPage?: boolean | undefined;
|
|
3835
|
-
* The current correct answer for the graph. Updated by this component
|
|
3836
|
-
* when the graph is changed.
|
|
3837
|
-
*
|
|
3838
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3839
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3840
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3841
|
-
* editor page.
|
|
3842
|
-
*/
|
|
3647
|
+
canScrollPage?: boolean | undefined;
|
|
3843
3648
|
inModal?: boolean | undefined;
|
|
3844
3649
|
crossOutEnabled?: boolean | undefined;
|
|
3845
3650
|
editorChangeDelay?: number | undefined;
|
|
@@ -3876,7 +3681,7 @@ declare const InteractiveGraph: {
|
|
|
3876
3681
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
3877
3682
|
containerSizeClass: SizingUtils.SizeClass;
|
|
3878
3683
|
}): string;
|
|
3879
|
-
validate(state: import("
|
|
3684
|
+
validate(state: import("@khanacademy/perseus").PerseusGraphType, rubric: PerseusInteractiveGraphWidgetOptions, component: any): import("@khanacademy/perseus").PerseusScore;
|
|
3880
3685
|
getUserInputFromProps(props: PerseusInteractiveGraphWidgetOptions & {
|
|
3881
3686
|
widgetId: string;
|
|
3882
3687
|
alignment: string | null | undefined;
|
|
@@ -3900,29 +3705,24 @@ declare const InteractiveGraph: {
|
|
|
3900
3705
|
baseElements?: {
|
|
3901
3706
|
Link: React.ComponentType<any>;
|
|
3902
3707
|
} | undefined;
|
|
3903
|
-
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined;
|
|
3708
|
+
imagePreloader?: ((dimensions: import("../../../perseus/src/types").Dimensions) => React.ReactNode) | undefined; /**
|
|
3709
|
+
* Whether to show the ruler on the graph.
|
|
3710
|
+
*/
|
|
3904
3711
|
trackInteraction?: ((args: {
|
|
3905
3712
|
type: string;
|
|
3906
3713
|
id: string;
|
|
3907
3714
|
correct?: boolean | undefined;
|
|
3908
3715
|
} & Partial<import("../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<import("../../../perseus/src/types").TrackingSequenceExtraArguments>) => void) | undefined;
|
|
3909
|
-
customKeypad?: boolean | undefined;
|
|
3716
|
+
customKeypad?: boolean | undefined; /**
|
|
3717
|
+
* Whether to show tooltips on the graph.
|
|
3718
|
+
* (Currently not used, but will be in the future.)
|
|
3719
|
+
*/
|
|
3910
3720
|
nativeKeypadProxy?: ((blur: () => void) => import("@khanacademy/math-input").KeypadAPI) | undefined;
|
|
3911
3721
|
isMobile?: boolean | undefined;
|
|
3912
|
-
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3913
|
-
* The number of ticks to display on the ruler.
|
|
3914
|
-
*/
|
|
3722
|
+
setDrawingAreaAvailable?: ((arg1: boolean) => unknown) | undefined;
|
|
3915
3723
|
useDraftEditor?: boolean | undefined;
|
|
3916
3724
|
hintProgressColor?: string | undefined;
|
|
3917
|
-
canScrollPage?: boolean | undefined;
|
|
3918
|
-
* The current correct answer for the graph. Updated by this component
|
|
3919
|
-
* when the graph is changed.
|
|
3920
|
-
*
|
|
3921
|
-
* Note that the "Correct answer:" textbox is not an interactive
|
|
3922
|
-
* element. Instead, it is a representation of the correct answer based
|
|
3923
|
-
* on the state of the interactive graph previewed at the bottom of the
|
|
3924
|
-
* editor page.
|
|
3925
|
-
*/
|
|
3725
|
+
canScrollPage?: boolean | undefined;
|
|
3926
3726
|
inModal?: boolean | undefined;
|
|
3927
3727
|
crossOutEnabled?: boolean | undefined;
|
|
3928
3728
|
editorChangeDelay?: number | undefined;
|
|
@@ -3958,12 +3758,12 @@ declare const InteractiveGraph: {
|
|
|
3958
3758
|
isLastUsedWidget: boolean;
|
|
3959
3759
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
3960
3760
|
containerSizeClass: SizingUtils.SizeClass;
|
|
3961
|
-
}): import("
|
|
3761
|
+
}): import("@khanacademy/perseus").PerseusGraphType;
|
|
3962
3762
|
contextType?: React.Context<any> | undefined;
|
|
3963
3763
|
};
|
|
3964
3764
|
type InteractiveGraphProps = PropsFor<typeof InteractiveGraph>;
|
|
3965
3765
|
type Range = [min: number, max: number];
|
|
3966
|
-
type Props = {
|
|
3766
|
+
export type Props = {
|
|
3967
3767
|
apiOptions: APIOptionsWithDefaults;
|
|
3968
3768
|
/**
|
|
3969
3769
|
* The labels for the x and y axes.
|
|
@@ -4037,6 +3837,12 @@ type Props = {
|
|
|
4037
3837
|
* editor page.
|
|
4038
3838
|
*/
|
|
4039
3839
|
correct: any;
|
|
3840
|
+
/**
|
|
3841
|
+
* The locked figures to display in the graph area.
|
|
3842
|
+
* Locked figures are graph elements (points, lines, line segmeents,
|
|
3843
|
+
* etc.) that are locked in place and not interactive.
|
|
3844
|
+
*/
|
|
3845
|
+
lockedFigures?: Array<LockedFigure>;
|
|
4040
3846
|
/**
|
|
4041
3847
|
* The graph to display in the graph area.
|
|
4042
3848
|
*/
|