Files
esengine/packages/node-editor/src/index.ts

71 lines
1.5 KiB
TypeScript
Raw Normal View History

/**
* @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';