Skip to content

Commit d19e67f

Browse files
committed
feat: 暂存「开发 动态组节点功能 代码」
1 parent 82a4c43 commit d19e67f

File tree

6 files changed

+381
-17
lines changed

6 files changed

+381
-17
lines changed

examples/engine-browser-examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
7+
<title>LogicFlow Demos with Vite</title>
88
</head>
99
<body>
1010
<div id="root"></div>

examples/engine-browser-examples/src/pages/extension/dynamic-group/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,18 @@ export default function BPMNExtension() {
150150
}
151151
}, [])
152152

153-
const getGraphData = () => {}
153+
const getGraphData = () => {
154+
const graphData = lfRef.current?.getGraphRawData()
155+
console.log('cur graph data:', graphData)
156+
}
154157

155158
const rerender = () => {}
156159

157160
return (
158-
<Card title="LogicFlow Extension - DndPanel" className="control-container">
161+
<Card
162+
title="LogicFlow Extension - DynamicGroup"
163+
className="control-container"
164+
>
159165
<Flex wrap="wrap" gap="small">
160166
<Button type="primary" key="getData" onClick={getGraphData}>
161167
获取数据

examples/feature-examples/src/components/nodes/custom-html/Html.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type CustomProperties = {
1212
}
1313

1414
class CustomHtmlNode extends HtmlNode {
15-
setHtml(rootEl: HTMLElement) {
15+
setHtml(rootEl: SVGForeignObjectElement) {
1616
const { properties } = this.props.model
1717

1818
const el = document.createElement('div')

packages/core/src/event/eventArgs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import {
2-
LogicFlow,
1+
import LogicFlow, {
32
BaseNodeModel,
43
BaseEdgeModel,
54
Model,

0 commit comments

Comments
 (0)