Interactive canvas-like visual editor for positioning images behind mask regions. Supports scale, rotation, flip, and offset transforms with real-time preview. - Python backend with F.grid_sample based inverse transform chain - JavaScript frontend with full-screen HTML5 Canvas editor modal - Mouse drag (pan), scroll (zoom), shift+scroll (rotate) interactions - Bilingual README (EN + ZH_CN)
11 lines
388 B
Python
11 lines
388 B
Python
"""
|
|
ComfyUI Mask Canvas Image Node
|
|
A custom node that provides canvas-like visual editing for positioning
|
|
an image behind a mask region, with support for scale, rotation, flip, and offset.
|
|
"""
|
|
|
|
from .py.nodes.mask_canvas_editor import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
WEB_DIRECTORY = "./js"
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|