little fixes, update deps

This commit is contained in:
Anton Lavrevov 2024-12-06 13:45:14 -05:00
parent 09485ef1db
commit 5ca5fd06f6
4 changed files with 14 additions and 11 deletions

View File

@ -60,13 +60,13 @@
} }
], ],
"devDependencies": { "devDependencies": {
"@parcel/transformer-image": "2.10.1", "@parcel/transformer-image": "2.13.2",
"@size-limit/preset-big-lib": "^11.0.1", "@size-limit/preset-big-lib": "^11.1.6",
"@types/mocha": "^10.0.6", "@types/mocha": "^10.0.10",
"canvas": "^2.11.2", "canvas": "^2.11.2",
"chai": "4.3.10", "chai": "5.1.2",
"filehound": "^1.17.6", "filehound": "^1.17.6",
"gulp": "^4.0.2", "gulp": "^5.0.0",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-connect": "^5.7.0", "gulp-connect": "^5.7.0",
"gulp-exec": "^5.0.0", "gulp-exec": "^5.0.0",
@ -79,14 +79,14 @@
"gulp-util": "^3.0.8", "gulp-util": "^3.0.8",
"mocha": "10.2.0", "mocha": "10.2.0",
"mocha-headless-chrome": "^4.0.0", "mocha-headless-chrome": "^4.0.0",
"parcel": "2.10.1", "parcel": "2.13.2",
"process": "^0.11.10", "process": "^0.11.10",
"rollup": "^4.9.1", "rollup": "^4.28.1",
"rollup-plugin-typescript2": "^0.36.0", "rollup-plugin-typescript2": "^0.36.0",
"size-limit": "^11.0.1", "size-limit": "^11.1.6",
"ts-mocha": "^10.0.0", "ts-mocha": "^10.0.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.3.3" "typescript": "^5.7.2"
}, },
"keywords": [ "keywords": [
"canvas", "canvas",

View File

@ -129,7 +129,7 @@ export const Factory = {
// getter // getter
constructor.prototype[getter] = function () { constructor.prototype[getter] = function () {
const ret = {}; const ret: Record<string, any> = {};
for (let n = 0; n < len; n++) { for (let n = 0; n < len; n++) {
const component = components[n]; const component = components[n];

View File

@ -551,7 +551,7 @@ Factory.addGetterSetter(TextPath, 'text', EMPTY_STRING);
* // underline text * // underline text
* shape.textDecoration('underline'); * shape.textDecoration('underline');
*/ */
Factory.addGetterSetter(TextPath, 'textDecoration', undefined); Factory.addGetterSetter(TextPath, 'textDecoration', '');
/** /**
* get/set kerning function. * get/set kerning function.

View File

@ -1765,6 +1765,9 @@ Factory.addGetterSetter(Transformer, 'padding', 0, getNumberValidator());
*/ */
Factory.addGetterSetter(Transformer, 'nodes'); Factory.addGetterSetter(Transformer, 'nodes');
// @ts-ignore
// deprecated
Factory.addGetterSetter(Transformer, 'node');
/** /**
* get/set bounding box function. **IMPORTANT!** boundBondFunc operates in absolute coordinates. * get/set bounding box function. **IMPORTANT!** boundBondFunc operates in absolute coordinates.