Files
Endoleap/src/lib/canvas-bindings/react-flow.ts
T

20 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 显式 React/React Flow 框架入口。按需导出 hooks、组件 renderer 装配和命令 Context,
* 可移植 bindings/index.ts 不引用这些框架依赖;use client 指令保留模块客户端边界。
* 重导出不自动挂 Provider、attach view 或创建 engine;ReactFlowProjection* 只是结构类型,不运行数据转换。
*/
"use client";
/** Explicit framework boundary; consumers install the declared optional peers. */
// 显示组件注册、命令注入和业务快照 hooks,均由应用在客户端装配。
export * from './react-renderers.ts';
export * from './renderer-context.ts';
export * from './react.ts';
import type {Node,Edge} from '@xyflow/react';
import type {ProjectionNode,ProjectionEdge} from './projection.ts';
/** Structural adapter types add framework-owned optional metadata, never model state. */
/** 在可移植节点投影上叠加框架可选元数据,不把测量/选择等框架字段写回文档。 */
export type ReactFlowProjectionNode=Node<ProjectionNode['data'],string>&ProjectionNode;
/** 连线的框架适配类型;真实端点和 owner 的权威信息仍在元素记录中。 */
export type ReactFlowProjectionEdge=Edge<ProjectionEdge['data']>&ProjectionEdge;