@jimp/plugin-circle
Advanced tools
Comparing version
@@ -0,1 +1,17 @@ | ||
# v1.0.3 (Sat Aug 31 2024) | ||
#### 🐛 Bug Fix | ||
- Fix build [#1303](https://github.com/jimp-dev/jimp/pull/1303) ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
#### ⚠️ Pushed to `main` | ||
- add clean script ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
#### Authors: 1 | ||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
--- | ||
# v1.0.2 (Sat Aug 31 2024) | ||
@@ -2,0 +18,0 @@ |
@@ -34,5 +34,5 @@ import { JimpClass } from "@jimp/types"; | ||
*/ | ||
circle<I extends JimpClass>(image: I, options: CircleOptions): I; | ||
circle<I extends JimpClass>(image: I, options?: CircleOptions): I; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,10 +13,2 @@ "use strict"; | ||
}); | ||
// export type CircleOptions = { | ||
// /** the x position to draw the circle */ | ||
// x?: number; | ||
// /** the y position to draw the circle */ | ||
// y?: number; | ||
// /** the radius of the circle */ | ||
// radius?: number; | ||
// }; | ||
exports.methods = { | ||
@@ -36,3 +28,3 @@ /** | ||
*/ | ||
circle(image, options) { | ||
circle(image, options = {}) { | ||
const parsed = CircleOptionsSchema.parse(options); | ||
@@ -39,0 +31,0 @@ const radius = parsed.radius || |
{ | ||
"type": "commonjs", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sideEffects": false | ||
} | ||
"type": "commonjs" | ||
} |
@@ -34,5 +34,5 @@ import { JimpClass } from "@jimp/types"; | ||
*/ | ||
circle<I extends JimpClass>(image: I, options: CircleOptions): I; | ||
circle<I extends JimpClass>(image: I, options?: CircleOptions): I; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -10,10 +10,2 @@ import { z } from "zod"; | ||
}); | ||
// export type CircleOptions = { | ||
// /** the x position to draw the circle */ | ||
// x?: number; | ||
// /** the y position to draw the circle */ | ||
// y?: number; | ||
// /** the radius of the circle */ | ||
// radius?: number; | ||
// }; | ||
export const methods = { | ||
@@ -33,3 +25,3 @@ /** | ||
*/ | ||
circle(image, options) { | ||
circle(image, options = {}) { | ||
const parsed = CircleOptionsSchema.parse(options); | ||
@@ -36,0 +28,0 @@ const radius = parsed.radius || |
{ | ||
"type": "module", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sideEffects": false | ||
} | ||
"type": "module" | ||
} |
{ | ||
"name": "@jimp/plugin-circle", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"repository": "jimp-dev/jimp", | ||
@@ -10,3 +10,4 @@ "scripts": { | ||
"build": "tshy", | ||
"dev": "tshy --watch" | ||
"dev": "tshy --watch", | ||
"clean": "rm -rf node_modules .tshy .tshy-build dist .turbo" | ||
}, | ||
@@ -16,15 +17,15 @@ "author": "Andrew Lisowski <lisowski54@gmail.com>", | ||
"dependencies": { | ||
"@jimp/types": "1.0.2", | ||
"@jimp/types": "1.0.3", | ||
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@jimp/config-eslint": "1.0.2", | ||
"@jimp/config-typescript": "1.0.2", | ||
"@jimp/config-vitest": "1.0.2", | ||
"@jimp/core": "1.0.2", | ||
"@jimp/test-utils": "1.0.2", | ||
"@jimp/config-eslint": "1.0.3", | ||
"@jimp/config-typescript": "1.0.3", | ||
"@jimp/config-vitest": "1.0.3", | ||
"@jimp/core": "1.0.3", | ||
"@jimp/test-utils": "1.0.3", | ||
"@vitest/browser": "^1.4.0", | ||
"eslint": "^8.57.0", | ||
"tshy": "^1.12.0", | ||
"typescript": "^5.4.2", | ||
"typescript": "^5.5.4", | ||
"vite-plugin-node-polyfills": "^0.21.0", | ||
@@ -62,3 +63,3 @@ "vitest": "^1.4.0" | ||
"sideEffects": false, | ||
"gitHead": "5e52bfd76c68b45db3a7a2ed8450e47f1fcf8853" | ||
"gitHead": "4b35cc0866903bc9e5d48d31ca34fcbec9ab111f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29981
-8.44%24
-11.11%322
-4.73%+ Added
- Removed
Updated