# HG changeset patch
# User ymh
# Date 1433198387 -7200
# Node ID 423bdf56d103985a26d14f9a76109bd6831acea9
# Parent b38cf3d4cf1f037816ab7055fb777500901e9c6b
migrated to style, added dash style to client + small refactoring for shapes + triangle
diff -r b38cf3d4cf1f -r 423bdf56d103 client/css/renkan.css
--- a/client/css/renkan.css Mon Jun 01 11:53:03 2015 +0200
+++ b/client/css/renkan.css Tue Jun 02 00:39:47 2015 +0200
@@ -27,7 +27,7 @@
/* Renkan CSS */
#renkan{
- overflow: hidden;
+ overflow: hidden;
}
.Rk-Main ul, .Rk-Main li, .Rk-Main h4, .Rk-Main h3, .Rk-Main p {
@@ -213,7 +213,7 @@
.Rk-Save-Button:active,
.Rk-Save-Button.saved:active,
.Rk-Save-Button.Rk-Save-Online:active {
- background-position: -104px 0;
+ background-position: -104px 0;
}
.Rk-Save-Button.to-save {
background-position: -172px -35px;
@@ -383,13 +383,13 @@
}
.Rk-Edit-Image{
- font-size: 12px; width: 220px;
+ font-size: 12px; width: 220px;
}
.Rk-Edit-Image-Del{
- display: inline-block;
- background: url(../img/remove.png);
- background-size: 15px 20px;
+ display: inline-block;
+ background: url(../img/remove.png);
+ background-size: 15px 20px;
background-repeat: no-repeat;
vertical-align: top;
height: 20px;
@@ -461,6 +461,11 @@
float: left; width: 11px; height: 11px; margin: 0 1px 1px 0; cursor: pointer;
}
+.Rk-Edit-Dash {
+ float: left;
+ display: inline-block;
+}
+
.Rk-Edit-Size-Up, .Rk-Edit-Size-Down {
font-size: 13px; font-weight: bold; padding: 0 4px; background: #ffffff; color: #000000; border: 1px solid #cccccc;
text-decoration: none;
diff -r b38cf3d4cf1f -r 423bdf56d103 client/js/dataloader.js
--- a/client/js/dataloader.js Mon Jun 01 11:53:03 2015 +0200
+++ b/client/js/dataloader.js Tue Jun 02 00:39:47 2015 +0200
@@ -6,10 +6,39 @@
converters: {
from1to2: function(data) {
- //TODO: implement
+ var i, len;
+ if(typeof data.nodes !== 'undefined') {
+ for(i=0, len=data.nodes.length; i
<% if (options.show_edge_editor_color) { %>
+
<%-renkan.translate("Edge color:")%>
@@ -39,6 +40,11 @@
<%= renkan.colorPicker %>
<%- renkan.translate("Choose color") %>
+
+
+ <%-renkan.translate("Dash:")%>
+ />
+
<% } %>
<% if (options.show_edge_editor_direction) { %>
diff -r b38cf3d4cf1f -r 423bdf56d103 client/templates/nodeeditor.html
--- a/client/templates/nodeeditor.html Mon Jun 01 11:53:03 2015 +0200
+++ b/client/templates/nodeeditor.html Tue Jun 02 00:39:47 2015 +0200
@@ -23,8 +23,9 @@
<%-node.size%>
+
-<% } %> <% if (options.show_node_editor_color) { %>
+<% } %> <% if (options.show_node_editor_style) { %>
+
<%-renkan.translate("Node color:")%>
@@ -34,6 +35,11 @@
<%= renkan.colorPicker %>
<%- renkan.translate("Choose color") %>
+
+
+ <%-renkan.translate("Dash:")%>
+ />
+
<% } %> <% if (options.show_node_editor_image) { %>
@@ -68,27 +74,11 @@
<% } %>