Skip to content

Commit 2fd2e0d

Browse files
committed
feat: engine-browser-examples bpmn demo 更新
1 parent fc563ec commit 2fd2e0d

28 files changed

+909
-10
lines changed

examples/engine-browser-examples/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
},
1212
"dependencies": {
1313
"@ant-design/icons": "^5.0.1",
14-
"@logicflow/core": "workspace:*",
15-
"@logicflow/engine": "workspace:*",
16-
"@logicflow/extension": "1.2.19",
14+
"@logicflow/core": "workspace:latest",
15+
"@logicflow/engine": "workspace:latest",
16+
"@logicflow/extension": "workspace:latest",
1717
"antd": "^5.4.0",
1818
"localforage": "^1.10.0",
1919
"match-sorter": "^6.3.1",
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

examples/engine-browser-examples/src/index.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,7 @@ i {
260260
width: 100%;
261261
min-height: 100vh;
262262
padding: 2rem 4rem;
263-
}
264-
265-
#detail .viewport {
266-
position: relative;
267-
height: 100%;
268-
overflow: hidden;
263+
overflow: auto;
269264
}
270265

271266
#detail.loading {

examples/engine-browser-examples/src/main.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import ErrorPage from './pages/ErrorPage'
77

88
// 页面组件
99
import Graph from './pages/graph'
10+
import Bpmn from './pages/extension/bpmn'
11+
1012
import GetStarted from './pages/engine/GetStarted'
1113
import Recorder from './pages/engine/Recorder'
1214

@@ -27,6 +29,15 @@ const router = createBrowserRouter([
2729
},
2830
],
2931
},
32+
{
33+
path: '/extension',
34+
children: [
35+
{
36+
path: '/extension/bpmn',
37+
element: <Bpmn />,
38+
},
39+
],
40+
},
3041
{
3142
path: '/engine',
3243
children: [
Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
{
2+
"bpmn:definitions": {
3+
"-xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
4+
"-xmlns:bpmn": "http://www.omg.org/spec/BPMN/20100524/MODEL",
5+
"-xmlns:bpmndi": "http://www.omg.org/spec/BPMN/20100524/DI",
6+
"-xmlns:dc": "http://www.omg.org/spec/DD/20100524/DC",
7+
"-xmlns:di": "http://www.omg.org/spec/DD/20100524/DI",
8+
"-id": "Definitions_06hsjbb",
9+
"-targetNamespace": "http://bpmn.io/schema/bpmn",
10+
"-exporter": "bpmn-js (https://demo.bpmn.io)",
11+
"-exporterVersion": "7.3.0",
12+
"bpmn:process": {
13+
"-id": "Process_0zfyzey",
14+
"-isExecutable": "false",
15+
"bpmn:startEvent": {
16+
"-id": "StartEvent_072hx11",
17+
"bpmn:outgoing": "Flow_17mk55x"
18+
},
19+
"bpmn:exclusiveGateway": {
20+
"-id": "Gateway_11dyzcj",
21+
"bpmn:incoming": "Flow_00um71v",
22+
"bpmn:outgoing": ["Flow_1iy6wvy", "Flow_05w5m1i"]
23+
},
24+
"bpmn:sequenceFlow": [
25+
{
26+
"-id": "Flow_17mk55x",
27+
"-sourceRef": "StartEvent_072hx11",
28+
"-targetRef": "Activity_00hpzik"
29+
},
30+
{
31+
"-id": "Flow_00um71v",
32+
"-sourceRef": "Activity_00hpzik",
33+
"-targetRef": "Gateway_11dyzcj"
34+
},
35+
{
36+
"-id": "Flow_1iy6wvy",
37+
"-sourceRef": "Gateway_11dyzcj",
38+
"-targetRef": "Activity_1r8wi1d"
39+
},
40+
{
41+
"-id": "Flow_091o1xz",
42+
"-sourceRef": "Activity_1r8wi1d",
43+
"-targetRef": "Event_0e2j3bl"
44+
},
45+
{
46+
"-id": "Flow_05w5m1i",
47+
"-sourceRef": "Gateway_11dyzcj",
48+
"-targetRef": "Activity_0pbgbgt"
49+
},
50+
{
51+
"-id": "Flow_1hzglvd",
52+
"-sourceRef": "Activity_0pbgbgt",
53+
"-targetRef": "Event_1s9e2ln"
54+
}
55+
],
56+
"bpmn:endEvent": [
57+
{
58+
"-id": "Event_0e2j3bl",
59+
"bpmn:incoming": "Flow_091o1xz"
60+
},
61+
{
62+
"-id": "Event_1s9e2ln",
63+
"bpmn:incoming": "Flow_1hzglvd"
64+
}
65+
],
66+
"bpmn:serviceTask": {
67+
"-id": "Activity_1r8wi1d",
68+
"bpmn:incoming": "Flow_1iy6wvy",
69+
"bpmn:outgoing": "Flow_091o1xz"
70+
},
71+
"bpmn:userTask": [
72+
{
73+
"-id": "Activity_00hpzik",
74+
"bpmn:incoming": "Flow_17mk55x",
75+
"bpmn:outgoing": "Flow_00um71v"
76+
},
77+
{
78+
"-id": "Activity_0pbgbgt",
79+
"bpmn:incoming": "Flow_05w5m1i",
80+
"bpmn:outgoing": "Flow_1hzglvd"
81+
}
82+
]
83+
},
84+
"bpmndi:BPMNDiagram": {
85+
"-id": "BPMNDiagram_1",
86+
"bpmndi:BPMNPlane": {
87+
"-id": "BPMNPlane_1",
88+
"-bpmnElement": "Process_0zfyzey",
89+
"bpmndi:BPMNEdge": [
90+
{
91+
"-id": "Flow_091o1xz_di",
92+
"-bpmnElement": "Flow_091o1xz",
93+
"di:waypoint": [
94+
{
95+
"-x": "580",
96+
"-y": "130"
97+
},
98+
{
99+
"-x": "632",
100+
"-y": "130"
101+
}
102+
]
103+
},
104+
{
105+
"-id": "Flow_1iy6wvy_di",
106+
"-bpmnElement": "Flow_1iy6wvy",
107+
"di:waypoint": [
108+
{
109+
"-x": "435",
110+
"-y": "130"
111+
},
112+
{
113+
"-x": "480",
114+
"-y": "130"
115+
}
116+
]
117+
},
118+
{
119+
"-id": "Flow_00um71v_di",
120+
"-bpmnElement": "Flow_00um71v",
121+
"di:waypoint": [
122+
{
123+
"-x": "340",
124+
"-y": "130"
125+
},
126+
{
127+
"-x": "385",
128+
"-y": "130"
129+
}
130+
]
131+
},
132+
{
133+
"-id": "Flow_17mk55x_di",
134+
"-bpmnElement": "Flow_17mk55x",
135+
"di:waypoint": [
136+
{
137+
"-x": "188",
138+
"-y": "130"
139+
},
140+
{
141+
"-x": "240",
142+
"-y": "130"
143+
}
144+
]
145+
},
146+
{
147+
"-id": "Flow_05w5m1i_di",
148+
"-bpmnElement": "Flow_05w5m1i",
149+
"di:waypoint": [
150+
{
151+
"-x": "410",
152+
"-y": "155"
153+
},
154+
{
155+
"-x": "410",
156+
"-y": "240"
157+
},
158+
{
159+
"-x": "480",
160+
"-y": "240"
161+
}
162+
]
163+
},
164+
{
165+
"-id": "Flow_1hzglvd_di",
166+
"-bpmnElement": "Flow_1hzglvd",
167+
"di:waypoint": [
168+
{
169+
"-x": "580",
170+
"-y": "240"
171+
},
172+
{
173+
"-x": "632",
174+
"-y": "240"
175+
}
176+
]
177+
}
178+
],
179+
"bpmndi:BPMNShape": [
180+
{
181+
"-id": "Gateway_11dyzcj_di",
182+
"-bpmnElement": "Gateway_11dyzcj",
183+
"-isMarkerVisible": "true",
184+
"dc:Bounds": {
185+
"-x": "385",
186+
"-y": "105",
187+
"-width": "50",
188+
"-height": "50"
189+
}
190+
},
191+
{
192+
"-id": "Event_0e2j3bl_di",
193+
"-bpmnElement": "Event_0e2j3bl",
194+
"dc:Bounds": {
195+
"-x": "632",
196+
"-y": "112",
197+
"-width": "36",
198+
"-height": "36"
199+
}
200+
},
201+
{
202+
"-id": "Activity_09ucrnv_di",
203+
"-bpmnElement": "Activity_1r8wi1d",
204+
"dc:Bounds": {
205+
"-x": "480",
206+
"-y": "90",
207+
"-width": "100",
208+
"-height": "80"
209+
}
210+
},
211+
{
212+
"-id": "Activity_13bhmg8_di",
213+
"-bpmnElement": "Activity_00hpzik",
214+
"dc:Bounds": {
215+
"-x": "240",
216+
"-y": "90",
217+
"-width": "100",
218+
"-height": "80"
219+
}
220+
},
221+
{
222+
"-id": "Activity_015rcjo_di",
223+
"-bpmnElement": "Activity_0pbgbgt",
224+
"dc:Bounds": {
225+
"-x": "480",
226+
"-y": "200",
227+
"-width": "100",
228+
"-height": "80"
229+
}
230+
},
231+
{
232+
"-id": "Event_1s9e2ln_di",
233+
"-bpmnElement": "Event_1s9e2ln",
234+
"dc:Bounds": {
235+
"-x": "632",
236+
"-y": "222",
237+
"-width": "36",
238+
"-height": "36"
239+
}
240+
},
241+
{
242+
"-id": "_BPMNShape_StartEvent_2",
243+
"-bpmnElement": "StartEvent_072hx11",
244+
"dc:Bounds": {
245+
"-x": "152",
246+
"-y": "112",
247+
"-width": "36",
248+
"-height": "36"
249+
}
250+
}
251+
]
252+
}
253+
}
254+
}
255+
}

0 commit comments

Comments
 (0)