-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): update example styles (#1469)
* chore(docs): update basic example styles * chore(docs): update confirm delete example styles * chore(docs): update dnd example styles * chore(docs): update hidden example * chore(docs): update update node example * chore(docs): update node toolbar example styles * chore(docs): update transition example styles * chore(docs): cleanup basic example els * chore(docs): cleanup examples
- Loading branch information
1 parent
5dc8711
commit 820ed06
Showing
34 changed files
with
527 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,69 @@ | ||
import { MarkerType } from '@vue-flow/core' | ||
|
||
export const initialNodes = [ | ||
{ id: '1', type: 'input', label: 'Node 1', position: { x: 250, y: 0 }, class: 'light' }, | ||
{ id: '2', type: 'output', label: 'Node 2', position: { x: 100, y: 100 }, class: 'light' }, | ||
{ id: '3', label: 'Node 3', position: { x: 400, y: 100 }, class: 'light' }, | ||
{ id: '4', label: 'Node 4', position: { x: 150, y: 200 }, class: 'light' }, | ||
{ id: '5', type: 'output', label: 'Node 5', position: { x: 300, y: 300 }, class: 'light' }, | ||
{ | ||
id: '1', | ||
type: 'input', | ||
data: { label: 'Node 1' }, | ||
position: { x: 250, y: 0 }, | ||
class: 'light', | ||
}, | ||
{ | ||
id: '2', | ||
type: 'output', | ||
data: { label: 'Node 2' }, | ||
position: { x: 100, y: 100 }, | ||
class: 'light', | ||
}, | ||
{ | ||
id: '3', | ||
data: { label: 'Node 3' }, | ||
position: { x: 400, y: 100 }, | ||
class: 'light', | ||
}, | ||
{ | ||
id: '4', | ||
data: { label: 'Node 4' }, | ||
position: { x: 150, y: 200 }, | ||
class: 'light', | ||
}, | ||
{ | ||
id: '5', | ||
type: 'output', | ||
data: { label: 'Node 5' }, | ||
position: { x: 300, y: 300 }, | ||
class: 'light', | ||
}, | ||
] | ||
|
||
export const initialEdges = [ | ||
{ id: 'e1-2', source: '1', target: '2', animated: true }, | ||
{ id: 'e1-3', label: 'edge with arrowhead', source: '1', target: '3', markerEnd: MarkerType.ArrowClosed }, | ||
{ | ||
id: 'e1-2', | ||
source: '1', | ||
target: '2', | ||
animated: true, | ||
}, | ||
{ | ||
id: 'e1-3', | ||
source: '1', | ||
target: '3', | ||
label: 'edge with arrowhead', | ||
markerEnd: MarkerType.ArrowClosed, | ||
}, | ||
{ | ||
id: 'e4-5', | ||
type: 'step', | ||
label: 'step-edge', | ||
source: '4', | ||
target: '5', | ||
label: 'Node 2', | ||
style: { stroke: 'orange' }, | ||
labelBgStyle: { fill: 'orange' }, | ||
}, | ||
{ id: 'e3-4', type: 'smoothstep', label: 'smoothstep-edge', source: '3', target: '4' }, | ||
{ | ||
id: 'e3-4', | ||
type: 'smoothstep', | ||
source: '3', | ||
target: '4', | ||
label: 'smoothstep-edge', | ||
}, | ||
] |
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 |
---|---|---|
@@ -1,48 +1,52 @@ | ||
.basicflow.dark { | ||
background: #000000; | ||
.basic-flow.dark { | ||
background: #2d3748; | ||
color: #FFFFFB; | ||
} | ||
|
||
.basicflow.dark .vue-flow__node { | ||
background: hsl(0, 0%, 10%); | ||
.basic-flow.dark .vue-flow__node { | ||
background: #4a5568; | ||
color: #FFFFFB; | ||
} | ||
|
||
.basicflow.dark .vue-flow__node.selected { | ||
.basic-flow.dark .vue-flow__node.selected { | ||
background: hsl(0, 0%, 20%); | ||
border: 1px solid hotpink; | ||
box-shadow: 0 0 0 2px #2563eb; | ||
} | ||
|
||
.basicflow .vue-flow__controls { | ||
.basic-flow .vue-flow__controls { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
} | ||
|
||
.basicflow.dark .vue-flow__controls { | ||
.basic-flow.dark .vue-flow__controls { | ||
border: 1px solid #FFFFFB; | ||
} | ||
|
||
.basicflow .vue-flow__controls .vue-flow__controls-button { | ||
.basic-flow .vue-flow__controls .vue-flow__controls-button { | ||
border: none; | ||
border-right: 1px solid #eee; | ||
} | ||
|
||
.basic-flow .vue-flow__controls .vue-flow__controls-button svg { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.basicflow.dark .vue-flow__controls .vue-flow__controls-button { | ||
.basic-flow.dark .vue-flow__controls .vue-flow__controls-button { | ||
background: hsl(0, 0%, 20%); | ||
fill: #FFFFFB; | ||
border: none; | ||
} | ||
|
||
.basicflow.dark .vue-flow__controls .vue-flow__controls-button:hover { | ||
.basic-flow.dark .vue-flow__controls .vue-flow__controls-button:hover { | ||
background: hsl(0, 0%, 30%); | ||
} | ||
|
||
.basicflow.dark .vue-flow__edge-textbg { | ||
.basic-flow.dark .vue-flow__edge-textbg { | ||
fill: #292524; | ||
} | ||
|
||
.basicflow.dark .vue-flow__edge-text { | ||
.basic-flow.dark .vue-flow__edge-text { | ||
fill: #FFFFFB; | ||
} |
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
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
Oops, something went wrong.