updated bower components
- updated bootstrap-datepicker to 1.9.0 - updated chart.js to 1.1.1 - updated ckeditor to 4.12.1 - updated jquery to 3.4.1 - updated raphael to 2.2.7 - updated select2 to 4.0.8
This commit is contained in:
10
bower_components/raphael/.bower.json
vendored
10
bower_components/raphael/.bower.json
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "raphael",
|
||||
"main": "raphael.min.js",
|
||||
"main": "raphael.js",
|
||||
"description": "JavaScript Vector Library",
|
||||
"dependencies": {
|
||||
"eve-raphael": "0.5.0"
|
||||
@@ -33,12 +33,12 @@
|
||||
"reference.js"
|
||||
],
|
||||
"homepage": "https://github.com/DmitryBaranovskiy/raphael",
|
||||
"version": "2.2.7",
|
||||
"_release": "2.2.7",
|
||||
"version": "2.2.8",
|
||||
"_release": "2.2.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v2.2.7",
|
||||
"commit": "f17a2a397af7790c8cb7313a8d3d105cb44e7f4a"
|
||||
"tag": "v2.2.8",
|
||||
"commit": "6f9a07d8fb8f54c891450d3e28120ce57fe8d30b"
|
||||
},
|
||||
"_source": "https://github.com/DmitryBaranovskiy/raphael.git",
|
||||
"_target": ">= 2.0",
|
||||
|
||||
2
bower_components/raphael/bower.json
vendored
2
bower_components/raphael/bower.json
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "raphael",
|
||||
"main": "raphael.min.js",
|
||||
"main": "raphael.js",
|
||||
"description": "JavaScript Vector Library",
|
||||
"dependencies": {
|
||||
"eve-raphael": "0.5.0"
|
||||
|
||||
2
bower_components/raphael/dev/banner.txt
vendored
2
bower_components/raphael/dev/banner.txt
vendored
@@ -1,5 +1,5 @@
|
||||
// ┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐ \\
|
||||
// │ Raphaël 2.2.0 - JavaScript Vector Library │ \\
|
||||
// │ Raphaël 2.2.8 - JavaScript Vector Library │ \\
|
||||
// ├───────────────────────────────────────────────────────────────────────────────────────────────────────┤ \\
|
||||
// │ Copyright © 2008-2016 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
|
||||
// │ Copyright © 2008-2016 Sencha Labs (http://sencha.com) │ \\
|
||||
|
||||
19
bower_components/raphael/dev/raphael.core.js
vendored
19
bower_components/raphael/dev/raphael.core.js
vendored
@@ -122,7 +122,8 @@ define(["eve"], function(eve) {
|
||||
appendChild = "appendChild",
|
||||
apply = "apply",
|
||||
concat = "concat",
|
||||
supportsTouch = ('ontouchstart' in g.win) || g.win.DocumentTouch && g.doc instanceof DocumentTouch, //taken from Modernizr touch test
|
||||
//taken from Modernizr touch test: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js#L40
|
||||
supportsTouch = ('ontouchstart' in window) || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch,
|
||||
E = "",
|
||||
S = " ",
|
||||
Str = String,
|
||||
@@ -1137,7 +1138,17 @@ define(["eve"], function(eve) {
|
||||
}
|
||||
data.toString = R._path2string;
|
||||
return data;
|
||||
});
|
||||
}, this, function(elem) {
|
||||
if (!elem) return elem;
|
||||
var newData = [];
|
||||
for (var i = 0; i < elem.length; i++) {
|
||||
var newLevel = [];
|
||||
for (var j = 0; j < elem[i].length; j++) {
|
||||
newLevel.push(elem[i][j]);
|
||||
}
|
||||
newData.push(newLevel);
|
||||
}
|
||||
return newData; } );
|
||||
// PATHS
|
||||
var paths = function (ps) {
|
||||
var p = paths.ps = paths.ps || {};
|
||||
@@ -3120,7 +3131,7 @@ define(["eve"], function(eve) {
|
||||
\*/
|
||||
elproto.removeData = function (key) {
|
||||
if (key == null) {
|
||||
eldata[this.id] = {};
|
||||
delete eldata[this.id];
|
||||
} else {
|
||||
eldata[this.id] && delete eldata[this.id][key];
|
||||
}
|
||||
@@ -3222,7 +3233,7 @@ define(["eve"], function(eve) {
|
||||
onstart && eve.on("raphael.drag.start." + this.id, onstart);
|
||||
onmove && eve.on("raphael.drag.move." + this.id, onmove);
|
||||
onend && eve.on("raphael.drag.end." + this.id, onend);
|
||||
eve("raphael.drag.start." + this.id, start_scope || move_scope || this, e.clientX + scrollX, e.clientY + scrollY, e);
|
||||
eve("raphael.drag.start." + this.id, start_scope || move_scope || this, this._drag.x, this._drag.y, e);
|
||||
}
|
||||
this._drag = {};
|
||||
draggable.push({el: this, start: start});
|
||||
|
||||
12
bower_components/raphael/dev/raphael.svg.js
vendored
12
bower_components/raphael/dev/raphael.svg.js
vendored
@@ -1272,15 +1272,15 @@ define(["./raphael.core"], function(R) {
|
||||
};
|
||||
R._engine.create = function () {
|
||||
var con = R._getContainer.apply(0, arguments),
|
||||
container = con && con.container,
|
||||
x = con.x,
|
||||
y = con.y,
|
||||
width = con.width,
|
||||
height = con.height;
|
||||
container = con && con.container;
|
||||
if (!container) {
|
||||
throw new Error("SVG container not found.");
|
||||
}
|
||||
var cnvs = $("svg"),
|
||||
var x = con.x,
|
||||
y = con.y,
|
||||
width = con.width,
|
||||
height = con.height,
|
||||
cnvs = $("svg"),
|
||||
css = "overflow:hidden;",
|
||||
isFloating;
|
||||
x = x || 0;
|
||||
|
||||
493
bower_components/raphael/dev/test/svg/dom.js
vendored
493
bower_components/raphael/dev/test/svg/dom.js
vendored
@@ -1,111 +1,111 @@
|
||||
(function() {
|
||||
|
||||
var paper,
|
||||
(function (assert) {
|
||||
|
||||
let paper,
|
||||
url = 'http://raphaeljs.com';
|
||||
|
||||
module('DOM', {
|
||||
setup: function() {
|
||||
paper = new Raphael(document.getElementById('qunit-fixture'), 1000, 1000);
|
||||
},
|
||||
teardown: function() {
|
||||
paper.remove();
|
||||
}
|
||||
});
|
||||
|
||||
var equalNodePosition = function(node, expectedParent, expectedPreviousSibling, expectedNextSibling) {
|
||||
equal(node.parentNode, expectedParent);
|
||||
equal(node.previousSibling, expectedPreviousSibling);
|
||||
equal(node.nextSibling, expectedNextSibling);
|
||||
};
|
||||
|
||||
var equalNodePositionWrapped = function(node, anchor, expectedParent, expectedPreviousSibling, expectedNextSibling) {
|
||||
equal(node.parentNode, anchor);
|
||||
equalNodePosition(anchor, expectedParent, expectedPreviousSibling, expectedNextSibling);
|
||||
};
|
||||
|
||||
QUnit.module('DOM', {
|
||||
beforeEach: function () {
|
||||
paper = new Raphael(document.getElementById('qunit-fixture'), 1000, 1000);
|
||||
},
|
||||
afterEach: function () {
|
||||
paper.remove();
|
||||
}
|
||||
});
|
||||
|
||||
const equalNodePosition = function (assert, node, expectedParent, expectedPreviousSibling, expectedNextSibling) {
|
||||
assert.equal(node.parentNode, expectedParent);
|
||||
assert.equal(node.previousSibling, expectedPreviousSibling);
|
||||
assert.equal(node.nextSibling, expectedNextSibling);
|
||||
};
|
||||
|
||||
const equalNodePositionWrapped = function (assert, node, anchor, expectedParent, expectedPreviousSibling, expectedNextSibling) {
|
||||
assert.equal(node.parentNode, anchor);
|
||||
equalNodePosition(assert, anchor, expectedParent, expectedPreviousSibling, expectedNextSibling);
|
||||
};
|
||||
|
||||
// Element#insertBefore
|
||||
// --------------------
|
||||
|
||||
test('insertBefore: no element', function() {
|
||||
var el = paper.rect();
|
||||
|
||||
el.insertBefore(null);
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
test('insertBefore: first element', function() {
|
||||
var x = paper.rect();
|
||||
var el = paper.rect();
|
||||
|
||||
el.insertBefore(x);
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, paper.defs, x.node);
|
||||
});
|
||||
|
||||
test('insertBefore: middle element', function() {
|
||||
var x = paper.rect();
|
||||
var y = paper.rect();
|
||||
var el = paper.rect();
|
||||
|
||||
el.insertBefore(y);
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
test('insertBefore: no element when wrapped in <a>', function() {
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
QUnit.test('insertBefore: no element', function (assert) {
|
||||
const el = paper.rect();
|
||||
|
||||
el.insertBefore(null);
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
QUnit.test('insertBefore: first element', function (assert) {
|
||||
const x = paper.rect();
|
||||
const el = paper.rect();
|
||||
|
||||
el.insertBefore(x);
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, paper.defs, x.node);
|
||||
});
|
||||
|
||||
QUnit.test('insertBefore: middle element', function (assert) {
|
||||
const x = paper.rect();
|
||||
const y = paper.rect();
|
||||
const el = paper.rect();
|
||||
|
||||
el.insertBefore(y);
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
QUnit.test('insertBefore: no element when wrapped in <a>', function (assert) {
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertBefore(null);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
test('insertBefore: first element when wrapped in <a>', function() {
|
||||
var x = paper.rect();
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
el.insertBefore(null);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
QUnit.test('insertBefore: first element when wrapped in <a>', function (assert) {
|
||||
const x = paper.rect();
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertBefore(x);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, paper.defs, x.node);
|
||||
});
|
||||
|
||||
test('insertBefore: first element wrapped in <a> and wrapped in <a>', function() {
|
||||
var x = paper.rect().attr('href', url),
|
||||
|
||||
el.insertBefore(x);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, paper.defs, x.node);
|
||||
});
|
||||
|
||||
QUnit.test('insertBefore: first element wrapped in <a> and wrapped in <a>', function (assert) {
|
||||
const x = paper.rect().attr('href', url),
|
||||
xAnchor = x.node.parentNode;
|
||||
var el = paper.rect().attr('href', url),
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertBefore(x);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, paper.defs, xAnchor);
|
||||
});
|
||||
|
||||
test('insertBefore: middle element when wrapped in <a>', function() {
|
||||
var x = paper.rect();
|
||||
var y = paper.rect();
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
el.insertBefore(x);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, paper.defs, xAnchor);
|
||||
});
|
||||
|
||||
QUnit.test('insertBefore: middle element when wrapped in <a>', function (assert) {
|
||||
const x = paper.rect();
|
||||
const y = paper.rect();
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertBefore(y);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
test('insertBefore: middle element wrapped in <a> and wrapped in <a>', function() {
|
||||
var x = paper.rect().attr('href', url),
|
||||
|
||||
el.insertBefore(y);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
QUnit.test('insertBefore: middle element wrapped in <a> and wrapped in <a>', function (assert) {
|
||||
const x = paper.rect().attr('href', url),
|
||||
xAnchor = x.node.parentNode;
|
||||
var y = paper.rect().attr('href', url),
|
||||
const y = paper.rect().attr('href', url),
|
||||
yAnchor = y.node.parentNode;
|
||||
var el = paper.rect().attr('href', url),
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertBefore(y);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, xAnchor, yAnchor);
|
||||
});
|
||||
|
||||
el.insertBefore(y);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, xAnchor, yAnchor);
|
||||
});
|
||||
|
||||
// TODO...
|
||||
// insertBefore: with set
|
||||
@@ -113,87 +113,87 @@ test('insertBefore: middle element wrapped in <a> and wrapped in <a>', function(
|
||||
|
||||
// Element#insertAfter
|
||||
// -------------------
|
||||
|
||||
test('insertAfter: no element', function() {
|
||||
var el = paper.rect();
|
||||
|
||||
el.insertAfter(null);
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
test('insertAfter: last element', function() {
|
||||
var x = paper.rect();
|
||||
var el = paper.rect();
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, x.node, null);
|
||||
});
|
||||
|
||||
test('insertAfter: middle element', function() {
|
||||
var x = paper.rect();
|
||||
var y = paper.rect();
|
||||
var el = paper.rect();
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
test('insertAfter: no element when wrapped in <a>', function() {
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
QUnit.test('insertAfter: no element', function (assert) {
|
||||
const el = paper.rect();
|
||||
|
||||
el.insertAfter(null);
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
QUnit.test('insertAfter: last element', function (assert) {
|
||||
const x = paper.rect();
|
||||
const el = paper.rect();
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, x.node, null);
|
||||
});
|
||||
|
||||
QUnit.test('insertAfter: middle element', function (assert) {
|
||||
const x = paper.rect();
|
||||
const y = paper.rect();
|
||||
const el = paper.rect();
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
QUnit.test('insertAfter: no element when wrapped in <a>', function (assert) {
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertAfter(null);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
test('insertAfter: last element when wrapped in <a>', function() {
|
||||
var x = paper.rect();
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
el.insertAfter(null);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
QUnit.test('insertAfter: last element when wrapped in <a>', function (assert) {
|
||||
const x = paper.rect();
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, x.node, null);
|
||||
});
|
||||
|
||||
test('insertAfter: last element wrapped in <a> and wrapped in <a>', function() {
|
||||
var x = paper.rect().attr('href', url),
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, x.node, null);
|
||||
});
|
||||
|
||||
QUnit.test('insertAfter: last element wrapped in <a> and wrapped in <a>', function (assert) {
|
||||
const x = paper.rect().attr('href', url),
|
||||
xAnchor = x.node.parentNode;
|
||||
var el = paper.rect().attr('href', url),
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, xAnchor, null);
|
||||
});
|
||||
|
||||
test('insertAfter: middle element when wrapped in <a>', function() {
|
||||
var x = paper.rect();
|
||||
var y = paper.rect();
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, xAnchor, null);
|
||||
});
|
||||
|
||||
QUnit.test('insertAfter: middle element when wrapped in <a>', function (assert) {
|
||||
const x = paper.rect();
|
||||
const y = paper.rect();
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
test('insertAfter: middle element wrapped in <a> and wrapped in <a>', function() {
|
||||
var x = paper.rect().attr('href', url),
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, x.node, y.node);
|
||||
});
|
||||
|
||||
QUnit.test('insertAfter: middle element wrapped in <a> and wrapped in <a>', function (assert) {
|
||||
const x = paper.rect().attr('href', url),
|
||||
xAnchor = x.node.parentNode;
|
||||
var y = paper.rect().attr('href', url),
|
||||
const y = paper.rect().attr('href', url),
|
||||
yAnchor = y.node.parentNode;
|
||||
var el = paper.rect().attr('href', url),
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, xAnchor, yAnchor);
|
||||
});
|
||||
|
||||
el.insertAfter(x);
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, xAnchor, yAnchor);
|
||||
});
|
||||
|
||||
// TODO...
|
||||
// insertAfter: with set
|
||||
@@ -201,96 +201,96 @@ test('insertAfter: middle element wrapped in <a> and wrapped in <a>', function()
|
||||
|
||||
// Element#remove
|
||||
// --------------
|
||||
|
||||
test('remove: after added', function() {
|
||||
var el = paper.rect(),
|
||||
|
||||
QUnit.test('remove: after added', function (assert) {
|
||||
const el = paper.rect(),
|
||||
node = el.node;
|
||||
|
||||
el.remove();
|
||||
|
||||
equal(el.node, null);
|
||||
equal(node.parentNode, null);
|
||||
});
|
||||
|
||||
test('remove: when wrapped in <a>', function() {
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
el.remove();
|
||||
|
||||
assert.equal(el.node, null);
|
||||
assert.equal(node.parentNode, null);
|
||||
});
|
||||
|
||||
QUnit.test('remove: when wrapped in <a>', function (assert) {
|
||||
const el = paper.rect().attr('href', url),
|
||||
node = el.node,
|
||||
anchor = node.parentNode;
|
||||
|
||||
el.remove();
|
||||
|
||||
equal(el.node, null);
|
||||
equal(node.parentNode, anchor);
|
||||
equal(anchor.parentNode, null);
|
||||
});
|
||||
|
||||
test('remove: when already removed', function() {
|
||||
var el = paper.rect(),
|
||||
|
||||
el.remove();
|
||||
|
||||
assert.equal(el.node, null);
|
||||
assert.equal(node.parentNode, anchor);
|
||||
assert.equal(anchor.parentNode, null);
|
||||
});
|
||||
|
||||
QUnit.test('remove: when already removed', function (assert) {
|
||||
const el = paper.rect(),
|
||||
node = el.node;
|
||||
|
||||
el.remove();
|
||||
el.remove();
|
||||
|
||||
equal(el.node, null);
|
||||
equal(node.parentNode, null);
|
||||
});
|
||||
|
||||
test('remove: when the canvas is removed', function() {
|
||||
var el = paper.rect(),
|
||||
|
||||
el.remove();
|
||||
el.remove();
|
||||
|
||||
assert.equal(el.node, null);
|
||||
assert.equal(node.parentNode, null);
|
||||
});
|
||||
|
||||
QUnit.test('remove: when the canvas is removed', function (assert) {
|
||||
const el = paper.rect(),
|
||||
node = el.node;
|
||||
|
||||
paper.remove();
|
||||
el.remove();
|
||||
|
||||
equal(el.node, null);
|
||||
equal(node.parentNode, null);
|
||||
});
|
||||
|
||||
paper.remove();
|
||||
el.remove();
|
||||
|
||||
assert.equal(el.node, null);
|
||||
assert.equal(node.parentNode, null);
|
||||
});
|
||||
|
||||
// Element#toFront
|
||||
// --------------
|
||||
|
||||
test('toFront: normal', function() {
|
||||
var el = paper.rect();
|
||||
var x = paper.rect();
|
||||
|
||||
el.toFront();
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, x.node, null);
|
||||
});
|
||||
|
||||
test('toFront: when wrapped in <a>', function() {
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
QUnit.test('toFront: normal', function (assert) {
|
||||
const el = paper.rect();
|
||||
const x = paper.rect();
|
||||
|
||||
el.toFront();
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, x.node, null);
|
||||
});
|
||||
|
||||
QUnit.test('toFront: when wrapped in <a>', function (assert) {
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
var x = paper.rect();
|
||||
|
||||
el.toFront();
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, x.node, null);
|
||||
});
|
||||
const x = paper.rect();
|
||||
|
||||
el.toFront();
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, x.node, null);
|
||||
});
|
||||
|
||||
// Element#toBack
|
||||
// --------------
|
||||
|
||||
test('toBack: normal', function() {
|
||||
var x = paper.rect();
|
||||
var el = paper.rect();
|
||||
|
||||
el.toBack();
|
||||
|
||||
equalNodePosition(el.node, paper.canvas, null, paper.desc);
|
||||
equalNodePosition(x.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
test('toBack: when wrapped in <a>', function() {
|
||||
var x = paper.rect();
|
||||
var el = paper.rect().attr('href', url),
|
||||
|
||||
QUnit.test('toBack: normal', function (assert) {
|
||||
const x = paper.rect();
|
||||
const el = paper.rect();
|
||||
|
||||
el.toBack();
|
||||
|
||||
equalNodePosition(assert, el.node, paper.canvas, null, paper.desc);
|
||||
equalNodePosition(assert, x.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
QUnit.test('toBack: when wrapped in <a>', function (assert) {
|
||||
const x = paper.rect();
|
||||
const el = paper.rect().attr('href', url),
|
||||
anchor = el.node.parentNode;
|
||||
|
||||
el.toBack();
|
||||
|
||||
equalNodePositionWrapped(el.node, anchor, paper.canvas, null, paper.desc);
|
||||
equalNodePosition(x.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
el.toBack();
|
||||
|
||||
equalNodePositionWrapped(assert, el.node, anchor, paper.canvas, null, paper.desc);
|
||||
equalNodePosition(assert, x.node, paper.canvas, paper.defs, null);
|
||||
});
|
||||
|
||||
|
||||
// Element#attrs
|
||||
@@ -313,5 +313,4 @@ test('toBack: when wrapped in <a>', function() {
|
||||
//keep adding and testing!
|
||||
|
||||
|
||||
|
||||
})();
|
||||
2
bower_components/raphael/dev/test/vml/dom.js
vendored
2
bower_components/raphael/dev/test/vml/dom.js
vendored
@@ -1,5 +1,5 @@
|
||||
(function() {
|
||||
|
||||
module('DOM');
|
||||
QUnit.module('DOM');
|
||||
|
||||
})();
|
||||
8401
bower_components/raphael/raphael.js
vendored
8401
bower_components/raphael/raphael.js
vendored
File diff suppressed because one or more lines are too long
4
bower_components/raphael/raphael.min.js
vendored
4
bower_components/raphael/raphael.min.js
vendored
File diff suppressed because one or more lines are too long
7975
bower_components/raphael/raphael.no-deps.js
vendored
7975
bower_components/raphael/raphael.no-deps.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
92
bower_components/raphael/webpack.config.js
vendored
92
bower_components/raphael/webpack.config.js
vendored
@@ -3,62 +3,38 @@
|
||||
const webpack = require("webpack");
|
||||
const fs = require("fs");
|
||||
|
||||
const args = process.argv;
|
||||
|
||||
let plugins = [
|
||||
new webpack.BannerPlugin(fs.readFileSync('./dev/banner.txt', 'utf8'), { raw: true, entryOnly: true })
|
||||
];
|
||||
let externals = [];
|
||||
let filename = "raphael";
|
||||
|
||||
|
||||
if(args.indexOf('--no-deps') !== -1){
|
||||
console.log('Building version without deps');
|
||||
externals.push("eve");
|
||||
filename += ".no-deps"
|
||||
}
|
||||
|
||||
if(args.indexOf('--min') !== -1){
|
||||
console.log('Building minified version');
|
||||
plugins.push(
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compress:{
|
||||
dead_code: false,
|
||||
unused: false
|
||||
}
|
||||
})
|
||||
);
|
||||
filename += ".min"
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
entry: './dev/raphael.amd.js',
|
||||
output: {
|
||||
filename: filename + ".js",
|
||||
libraryTarget: "umd",
|
||||
library: "Raphael"
|
||||
},
|
||||
|
||||
externals: externals,
|
||||
|
||||
plugins: plugins,
|
||||
|
||||
loaders: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: "eslint-loader",
|
||||
include: "./dev/"
|
||||
}
|
||||
],
|
||||
|
||||
eslint: {
|
||||
configFile: './.eslintrc'
|
||||
},
|
||||
|
||||
resolve: {
|
||||
modulesDirectories: ["bower_components"],
|
||||
alias: {
|
||||
"eve": "eve-raphael/eve"
|
||||
}
|
||||
}
|
||||
module.exports = function (env) {
|
||||
|
||||
let externals = [];
|
||||
|
||||
if (env && env.noDeps) {
|
||||
console.log('Building version without deps');
|
||||
externals.push("eve");
|
||||
}
|
||||
|
||||
return {
|
||||
entry: './dev/raphael.amd.js',
|
||||
output: {
|
||||
path: __dirname,
|
||||
filename: "raphael.js",
|
||||
libraryTarget: "umd",
|
||||
library: "Raphael"
|
||||
},
|
||||
|
||||
externals: externals,
|
||||
|
||||
plugins: [
|
||||
new webpack.BannerPlugin({
|
||||
banner: fs.readFileSync('./dev/banner.txt', 'utf8'),
|
||||
raw: true,
|
||||
entryOnly: true
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"eve": "eve-raphael/eve"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
3350
bower_components/raphael/yarn.lock
vendored
3350
bower_components/raphael/yarn.lock
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user