Skip to content

Commit

Permalink
Added default stylesheet and less structure to create new themes as d…
Browse files Browse the repository at this point in the history
…escribed in issue #122
  • Loading branch information
knsv committed Mar 1, 2015
1 parent ead7455 commit cc1a4be
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 56 deletions.
8 changes: 5 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{
"name": "mermaid",
"version": "0.3.5",
"version": "0.4.0",
"authors": [
"knsv <knut@sveido.com>"
],
"description": "Markdownish syntax for generating flowcharts",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.",
"main": "dist/mermaid.slim.js",
"keywords": [
"diagram",
"markdown",
"flowchart"
"flowchart",
"sequence diagram",
"gantt"
],
"license": "MIT",
"ignore": [
Expand Down
19 changes: 10 additions & 9 deletions dist/mermaid.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -24764,9 +24764,16 @@ process.chdir = function (dir) {
},{}],84:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.3.5",
"description": "Markdownish syntax for generating flowcharts",
"version": "0.4.0",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.",
"main": "src/main.js",
"keywords": [
"diagram",
"markdown",
"flowchart",
"sequence diagram",
"gantt"
],
"bin": {
"mermaid": "./bin/mermaid.js"
},
Expand All @@ -24777,7 +24784,7 @@ module.exports={
"type": "git",
"url": "https://github.com/knsv/mermaid"
},
"author": "",
"author": "Knut Sveidqvist",
"license": "MIT",
"dependencies": {
"chalk": "^0.5.1",
Expand Down Expand Up @@ -25676,9 +25683,6 @@ exports.addEdges = function (edges, g) {
var defaultStyle;
if(typeof edges.defaultStyle !== 'undefined'){
defaultStyle = edges.defaultStyle.toString().replace(/,/g , ';');

console.log('edges def: '+defaultStyle);
//console.log('edges def:'+defaultStyle.replace(',' , ';','g'));
}

edges.forEach(function (edge) {
Expand Down Expand Up @@ -28232,9 +28236,6 @@ module.exports.draw = function (text, id) {
var categories = [];

daysInChart = moment.duration(endDate-startDate).asDays();
console.log('startDate',startDate);
console.log('endDate',endDate);
console.log('daysInChart',daysInChart);

for (var i = 0; i < taskArray.length; i++) {
categories.push(taskArray[i].type);
Expand Down
26 changes: 13 additions & 13 deletions dist/mermaid.full.min.js

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions dist/mermaid.slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -24732,9 +24732,16 @@ process.chdir = function (dir) {
},{}],84:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.3.5",
"description": "Markdownish syntax for generating flowcharts",
"version": "0.4.0",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.",
"main": "src/main.js",
"keywords": [
"diagram",
"markdown",
"flowchart",
"sequence diagram",
"gantt"
],
"bin": {
"mermaid": "./bin/mermaid.js"
},
Expand All @@ -24745,7 +24752,7 @@ module.exports={
"type": "git",
"url": "https://github.com/knsv/mermaid"
},
"author": "",
"author": "Knut Sveidqvist",
"license": "MIT",
"dependencies": {
"chalk": "^0.5.1",
Expand Down Expand Up @@ -25644,9 +25651,6 @@ exports.addEdges = function (edges, g) {
var defaultStyle;
if(typeof edges.defaultStyle !== 'undefined'){
defaultStyle = edges.defaultStyle.toString().replace(/,/g , ';');

console.log('edges def: '+defaultStyle);
//console.log('edges def:'+defaultStyle.replace(',' , ';','g'));
}

edges.forEach(function (edge) {
Expand Down Expand Up @@ -28200,9 +28204,6 @@ module.exports.draw = function (text, id) {
var categories = [];

daysInChart = moment.duration(endDate-startDate).asDays();
console.log('startDate',startDate);
console.log('endDate',endDate);
console.log('daysInChart',daysInChart);

for (var i = 0; i < taskArray.length; i++) {
categories.push(taskArray[i].type);
Expand Down
26 changes: 13 additions & 13 deletions dist/mermaid.slim.min.js

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"name": "mermaid",
"version": "0.3.5",
"description": "Markdownish syntax for generating flowcharts",
"version": "0.4.0",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.",
"main": "src/main.js",
"keywords": [
"diagram",
"markdown",
"flowchart",
"sequence diagram",
"gantt"
],
"bin": {
"mermaid": "./bin/mermaid.js"
},
Expand All @@ -13,7 +20,7 @@
"type": "git",
"url": "https://github.com/knsv/mermaid"
},
"author": "",
"author": "Knut Sveidqvist",
"license": "MIT",
"dependencies": {
"chalk": "^0.5.1",
Expand Down
3 changes: 0 additions & 3 deletions src/diagrams/flowchart/flowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ exports.addEdges = function (edges, g) {
var defaultStyle;
if(typeof edges.defaultStyle !== 'undefined'){
defaultStyle = edges.defaultStyle.toString().replace(/,/g , ';');

console.log('edges def: '+defaultStyle);
//console.log('edges def:'+defaultStyle.replace(',' , ';','g'));
}

edges.forEach(function (edge) {
Expand Down
3 changes: 0 additions & 3 deletions src/diagrams/gantt/ganttRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ module.exports.draw = function (text, id) {
var categories = [];

daysInChart = moment.duration(endDate-startDate).asDays();
console.log('startDate',startDate);
console.log('endDate',endDate);
console.log('daysInChart',daysInChart);

for (var i = 0; i < taskArray.length; i++) {
categories.push(taskArray[i].type);
Expand Down

0 comments on commit cc1a4be

Please sign in to comment.