• • build • •

master
baranovs 2014-09-17 17:44:54 +10:00
parent 2056ab02b1
commit 34a5717713
3 changed files with 20 additions and 14 deletions

File diff suppressed because one or more lines are too long

20
dist/snap.svg.js vendored
View File

@ -422,17 +422,22 @@
(function (glob, factory) {
// AMD support
if (typeof define === "function" && define.amd) {
if (typeof define == "function" && define.amd) {
// Define as an anonymous module
define(["eve"], function( eve ) {
define(["eve"], function (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 {
// Browser globals (glob is window)
// Snap adds itself to window
factory(glob, glob.eve);
}
}(this, function (window, eve) {
}(window || this, function (window, eve) {
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
//
// 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
// limitations under the License.
var Snap = (function() {
var Snap = (function(root) {
Snap.version = "0.3.0";
/*\
* Snap
@ -846,8 +851,8 @@ Snap.toString = function () {
};
Snap._ = {};
var glob = {
win: window,
doc: window.document
win: root.window,
doc: root.window.document
};
Snap._.glob = glob;
var has = "hasOwnProperty",
@ -2402,7 +2407,7 @@ Snap.plugin = function (f) {
};
glob.win.Snap = Snap;
return Snap;
}());
}(window || this));
// 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 Snap;
}));