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:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user