docs(canvas): explain React bindings renderer registration and view leases
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
/**
|
||||
* 显式 React/React Flow 框架入口。按需导出 hooks、组件 renderer 装配和命令 Context,
|
||||
* 可移植 bindings/index.ts 不引用这些框架依赖;use client 指令保留模块客户端边界。
|
||||
*/
|
||||
"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';
|
||||
@@ -7,5 +12,7 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user