Feature/physics and tilemap enhancement (#247)

* feat(behavior-tree,tilemap): 修复编辑器连线缩放问题并增强插件系统

* feat(node-editor,blueprint): 新增通用节点编辑器和蓝图可视化脚本系统

* feat(editor,tilemap): 优化编辑器UI样式和Tilemap编辑器功能

* fix: 修复CodeQL安全警告和CI类型检查错误

* fix: 修复CodeQL安全警告和CI类型检查错误

* fix: 修复CodeQL安全警告和CI类型检查错误
This commit is contained in:
YHH
2025-11-29 23:00:48 +08:00
committed by GitHub
parent f03b73b58e
commit 359886c72f
198 changed files with 33879 additions and 13121 deletions

View File

@@ -14,7 +14,7 @@ import type { Entity } from '@esengine/ecs-framework';
* Gizmo type enumeration
* Gizmo 类型枚举
*/
export type GizmoType = 'rect' | 'circle' | 'line' | 'grid';
export type GizmoType = 'rect' | 'circle' | 'line' | 'grid' | 'capsule';
/**
* Color in RGBA format (0-1 range)
@@ -105,11 +105,31 @@ export interface IGridGizmoData {
color: GizmoColor;
}
/**
* Capsule gizmo data
* 胶囊 gizmo 数据
*/
export interface ICapsuleGizmoData {
type: 'capsule';
/** Center X position | 中心 X 位置 */
x: number;
/** Center Y position | 中心 Y 位置 */
y: number;
/** Capsule radius | 胶囊半径 */
radius: number;
/** Half height (distance from center to cap centers) | 半高度(从中心到端帽圆心的距离) */
halfHeight: number;
/** Rotation in radians | 旋转角度(弧度) */
rotation: number;
/** Color | 颜色 */
color: GizmoColor;
}
/**
* Union type for all gizmo data
* 所有 gizmo 数据的联合类型
*/
export type IGizmoRenderData = IRectGizmoData | ICircleGizmoData | ILineGizmoData | IGridGizmoData;
export type IGizmoRenderData = IRectGizmoData | ICircleGizmoData | ILineGizmoData | IGridGizmoData | ICapsuleGizmoData;
/**
* Gizmo Provider Interface