3.7.2 release
parent
e0a28617fe
commit
35d8571728
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
12-APR-2017: 3.7.2
|
||||
|
||||
- Adds checks for swimlane rendering boundary cases
|
||||
- Fixes cloned start/end arrow in mxGraph.splitEdge
|
||||
- Removes mxShape.arrowStrokewidth, fixes mxCellHighlight for arrows
|
||||
- Adds automatic NPM release
|
||||
- Adds optional type argument in mxForm.addText
|
||||
- Fixes selection of removed parents in grapheditor
|
||||
- Fixes Graph.distributeCells for child cells in groups
|
||||
- Fixes Graph.encodeCells for children of selected parents
|
||||
- Fixes possible NPE in mxUtils.getOffset/getScrollOrigin
|
||||
- Fixes dashed and strokewidth tag in stencils for Java
|
||||
- Fixes markup for same window for IE in mxPrintPreview
|
||||
|
||||
01-MAR-2017: 3.7.1
|
||||
|
||||
- Uses semantic versioning
|
||||
|
|
101
Gruntfile.js
101
Gruntfile.js
|
@ -1,101 +0,0 @@
|
|||
var path = require("path"),
|
||||
fs = require("fs"),
|
||||
parentFolderName = path.basename(path.resolve('..')),
|
||||
mxClientContent,
|
||||
deps;
|
||||
|
||||
// To get the dependencies for the project, read the filenames by matching
|
||||
// mxClient.include([...]) in mxClient.js. This is not perfect, but the list is
|
||||
// required in mxClient.js for compatibility.
|
||||
mxClientContent = fs.readFileSync(
|
||||
path.join(__dirname, "./javascript/src/js/mxClient.js"),
|
||||
"utf8"
|
||||
);
|
||||
deps = mxClientContent.match(/mxClient\.include\([^"']+["'](.*?)["']/gi).map(function (str) {
|
||||
return "." + str.match(/mxClient\.include\([^"']+["'](.*?)["']/)[1];
|
||||
});
|
||||
deps = ["./js/mxClient.js"].concat(deps.slice(0));
|
||||
|
||||
module.exports = function (grunt) {
|
||||
grunt.initConfig({
|
||||
copy: {
|
||||
main: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: "./javascript/src",
|
||||
src: deps,
|
||||
dest: "./javascript/dist"
|
||||
}],
|
||||
options: {
|
||||
// After each module, add the object to the '__mxOutput' namespace
|
||||
// E.g. __mxOutput.mxLog, etc.
|
||||
process: function (content, srcpath) {
|
||||
var afterContent = "",
|
||||
moduleName = path.basename(srcpath, ".js");
|
||||
|
||||
afterContent += "\n__mxOutput." + path.basename(srcpath, ".js") +
|
||||
" = typeof " + moduleName + " !== 'undefined' ? " + moduleName + " : undefined;\n";
|
||||
|
||||
return content + afterContent;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
concat: {
|
||||
dist: {
|
||||
src: deps.map(function (dep) {
|
||||
return path.join("./javascript/dist", dep);
|
||||
}),
|
||||
dest: './javascript/dist/build.js'
|
||||
},
|
||||
options: {
|
||||
banner: "(function (root, factory) {\n" +
|
||||
"if (typeof define === 'function' && define.amd) {\n" +
|
||||
"define([], factory);\n" +
|
||||
"} else if (typeof module === 'object' && module.exports) {\n" +
|
||||
"module.exports = factory();\n" +
|
||||
"} else {\n" +
|
||||
"root.mxgraph = factory();\n" +
|
||||
"}\n" +
|
||||
"}(this, function () {\n" +
|
||||
"return function (opts) {\n" +
|
||||
// Opts will be passed into this function, expand them out as if
|
||||
// they were globals so they can get picked up by the logic in
|
||||
// mxClient.js.
|
||||
"for (var name in opts) { this[name] = opts[name]; }\n" +
|
||||
"var __mxOutput = {};\n",
|
||||
footer: "return __mxOutput;\n" +
|
||||
"};\n" +
|
||||
"}));"
|
||||
}
|
||||
},
|
||||
webpack: {
|
||||
examples: {
|
||||
entry: "./javascript/examples/webpack/src/anchors.js",
|
||||
output: {
|
||||
path: "javascript/examples/webpack/dist",
|
||||
filename: "anchors.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
javascripts: {
|
||||
files: "javascript/src/**/*.js",
|
||||
tasks: ["umdify"],
|
||||
options: {
|
||||
interrupt: true
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
require(parentFolderName === "node_modules" ? "load-grunt-parent-tasks" : "load-grunt-tasks")(grunt);
|
||||
grunt.registerTask("default", [
|
||||
"copy",
|
||||
"concat",
|
||||
"webpack"
|
||||
]);
|
||||
grunt.registerTask("build", [
|
||||
"default"
|
||||
]);
|
||||
};
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
body {
|
||||
padding:50px;
|
||||
font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color:#777;
|
||||
font-weight:300;
|
||||
font:14px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color:#333;
|
||||
font-weight:400;
|
||||
max-width:800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ h3, h4, h5, h6 {
|
|||
}
|
||||
|
||||
a {
|
||||
color:#39c;
|
||||
color:#337ab7;
|
||||
font-weight:400;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue