Skip to content

Commit

Permalink
Update fixture, add npm run dev:ff
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Mar 16, 2021
1 parent 1dc8581 commit 1149fe9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"autobuild": "rollup -c -w",
"build": "rollup -c",
"dev": "karma start --auto-watch --no-single-run --browsers chrome --grep",
"dev:ff": "karma start --auto-watch --no-single-run --browsers firefox --grep",
"docs": "cd docs && npm install && npm run build",
"lint-js": "eslint \"samples/**/*.html\" \"samples/**/*.js\" \"src/**/*.js\" \"test/**/*.js\"",
"lint-md": "markdownlint-cli2 \"**/*.md\" \"**/*.mdx\" \"#**/node_modules\"",
Expand Down
11 changes: 8 additions & 3 deletions test/fixtures/plugin.tooltip/positioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
data: {
datasets: [{
data,
// radius: 8
backgroundColor: 'red',
radius: 8
}],
},
options: {
Expand All @@ -26,6 +27,10 @@ module.exports = {
tooltip: {
mode: 'point',
intersect: true,
// spriteText: use white background to hide any gaps between fonts
backgroundColor: 'white',
borderColor: 'black',
borderWidth: 1,
callbacks: {
beforeLabel: () => 'before label',
label: () => 'label',
Expand Down Expand Up @@ -59,8 +64,8 @@ module.exports = {
options: {
spriteText: true,
canvas: {
height: 512,
width: 512
height: 400,
width: 500
}
}
};
Binary file modified test/fixtures/plugin.tooltip/positioning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1149fe9

Please sign in to comment.