@khanacademy/perseus 22.5.1 → 22.7.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/es/index.css +77 -1
- package/dist/es/index.js +377 -79
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +77 -1
- package/dist/index.js +374 -73
- package/dist/index.js.map +1 -1
- package/dist/perseus-api.d.ts +1 -1
- package/dist/server-item-renderer.d.ts +1 -1
- package/dist/widgets/expression.d.ts +6 -6
- package/dist/widgets/interactive-graphs/axis-ticks.d.ts +1 -8
- package/dist/widgets/interactive-graphs/graphs/components/axis-tick-labels.d.ts +13 -0
- package/dist/widgets/interactive-graphs/graphs/use-transform.d.ts +2 -6
- package/dist/widgets/interactive-graphs/interactive-graph-question-builder.d.ts +6 -0
- package/dist/widgets/interactive-graphs/reducer/use-graph-config.d.ts +3 -2
- package/dist/widgets/interactive-graphs/types.d.ts +5 -0
- package/dist/widgets/label-image.d.ts +2 -2
- package/package.json +1 -1
package/dist/es/index.css
CHANGED
|
@@ -3203,6 +3203,13 @@ body.sat-section .perseus-widget-passage {
|
|
|
3203
3203
|
.perseus-widget-radio li table {
|
|
3204
3204
|
border: 1px solid #ccc;
|
|
3205
3205
|
}
|
|
3206
|
+
.perseus-widget-radio .perseus-radio-option {
|
|
3207
|
+
/* Radio options with images that are set apart should be on their own line */
|
|
3208
|
+
}
|
|
3209
|
+
.perseus-widget-radio .perseus-radio-option .paragraph + .paragraph:has(img:only-child),
|
|
3210
|
+
.perseus-widget-radio .perseus-radio-option .paragraph:has(img:only-child):has(+ .paragraph) {
|
|
3211
|
+
display: block;
|
|
3212
|
+
}
|
|
3206
3213
|
.perseus-widget-radio-fieldset .instructions {
|
|
3207
3214
|
font-family: "Lato", sans-serif;
|
|
3208
3215
|
}
|
|
@@ -4286,6 +4293,9 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
|
|
|
4286
4293
|
/* Grid lines */
|
|
4287
4294
|
--mafs-line-color: rgba(33, 36, 44, 0.16); /* WB color.offBlack16*/
|
|
4288
4295
|
|
|
4296
|
+
/* Axis lines */
|
|
4297
|
+
--mafs-axis-stroke-width: 2px;
|
|
4298
|
+
|
|
4289
4299
|
--mafs-blue: #1865f2; /* WB color.blue */
|
|
4290
4300
|
--mafs-red: #d92916; /* WB color.red */
|
|
4291
4301
|
--mafs-green: #00a60e; /* WB color.green */
|
|
@@ -4429,6 +4439,17 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
|
|
|
4429
4439
|
cursor: grab;
|
|
4430
4440
|
}
|
|
4431
4441
|
|
|
4442
|
+
.MafsView .movable-circle .circle {
|
|
4443
|
+
stroke: var(--mafs-blue);
|
|
4444
|
+
stroke-width: 2px;
|
|
4445
|
+
fill: transparent;
|
|
4446
|
+
}
|
|
4447
|
+
|
|
4448
|
+
.MafsView .movable-circle:hover .circle {
|
|
4449
|
+
fill: var(--mafs-blue);
|
|
4450
|
+
fill-opacity: 0.16;
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4432
4453
|
.MafsView .movable-circle.movable-circle--dragging {
|
|
4433
4454
|
cursor: grabbing;
|
|
4434
4455
|
outline: none;
|
|
@@ -4466,7 +4487,62 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
|
|
|
4466
4487
|
format("woff");
|
|
4467
4488
|
}
|
|
4468
4489
|
|
|
4469
|
-
.MafsView
|
|
4490
|
+
.MafsView pattern g {
|
|
4491
|
+
stroke: #909296;
|
|
4492
|
+
}
|
|
4493
|
+
.axis-tick-labels {
|
|
4470
4494
|
font-size: 14px;
|
|
4471
4495
|
font-family: "Mafs-MJXTEX";
|
|
4496
|
+
line-height: 1.5em;
|
|
4497
|
+
/* Prevent labels from being selected, and from interfering with click and
|
|
4498
|
+
* drag interactions on the graph. */
|
|
4499
|
+
user-select: none;
|
|
4500
|
+
pointer-events: none;
|
|
4501
|
+
/* Prevent labels from covering up interaction points. */
|
|
4502
|
+
z-index: -1;
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4505
|
+
.y-axis-tick-labels {
|
|
4506
|
+
width: 1.75em;
|
|
4507
|
+
display: flex;
|
|
4508
|
+
flex-flow: column;
|
|
4509
|
+
transform: translateX(calc(-100% - 0.5em));
|
|
4510
|
+
position: absolute;
|
|
4511
|
+
text-align: right;
|
|
4512
|
+
}
|
|
4513
|
+
.y-axis-right-of-grid {
|
|
4514
|
+
transform: translateX(calc(50% + 0.5em));
|
|
4515
|
+
}
|
|
4516
|
+
.x-axis-tick-labels {
|
|
4517
|
+
display: flex;
|
|
4518
|
+
flex-flow: row;
|
|
4519
|
+
flex-direction: row-reverse;
|
|
4520
|
+
position: absolute;
|
|
4521
|
+
transform: translateY(calc(50% - 0.25em));
|
|
4522
|
+
}
|
|
4523
|
+
.x-axis-top-of-grid {
|
|
4524
|
+
transform: translateY(calc(-100% + 0.25em));
|
|
4525
|
+
}
|
|
4526
|
+
|
|
4527
|
+
.x-axis-tick-labels span,
|
|
4528
|
+
.y-axis-tick-labels span {
|
|
4529
|
+
/* The negative sign is rendered as a pseudo-element to
|
|
4530
|
+
ensure that we are positioning all labels correctly */
|
|
4531
|
+
&::before {
|
|
4532
|
+
content: attr(data-content);
|
|
4533
|
+
position: absolute;
|
|
4534
|
+
/* We're translating the symbol up by 1px to ensure it's legible around gridlines. */
|
|
4535
|
+
transform: translate(-100%, -1px);
|
|
4536
|
+
font-weight: 600; /* This helps get the symbol to render crisply */
|
|
4537
|
+
}
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
.y-axis-tick-labels span {
|
|
4541
|
+
display: inline-block;
|
|
4542
|
+
height: var(--y-axis-label-height, 20px);
|
|
4543
|
+
}
|
|
4544
|
+
|
|
4545
|
+
.x-axis-tick-labels span {
|
|
4546
|
+
text-align: center;
|
|
4547
|
+
width: var(--x-axis-label-width, 20px);
|
|
4472
4548
|
}
|