@pie-element/number-line 13.2.3 → 13.2.4
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/CHANGELOG.md +6 -0
- package/controller/CHANGELOG.md +6 -0
- package/controller/package.json +2 -2
- package/docs/demo/generate.js +31 -9
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [13.2.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line@13.2.3...@pie-element/number-line@13.2.4) (2026-09-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- keep number-line on fraction.js 4 to avoid BigInt bundle errors PIE-926 PIE-1005 ([ec1d0d8](https://github.com/pie-framework/pie-elements/commit/ec1d0d8bd3e820d3b55a162e0896c1700cf8b794))
|
|
11
|
+
|
|
6
12
|
## [13.2.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line@13.2.2...@pie-element/number-line@13.2.3) (2026-09-07)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [9.1.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-controller@9.1.6...@pie-element/number-line-controller@9.1.7) (2026-09-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- keep number-line on fraction.js 4 to avoid BigInt bundle errors PIE-926 PIE-1005 ([ec1d0d8](https://github.com/pie-framework/pie-elements/commit/ec1d0d8bd3e820d3b55a162e0896c1700cf8b794))
|
|
11
|
+
|
|
6
12
|
## [9.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/number-line-controller@9.1.5...@pie-element/number-line-controller@9.1.6) (2026-09-07)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/controller/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/number-line-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "9.1.
|
|
4
|
+
"version": "9.1.7",
|
|
5
5
|
"description": "Controller logic for @pie-ui/number-line",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"pie",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@pie-lib/controller-utils": "2.0.3",
|
|
14
14
|
"@pie-lib/feedback": "2.0.2",
|
|
15
15
|
"lodash-es": "^4.17.23",
|
|
16
|
-
"mathjs": "^
|
|
16
|
+
"mathjs": "^7.5.1"
|
|
17
17
|
},
|
|
18
18
|
"author": "",
|
|
19
19
|
"license": "ISC"
|
package/docs/demo/generate.js
CHANGED
|
@@ -1,22 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirrors the "Number Line Demo" item that reproduced PIE-1005 (blank number
|
|
3
|
+
* line / BigInt TypeError in the author). Keep this in sync with that item so
|
|
4
|
+
* the failure stays reproducible from `pie-website` / the local demo.
|
|
5
|
+
*/
|
|
1
6
|
exports.model = (id, element) => ({
|
|
2
7
|
correctResponse: [
|
|
3
|
-
{ type: 'point', pointType: 'full', domainPosition:
|
|
8
|
+
{ type: 'point', pointType: 'full', domainPosition: 1 },
|
|
9
|
+
{ type: 'line', leftPoint: 'full', rightPoint: 'empty', domainPosition: 1, size: 2 },
|
|
4
10
|
],
|
|
5
11
|
feedback: {
|
|
6
12
|
correct: { type: 'default', default: 'Correct' },
|
|
7
13
|
partial: { type: 'default', default: 'Nearly' },
|
|
8
|
-
incorrect: { type: '
|
|
14
|
+
incorrect: { type: 'custom', custom: '<h1>Incorrect</h1>' },
|
|
9
15
|
},
|
|
10
|
-
prompt: '',
|
|
11
|
-
widthEnabled: true,
|
|
16
|
+
prompt: 'Set correct answer.',
|
|
12
17
|
graph: {
|
|
13
|
-
title: '',
|
|
18
|
+
title: 'This is the title <span data-latex="">\\frac{1}{2}</span>',
|
|
14
19
|
arrows: { left: true, right: true },
|
|
15
20
|
width: 500,
|
|
21
|
+
height: 400,
|
|
16
22
|
domain: { min: -5, max: 5 },
|
|
17
|
-
ticks: {
|
|
23
|
+
ticks: {
|
|
24
|
+
minor: 1,
|
|
25
|
+
major: 2,
|
|
26
|
+
tickIntervalType: 'Integer',
|
|
27
|
+
integerTick: 1,
|
|
28
|
+
decimalTick: 0.2,
|
|
29
|
+
fractionTick: '1/5',
|
|
30
|
+
},
|
|
18
31
|
initialElements: [],
|
|
19
|
-
maxNumberOfPoints:
|
|
32
|
+
maxNumberOfPoints: 20,
|
|
20
33
|
showMinorTicks: true,
|
|
21
34
|
snapPerTick: 1,
|
|
22
35
|
tickLabelOverrides: [],
|
|
@@ -31,9 +44,18 @@ exports.model = (id, element) => ({
|
|
|
31
44
|
RFN: true,
|
|
32
45
|
RFP: true,
|
|
33
46
|
REN: true,
|
|
34
|
-
REP: true
|
|
35
|
-
}
|
|
47
|
+
REP: true,
|
|
48
|
+
},
|
|
36
49
|
},
|
|
50
|
+
promptEnabled: true,
|
|
51
|
+
rationale: '',
|
|
52
|
+
rationaleEnabled: true,
|
|
53
|
+
teacherInstructions: '',
|
|
54
|
+
teacherInstructionsEnabled: true,
|
|
55
|
+
toolbarEditorPosition: 'bottom',
|
|
56
|
+
widthEnabled: true,
|
|
57
|
+
language: '',
|
|
58
|
+
titleEnabled: true,
|
|
37
59
|
id,
|
|
38
60
|
element,
|
|
39
61
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/number-line",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "13.2.
|
|
4
|
+
"version": "13.2.4",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"d3-scale": "^4.0.2",
|
|
22
22
|
"d3-selection": "^3.0.0",
|
|
23
23
|
"lodash-es": "^4.17.23",
|
|
24
|
-
"mathjs": "^
|
|
24
|
+
"mathjs": "^7.5.1",
|
|
25
25
|
"react": "18.3.1",
|
|
26
26
|
"react-dom": "18.3.1",
|
|
27
27
|
"react-jss": "^10.10.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"author": "pie framework developers",
|
|
31
31
|
"license": "ISC",
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "2861580b0236bf45d6069a8f0fb50dceb26b39bc",
|
|
33
33
|
"scripts": {
|
|
34
34
|
"postpublish": "../../scripts/postpublish"
|
|
35
35
|
},
|