• • build • •
parent
2056ab02b1
commit
34a5717713
File diff suppressed because one or more lines are too long
|
@ -422,17 +422,22 @@
|
||||||
|
|
||||||
(function (glob, factory) {
|
(function (glob, factory) {
|
||||||
// AMD support
|
// AMD support
|
||||||
if (typeof define === "function" && define.amd) {
|
if (typeof define == "function" && define.amd) {
|
||||||
// Define as an anonymous module
|
// Define as an anonymous module
|
||||||
define(["eve"], function( eve ) {
|
define(["eve"], function (eve) {
|
||||||
return factory(glob, eve);
|
return factory(glob, eve);
|
||||||
});
|
});
|
||||||
|
} else if (typeof exports != 'undefined') {
|
||||||
|
// Next for Node.js or CommonJS
|
||||||
|
var eve = require('eve');
|
||||||
|
module.exports = factory(glob, eve);
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (glob is window)
|
// Browser globals (glob is window)
|
||||||
// Snap adds itself to window
|
// Snap adds itself to window
|
||||||
factory(glob, glob.eve);
|
factory(glob, glob.eve);
|
||||||
}
|
}
|
||||||
}(this, function (window, eve) {
|
}(window || this, function (window, eve) {
|
||||||
|
|
||||||
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -803,7 +808,7 @@ var mina = (function (eve) {
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
var Snap = (function() {
|
var Snap = (function(root) {
|
||||||
Snap.version = "0.3.0";
|
Snap.version = "0.3.0";
|
||||||
/*\
|
/*\
|
||||||
* Snap
|
* Snap
|
||||||
|
@ -846,8 +851,8 @@ Snap.toString = function () {
|
||||||
};
|
};
|
||||||
Snap._ = {};
|
Snap._ = {};
|
||||||
var glob = {
|
var glob = {
|
||||||
win: window,
|
win: root.window,
|
||||||
doc: window.document
|
doc: root.window.document
|
||||||
};
|
};
|
||||||
Snap._.glob = glob;
|
Snap._.glob = glob;
|
||||||
var has = "hasOwnProperty",
|
var has = "hasOwnProperty",
|
||||||
|
@ -2402,7 +2407,7 @@ Snap.plugin = function (f) {
|
||||||
};
|
};
|
||||||
glob.win.Snap = Snap;
|
glob.win.Snap = Snap;
|
||||||
return Snap;
|
return Snap;
|
||||||
}());
|
}(window || this));
|
||||||
|
|
||||||
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||||
//
|
//
|
||||||
|
@ -7863,5 +7868,6 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
|
||||||
return this.transform("..." + this.getAlign(el, way));
|
return this.transform("..." + this.getAlign(el, way));
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
return Snap;
|
return Snap;
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue