Skip to content

Commit

Permalink
Fix for issue #281, support for Chrome v 48
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv authored and knsv committed Jan 25, 2016
1 parent d56af02 commit f005c72
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 32 deletions.
5 changes: 4 additions & 1 deletion dist/mermaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -31018,7 +31018,7 @@ module.exports=require(53)
},{}],107:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.5.6",
"version": "0.5.7",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.",
"main": "src/mermaid.js",
"keywords": [
Expand Down Expand Up @@ -39715,6 +39715,9 @@ var classRenderer = require('./diagrams/classDiagram/classRenderer');
var classDb = require('./diagrams/classDiagram/classDb');
var d3 = require('./d3');

SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function (toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
/**
* ## Configuration
* These are the default options which can be overridden with the initialization call as in the example below:
Expand Down
7 changes: 3 additions & 4 deletions dist/mermaid.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/mermaid.slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -21513,7 +21513,7 @@ module.exports=require(52)
},{}],106:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.5.6",
"version": "0.5.7",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.",
"main": "src/mermaid.js",
"keywords": [
Expand Down Expand Up @@ -30210,6 +30210,9 @@ var classRenderer = require('./diagrams/classDiagram/classRenderer');
var classDb = require('./diagrams/classDiagram/classDb');
var d3 = require('./d3');

SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function (toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
/**
* ## Configuration
* These are the default options which can be overridden with the initialization call as in the example below:
Expand Down
14 changes: 7 additions & 7 deletions dist/mermaid.slim.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/mermaidAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -30685,7 +30685,7 @@ module.exports=require(53)
},{}],106:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.5.6",
"version": "0.5.7",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.",
"main": "src/mermaid.js",
"keywords": [
Expand Down Expand Up @@ -39123,6 +39123,9 @@ var classRenderer = require('./diagrams/classDiagram/classRenderer');
var classDb = require('./diagrams/classDiagram/classDb');
var d3 = require('./d3');

SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function (toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
/**
* ## Configuration
* These are the default options which can be overridden with the initialization call as in the example below:
Expand Down
26 changes: 13 additions & 13 deletions dist/mermaidAPI.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/mermaidAPI.slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -21180,7 +21180,7 @@ module.exports=require(52)
},{}],105:[function(require,module,exports){
module.exports={
"name": "mermaid",
"version": "0.5.6",
"version": "0.5.7",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.",
"main": "src/mermaid.js",
"keywords": [
Expand Down Expand Up @@ -29618,6 +29618,9 @@ var classRenderer = require('./diagrams/classDiagram/classRenderer');
var classDb = require('./diagrams/classDiagram/classDb');
var d3 = require('./d3');

SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function (toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
/**
* ## Configuration
* These are the default options which can be overridden with the initialization call as in the example below:
Expand Down
4 changes: 2 additions & 2 deletions dist/mermaidAPI.slim.min.js

Large diffs are not rendered by default.

43 changes: 42 additions & 1 deletion gulp/tasks/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Created by knut on 2015-12-26.
*/
var gulp = require('gulp');

var shell = require('gulp-shell');
var liveServer = require("live-server");

var params = {
Expand All @@ -18,3 +18,44 @@ var params = {
gulp.task('live-server',function(){
liveServer.start(params);
});


gulp.task('watch2',['live-server'],function(){
return shell.task([
'watchify src/mermaid.js -s mermaid -o dist/mermaid.js',
'node node_modules/eslint-watch/bin/esw src -w'
]);
});


// Basic usage
gulp.task('watch-mermaid',function() {

return gulp.src('src/mermaid.js')
.pipe(browserify({
entry:'src/mermaid.js',
standalone: 'mermaid'
}))
.pipe(rename('mermaid.js'))
.pipe(gulp.dest('./dist/'))
.pipe(uglify())
.pipe(extReplace('.min.js'))
.pipe(gulp.dest('./dist/'));
});

//var bg = require("gulp-bg");
//
//let bgtask;
//gulp.task("server", bgtask = bg("node", "--harmony", "server.js"));
//
//const exitCallback = (proc) => { if (proc.errorcode != 0) { process.exit(proc.errorcode); } };
//
//gulp.task("stop", () => {
// bgtask.setCallback(exitCallback);
//bgtask.stop();
//}
//});
//
//gulp.task("default", ["server"], function() {
// gulp.watch(["server.js"], ["server"]);
//});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "0.5.6",
"version": "0.5.7",
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.",
"main": "src/mermaid.js",
"keywords": [
Expand Down
3 changes: 3 additions & 0 deletions src/mermaidAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ var classRenderer = require('./diagrams/classDiagram/classRenderer');
var classDb = require('./diagrams/classDiagram/classDb');
var d3 = require('./d3');

SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
/**
* ## Configuration
* These are the default options which can be overridden with the initialization call as in the example below:
Expand Down

0 comments on commit f005c72

Please sign in to comment.