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
29ce2d9a
Commit
29ce2d9a
authored
Mar 03, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update static version
parent
923eed0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
dream/platform/static/jsplumb/jsplumb.css
dream/platform/static/jsplumb/jsplumb.css
+1
-1
dream/platform/static/jsplumb/jsplumb.js
dream/platform/static/jsplumb/jsplumb.js
+7
-5
dream/platform/static/toolbox/toolbox.css
dream/platform/static/toolbox/toolbox.css
+1
-1
No files found.
dream/platform/static/jsplumb/jsplumb.css
View file @
29ce2d9a
#main
{
position
:
relative
;
margin
:
20px
auto
;
font-size
:
80%
;
border
:
1px
solid
#999
;
width
:
100%
;
height
:
600px
;
overflow
:
hidden
;
border-radius
:
10px
;
background-color
:
#eaedef
;
text-align
:
center
}
.selected
{
color
:
#bd0b0b
!important
}
.window
,
.label
{
background-color
:
#fff
;
text-align
:
center
;
z-index
:
23
;
cursor
:
pointer
;
box-shadow
:
2px
2px
19px
#aaa
;
-o-box-shadow
:
2px
2px
19px
#aaa
;
-webkit-box-shadow
:
2px
2px
19px
#aaa
;
-moz-box-shadow
:
2px
2px
19px
#aaa
}
path
,
._jsPlumb_endpoint
{
cursor
:
pointer
}
._jsPlumb_endpoint_drop_allowed
{
border
:
4px
solid
#123456
;
box-shadow
:
6px
6px
19px
#444
;
-o-box-shadow
:
6px
6px
19px
#444
;
-webkit-box-shadow
:
6px
6px
19px
#444
;
-moz-box-shadow
:
6px
6px
19px
#444
}
._jsPlumb_connector
{
z-index
:
18
}
._jsPlumb_endpoint
{
z-index
:
19
}
._jsPlumb_overlay
{
z-index
:
23
}
._jsPlumb_connector._jsPlumb_hover
{
z-index
:
21
!important
}
._jsPlumb_endpoint._jsPlumb_hover
{
z-index
:
22
!important
}
._jsPlumb_overlay
{
border
:
1px
solid
#346789
;
opacity
:
.8
;
filter
:
alpha
(
opacity
=
80
);
background-color
:
#fff
;
color
:
#000
;
font-family
:
helvetica
;
padding
:
.5em
}
.window
,
.dummy_window
{
border
:
1px
solid
#d3d3d3
;
width
:
100px
;
height
:
64px
;
position
:
absolute
;
color
:
#000
;
font-family
:
serif
;
font-style
:
italic
;
padding-top
:
.9em
;
font-size
:
.9em
;
cursor
:
move
;
font-size
:
11px
;
-webkit-transition
:
background-color
.1s
ease-in
;
-moz-transition
:
background-color
.1s
ease-in
;
transition
:
background-color
.1s
ease-in
;
border-radius
:
5px
}
.window
:hover
{
background-color
:
#5c96bc
;
background-image
:
none
;
color
:
#fff
}
.dummy_window
{
position
:
absolute
;
top
:
0
;
left
:
0
;
visibility
:
hidden
}
.ep
{
position
:
absolute
;
bottom
:
37%
;
right
:
5px
;
width
:
1em
;
height
:
1em
;
background-color
:
orange
;
cursor
:
pointer
;
box-shadow
:
0
0
2px
#000
;
-webkit-transition
:
-webkit-box-shadow
.25s
ease-in
;
-moz-transition
:
-moz-box-shadow
.25s
ease-in
;
transition
:
box-shadow
.25s
ease-in
}
._jsPlumb_source_hover
,
._jsPlumb_target_hover
,
.dragHover
{
background-color
:
#1e8151
;
background-image
:
none
;
color
:
#fff
}
path
{
cursor
:
pointer
}
\ No newline at end of file
#main
{
position
:
relative
;
margin
:
20px
auto
;
font-size
:
80%
;
border
:
1px
solid
#999
;
width
:
100%
;
height
:
600px
;
overflow
:
hidden
;
border-radius
:
10px
;
background-color
:
#eaedef
;
text-align
:
center
}
.selected
{
color
:
#bd0b0b
!important
}
.window
,
.label
{
background-color
:
#fff
;
text-align
:
center
;
z-index
:
23
;
cursor
:
pointer
;
box-shadow
:
2px
2px
19px
#aaa
;
-o-box-shadow
:
2px
2px
19px
#aaa
;
-webkit-box-shadow
:
2px
2px
19px
#aaa
;
-moz-box-shadow
:
2px
2px
19px
#aaa
}
path
,
._jsPlumb_endpoint
{
cursor
:
pointer
}
._jsPlumb_endpoint_drop_allowed
{
border
:
4px
solid
#123456
;
box-shadow
:
6px
6px
19px
#444
;
-o-box-shadow
:
6px
6px
19px
#444
;
-webkit-box-shadow
:
6px
6px
19px
#444
;
-moz-box-shadow
:
6px
6px
19px
#444
}
._jsPlumb_connector
{
z-index
:
18
}
._jsPlumb_endpoint
{
z-index
:
19
}
._jsPlumb_overlay
{
z-index
:
23
}
._jsPlumb_connector._jsPlumb_hover
{
z-index
:
21
!important
}
._jsPlumb_endpoint._jsPlumb_hover
{
z-index
:
22
!important
}
._jsPlumb_overlay
{
border
:
1px
solid
#346789
;
opacity
:
.8
;
filter
:
alpha
(
opacity
=
80
);
background-color
:
#fff
;
color
:
#000
;
font-family
:
helvetica
;
padding
:
.5em
}
.window
,
.dummy_window
{
border
:
1px
solid
#d3d3d3
;
width
:
80px
;
height
:
80px
;
box-sizing
:
border-box
;
position
:
absolute
;
color
:
#000
;
font-family
:
serif
;
font-style
:
italic
;
padding-top
:
.9em
;
font-size
:
.9em
;
cursor
:
move
;
font-size
:
11px
;
-webkit-transition
:
background-color
.1s
ease-in
;
-moz-transition
:
background-color
.1s
ease-in
;
transition
:
background-color
.1s
ease-in
;
border-radius
:
5px
}
.window
:hover
{
background-color
:
#5c96bc
;
background-image
:
none
;
color
:
#fff
}
.dummy_window
{
position
:
absolute
;
top
:
0
;
left
:
0
;
visibility
:
hidden
}
.ep
{
position
:
absolute
;
bottom
:
37%
;
right
:
5px
;
width
:
1em
;
height
:
1em
;
background-color
:
orange
;
cursor
:
pointer
;
box-shadow
:
0
0
2px
#000
;
-webkit-transition
:
-webkit-box-shadow
.25s
ease-in
;
-moz-transition
:
-moz-box-shadow
.25s
ease-in
;
transition
:
box-shadow
.25s
ease-in
}
._jsPlumb_source_hover
,
._jsPlumb_target_hover
,
.dragHover
{
background-color
:
#1e8151
;
background-image
:
none
;
color
:
#fff
}
path
{
cursor
:
pointer
}
\ No newline at end of file
dream/platform/static/jsplumb/jsplumb.js
View file @
29ce2d9a
...
...
@@ -120,11 +120,11 @@
gadget
.
notifyDataChanged
();
}
function
convertToAbsolutePosition
(
gadget
,
x
,
y
)
{
var
zoom_level
=
gadget
.
props
.
zoom_level
*
1.1111
,
canvas_size_x
=
$
(
gadget
.
props
.
main
).
width
(),
canvas_size_y
=
$
(
gadget
.
props
.
main
).
height
(),
size_x
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
width
()
*
zoom_level
,
size_y
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
height
()
*
zoom_level
,
top
=
Math
.
floor
(
y
*
(
canvas_size_y
-
size_y
))
+
"
px
"
,
left
=
Math
.
floor
(
x
*
(
canvas_size_x
-
size_x
))
+
"
px
"
;
var
zoom_level
=
gadget
.
props
.
zoom_level
,
canvas_size_x
=
$
(
gadget
.
props
.
main
).
width
(),
canvas_size_y
=
$
(
gadget
.
props
.
main
).
height
(),
size_x
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
width
()
*
zoom_level
,
size_y
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
height
()
*
zoom_level
,
top
=
Math
.
floor
(
y
*
(
canvas_size_y
-
size_y
))
+
"
px
"
,
left
=
Math
.
floor
(
x
*
(
canvas_size_x
-
size_x
))
+
"
px
"
;
return
[
left
,
top
];
}
function
convertToRelativePosition
(
gadget
,
x
,
y
)
{
var
zoom_level
=
gadget
.
props
.
zoom_level
*
1.1111
,
canvas_size_x
=
$
(
gadget
.
props
.
main
).
width
(),
canvas_size_y
=
$
(
gadget
.
props
.
main
).
height
(),
size_x
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
width
()
*
zoom_level
,
size_y
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
height
()
*
zoom_level
,
top
=
Math
.
max
(
Math
.
min
(
y
.
replace
(
"
px
"
,
""
)
/
(
canvas_size_y
-
size_y
),
1
),
0
),
left
=
Math
.
max
(
Math
.
min
(
x
.
replace
(
"
px
"
,
""
)
/
(
canvas_size_x
-
size_x
),
1
),
0
);
var
zoom_level
=
gadget
.
props
.
zoom_level
,
canvas_size_x
=
$
(
gadget
.
props
.
main
).
width
(),
canvas_size_y
=
$
(
gadget
.
props
.
main
).
height
(),
size_x
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
width
()
*
zoom_level
,
size_y
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
).
height
()
*
zoom_level
,
top
=
Math
.
max
(
Math
.
min
(
y
.
replace
(
"
px
"
,
""
)
/
(
canvas_size_y
-
size_y
),
1
),
0
),
left
=
Math
.
max
(
Math
.
min
(
x
.
replace
(
"
px
"
,
""
)
/
(
canvas_size_x
-
size_x
),
1
),
0
);
return
[
left
,
top
];
}
function
updateElementCoordinate
(
gadget
,
node_id
,
coordinate
)
{
...
...
@@ -174,9 +174,9 @@
function
updateNodeStyle
(
gadget
,
element_id
)
{
// Update node size according to the zoom level
// XXX does nothing for now
var
zoom_level
=
gadget
.
props
.
zoom_level
*
1.1111
,
element
=
$
(
gadget
.
props
.
element
).
find
(
"
#
"
+
element_id
),
new_value
;
var
zoom_level
=
gadget
.
props
.
zoom_level
,
element
=
$
(
gadget
.
props
.
element
).
find
(
"
#
"
+
element_id
),
new_value
;
$
.
each
(
gadget
.
props
.
style_attr_list
,
function
(
i
,
j
)
{
new_value
=
$
(
gadget
.
props
.
element
).
find
(
"
.dummy_window
"
)
.
css
(
j
).
replace
(
"
px
"
,
""
)
*
zoom_level
+
"
px
"
;
new_value
=
element
.
css
(
j
).
replace
(
"
px
"
,
""
)
*
zoom_level
+
"
px
"
;
element
.
css
(
j
,
new_value
);
});
}
...
...
@@ -516,7 +516,6 @@
};
}
node_data
.
coordinate
=
updateElementCoordinate
(
gadget
,
node_id
,
coordinate
);
// XXX make node template an option, or use CSS from class_definition
/*jslint nomen: true*/
domElement
=
domParser
.
parseFromString
(
node_template
({
"
class
"
:
node_data
.
_class
.
replace
(
"
.
"
,
"
-
"
),
...
...
@@ -528,6 +527,9 @@
waitForNodeClick
(
gadget
,
domElement
);
box
=
$
(
gadget
.
props
.
element
).
find
(
"
#
"
+
dom_element_id
);
absolute_position
=
convertToAbsolutePosition
(
gadget
,
coordinate
.
left
,
coordinate
.
top
);
if
(
class_definition
.
css
)
{
box
.
css
(
class_definition
.
css
);
}
box
.
css
(
"
top
"
,
absolute_position
[
1
]);
box
.
css
(
"
left
"
,
absolute_position
[
0
]);
updateNodeStyle
(
gadget
,
dom_element_id
);
...
...
dream/platform/static/toolbox/toolbox.css
View file @
29ce2d9a
.tools
{
border
:
1px
solid
#999
;
margin
:
20px
0
;
border-radius
:
10px
;
padding-bottom
:
20px
}
.tools-container
{
margin-bottom
:
4px
}
.tools
.ui-button
{
margin
:
4px
0
}
.tool
{
border
:
1px
solid
#d3d3d3
;
box-shadow
:
1px
1px
2px
#aaa
;
min-width
:
7em
;
height
:
3em
;
z-index
:
10001
;
color
:
gray
;
font-family
:
serif
;
font-style
:
italic
;
font-size
:
.9em
;
margin
:
.8em
;
display
:
inline-block
;
border-radius
:
5px
;
text-align
:
center
;
padding-top
:
1.3em
;
cursor
:
move
}
.Dream-Source
,
.Dream-BatchSource
{
border
:
1px
solid
#bbc
;
background-color
:
#ffe
;
background-image
:
linear-gradient
(
to
bottom
,
#ffe
0
,
#dde
100%
)}
.Dream-Machine
,
.Dream-MachineJobShop
,
.Dream-BatchScrapMachine
,
.Dream-MachineManagedJob
,
.Dream-MouldAssembly
{
border
:
1px
solid
#cbc
;
background-color
:
#fef
;
background-image
:
linear-gradient
(
to
bottom
,
#fef
0
,
#ede
100%
)}
.Dream-Queue
,
.Dream-QueueJobShop
,
.Dream-LineClearance
,
.Dream-QueueManagedJob
,
.Dream-ConditionalBuffer
,
.Dream-OrderDecomposition
,
.Dream-MouldAssemblyBuffer
{
border
:
1px
solid
#bcc
;
background-color
:
#eff
;
background-image
:
linear-gradient
(
to
bottom
,
#eff
0
,
#dee
100%
)}
.Dream-Exit
,
.Dream-ExitJobShop
{
border
:
1px
solid
#ccb
;
background-color
:
#eef
;
background-image
:
linear-gradient
(
to
bottom
,
#eef
0
,
#dde
100%
)}
.Dream-EventGenerator
{
border
:
1px
solid
#cba
;
background-color
:
#fdc
;
background-image
:
linear-gradient
(
to
bottom
,
#fdc
0
,
#ecb
100%
)}
.Dream-BatchDecomposition
,
.Dream-BatchDecompositionStartTime
,
.Dream-BatchReassembly
{
border
:
1px
solid
#bcb
;
background-color
:
#dfd
;
background-image
:
linear-gradient
(
to
bottom
,
#dfd
0
,
#cec
100%
)}
.Dream-Repairman
{
border
:
1px
solid
#cbb
;
background-color
:
#fdd
;
background-image
:
linear-gradient
(
to
bottom
,
#fdd
0
,
#dcc
100%
)}
\ No newline at end of file
.tools
{
border
:
1px
solid
#999
;
margin
:
20px
0
;
border-radius
:
10px
;
padding-bottom
:
20px
}
.tools-container
{
margin-bottom
:
4px
}
.tools
.ui-button
{
margin
:
4px
0
}
.tool
{
border
:
1px
solid
#d3d3d3
;
box-shadow
:
1px
1px
2px
#aaa
;
min-width
:
7em
;
min-height
:
6em
;
box-sizing
:
border-box
;
z-index
:
10001
;
color
:
gray
;
font-family
:
serif
;
font-style
:
italic
;
font-size
:
.9em
;
margin
:
.8em
;
display
:
inline-block
;
border-radius
:
5px
;
text-align
:
center
;
padding-top
:
1.3em
;
cursor
:
move
}
\ No newline at end of file
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