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:
70
packages/node-editor/src/index.ts
Normal file
70
packages/node-editor/src/index.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* @esengine/node-editor
|
||||
*
|
||||
* Universal node-based visual editor for blueprint, shader graph, and state machine.
|
||||
* 通用节点式可视化编辑器,用于蓝图、着色器图和状态机
|
||||
*
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
// Import styles (导入样式)
|
||||
import './styles/index.css';
|
||||
|
||||
// Domain models (领域模型)
|
||||
export {
|
||||
// Models
|
||||
Graph,
|
||||
GraphNode,
|
||||
Pin,
|
||||
Connection,
|
||||
// Types
|
||||
type NodeTemplate,
|
||||
type NodeCategory,
|
||||
type PinDefinition
|
||||
} from './domain/models';
|
||||
|
||||
// Value objects (值对象)
|
||||
export {
|
||||
Position,
|
||||
PinType,
|
||||
type PinDirection,
|
||||
type PinCategory,
|
||||
type PinShape,
|
||||
getDefaultPinShape
|
||||
} from './domain/value-objects';
|
||||
|
||||
// Components (组件)
|
||||
export {
|
||||
// Main editor component
|
||||
NodeEditor,
|
||||
type NodeEditorProps,
|
||||
type NodeExecutionStates,
|
||||
// Canvas components
|
||||
GraphCanvas,
|
||||
useCanvasTransform,
|
||||
type GraphCanvasProps,
|
||||
type CanvasTransform,
|
||||
// Node components
|
||||
GraphNodeComponent,
|
||||
MemoizedGraphNodeComponent,
|
||||
type GraphNodeComponentProps,
|
||||
type NodeExecutionState,
|
||||
// Pin components
|
||||
NodePin,
|
||||
PinRow,
|
||||
type NodePinProps,
|
||||
type PinRowProps,
|
||||
// Connection components
|
||||
ConnectionLine,
|
||||
ConnectionPreview,
|
||||
ConnectionLayer,
|
||||
type ConnectionLineProps,
|
||||
type ConnectionPreviewProps,
|
||||
type ConnectionLayerProps,
|
||||
// Menu components
|
||||
NodeContextMenu,
|
||||
type NodeContextMenuProps,
|
||||
// Dialog components
|
||||
ConfirmDialog,
|
||||
type ConfirmDialogProps
|
||||
} from './components';
|
||||
Reference in New Issue
Block a user