@khanacademy/perseus-core 26.1.1 → 26.3.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/data-schema.d.ts +9 -1
- package/dist/es/index.item-splitting.js +2 -2
- package/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +4 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.item-splitting.js +2 -2
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/interactive-graph-widget.d.ts +21 -17
- package/dist/widgets/interactive-graph/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -116,6 +116,10 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
116
116
|
yMin: boolean;
|
|
117
117
|
yMax: boolean;
|
|
118
118
|
}>;
|
|
119
|
+
showAxisTicks: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
120
|
+
x: boolean;
|
|
121
|
+
y: boolean;
|
|
122
|
+
}>;
|
|
119
123
|
graph: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
120
124
|
type: "angle";
|
|
121
125
|
showAngles: boolean | undefined;
|
|
@@ -298,18 +302,18 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
298
302
|
type: "label";
|
|
299
303
|
coord: [number, number];
|
|
300
304
|
text: string;
|
|
301
|
-
color: "blue" | "
|
|
305
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
302
306
|
size: "small" | "medium" | "large";
|
|
303
307
|
}> | import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
304
308
|
type: "point";
|
|
305
309
|
coord: [number, number];
|
|
306
|
-
color: "blue" | "
|
|
310
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
307
311
|
filled: boolean;
|
|
308
312
|
labels: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
309
313
|
type: "label";
|
|
310
314
|
coord: [number, number];
|
|
311
315
|
text: string;
|
|
312
|
-
color: "blue" | "
|
|
316
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
313
317
|
size: "small" | "medium" | "large";
|
|
314
318
|
}>[];
|
|
315
319
|
ariaLabel: string | undefined;
|
|
@@ -319,31 +323,31 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
319
323
|
points: [import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
320
324
|
type: "point";
|
|
321
325
|
coord: [number, number];
|
|
322
|
-
color: "blue" | "
|
|
326
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
323
327
|
filled: boolean;
|
|
324
328
|
labels: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
325
329
|
type: "label";
|
|
326
330
|
coord: [number, number];
|
|
327
331
|
text: string;
|
|
328
|
-
color: "blue" | "
|
|
332
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
329
333
|
size: "small" | "medium" | "large";
|
|
330
334
|
}>[];
|
|
331
335
|
ariaLabel: string | undefined;
|
|
332
336
|
}>, import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
333
337
|
type: "point";
|
|
334
338
|
coord: [number, number];
|
|
335
|
-
color: "blue" | "
|
|
339
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
336
340
|
filled: boolean;
|
|
337
341
|
labels: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
338
342
|
type: "label";
|
|
339
343
|
coord: [number, number];
|
|
340
344
|
text: string;
|
|
341
|
-
color: "blue" | "
|
|
345
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
342
346
|
size: "small" | "medium" | "large";
|
|
343
347
|
}>[];
|
|
344
348
|
ariaLabel: string | undefined;
|
|
345
349
|
}>];
|
|
346
|
-
color: "blue" | "
|
|
350
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
347
351
|
lineStyle: "solid" | "dashed";
|
|
348
352
|
showPoint1: boolean;
|
|
349
353
|
showPoint2: boolean;
|
|
@@ -352,20 +356,20 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
352
356
|
type: "label";
|
|
353
357
|
coord: [number, number];
|
|
354
358
|
text: string;
|
|
355
|
-
color: "blue" | "
|
|
359
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
356
360
|
size: "small" | "medium" | "large";
|
|
357
361
|
}>[];
|
|
358
362
|
ariaLabel: string | undefined;
|
|
359
363
|
}> | import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
360
364
|
type: "vector";
|
|
361
365
|
points: [[number, number], [number, number]];
|
|
362
|
-
color: "blue" | "
|
|
366
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
363
367
|
weight: "thin" | "medium" | "thick";
|
|
364
368
|
labels: import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
365
369
|
type: "label";
|
|
366
370
|
coord: [number, number];
|
|
367
371
|
text: string;
|
|
368
|
-
color: "blue" | "
|
|
372
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
369
373
|
size: "small" | "medium" | "large";
|
|
370
374
|
}>[];
|
|
371
375
|
ariaLabel: string | undefined;
|
|
@@ -374,7 +378,7 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
374
378
|
center: [number, number];
|
|
375
379
|
radius: [number, number];
|
|
376
380
|
angle: number;
|
|
377
|
-
color: "blue" | "
|
|
381
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
378
382
|
fillStyle: "none" | "solid" | "white" | "translucent";
|
|
379
383
|
strokeStyle: "solid" | "dashed";
|
|
380
384
|
weight: "thin" | "medium" | "thick";
|
|
@@ -382,14 +386,14 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
382
386
|
type: "label";
|
|
383
387
|
coord: [number, number];
|
|
384
388
|
text: string;
|
|
385
|
-
color: "blue" | "
|
|
389
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
386
390
|
size: "small" | "medium" | "large";
|
|
387
391
|
}>[];
|
|
388
392
|
ariaLabel: string | undefined;
|
|
389
393
|
}> | import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
390
394
|
type: "polygon";
|
|
391
395
|
points: [number, number][];
|
|
392
|
-
color: "blue" | "
|
|
396
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
393
397
|
showVertices: boolean;
|
|
394
398
|
fillStyle: "none" | "solid" | "white" | "translucent";
|
|
395
399
|
strokeStyle: "solid" | "dashed";
|
|
@@ -398,13 +402,13 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
398
402
|
type: "label";
|
|
399
403
|
coord: [number, number];
|
|
400
404
|
text: string;
|
|
401
|
-
color: "blue" | "
|
|
405
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
402
406
|
size: "small" | "medium" | "large";
|
|
403
407
|
}>[];
|
|
404
408
|
ariaLabel: string | undefined;
|
|
405
409
|
}> | import("../general-purpose-parsers/object-types").OptionalizeProperties<{
|
|
406
410
|
type: "function";
|
|
407
|
-
color: "blue" | "
|
|
411
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
408
412
|
strokeStyle: "solid" | "dashed";
|
|
409
413
|
weight: "thin" | "medium" | "thick";
|
|
410
414
|
equation: string;
|
|
@@ -414,7 +418,7 @@ export declare const parseInteractiveGraphWidget: import("../parser-types").Pars
|
|
|
414
418
|
type: "label";
|
|
415
419
|
coord: [number, number];
|
|
416
420
|
text: string;
|
|
417
|
-
color: "blue" | "
|
|
421
|
+
color: "blue" | "gold" | "green" | "grayH" | "purple" | "pink" | "red";
|
|
418
422
|
size: "small" | "medium" | "large";
|
|
419
423
|
}>[];
|
|
420
424
|
ariaLabel: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PerseusInteractiveGraphWidgetOptions } from "../../data-schema";
|
|
2
2
|
import type { WidgetLogic } from "../logic-export.types";
|
|
3
|
-
export type InteractiveGraphDefaultWidgetOptions = Pick<PerseusInteractiveGraphWidgetOptions, "labels" | "labelLocation" | "lockedFigures" | "range" | "step" | "backgroundImage" | "markings" | "showAxisArrows" | "showTooltips" | "showProtractor" | "graph" | "correct">;
|
|
3
|
+
export type InteractiveGraphDefaultWidgetOptions = Pick<PerseusInteractiveGraphWidgetOptions, "labels" | "labelLocation" | "lockedFigures" | "range" | "step" | "backgroundImage" | "markings" | "showAxisArrows" | "showAxisTicks" | "showTooltips" | "showProtractor" | "graph" | "correct">;
|
|
4
4
|
declare const interactiveGraphWidgetLogic: WidgetLogic;
|
|
5
5
|
export default interactiveGraphWidgetLogic;
|