Commit d521c628 by Tomas Alabes

v2.0.1 - small correction on amd build

parent 68cb2e38
......@@ -11,7 +11,6 @@
<!-- To work with full version -->
<script type="text/javascript" src="../bower_components/requirejs/require.js"></script>
<script type="text/javascript" src="../bower_components/eve/eve.js"></script>
<script type="text/javascript" src="../raphael.js"></script>
<!-- To work with minified version -->
<!--<script type="text/javascript" src="../raphael-min.js"></script>-->
......@@ -20,7 +19,7 @@
<script type="text/javascript">
// Initialize container when document is loaded
window.onload = function () {
require(['Raphael'], function(Raphael) {
require(['../raphael'], function(Raphael) {
var paper = Raphael(0, 0, 640, 720, "container");
paper.circle(100, 100, 100).attr({'fill':'270-#FAE56B:0-#E56B6B:100'}); //example
});
......
......@@ -10,10 +10,7 @@
<div id="qunit-fixture"></div>
<script type="text/javascript" src="../../node_modules/qunitjs/qunit/qunit.js"></script>
<script type="text/javascript" src="../../bower_components/eve/eve.js"></script>
<script type="text/javascript" src="../raphael.core.js"></script>
<script type="text/javascript" src="../raphael.svg.js"></script>
<script type="text/javascript" src="../raphael.vml.js"></script>
<script type="text/javascript" src="../../raphael.js"></script>
<script type="text/javascript">
(function() {
......
2.2.1
------------------
* Removed name of amd module
2.2.0
------------------
......
......@@ -11,7 +11,7 @@
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("Raphael", [], factory);
define([], factory);
else if(typeof exports === 'object')
exports["Raphael"] = factory();
else
......@@ -7507,7 +7507,6 @@ return /******/ (function(modules) { // webpackBootstrap
addArrow(res, params["arrow-end"], 1);
}
if (params.opacity != null ||
params["stroke-width"] != null ||
params.fill != null ||
params.src != null ||
params.stroke != null ||
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -11,7 +11,7 @@
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("eve"));
else if(typeof define === 'function' && define.amd)
define("Raphael", ["eve"], factory);
define(["eve"], factory);
else if(typeof exports === 'object')
exports["Raphael"] = factory(require("eve"));
else
......@@ -7136,7 +7136,6 @@ return /******/ (function(modules) { // webpackBootstrap
addArrow(res, params["arrow-end"], 1);
}
if (params.opacity != null ||
params["stroke-width"] != null ||
params.fill != null ||
params.src != null ||
params.stroke != null ||
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,7 +6,7 @@ const fs = require("fs");
const args = process.argv;
let plugins = [
new webpack.BannerPlugin(fs.readFileSync('./dev/banner.txt', 'utf8'),{ raw: true, entryOnly: true })
new webpack.BannerPlugin(fs.readFileSync('./dev/banner.txt', 'utf8'), { raw: true, entryOnly: true })
];
let externals = [];
let filename = "raphael";
......@@ -36,8 +36,7 @@ module.exports = {
output: {
filename: filename + ".js",
libraryTarget: "umd",
library: "Raphael",
umdNamedDefine: true
library: "Raphael"
},
externals: externals,
......
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 sign in to comment