- Remove all automatic alignment logic and keypoint detection - Convert to pure manual transformation node using widget sliders - Remove manual/auto mode toggle and Live UI toggle - Ensure canvas preview exactly matches output transformations - Simplify codebase by removing 400+ lines of complex auto-alignment code Key changes: - Python: Always use widget values (tx_A, ty_A, scale_A, angle_deg_A, etc.) - JavaScript: Remove automatic mode detection and Live toggle UI - Canvas interactions directly update widget values for immediate effect - Output transformations now perfectly match canvas preview Fixes issue where manual canvas adjustments weren't reflected in final output.
18 lines
563 B
JavaScript
18 lines
563 B
JavaScript
/* modules/ui_components.js - Compact toggle positioned below canvas */
|
|
import { DOMUtils, LogUtils } from "./utils.js";
|
|
|
|
export class UIComponents {
|
|
constructor(node, renderer, imageManager, transformManager) {
|
|
this.node = node;
|
|
this.renderer = renderer;
|
|
this.imageManager = imageManager;
|
|
this.transformManager = transformManager;
|
|
}
|
|
|
|
// Create all UI components - simplified for manual-only mode
|
|
createAllComponents() {
|
|
// No UI components needed - everything is manual now
|
|
console.log("[UIComponents] Manual-only mode - no toggle needed");
|
|
}
|
|
}
|