Commit 8c350621 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

improve css.

parent 05a8798f
...@@ -251,11 +251,11 @@ path, ._jsPlumb_endpoint { cursor:pointer; } ...@@ -251,11 +251,11 @@ path, ._jsPlumb_endpoint { cursor:pointer; }
} }
.Dream-Exit { .Dream-Exit {
background-color:#fee; background-color:#eef;
} }
.Dream-Repairman { .Dream-Repairman {
background-color:#eef; background-color:#fdd;
} }
.window { .window {
...@@ -269,3 +269,7 @@ path, ._jsPlumb_endpoint { cursor:pointer; } ...@@ -269,3 +269,7 @@ path, ._jsPlumb_endpoint { cursor:pointer; }
padding-top:0.9em; padding-top:0.9em;
font-size:0.9em; font-size:0.9em;
} }
#debug textarea {
width:100%;
}
...@@ -54,18 +54,13 @@ ...@@ -54,18 +54,13 @@
</div> </div>
<div id="debug"> <div id="debug">
<div class="five columns"> <div class="six columns alpha">
<div>Input</div> <div>Input</div>
<textarea rows="20" cols="47" id="json_output" style="align:left; width:100%"> <textarea rows="20" cols="47" id="json_output"></textarea>
</textarea>
</div>
</div> </div>
<div class="five columns"> <div class="six columns alpha">
<div>Result</div> <div>Result</div>
<textarea rows="20" cols="47" id="json_result" style="align:left; width:100%"> <textarea rows="20" cols="47" id="json_result"></textarea>
</textarea>
<td></td>
</div>
</div> </div>
</div> </div>
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
priv.initJsPlumb = function () { priv.initJsPlumb = function () {
jsPlumb.setRenderMode(jsPlumb.SVG); jsPlumb.setRenderMode(jsPlumb.SVG);
var color = "#00f"; var color = "#00f";
var gradient_color = "#09098e";
jsPlumb.importDefaults({ jsPlumb.importDefaults({
// default drag options // default drag options
DragOptions: { DragOptions: {
...@@ -50,18 +49,12 @@ ...@@ -50,18 +49,12 @@
location: 1, location: 1,
id: "arrow", id: "arrow",
length: 14, length: 14,
width: 12,
foldback: 0.8 foldback: 0.8
}] }]
], ],
PaintStyle: { PaintStyle: {
gradient: { lineWidth: 2,
stops: [
[0, color],
[0.5, gradient_color],
[1, color]
]
},
lineWidth: 5,
strokeStyle: color strokeStyle: color
}, },
Anchor: "Continuous", Anchor: "Continuous",
...@@ -307,11 +300,9 @@ ...@@ -307,11 +300,9 @@
// Add endPoint to allow drawing connections // Add endPoint to allow drawing connections
var color = "#00f"; var color = "#00f";
var gradient_color = "#09098e";
// Different endpoint color for Repairman // Different endpoint color for Repairman
if (element._class === "Dream.Repairman") { if (element._class === "Dream.Repairman") {
color = "rgb(189,11,11)"; color = "rgb(189,11,11)";
gradient_color = "rgb(255,0,0)";
} }
var endpoint = { var endpoint = {
endpoint: "Rectangle", endpoint: "Rectangle",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment