File tree Expand file tree Collapse file tree 2 files changed +23
-21
lines changed
examples/feature-examples
src/pages/extensions/snapshot Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -54,26 +54,6 @@ export default defineConfig({
54
54
} ,
55
55
] ,
56
56
} ,
57
- {
58
- path : '/react' ,
59
- name : 'react node registry' ,
60
- routes : [
61
- {
62
- path : 'react' ,
63
- redirect : 'react/custom' ,
64
- } ,
65
- {
66
- path : '/react/custom' ,
67
- name : '自定义 React 节点' ,
68
- component : './react' ,
69
- } ,
70
- {
71
- path : '/react/portal' ,
72
- name : 'React Portal节点' ,
73
- component : './react/Portal' ,
74
- } ,
75
- ] ,
76
- } ,
77
57
{
78
58
path : '/custom-edges' ,
79
59
name : 'custom edges' ,
@@ -94,6 +74,26 @@ export default defineConfig({
94
74
} ,
95
75
] ,
96
76
} ,
77
+ {
78
+ path : '/react' ,
79
+ name : 'react node registry' ,
80
+ routes : [
81
+ {
82
+ path : 'react' ,
83
+ redirect : 'react/custom' ,
84
+ } ,
85
+ {
86
+ path : '/react/custom' ,
87
+ name : '自定义 React 节点' ,
88
+ component : './react' ,
89
+ } ,
90
+ {
91
+ path : '/react/portal' ,
92
+ name : 'React Portal节点' ,
93
+ component : './react/Portal' ,
94
+ } ,
95
+ ] ,
96
+ } ,
97
97
{
98
98
name : 'official extensions' ,
99
99
path : '/extension' ,
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ export default function SnapshotExample() {
135
135
grid : {
136
136
size : 20 ,
137
137
} ,
138
- plugins : [ Snapshot as any ] ,
138
+ stopMoveGraph : false ,
139
+ plugins : [ Snapshot ] ,
139
140
} )
140
141
lf . register ( ImageNode )
141
142
@@ -146,6 +147,7 @@ export default function SnapshotExample() {
146
147
} ,
147
148
)
148
149
lf . render ( data )
150
+ lf . fitView ( )
149
151
lfRef . current = lf
150
152
}
151
153
} , [ ] )
You can’t perform that action at this time.
0 commit comments