@mathscan/math-exercise-engine 1.0.16 → 1.0.17
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/index.d.ts +228 -0
- package/dist/index.js +84 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -35
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +15 -12
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -238,6 +238,10 @@
|
|
|
238
238
|
unicode-bidi: plaintext;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
+
.text-item-number {
|
|
242
|
+
font-variant-numeric: tabular-nums;
|
|
243
|
+
}
|
|
244
|
+
|
|
241
245
|
.text-item-arabic {
|
|
242
246
|
/* Direction is handled by parent text-group with unicode-bidi: plaintext */
|
|
243
247
|
}
|
|
@@ -707,7 +711,6 @@ th.exercise-table-cell {
|
|
|
707
711
|
}
|
|
708
712
|
|
|
709
713
|
.fraction-input {
|
|
710
|
-
width: 3.2em !important;
|
|
711
714
|
padding: 0.15em 0.2em;
|
|
712
715
|
font-size: 0.9em;
|
|
713
716
|
text-align: center;
|
|
@@ -758,22 +761,20 @@ th.exercise-table-cell {
|
|
|
758
761
|
}
|
|
759
762
|
|
|
760
763
|
.visual-fraction-widget__parts--horizontal {
|
|
761
|
-
grid-template-columns: repeat(var(--visual-fraction-divisions, 1),
|
|
764
|
+
grid-template-columns: repeat(var(--visual-fraction-divisions, 1), 1fr);
|
|
762
765
|
grid-template-rows: var(--visual-fraction-part-size);
|
|
763
|
-
width:
|
|
766
|
+
width: var(--visual-fraction-size);
|
|
764
767
|
}
|
|
765
768
|
|
|
766
769
|
.visual-fraction-widget__parts--vertical {
|
|
767
|
-
grid-template-columns:
|
|
768
|
-
grid-template-rows: repeat(var(--visual-fraction-divisions, 1),
|
|
769
|
-
|
|
770
|
-
height: max-content;
|
|
770
|
+
grid-template-columns: var(--visual-fraction-part-size);
|
|
771
|
+
grid-template-rows: repeat(var(--visual-fraction-divisions, 1), 1fr);
|
|
772
|
+
height: var(--visual-fraction-size);
|
|
771
773
|
}
|
|
772
774
|
|
|
773
775
|
.visual-fraction-widget__part {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
height: var(--visual-fraction-part-size);
|
|
776
|
+
min-width: 0;
|
|
777
|
+
min-height: 0;
|
|
777
778
|
background: var(--visual-fraction-empty-bg);
|
|
778
779
|
color: var(--exercise-text, #333);
|
|
779
780
|
transition: background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
|
|
@@ -858,8 +859,10 @@ th.exercise-table-cell {
|
|
|
858
859
|
}
|
|
859
860
|
|
|
860
861
|
.visual-fraction-widget--grid .visual-fraction-widget__parts {
|
|
861
|
-
grid-template-columns: repeat(var(--visual-fraction-grid-cols, 3),
|
|
862
|
-
|
|
862
|
+
grid-template-columns: repeat(var(--visual-fraction-grid-cols, 3), 1fr);
|
|
863
|
+
grid-template-rows: repeat(var(--visual-fraction-grid-rows, 3), 1fr);
|
|
864
|
+
width: var(--visual-fraction-size);
|
|
865
|
+
height: var(--visual-fraction-size);
|
|
863
866
|
}
|
|
864
867
|
|
|
865
868
|
.visual-fraction-widget__label {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mathscan/math-exercise-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "A DSL parser and validator for math exercises - transforms text-based exercise definitions into structured AST and JSON",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|