Skip to content

Commit c7e2fc9

Browse files
committed
Update JSXGraph to the latest version.
The console logging issue has been fixed, and the intermediate grid bug (that was in the versions between where PG-2.19 now is and this) has also been fixed.
1 parent 50fcb82 commit c7e2fc9

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

htdocs/js/GraphTool/graphtool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ window.graphTool = (containerId, options) => {
112112
straightLast: false,
113113
fixed: true
114114
},
115-
grid: { gridX: gt.snapSizeX, gridY: gt.snapSizeY },
115+
grid: { majorStep: [gt.snapSizeX, gt.snapSizeY] },
116116
keyboard: {
117117
enabled: true,
118118
dx: gt.snapSizeX,

htdocs/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

htdocs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prettier-check": "prettier --ignore-path=../.gitignore --check \"**/*.{js,css,scss,html}\" \"../**/*.dist.yml\""
1414
},
1515
"dependencies": {
16-
"jsxgraph": "^1.7.0",
16+
"jsxgraph": "^1.9.2",
1717
"jszip": "^3.10.1",
1818
"jszip-utils": "^0.1.0",
1919
"mathquill": "github:openwebwork/mathquill#WeBWorK-2.19",

macros/graph/parserGraphTool.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ sub constructJSXGraphOptions {
11051105
x => { ticks => { ticksDistance => $self->{ticksDistanceX}, minorTicks => $self->{minorTicksX} } },
11061106
y => { ticks => { ticksDistance => $self->{ticksDistanceY}, minorTicks => $self->{minorTicksY} } }
11071107
},
1108-
grid => { gridX => $self->{gridX}, gridY => $self->{gridY} }
1108+
grid => { majorStep => [ $self->{gridX}, $self->{gridY} ] }
11091109
)
11101110
});
11111111

0 commit comments

Comments
 (0)