docs(canvas): explain node editing scopes and display interactions
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
/**
|
||||
* 纯文本节点的显示装配。外层复用节点变换与选择交互,内层使用文本编辑器的plain模式;不在此持有第二份文本数据。
|
||||
*/
|
||||
"use client";
|
||||
|
||||
import type { NodeProps } from "@xyflow/react";
|
||||
@@ -5,6 +8,7 @@ import type { CanvasNode } from "@/lib/canvas";
|
||||
import { TransformableNode } from "./transformable-node";
|
||||
import { CanvasTextEditor } from "./canvas-text-editor";
|
||||
|
||||
/** NodeProps整体交给TransformableNode;文本编辑器取得同一个id/data/selected,plain决定其纯文本呈现方式。 */
|
||||
export function PlainTextNode(props: NodeProps<CanvasNode>) {
|
||||
return (
|
||||
<TransformableNode {...props}>
|
||||
|
||||
Reference in New Issue
Block a user