@khanacademy/perseus 54.1.0 → 55.0.1
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/LICENSE +18 -0
- package/dist/components/number-input.d.ts +9 -10
- package/dist/components/range-input.d.ts +5 -6
- package/dist/components/simple-keypad-input.d.ts +5 -0
- package/dist/components/stub-tag-editor.d.ts +3 -4
- package/dist/components/text-list-editor.d.ts +3 -4
- package/dist/es/index.css +16 -6
- package/dist/es/index.js +902 -985
- package/dist/es/index.js.map +1 -1
- package/dist/es/strings.js +40 -10
- package/dist/es/strings.js.map +1 -1
- package/dist/index.css +16 -6
- package/dist/index.js +1036 -1086
- package/dist/index.js.map +1 -1
- package/dist/mixins/changeable.d.ts +1 -2
- package/dist/perseus-api.d.ts +1 -56
- package/dist/shared-utils/add-library-version-to-perseus-debug.d.ts +9 -0
- package/dist/strings.d.ts +34 -4
- package/dist/strings.js +142 -97
- package/dist/strings.js.map +1 -1
- package/dist/widget-ai-utils/numeric-input/prompt-utils.d.ts +1 -1
- package/dist/widgets/dropdown/dropdown.d.ts +5 -4
- package/dist/widgets/interactive-graph.d.ts +4 -2
- package/dist/widgets/interactive-graphs/graphs/circle.d.ts +7 -0
- package/dist/widgets/interactive-graphs/graphs/components/movable-line.d.ts +6 -0
- package/dist/widgets/interactive-graphs/graphs/quadratic.d.ts +8 -0
- package/dist/widgets/interactive-graphs/graphs/sinusoid.d.ts +7 -0
- package/dist/widgets/interactive-graphs/interactive-graph-question-builder.d.ts +1 -1
- package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +6 -1
- package/dist/widgets/numeric-input/index.d.ts +1 -1
- package/dist/widgets/numeric-input/input-with-examples.d.ts +8 -0
- package/dist/widgets/numeric-input/numeric-input.class.d.ts +66 -0
- package/dist/widgets/numeric-input/numeric-input.d.ts +123 -77
- package/dist/widgets/numeric-input/utils.d.ts +25 -0
- package/package.json +120 -124
- package/dist/components/input-with-examples.d.ts +0 -51
- package/dist/components/tooltip.d.ts +0 -85
package/dist/strings.js
CHANGED
|
@@ -166,7 +166,8 @@ const strings = {
|
|
|
166
166
|
srPointAtCoordinates: "Point %(num)s at %(x)s comma %(y)s.",
|
|
167
167
|
srCircleGraph: "A circle on a coordinate plane.",
|
|
168
168
|
srCircleShape: "Circle. The center point is at %(centerX)s comma %(centerY)s.",
|
|
169
|
-
|
|
169
|
+
srCircleRadiusPointRight: "Right radius endpoint at %(radiusPointX)s comma %(radiusPointY)s.",
|
|
170
|
+
srCircleRadiusPointLeft: "Left radius endpoint at %(radiusPointX)s comma %(radiusPointY)s.",
|
|
170
171
|
srCircleRadius: "Circle radius is %(radius)s.",
|
|
171
172
|
srCircleOuterPoints: "Points on the circle at %(point1X)s comma %(point1Y)s, %(point2X)s comma %(point2Y)s, %(point3X)s comma %(point3Y)s, %(point4X)s comma %(point4Y)s.",
|
|
172
173
|
srLinearGraph: "A line on a coordinate plane.",
|
|
@@ -178,8 +179,8 @@ const strings = {
|
|
|
178
179
|
srLinearGraphXOnlyIntercept: "The line crosses the X-axis at %(xIntercept)s comma 0.",
|
|
179
180
|
srLinearGraphYOnlyIntercept: "The line crosses the Y-axis at 0 comma %(yIntercept)s.",
|
|
180
181
|
srLinearGraphBothIntercepts: "The line crosses the X-axis at %(xIntercept)s comma 0 and the Y-axis at 0 comma %(yIntercept)s.",
|
|
181
|
-
srLinearGraphOriginIntercept: "The line crosses the
|
|
182
|
-
srLinearGrabHandle: "Line
|
|
182
|
+
srLinearGraphOriginIntercept: "The line crosses the X and Y axes at the graph's origin.",
|
|
183
|
+
srLinearGrabHandle: "Line going through point %(point1X)s comma %(point1Y)s and point %(point2X)s comma %(point2Y)s.",
|
|
183
184
|
srAngleStartingSide: "Point 3, starting side at %(x)s comma %(y)s.",
|
|
184
185
|
srAngleEndingSide: "Point 2, ending side at %(x)s comma %(y)s.",
|
|
185
186
|
srAngleVertex: "Point 1, vertex at %(x)s comma %(y)s.",
|
|
@@ -198,6 +199,9 @@ const strings = {
|
|
|
198
199
|
srLinearSystemGraph: "Two lines on a coordinate plane.",
|
|
199
200
|
srLinearSystemPoints: "Line %(lineNumber)s has two points, point 1 at %(point1X)s comma %(point1Y)s and point 2 at %(point2X)s comma %(point2Y)s.",
|
|
200
201
|
srLinearSystemPoint: "Point %(pointSequence)s on line %(lineNumber)s at %(x)s comma %(y)s.",
|
|
202
|
+
srLinearSystemGrabHandle: "Line %(lineNumber)s going through point %(point1X)s comma %(point1Y)s and point %(point2X)s comma %(point2Y)s.",
|
|
203
|
+
srLinearSystemIntersection: "Line 1 and line 2 intersect at point %(x)s comma %(y)s.",
|
|
204
|
+
srLinearSystemParallel: "Line 1 and line 2 are parallel.",
|
|
201
205
|
srRayGraph: "A ray on a coordinate plane.",
|
|
202
206
|
srRayPoints: "The endpoint is at %(point1X)s comma %(point1Y)s and the ray goes through point %(point2X)s comma %(point2Y)s.",
|
|
203
207
|
srRayGrabHandle: "Ray with endpoint %(point1X)s comma %(point1Y)s going through point %(point2X)s comma %(point2Y)s.",
|
|
@@ -230,7 +234,9 @@ const strings = {
|
|
|
230
234
|
srUnlimitedPolygonEmpty: "An empty coordinate plane.",
|
|
231
235
|
srSinusoidGraph: "A sinusoid function on a coordinate plane.",
|
|
232
236
|
srSinusoidRootPoint: "Midline intersection at %(x)s comma %(y)s.",
|
|
233
|
-
|
|
237
|
+
srSinusoidMaxPoint: "Maximum point at %(x)s comma %(y)s.",
|
|
238
|
+
srSinusoidMinPoint: "Minimum point at %(x)s comma %(y)s.",
|
|
239
|
+
srSinusoidFlatPoint: "Line through point at %(x)s comma %(y)s.",
|
|
234
240
|
srSinusoidDescription: "The graph shows a wave with a minimum value of %(minValue)s and a maximum value of %(maxValue)s. The wave completes a full cycle from %(cycleStart)s to %(cycleEnd)s.",
|
|
235
241
|
srSinusoidInteractiveElements: "Sinusoid graph with midline intersection point at %(point1X)s comma %(point1Y)s and extremum point at %(point2X)s comma %(point2Y)s."
|
|
236
242
|
// The above strings are used for interactive graph SR descriptions.
|
|
@@ -527,20 +533,27 @@ const mockStrings = {
|
|
|
527
533
|
} = _ref29;
|
|
528
534
|
return `Circle. The center point is at ${centerX} comma ${centerY}.`;
|
|
529
535
|
},
|
|
530
|
-
|
|
536
|
+
srCircleRadiusPointRight: _ref30 => {
|
|
531
537
|
let {
|
|
532
538
|
radiusPointX,
|
|
533
539
|
radiusPointY
|
|
534
540
|
} = _ref30;
|
|
535
|
-
return `
|
|
541
|
+
return `Right radius endpoint at ${radiusPointX} comma ${radiusPointY}.`;
|
|
536
542
|
},
|
|
537
|
-
|
|
543
|
+
srCircleRadiusPointLeft: _ref31 => {
|
|
538
544
|
let {
|
|
539
|
-
|
|
545
|
+
radiusPointX,
|
|
546
|
+
radiusPointY
|
|
540
547
|
} = _ref31;
|
|
548
|
+
return `Left radius endpoint at ${radiusPointX} comma ${radiusPointY}.`;
|
|
549
|
+
},
|
|
550
|
+
srCircleRadius: _ref32 => {
|
|
551
|
+
let {
|
|
552
|
+
radius
|
|
553
|
+
} = _ref32;
|
|
541
554
|
return `Circle radius is ${radius}.`;
|
|
542
555
|
},
|
|
543
|
-
srCircleOuterPoints:
|
|
556
|
+
srCircleOuterPoints: _ref33 => {
|
|
544
557
|
let {
|
|
545
558
|
point1X,
|
|
546
559
|
point1Y,
|
|
@@ -550,83 +563,83 @@ const mockStrings = {
|
|
|
550
563
|
point3Y,
|
|
551
564
|
point4X,
|
|
552
565
|
point4Y
|
|
553
|
-
} =
|
|
566
|
+
} = _ref33;
|
|
554
567
|
return `Points on the circle at ${point1X} comma ${point1Y}, ${point2X} comma ${point2Y}, ${point3X} comma ${point3Y}, ${point4X} comma ${point4Y}.`;
|
|
555
568
|
},
|
|
556
569
|
srLinearGraph: "A line on a coordinate plane.",
|
|
557
|
-
srLinearGraphPoints:
|
|
570
|
+
srLinearGraphPoints: _ref34 => {
|
|
558
571
|
let {
|
|
559
572
|
point1X,
|
|
560
573
|
point1Y,
|
|
561
574
|
point2X,
|
|
562
575
|
point2Y
|
|
563
|
-
} =
|
|
576
|
+
} = _ref34;
|
|
564
577
|
return `The line has two points, point 1 at ${point1X} comma ${point1Y} and point 2 at ${point2X} comma ${point2Y}.`;
|
|
565
578
|
},
|
|
566
579
|
srLinearGraphSlopeIncreasing: "Its slope increases from left to right.",
|
|
567
580
|
srLinearGraphSlopeDecreasing: "Its slope decreases from left to right.",
|
|
568
581
|
srLinearGraphSlopeHorizontal: "Its slope is zero.",
|
|
569
582
|
srLinearGraphSlopeVertical: "Its slope is undefined.",
|
|
570
|
-
srLinearGraphXOnlyIntercept:
|
|
583
|
+
srLinearGraphXOnlyIntercept: _ref35 => {
|
|
571
584
|
let {
|
|
572
585
|
xIntercept
|
|
573
|
-
} =
|
|
586
|
+
} = _ref35;
|
|
574
587
|
return `The line crosses the X-axis at ${xIntercept} comma 0.`;
|
|
575
588
|
},
|
|
576
|
-
srLinearGraphYOnlyIntercept:
|
|
589
|
+
srLinearGraphYOnlyIntercept: _ref36 => {
|
|
577
590
|
let {
|
|
578
591
|
yIntercept
|
|
579
|
-
} =
|
|
592
|
+
} = _ref36;
|
|
580
593
|
return `The line crosses the Y-axis at 0 comma ${yIntercept}.`;
|
|
581
594
|
},
|
|
582
|
-
srLinearGraphBothIntercepts:
|
|
595
|
+
srLinearGraphBothIntercepts: _ref37 => {
|
|
583
596
|
let {
|
|
584
597
|
xIntercept,
|
|
585
598
|
yIntercept
|
|
586
|
-
} =
|
|
599
|
+
} = _ref37;
|
|
587
600
|
return `The line crosses the X-axis at ${xIntercept} comma 0 and the Y-axis at 0 comma ${yIntercept}.`;
|
|
588
601
|
},
|
|
589
|
-
srLinearGraphOriginIntercept: "The line crosses the
|
|
590
|
-
srLinearGrabHandle:
|
|
602
|
+
srLinearGraphOriginIntercept: "The line crosses the X and Y axes at the graph's origin.",
|
|
603
|
+
srLinearGrabHandle: _ref38 => {
|
|
591
604
|
let {
|
|
592
605
|
point1X,
|
|
593
606
|
point1Y,
|
|
594
607
|
point2X,
|
|
595
608
|
point2Y
|
|
596
|
-
} =
|
|
597
|
-
return `Line
|
|
609
|
+
} = _ref38;
|
|
610
|
+
return `Line going through point ${point1X} comma ${point1Y} and point ${point2X} comma ${point2Y}.`;
|
|
598
611
|
},
|
|
599
|
-
srAngleStartingSide:
|
|
612
|
+
srAngleStartingSide: _ref39 => {
|
|
600
613
|
let {
|
|
601
614
|
x,
|
|
602
615
|
y
|
|
603
|
-
} =
|
|
616
|
+
} = _ref39;
|
|
604
617
|
return `Point 3, starting side at ${x} comma ${y}.`;
|
|
605
618
|
},
|
|
606
|
-
srAngleEndingSide:
|
|
619
|
+
srAngleEndingSide: _ref40 => {
|
|
607
620
|
let {
|
|
608
621
|
x,
|
|
609
622
|
y
|
|
610
|
-
} =
|
|
623
|
+
} = _ref40;
|
|
611
624
|
return `Point 2, ending side at ${x} comma ${y}.`;
|
|
612
625
|
},
|
|
613
|
-
srAngleVertex:
|
|
626
|
+
srAngleVertex: _ref41 => {
|
|
614
627
|
let {
|
|
615
628
|
x,
|
|
616
629
|
y
|
|
617
|
-
} =
|
|
630
|
+
} = _ref41;
|
|
618
631
|
return `Point 1, vertex at ${x} comma ${y}.`;
|
|
619
632
|
},
|
|
620
|
-
srAngleVertexWithAngleMeasure:
|
|
633
|
+
srAngleVertexWithAngleMeasure: _ref42 => {
|
|
621
634
|
let {
|
|
622
635
|
x,
|
|
623
636
|
y,
|
|
624
637
|
angleMeasure
|
|
625
|
-
} =
|
|
638
|
+
} = _ref42;
|
|
626
639
|
return `Point 1, vertex at ${x} comma ${y}. Angle ${angleMeasure} degrees.`;
|
|
627
640
|
},
|
|
628
641
|
srAngleGraphAriaLabel: "An angle on a coordinate plane.",
|
|
629
|
-
srAngleGraphAriaDescription:
|
|
642
|
+
srAngleGraphAriaDescription: _ref43 => {
|
|
630
643
|
let {
|
|
631
644
|
angleMeasure,
|
|
632
645
|
vertexX,
|
|
@@ -635,10 +648,10 @@ const mockStrings = {
|
|
|
635
648
|
startingSideY,
|
|
636
649
|
endingSideX,
|
|
637
650
|
endingSideY
|
|
638
|
-
} =
|
|
651
|
+
} = _ref43;
|
|
639
652
|
return `The angle measure is ${angleMeasure} degrees with a vertex at ${vertexX} comma ${vertexY}, a point on the starting side at ${startingSideX} comma ${startingSideY} and a point on the ending side at ${endingSideX} comma ${endingSideY}.`;
|
|
640
653
|
},
|
|
641
|
-
srAngleInteractiveElements:
|
|
654
|
+
srAngleInteractiveElements: _ref44 => {
|
|
642
655
|
let {
|
|
643
656
|
vertexX,
|
|
644
657
|
vertexY,
|
|
@@ -646,118 +659,136 @@ const mockStrings = {
|
|
|
646
659
|
startingSideY,
|
|
647
660
|
endingSideX,
|
|
648
661
|
endingSideY
|
|
649
|
-
} =
|
|
662
|
+
} = _ref44;
|
|
650
663
|
return `An angle formed by 3 points. The vertex is at ${vertexX} comma ${vertexY}. The starting side point is at ${startingSideX} comma ${startingSideY}. The ending side point is at ${endingSideX} comma ${endingSideY}.`;
|
|
651
664
|
},
|
|
652
665
|
srSingleSegmentGraphAriaLabel: "A line segment on a coordinate plane.",
|
|
653
|
-
srMultipleSegmentGraphAriaLabel:
|
|
666
|
+
srMultipleSegmentGraphAriaLabel: _ref45 => {
|
|
654
667
|
let {
|
|
655
668
|
countOfSegments
|
|
656
|
-
} =
|
|
669
|
+
} = _ref45;
|
|
657
670
|
return `${countOfSegments} segments on a coordinate plane.`;
|
|
658
671
|
},
|
|
659
|
-
srMultipleSegmentIndividualLabel:
|
|
672
|
+
srMultipleSegmentIndividualLabel: _ref46 => {
|
|
660
673
|
let {
|
|
661
674
|
point1X,
|
|
662
675
|
point1Y,
|
|
663
676
|
point2X,
|
|
664
677
|
point2Y,
|
|
665
678
|
indexOfSegment
|
|
666
|
-
} =
|
|
679
|
+
} = _ref46;
|
|
667
680
|
return `Segment ${indexOfSegment}: Endpoint 1 at ${point1X} comma ${point1Y}. Endpoint 2 at ${point2X} comma ${point2Y}.`;
|
|
668
681
|
},
|
|
669
|
-
srSingleSegmentLabel:
|
|
682
|
+
srSingleSegmentLabel: _ref47 => {
|
|
670
683
|
let {
|
|
671
684
|
point1X,
|
|
672
685
|
point1Y,
|
|
673
686
|
point2X,
|
|
674
687
|
point2Y
|
|
675
|
-
} =
|
|
688
|
+
} = _ref47;
|
|
676
689
|
return `Endpoint 1 at ${point1X} comma ${point1Y}. Endpoint 2 at ${point2X} comma ${point2Y}.`;
|
|
677
690
|
},
|
|
678
|
-
srSegmentLength:
|
|
691
|
+
srSegmentLength: _ref48 => {
|
|
679
692
|
let {
|
|
680
693
|
length
|
|
681
|
-
} =
|
|
694
|
+
} = _ref48;
|
|
682
695
|
return `Segment length ${length} units.`;
|
|
683
696
|
},
|
|
684
|
-
srSingleSegmentGraphEndpointAriaLabel:
|
|
697
|
+
srSingleSegmentGraphEndpointAriaLabel: _ref49 => {
|
|
685
698
|
let {
|
|
686
699
|
endpointNumber,
|
|
687
700
|
x,
|
|
688
701
|
y
|
|
689
|
-
} =
|
|
702
|
+
} = _ref49;
|
|
690
703
|
return `Endpoint ${endpointNumber} at ${x} comma ${y}.`;
|
|
691
704
|
},
|
|
692
|
-
srMultipleSegmentGraphEndpointAriaLabel:
|
|
705
|
+
srMultipleSegmentGraphEndpointAriaLabel: _ref50 => {
|
|
693
706
|
let {
|
|
694
707
|
endpointNumber,
|
|
695
708
|
x,
|
|
696
709
|
y,
|
|
697
710
|
indexOfSegment
|
|
698
|
-
} =
|
|
711
|
+
} = _ref50;
|
|
699
712
|
return `Endpoint ${endpointNumber} on segment ${indexOfSegment} at ${x} comma ${y}.`;
|
|
700
713
|
},
|
|
701
|
-
srSegmentGrabHandle:
|
|
714
|
+
srSegmentGrabHandle: _ref51 => {
|
|
702
715
|
let {
|
|
703
716
|
point1X,
|
|
704
717
|
point1Y,
|
|
705
718
|
point2X,
|
|
706
719
|
point2Y
|
|
707
|
-
} =
|
|
720
|
+
} = _ref51;
|
|
708
721
|
return `Segment from ${point1X} comma ${point1Y} to ${point2X} comma ${point2Y}.`;
|
|
709
722
|
},
|
|
710
723
|
srLinearSystemGraph: "Two lines on a coordinate plane.",
|
|
711
|
-
srLinearSystemPoints:
|
|
724
|
+
srLinearSystemPoints: _ref52 => {
|
|
712
725
|
let {
|
|
713
726
|
lineNumber,
|
|
714
727
|
point1X,
|
|
715
728
|
point1Y,
|
|
716
729
|
point2X,
|
|
717
730
|
point2Y
|
|
718
|
-
} =
|
|
731
|
+
} = _ref52;
|
|
719
732
|
return `Line ${lineNumber} has two points, point 1 at ${point1X} comma ${point1Y} and point 2 at ${point2X} comma ${point2Y}.`;
|
|
720
733
|
},
|
|
721
|
-
srLinearSystemPoint:
|
|
734
|
+
srLinearSystemPoint: _ref53 => {
|
|
722
735
|
let {
|
|
723
736
|
lineNumber,
|
|
724
737
|
pointSequence,
|
|
725
738
|
x,
|
|
726
739
|
y
|
|
727
|
-
} =
|
|
740
|
+
} = _ref53;
|
|
728
741
|
return `Point ${pointSequence} on line ${lineNumber} at ${x} comma ${y}.`;
|
|
729
742
|
},
|
|
743
|
+
srLinearSystemGrabHandle: _ref54 => {
|
|
744
|
+
let {
|
|
745
|
+
lineNumber,
|
|
746
|
+
point1X,
|
|
747
|
+
point1Y,
|
|
748
|
+
point2X,
|
|
749
|
+
point2Y
|
|
750
|
+
} = _ref54;
|
|
751
|
+
return `Line ${lineNumber} going through point ${point1X} comma ${point1Y} and point ${point2X} comma ${point2Y}.`;
|
|
752
|
+
},
|
|
753
|
+
srLinearSystemIntersection: _ref55 => {
|
|
754
|
+
let {
|
|
755
|
+
x,
|
|
756
|
+
y
|
|
757
|
+
} = _ref55;
|
|
758
|
+
return `Line 1 and line 2 intersect at point ${x} comma ${y}.`;
|
|
759
|
+
},
|
|
760
|
+
srLinearSystemParallel: "Line 1 and line 2 are parallel.",
|
|
730
761
|
srRayGraph: "A ray on a coordinate plane.",
|
|
731
|
-
srRayPoints:
|
|
762
|
+
srRayPoints: _ref56 => {
|
|
732
763
|
let {
|
|
733
764
|
point1X,
|
|
734
765
|
point1Y,
|
|
735
766
|
point2X,
|
|
736
767
|
point2Y
|
|
737
|
-
} =
|
|
768
|
+
} = _ref56;
|
|
738
769
|
return `The endpoint is at ${point1X} comma ${point1Y} and the ray goes through point ${point2X} comma ${point2Y}.`;
|
|
739
770
|
},
|
|
740
|
-
srRayGrabHandle:
|
|
771
|
+
srRayGrabHandle: _ref57 => {
|
|
741
772
|
let {
|
|
742
773
|
point1X,
|
|
743
774
|
point1Y,
|
|
744
775
|
point2X,
|
|
745
776
|
point2Y
|
|
746
|
-
} =
|
|
777
|
+
} = _ref57;
|
|
747
778
|
return `Ray with endpoint ${point1X} comma ${point1Y} going through point ${point2X} comma ${point2Y}.`;
|
|
748
779
|
},
|
|
749
|
-
srRayEndpoint:
|
|
780
|
+
srRayEndpoint: _ref58 => {
|
|
750
781
|
let {
|
|
751
782
|
x,
|
|
752
783
|
y
|
|
753
|
-
} =
|
|
784
|
+
} = _ref58;
|
|
754
785
|
return `Endpoint at ${x} comma ${y}.`;
|
|
755
786
|
},
|
|
756
|
-
srRayTerminalPoint:
|
|
787
|
+
srRayTerminalPoint: _ref59 => {
|
|
757
788
|
let {
|
|
758
789
|
x,
|
|
759
790
|
y
|
|
760
|
-
} =
|
|
791
|
+
} = _ref59;
|
|
761
792
|
return `Through point at ${x} comma ${y}.`;
|
|
762
793
|
},
|
|
763
794
|
srQuadraticGraph: "A parabola on a 4-quadrant coordinate plane.",
|
|
@@ -766,55 +797,55 @@ const mockStrings = {
|
|
|
766
797
|
srQuadraticGraphVertexOrigin: "Vertex is at the origin.",
|
|
767
798
|
srQuadraticGraphVertexXAxis: "Vertex is on the X-axis.",
|
|
768
799
|
srQuadraticGraphVertexYAxis: "Vertex is on the Y-axis.",
|
|
769
|
-
srQuadraticGraphVertexQuadrant:
|
|
800
|
+
srQuadraticGraphVertexQuadrant: _ref60 => {
|
|
770
801
|
let {
|
|
771
802
|
quadrant
|
|
772
|
-
} =
|
|
803
|
+
} = _ref60;
|
|
773
804
|
return `Vertex is in quadrant ${quadrant}.`;
|
|
774
805
|
},
|
|
775
|
-
srQuadraticTwoXIntercepts:
|
|
806
|
+
srQuadraticTwoXIntercepts: _ref61 => {
|
|
776
807
|
let {
|
|
777
808
|
intercept1,
|
|
778
809
|
intercept2
|
|
779
|
-
} =
|
|
810
|
+
} = _ref61;
|
|
780
811
|
return `The X-intercepts are at ${intercept1} comma 0 and ${intercept2} comma 0.`;
|
|
781
812
|
},
|
|
782
|
-
srQuadraticOneXIntercept:
|
|
813
|
+
srQuadraticOneXIntercept: _ref62 => {
|
|
783
814
|
let {
|
|
784
815
|
intercept
|
|
785
|
-
} =
|
|
816
|
+
} = _ref62;
|
|
786
817
|
return `The X-intercept is at ${intercept} comma 0.`;
|
|
787
818
|
},
|
|
788
|
-
srQuadraticYIntercept:
|
|
819
|
+
srQuadraticYIntercept: _ref63 => {
|
|
789
820
|
let {
|
|
790
821
|
intercept
|
|
791
|
-
} =
|
|
822
|
+
} = _ref63;
|
|
792
823
|
return `The Y-intercept is at 0 comma ${intercept}.`;
|
|
793
824
|
},
|
|
794
|
-
srQuadraticPointOrigin:
|
|
825
|
+
srQuadraticPointOrigin: _ref64 => {
|
|
795
826
|
let {
|
|
796
827
|
pointNumber
|
|
797
|
-
} =
|
|
828
|
+
} = _ref64;
|
|
798
829
|
return `Point ${pointNumber} on parabola at the origin.`;
|
|
799
830
|
},
|
|
800
|
-
srQuadraticPointAxis:
|
|
831
|
+
srQuadraticPointAxis: _ref65 => {
|
|
801
832
|
let {
|
|
802
833
|
pointNumber,
|
|
803
834
|
x,
|
|
804
835
|
y
|
|
805
|
-
} =
|
|
836
|
+
} = _ref65;
|
|
806
837
|
return `Point ${pointNumber} on parabola at ${x} comma ${y}.`;
|
|
807
838
|
},
|
|
808
|
-
srQuadraticPointQuadrant:
|
|
839
|
+
srQuadraticPointQuadrant: _ref66 => {
|
|
809
840
|
let {
|
|
810
841
|
pointNumber,
|
|
811
842
|
x,
|
|
812
843
|
y,
|
|
813
844
|
quadrant
|
|
814
|
-
} =
|
|
845
|
+
} = _ref66;
|
|
815
846
|
return `Point ${pointNumber} on parabola in quadrant ${quadrant} at ${x} comma ${y}.`;
|
|
816
847
|
},
|
|
817
|
-
srQuadraticInteractiveElements:
|
|
848
|
+
srQuadraticInteractiveElements: _ref67 => {
|
|
818
849
|
let {
|
|
819
850
|
point1X,
|
|
820
851
|
point1Y,
|
|
@@ -822,83 +853,97 @@ const mockStrings = {
|
|
|
822
853
|
point2Y,
|
|
823
854
|
point3X,
|
|
824
855
|
point3Y
|
|
825
|
-
} =
|
|
856
|
+
} = _ref67;
|
|
826
857
|
return `Parabola with points at ${point1X} comma ${point1Y}, ${point2X} comma ${point2Y}, and ${point3X} comma ${point3Y}.`;
|
|
827
858
|
},
|
|
828
859
|
srPolygonGraph: "A polygon.",
|
|
829
860
|
srPolygonGraphCoordinatePlane: "A polygon on a coordinate plane.",
|
|
830
|
-
srPolygonGraphPointsNum:
|
|
861
|
+
srPolygonGraphPointsNum: _ref68 => {
|
|
831
862
|
let {
|
|
832
863
|
num
|
|
833
|
-
} =
|
|
864
|
+
} = _ref68;
|
|
834
865
|
return `The polygon has ${num} points.`;
|
|
835
866
|
},
|
|
836
867
|
srPolygonGraphPointsOne: "The polygon has 1 point.",
|
|
837
|
-
srPolygonElementsNum:
|
|
868
|
+
srPolygonElementsNum: _ref69 => {
|
|
838
869
|
let {
|
|
839
870
|
num
|
|
840
|
-
} =
|
|
871
|
+
} = _ref69;
|
|
841
872
|
return `A polygon with ${num} points.`;
|
|
842
873
|
},
|
|
843
874
|
srPolygonElementsOne: "A polygon with 1 point.",
|
|
844
|
-
srPolygonPointAngleApprox:
|
|
875
|
+
srPolygonPointAngleApprox: _ref70 => {
|
|
845
876
|
let {
|
|
846
877
|
angle
|
|
847
|
-
} =
|
|
878
|
+
} = _ref70;
|
|
848
879
|
return `Angle approximately equal to ${angle} degrees.`;
|
|
849
880
|
},
|
|
850
|
-
srPolygonPointAngle:
|
|
881
|
+
srPolygonPointAngle: _ref71 => {
|
|
851
882
|
let {
|
|
852
883
|
angle
|
|
853
|
-
} =
|
|
884
|
+
} = _ref71;
|
|
854
885
|
return `Angle equal to ${angle} degrees.`;
|
|
855
886
|
},
|
|
856
|
-
srPolygonSideLength:
|
|
887
|
+
srPolygonSideLength: _ref72 => {
|
|
857
888
|
let {
|
|
858
889
|
pointNum,
|
|
859
890
|
length
|
|
860
|
-
} =
|
|
891
|
+
} = _ref72;
|
|
861
892
|
return `A line segment, length equal to ${length} units, connects to point ${pointNum}.`;
|
|
862
893
|
},
|
|
863
|
-
srPolygonSideLengthApprox:
|
|
894
|
+
srPolygonSideLengthApprox: _ref73 => {
|
|
864
895
|
let {
|
|
865
896
|
pointNum,
|
|
866
897
|
length
|
|
867
|
-
} =
|
|
898
|
+
} = _ref73;
|
|
868
899
|
return `A line segment, length approximately equal to ${length} units, connects to point ${pointNum}.`;
|
|
869
900
|
},
|
|
870
901
|
srUnlimitedPolygonEmpty: "An empty coordinate plane.",
|
|
871
902
|
srSinusoidGraph: "A sinusoid function on a coordinate plane.",
|
|
872
|
-
srSinusoidRootPoint:
|
|
903
|
+
srSinusoidRootPoint: _ref74 => {
|
|
873
904
|
let {
|
|
874
905
|
x,
|
|
875
906
|
y
|
|
876
|
-
} =
|
|
907
|
+
} = _ref74;
|
|
877
908
|
return `Midline intersection at ${x} comma ${y}.`;
|
|
878
909
|
},
|
|
879
|
-
|
|
910
|
+
srSinusoidMaxPoint: _ref75 => {
|
|
880
911
|
let {
|
|
881
912
|
x,
|
|
882
913
|
y
|
|
883
|
-
} =
|
|
884
|
-
return `
|
|
914
|
+
} = _ref75;
|
|
915
|
+
return `Maximum point at ${x} comma ${y}.`;
|
|
916
|
+
},
|
|
917
|
+
srSinusoidMinPoint: _ref76 => {
|
|
918
|
+
let {
|
|
919
|
+
x,
|
|
920
|
+
y
|
|
921
|
+
} = _ref76;
|
|
922
|
+
return `Minimum point at ${x} comma ${y}.`;
|
|
885
923
|
},
|
|
886
|
-
|
|
924
|
+
srSinusoidFlatPoint: _ref77 => {
|
|
925
|
+
let {
|
|
926
|
+
x,
|
|
927
|
+
y
|
|
928
|
+
} = _ref77;
|
|
929
|
+
return `Line through point at ${x} comma ${y}.`;
|
|
930
|
+
},
|
|
931
|
+
srSinusoidDescription: _ref78 => {
|
|
887
932
|
let {
|
|
888
933
|
minValue,
|
|
889
934
|
maxValue,
|
|
890
935
|
cycleStart,
|
|
891
936
|
cycleEnd
|
|
892
|
-
} =
|
|
937
|
+
} = _ref78;
|
|
893
938
|
return `The graph shows a wave with a minimum value of ${minValue} and a maximum value of ${maxValue}. The wave completes a full cycle from ${cycleStart} to ${cycleEnd}.`;
|
|
894
939
|
},
|
|
895
|
-
srSinusoidInteractiveElements:
|
|
940
|
+
srSinusoidInteractiveElements: _ref79 => {
|
|
896
941
|
let {
|
|
897
942
|
point1X,
|
|
898
943
|
point1Y,
|
|
899
944
|
point2X,
|
|
900
945
|
point2Y
|
|
901
|
-
} =
|
|
946
|
+
} = _ref79;
|
|
902
947
|
return `Sinusoid graph with midline intersection point at ${point1X} comma ${point1Y} and extremum point at ${point2X} comma ${point2Y}.`;
|
|
903
948
|
}
|
|
904
949
|
// The above strings are used for interactive graph SR descriptions.
|