refactor: replace ResolutionMultiplier with ABSwitch node, clean up constants

This commit is contained in:
chyer
2026-03-10 15:54:22 +08:00
parent 731b112d85
commit 081845ee00
3 changed files with 76 additions and 36 deletions
+5 -9
View File
@@ -73,16 +73,12 @@ POST_PROCESS_CATEGORY = "post_process"
PROMPT_TOOLS_CATEGORY = "prompt_tools"
VIDEO_CATEGORY = "video"
# Math node constants
DEFAULT_MULTIPLIER_VALUE = 32
MIN_MULTIPLIER_VALUE = 1
MAX_MULTIPLIER_VALUE = 1024
MULTIPLIER_VALUE_STEP = 1
# A B Switch node constants
DEFAULT_AB_VALUE = 512
MIN_AB_VALUE = 32
MAX_AB_VALUE = 4096
DEFAULT_INCREMENT = 1
MIN_INCREMENT = 1
MAX_INCREMENT = 100
INCREMENT_STEP = 1
DEFAULT_DIVISOR = 32
# Phone screen resolutions
PHONE_RESOLUTIONS = {