Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-12-01 22:35:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
00c52991cf179a0b23e17394166afcc79edd37c2
00c52991
1 parent
3dfae9b7
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
src/behavior/drag-edge.ts
src/shape/edge1.ts
src/behavior/drag-edge.ts
View file @
00c5299
...
...
@@ -137,8 +137,8 @@ export function dragEdge(G6, option: OptionType) {
sourceAnchor
:
this
.
origin
.
sourceAnchor
,
targetAnchor
:
this
.
origin
.
targetAnchor
,
}
// TAG: 修改连接线颜色 开始
出去
的线和连接到抄送节点的颜色是灰色
if
(
this
.
origin
.
sourceNode
.
get
(
'id'
)
===
'start-node'
||
this
.
origin
.
targetNode
.
get
(
'model'
).
control
===
'cc'
)
{
// TAG: 修改连接线颜色 开始
/结束 相关
的线和连接到抄送节点的颜色是灰色
if
(
this
.
origin
.
sourceNode
.
get
(
'id'
)
===
'start-node'
||
this
.
origin
.
targetNode
.
get
(
'model'
).
control
===
'cc'
||
this
.
origin
.
targetNode
.
get
(
'id'
)
===
'end-node'
)
{
addModel
.
shape
=
'flow-polyline-round'
}
if
(
this
.
graph
.
executeCommand
)
{
...
...
src/shape/edge1.ts
View file @
00c5299
...
...
@@ -33,8 +33,6 @@ export function registerEdge1(G6) {
const
stateStyle
=
this
.
getStateStyle
(
name
,
value
,
item
);
const
styles
=
deepMix
({},
stateStyle
,
itemStateStyle
);
if
(
value
)
{
// 如果设置状态,在原本状态上叠加绘图属性
console
.
warn
(
styles
);
shape
.
attr
(
styles
);
}
else
{
// 取消状态时重置所有状态,依次叠加仍有的状态
const
style
=
item
.
getCurrentStatesStyle
();
...
...
Please
register
or
login
to post a comment