-
Notifications
You must be signed in to change notification settings - Fork 857
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dia.LinkView)!: remove support for legacy link view (#2446)
- Loading branch information
1 parent
5e5d06c
commit 72b070b
Showing
52 changed files
with
3,109 additions
and
1,574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
packages/joint-core/demo/archive/joint.dia.LegacyLinkView.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
Vertex markers are `<circle>` elements that appear at connection vertex positions. | ||
*/ | ||
|
||
.joint-link .connection-wrap, | ||
.joint-link .connection { | ||
fill: none; | ||
} | ||
|
||
/* <g> element wrapping .marker-vertex-group. */ | ||
.marker-vertices { | ||
opacity: 0; | ||
cursor: move; | ||
} | ||
.marker-arrowheads { | ||
opacity: 0; | ||
cursor: move; | ||
cursor: -webkit-grab; | ||
cursor: -moz-grab; | ||
/* display: none; */ /* setting `display: none` on .marker-arrowheads effectively switches of links reconnecting */ | ||
} | ||
.link-tools { | ||
opacity: 0; | ||
cursor: pointer; | ||
} | ||
.link-tools .tool-options { | ||
display: none; /* by default, we don't display link options tool */ | ||
} | ||
.joint-link:hover .marker-vertices, | ||
.joint-link:hover .marker-arrowheads, | ||
.joint-link:hover .link-tools { | ||
opacity: 1; | ||
} | ||
|
||
/* <circle> element used to remove a vertex */ | ||
.marker-vertex-remove { | ||
cursor: pointer; | ||
opacity: .1; | ||
} | ||
|
||
.marker-vertex-group:hover .marker-vertex-remove { | ||
opacity: 1; | ||
} | ||
|
||
.marker-vertex-remove-area { | ||
opacity: .1; | ||
cursor: pointer; | ||
} | ||
.marker-vertex-group:hover .marker-vertex-remove-area { | ||
opacity: 1; | ||
} | ||
|
||
/* | ||
Example of custom changes (in pure CSS only!): | ||
Do not show marker vertices at all: .marker-vertices { display: none; } | ||
Do not allow adding new vertices: .connection-wrap { pointer-events: none; } | ||
*/ |
Oops, something went wrong.