Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include more tests from site.js into the snapshot testsuite #323

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions site/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ function onSiteDependenciesLoaded() {
*
* The domains of both axes can be changed with the following configurations:
*
* - `xDomain`, defaults to `[-7, 7]`
* - `yDomain`, keeps a 1:1 aspect ratio relative to `xDomain`, by default it's computed
* - `x.domain`, defaults to `[-7, 7]`
* - `y.domain`, keeps a 1:1 aspect ratio relative to `x.domain`, by default it's computed
* with the following formula
*
* $$
Expand Down Expand Up @@ -362,9 +362,12 @@ function onSiteDependenciesLoaded() {
yLine: true, // dashed line parallel to x = 0
renderer: function (x, y, index) {
// the returning value will be shown in the tip
return ''
}
},
yDomain: [-1, 9],
y: {
domain: [-1, 9]
},
data: [
{ fn: 'x^2' },
{
Expand Down Expand Up @@ -431,19 +434,13 @@ function onSiteDependenciesLoaded() {
*/
functionPlot({
target: '#secant-update',
yDomain: [-1, 9],
y: { domain: [-1, 9] },
data: [
{
fn: 'x^2',
secants: [
{
x0: 2,
updateOnMouseMove: true
},
{
x0: -2,
updateOnMouseMove: true
}
{ x0: 2, updateOnMouseMove: true },
{ x0: -2, updateOnMouseMove: true }
]
}
]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading