Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
a50ee25e
Commit
a50ee25e
authored
Mar 18, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quite cute process
parent
2eb15b5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
14 deletions
+39
-14
ui/css/flowchartDemo.css
ui/css/flowchartDemo.css
+11
-4
ui/index.html
ui/index.html
+7
-0
ui/src/flowchartConnectorsDemo.js
ui/src/flowchartConnectorsDemo.js
+21
-10
No files found.
ui/css/flowchartDemo.css
View file @
a50ee25e
...
...
@@ -33,10 +33,17 @@ filter:alpha(opacity=60);
border
:
1px
dotted
red
;
}
#window1
{
top
:
34em
;
left
:
5em
;}
#window2
{
top
:
7em
;
left
:
36em
;}
#window3
{
top
:
27em
;
left
:
48em
;
}
#window4
{
top
:
23em
;
left
:
22em
;}
#window1
{
top
:
10em
;
left
:
5em
;}
#window2
{
top
:
10em
;
left
:
20em
;}
#window3
{
top
:
10em
;
left
:
35em
;
}
#window4
{
top
:
30em
;
left
:
5em
;}
#window5
{
top
:
30em
;
left
:
20em
;}
#window6
{
top
:
30em
;
left
:
35em
;}
#window7
{
top
:
20em
;
left
:
50em
;}
#window8
{
top
:
10em
;
left
:
65em
;}
#window9
{
top
:
10em
;
left
:
80em
;}
#window10
{
top
:
30em
;
left
:
65em
;}
#window11
{
top
:
30em
;
left
:
80em
;}
._jsPlumb_connector
{
z-index
:
4
;
}
._jsPlumb_endpoint
,
.endpointTargetLabel
,
.endpointSourceLabel
{
z-index
:
21
;
cursor
:
pointer
;
}
.hl
{
border
:
3px
solid
red
;
}
...
...
ui/index.html
View file @
a50ee25e
...
...
@@ -14,6 +14,13 @@
<div
class=
"window"
id=
"window2"
><strong>
2
</strong><br/><br/></div>
<div
class=
"window"
id=
"window3"
><strong>
3
</strong><br/><br/></div>
<div
class=
"window"
id=
"window4"
><strong>
4
</strong><br/><br/></div>
<div
class=
"window"
id=
"window5"
><strong>
5
</strong><br/><br/></div>
<div
class=
"window"
id=
"window6"
><strong>
6
</strong><br/><br/></div>
<div
class=
"window"
id=
"window7"
><strong>
Moulding
</strong><br/><br/></div>
<div
class=
"window"
id=
"window8"
><strong>
8
</strong><br/><br/></div>
<div
class=
"window"
id=
"window9"
><strong>
Packaging
</strong><br/><br/></div>
<div
class=
"window"
id=
"window10"
><strong>
10
</strong><br/><br/></div>
<div
class=
"window"
id=
"window11"
><strong>
Packaging
</strong><br/><br/></div>
</div>
<div
id=
"sidebar"
>
<div
id=
"explanation"
>
...
...
ui/src/flowchartConnectorsDemo.js
View file @
a50ee25e
...
...
@@ -87,10 +87,17 @@
}
};
_addEndpoints
(
"
window4
"
,
[
"
TopCenter
"
,
"
BottomCenter
"
],
[
"
LeftMiddle
"
,
"
RightMiddle
"
]);
_addEndpoints
(
"
window2
"
,
[
"
LeftMiddle
"
,
"
BottomCenter
"
],
[
"
TopCenter
"
,
"
RightMiddle
"
]);
_addEndpoints
(
"
window3
"
,
[
"
RightMiddle
"
,
"
BottomCenter
"
],
[
"
LeftMiddle
"
,
"
TopCenter
"
]);
_addEndpoints
(
"
window1
"
,
[
"
LeftMiddle
"
,
"
RightMiddle
"
],
[
"
TopCenter
"
,
"
BottomCenter
"
]);
_addEndpoints
(
"
window1
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window2
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window3
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window4
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window5
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window6
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window7
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window8
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window9
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window10
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
_addEndpoints
(
"
window11
"
,
[
"
RightMiddle
"
],
[
"
LeftMiddle
"
]);
// listen for new connections; initialise them the same way we initialise the connections at startup.
jsPlumb
.
bind
(
"
jsPlumbConnection
"
,
function
(
connInfo
,
originalEvent
)
{
...
...
@@ -104,12 +111,16 @@
// connect a few up
jsPlumb
.
connect
({
uuids
:[
"
window2BottomCenter
"
,
"
window3TopCenter
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window2LeftMiddle
"
,
"
window4LeftMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window4TopCenter
"
,
"
window4RightMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window3RightMiddle
"
,
"
window2RightMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window4BottomCenter
"
,
"
window1TopCenter
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window3BottomCenter
"
,
"
window1BottomCenter
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window1RightMiddle
"
,
"
window2LeftMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window2RightMiddle
"
,
"
window3LeftMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window4RightMiddle
"
,
"
window5LeftMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window5RightMiddle
"
,
"
window6LeftMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window3RightMiddle
"
,
"
window7LeftMiddle
"
],
editable
:
true
});
jsPlumb
.
connect
({
uuids
:[
"
window6RightMiddle
"
,
"
window7LeftMiddle
"
],
editable
:
true
});
//jsPlumb.connect({uuids:["window7RightMiddle", "window8LeftMiddle"], editable:true});
//jsPlumb.connect({uuids:["window7RightMiddle", "window10LeftMiddle"], editable:true});
jsPlumb
.
connect
({
source
:
"
window7
"
,
target
:
"
window8
"
});
jsPlumb
.
connect
({
source
:
"
window7
"
,
target
:
"
window10
"
});
//
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment