Pasted captions with swapped or non-numeric bbox values produced negative or NaN regions, so the editor could not select them. Coordinates are now swapped and clamped to the 0-1000 range from the Ideogram 4 caption schema, and unreadable bboxes keep the non-overlapping grid slot for that element. Saved regions with NaN coordinates are dropped on restore. Co-authored-by: AE <by-ae@users.noreply.github.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com>
43 lines
1017 B
JSON
43 lines
1017 B
JSON
{
|
|
"name": "comfyui-byae-ideogramtools",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "ComfyUI custom node for Ideogram 4 prompt building",
|
|
"scripts": {
|
|
"lint": "eslint web/js/*.js"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^8.57.0"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
"no-undef": "error",
|
|
"no-constant-condition": "warn"
|
|
},
|
|
"globals": {
|
|
"window": "readonly",
|
|
"console": "readonly",
|
|
"document": "readonly",
|
|
"navigator": "readonly",
|
|
"alert": "readonly",
|
|
"Image": "readonly",
|
|
"requestAnimationFrame": "readonly",
|
|
"setTimeout": "readonly",
|
|
"clearTimeout": "readonly",
|
|
"WheelEvent": "readonly",
|
|
"AbortSignal": "readonly"
|
|
}
|
|
}
|
|
}
|