refactor: sync managers and section box actions

Wire section box scale/reverse/reset to clipping APIs and sync demo artifacts.
This commit is contained in:
yuding
2026-02-04 18:20:30 +08:00
parent b12940f49c
commit 191c571f40
64 changed files with 10569 additions and 7065 deletions

View File

@@ -20,26 +20,26 @@ export class WalkPathDialogManager extends BaseDialogManager {
/** 对话框宽度 */
protected get dialogWidth() { return 300; }
/** 对话框高度 */
protected get dialogHeight(): number { return 400; }
protected get dialogHeight(): number { return 450; }
/** 初始化 */
public init(): void {}
/**
* 获取对话框位置
* 定位在容器右侧居中
* 定位在容器右上角
*/
protected getDialogPosition() {
const container = this.registry.container;
if (!container) return { x: 100, y: 100 };
const paddingRight = 20;
const paddingTop = 20;
const containerWidth = container.clientWidth;
const containerHeight = container.clientHeight;
return {
x: containerWidth - this.dialogWidth - paddingRight,
y: (containerHeight - this.dialogHeight) / 2
y: paddingTop
};
}