Skip to content

Commit

Permalink
little fixes, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Dec 6, 2024
1 parent 09485ef commit 5ca5fd0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
}
],
"devDependencies": {
"@parcel/transformer-image": "2.10.1",
"@size-limit/preset-big-lib": "^11.0.1",
"@types/mocha": "^10.0.6",
"@parcel/transformer-image": "2.13.2",
"@size-limit/preset-big-lib": "^11.1.6",
"@types/mocha": "^10.0.10",
"canvas": "^2.11.2",
"chai": "4.3.10",
"chai": "5.1.2",
"filehound": "^1.17.6",
"gulp": "^4.0.2",
"gulp": "^5.0.0",
"gulp-concat": "^2.6.1",
"gulp-connect": "^5.7.0",
"gulp-exec": "^5.0.0",
Expand All @@ -79,14 +79,14 @@
"gulp-util": "^3.0.8",
"mocha": "10.2.0",
"mocha-headless-chrome": "^4.0.0",
"parcel": "2.10.1",
"parcel": "2.13.2",
"process": "^0.11.10",
"rollup": "^4.9.1",
"rollup": "^4.28.1",
"rollup-plugin-typescript2": "^0.36.0",
"size-limit": "^11.0.1",
"size-limit": "^11.1.6",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
"typescript": "^5.7.2"
},
"keywords": [
"canvas",
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const Factory = {

// getter
constructor.prototype[getter] = function () {
const ret = {};
const ret: Record<string, any> = {};

for (let n = 0; n < len; n++) {
const component = components[n];
Expand Down
2 changes: 1 addition & 1 deletion src/shapes/TextPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Factory.addGetterSetter(TextPath, 'text', EMPTY_STRING);
* // underline text
* shape.textDecoration('underline');
*/
Factory.addGetterSetter(TextPath, 'textDecoration', undefined);
Factory.addGetterSetter(TextPath, 'textDecoration', '');

/**
* get/set kerning function.
Expand Down
3 changes: 3 additions & 0 deletions src/shapes/Transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,9 @@ Factory.addGetterSetter(Transformer, 'padding', 0, getNumberValidator());
*/

Factory.addGetterSetter(Transformer, 'nodes');
// @ts-ignore
// deprecated
Factory.addGetterSetter(Transformer, 'node');

/**
* get/set bounding box function. **IMPORTANT!** boundBondFunc operates in absolute coordinates.
Expand Down

0 comments on commit 5ca5fd0

Please sign in to comment.