mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: widen all Zod schema constraints for power users
Raise all artificially low max values on tool settings: - stitch: grid→100, gap→1000, border/radius→500 - split: grid→100x100 - collage: zoom→10, gap→500, radius→500 - watermark: fontSize→1000 - border: width→2000, radius→2000, shadow→200 - qr: size→10000 - gif: dimensions→16384 - passport: dpi→1200 - sharpening: amount→1000 - pdf/svg: dpi→2400, dimensions→65536 - vectorize: precision→16 - bulk-rename: pattern→1000 - image-to-pdf: margin→500 - pipeline: name→255, description→2000
This commit is contained in:
@@ -6,13 +6,13 @@ import { createToolRoute } from "../tool-factory.js";
|
||||
const hexColor = z.string().regex(/^#[0-9a-fA-F]{6}$/);
|
||||
|
||||
const settingsSchema = z.object({
|
||||
borderWidth: z.number().min(0).max(200).default(10),
|
||||
borderWidth: z.number().min(0).max(2000).default(10),
|
||||
borderColor: hexColor.default("#000000"),
|
||||
padding: z.number().min(0).max(200).default(0),
|
||||
paddingColor: hexColor.default("#FFFFFF"),
|
||||
cornerRadius: z.number().min(0).max(500).default(0),
|
||||
cornerRadius: z.number().min(0).max(2000).default(0),
|
||||
shadow: z.boolean().default(false),
|
||||
shadowBlur: z.number().min(1).max(50).default(15),
|
||||
shadowBlur: z.number().min(1).max(200).default(15),
|
||||
shadowOffsetX: z.number().min(-50).max(50).default(0),
|
||||
shadowOffsetY: z.number().min(-50).max(50).default(5),
|
||||
shadowColor: hexColor.default("#000000"),
|
||||
|
||||
Reference in New Issue
Block a user