Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #960 from eyelidlessness/fix/draw-widget-scaling
Browse files Browse the repository at this point in the history
Fix: preserve high fidelity image data when resizing draw-widget canvas
  • Loading branch information
eyelidlessness authored Mar 20, 2023
2 parents f92ac93 + 86ee154 commit 1330cd0
Show file tree
Hide file tree
Showing 16 changed files with 2,433 additions and 759 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"plugins": ["chai-friendly", "jsdoc", "prettier", "unicorn"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
"ecmaVersion": 2022
},
"settings": {
"jsdoc": {
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
// Formatting
"eslint.enable": true,
"eslint.options": {
"extends": ["../.eslintrc.json"]
},
"eslint.nodePath": "../node_modules/.bin",
"eslint.validate": ["markdown", "md"],
"prettier.configPath": ".prettierrc.json",
Expand Down
26 changes: 16 additions & 10 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ module.exports = (grunt) => {
'!test/mock/forms.js',
];

const karmaWatchOptions = {
autoWatch: true,
client: {
mocha: {
timeout: Number.MAX_SAFE_INTEGER,
},
},
reporters: ['dots'],
singleRun: false,
};

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand Down Expand Up @@ -127,16 +138,11 @@ module.exports = (grunt) => {
},
watch: {
browsers: ['ChromeHeadlessDebug'],
options: {
autoWatch: true,
client: {
mocha: {
timeout: Number.MAX_SAFE_INTEGER,
},
},
reporters: ['dots'],
singleRun: false,
},
options: karmaWatchOptions,
},
watchBrowsers: {
browsers: ['Chrome', 'Firefox', 'Safari'],
options: karmaWatchOptions,
},
},
sass: {
Expand Down
893 changes: 398 additions & 495 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"beautify": "npx prettier --write . && grunt eslint:fix"
},
"devDependencies": {
"@types/chai": "^4.3.4",
"@types/mocha": "^10.0.1",
"@types/sinon": "^10.0.13",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.3",
Expand All @@ -64,12 +67,12 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unicorn": "^36.0.0",
"eslint-plugin-unicorn": "^40.0.0",
"grunt": "^1.6.1",
"grunt-concurrent": "^3.0.0",
"grunt-contrib-connect": "^3.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-eslint": "^23.0.0",
"grunt-eslint": "^24.0.1",
"grunt-karma": "^4.0.2",
"grunt-mocha-test": "^0.13.3",
"grunt-sass": "^3.1.0",
Expand Down Expand Up @@ -111,7 +114,7 @@
"mergexml": "1.2.3",
"node-forge": "^1.3.1",
"openrosa-xpath-evaluator": "^2.0.13",
"signature_pad": "2.3.x"
"signature_pad": "^4.1.5"
},
"volta": {
"node": "16.5.0",
Expand Down
Loading

0 comments on commit 1330cd0

Please sign in to comment.