e41eccf1a9
- ImageAspectSize: reads input image dimensions and outputs width/height scaled to a target longest-side, snapped to multiples of 8, with a flip toggle for portrait/landscape rotation - MultiSwitch: any-type switch node with dynamic slot pairs (JS-driven add/remove), colour-coded active/inactive sides, and clean labelling
17 lines
423 B
Python
17 lines
423 B
Python
from .nodes.image_aspect_size import ImageAspectSize
|
|
from .nodes.multi_switch import MultiSwitch
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"ImageAspectSize": ImageAspectSize,
|
|
"MultiSwitch": MultiSwitch,
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"ImageAspectSize": "Image Aspect Size",
|
|
"MultiSwitch": "Multi Switch",
|
|
}
|
|
|
|
WEB_DIRECTORY = "./js"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|