Svelte Flow

学习参考示例
GitHub 中文支持我们
  • API 参考
  • <SvelteFlow />
  • <SvelteFlowProvider />
  • 组件
    • <Background />
    • <BaseEdge />
    • <ControlButton />
    • <Controls />
    • <EdgeLabelRenderer />
    • <EdgeLabel />
    • <Handle />
    • <MiniMap />
    • <NodeResizer />
    • <NodeResizeControl />
    • <NodeToolbar />
    • <Panel />
  • 钩子
    • useConnection()
    • useEdges()
    • useHandleConnections()
    • useInternalNode()
    • useNodes()
    • useNodesData()
    • useNodesInitialized()
    • useSvelteFlow()
    • useStore()
    • useUpdateNodeInternals()
  • 类型
    • BackgroundVariant
    • ColorMode
    • Connection
    • ConnectionLineType
    • CoordinateExtent
    • DefaultEdgeOptions
    • Edge
    • EdgeMarker
    • EdgeProps
    • FitViewOptions
    • InternalNode
    • KeyDefinition
    • MarkerType
    • Node
    • NodeProps
    • NodeOrigin
    • PanelPosition
    • Position
    • SvelteFlowStore
    • Viewport
    • XYPosition
    • addEdge()
    • getBezierPath()
    • getConnectedEdges()
    • getIncomers()
    • getNodesBounds()
    • getOutgoers()
    • getSimpleBezierPath()
    • getSmoothStepPath()
    • getStraightPath()
    • getViewportForBounds()
    • isEdge()
    • isNode()

本页内容

  • 字段
问题?给我们反馈 →编辑此页面这里有什么新消息?
参考类型
EdgeMarker

EdgeMarker

您可以使用 edgeMarker Edge 属性自定义内置的边缘标记。

export type EdgeMarker = {
  type: MarkerType;
  color?: string;
  width?: number;
  height?: number;
  markerUnits?: string;
  orient?: string;
  strokeWidth?: number;
};

字段

名称类型
#type
MarkerType
#color?
string
#width?
number
#height?
number
#markerUnits?
string
#orient?
string
#strokeWidth?
number
类型

xyflow 团队的项目

自 2019 年以来,我们一直在构建和维护基于节点的 UI 的开源软件。

文档

快速入门指南API 参考示例展示支持我们

社交

DiscordGithubX / TwitterBluesky

xyflow

博客开源关于联系
招聘 招聘中

法律

MIT 许可证行为准则

info@xyflow.com — 版权所有 ©2024 webkid GmbH. 保留所有权利 — 网站设计由 Facu Montanaro