ren: BestResolutionPrimUpStrategy -> BestResolutionPrimCropPadStrategy

This commit is contained in:
Lex Darlog (DRL)
2025-07-20 00:25:14 +05:00
parent a8884c72ef
commit 133e579044
3 changed files with 9 additions and 4 deletions
+5
View File
@@ -1,3 +1,8 @@
# V1.1.1
- This `CHANGELOG.md` file.
- Prim-node rename (class and internal name, too): `Upscale Strategy (Best-Res)` -> `Crop-Pad Strategy (Best-Res)`
# V1.1.0
The minimally-complete version (full workflow coverage for my own use-case).
+2 -2
View File
@@ -15,8 +15,8 @@ NODE_CLASS_MAPPINGS: _t.Dict[str, type] = {
"BestResolutionFromAspectRatio": BestResolutionFromAspectRatio,
"BestResolutionSimple": BestResolutionSimple,
"BestResolutionPrimCropPadStrategy": BestResolutionPrimCropPadStrategy,
"BestResolutionPrimResPriority": BestResolutionPrimResPriority,
"BestResolutionPrimUpStrategy": BestResolutionPrimUpStrategy,
"BestResolutionUpscaledCropPad": BestResolutionUpscaledCropPad,
}
@@ -26,8 +26,8 @@ NODE_DISPLAY_NAME_MAPPINGS: _t.Dict[str, str] = {
"BestResolutionFromAspectRatio": "Best-Res (ratio)",
"BestResolutionSimple": "Best-Res (simple)",
"BestResolutionPrimCropPadStrategy": "Crop-Pad Strategy (Best-Res)",
"BestResolutionPrimResPriority": "Priority (Best-Res)",
"BestResolutionPrimUpStrategy": "Upscale Strategy (Best-Res)",
"BestResolutionUpscaledCropPad": "Upscaled Crop/Pad (Best-Res)",
}
+2 -2
View File
@@ -98,11 +98,11 @@ def _up_strategy_verify(strategy: _t.Union[RoundingPriority, str]) -> str:
return str(strategy)
class BestResolutionPrimUpStrategy:
class BestResolutionPrimCropPadStrategy:
"""
'strategy' selector for "Upscaled Crop/Pad" node in "Best Resolution" pack.
"""
NODE_NAME = 'BestResolutionPrimUpStrategy'
NODE_NAME = 'BestResolutionPrimCropPadStrategy'
CATEGORY = _meta.category
DESCRIPTION = _format_docstring(_cleandoc(__doc__))