- Update: Bump StackBlur version
This commit is contained in:
20
dist/canvg.js
vendored
20
dist/canvg.js
vendored
@@ -1,6 +1,20 @@
|
|||||||
var canvg = (function (exports) {
|
var canvg = (function (exports) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
function _typeof(obj) {
|
||||||
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
||||||
|
_typeof = function (obj) {
|
||||||
|
return typeof obj;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
_typeof = function (obj) {
|
||||||
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _typeof(obj);
|
||||||
|
}
|
||||||
|
|
||||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||||
try {
|
try {
|
||||||
var info = gen[key](arg);
|
var info = gen[key](arg);
|
||||||
@@ -584,7 +598,7 @@ var canvg = (function (exports) {
|
|||||||
* @param {Integer} topY
|
* @param {Integer} topY
|
||||||
* @param {Integer} width
|
* @param {Integer} width
|
||||||
* @param {Integer} height
|
* @param {Integer} height
|
||||||
* @throws {Error}
|
* @throws {Error|TypeError}
|
||||||
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -594,8 +608,8 @@ var canvg = (function (exports) {
|
|||||||
canvas = document.getElementById(canvas);
|
canvas = document.getElementById(canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!canvas || !('getContext' in canvas)) {
|
if (!canvas || _typeof(canvas) !== 'object' || !('getContext' in canvas)) {
|
||||||
return;
|
throw new TypeError('Expecting canvas with `getContext` method in processCanvasRGB(A) calls!');
|
||||||
}
|
}
|
||||||
|
|
||||||
var context = canvas.getContext('2d');
|
var context = canvas.getContext('2d');
|
||||||
|
|||||||
20
dist/extensions/ext-server_moinsave.js
vendored
20
dist/extensions/ext-server_moinsave.js
vendored
@@ -1,6 +1,20 @@
|
|||||||
var svgEditorExtension_server_moinsave = (function () {
|
var svgEditorExtension_server_moinsave = (function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
function _typeof(obj) {
|
||||||
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
||||||
|
_typeof = function (obj) {
|
||||||
|
return typeof obj;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
_typeof = function (obj) {
|
||||||
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _typeof(obj);
|
||||||
|
}
|
||||||
|
|
||||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||||
try {
|
try {
|
||||||
var info = gen[key](arg);
|
var info = gen[key](arg);
|
||||||
@@ -584,7 +598,7 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||||||
* @param {Integer} topY
|
* @param {Integer} topY
|
||||||
* @param {Integer} width
|
* @param {Integer} width
|
||||||
* @param {Integer} height
|
* @param {Integer} height
|
||||||
* @throws {Error}
|
* @throws {Error|TypeError}
|
||||||
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -594,8 +608,8 @@ var svgEditorExtension_server_moinsave = (function () {
|
|||||||
canvas = document.getElementById(canvas);
|
canvas = document.getElementById(canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!canvas || !('getContext' in canvas)) {
|
if (!canvas || _typeof(canvas) !== 'object' || !('getContext' in canvas)) {
|
||||||
return;
|
throw new TypeError('Expecting canvas with `getContext` method in processCanvasRGB(A) calls!');
|
||||||
}
|
}
|
||||||
|
|
||||||
var context = canvas.getContext('2d');
|
var context = canvas.getContext('2d');
|
||||||
|
|||||||
20
dist/extensions/ext-server_opensave.js
vendored
20
dist/extensions/ext-server_opensave.js
vendored
@@ -1,6 +1,20 @@
|
|||||||
var svgEditorExtension_server_opensave = (function () {
|
var svgEditorExtension_server_opensave = (function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
function _typeof(obj) {
|
||||||
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
||||||
|
_typeof = function (obj) {
|
||||||
|
return typeof obj;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
_typeof = function (obj) {
|
||||||
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return _typeof(obj);
|
||||||
|
}
|
||||||
|
|
||||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||||
try {
|
try {
|
||||||
var info = gen[key](arg);
|
var info = gen[key](arg);
|
||||||
@@ -584,7 +598,7 @@ var svgEditorExtension_server_opensave = (function () {
|
|||||||
* @param {Integer} topY
|
* @param {Integer} topY
|
||||||
* @param {Integer} width
|
* @param {Integer} width
|
||||||
* @param {Integer} height
|
* @param {Integer} height
|
||||||
* @throws {Error}
|
* @throws {Error|TypeError}
|
||||||
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -594,8 +608,8 @@ var svgEditorExtension_server_opensave = (function () {
|
|||||||
canvas = document.getElementById(canvas);
|
canvas = document.getElementById(canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!canvas || !('getContext' in canvas)) {
|
if (!canvas || _typeof(canvas) !== 'object' || !('getContext' in canvas)) {
|
||||||
return;
|
throw new TypeError('Expecting canvas with `getContext` method in processCanvasRGB(A) calls!');
|
||||||
}
|
}
|
||||||
|
|
||||||
var context = canvas.getContext('2d');
|
var context = canvas.getContext('2d');
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ function processImage(img, canvas, radius, blurAlphaChannel) {
|
|||||||
* @param {Integer} topY
|
* @param {Integer} topY
|
||||||
* @param {Integer} width
|
* @param {Integer} width
|
||||||
* @param {Integer} height
|
* @param {Integer} height
|
||||||
* @throws {Error}
|
* @throws {Error|TypeError}
|
||||||
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
* @returns {ImageData} See {@link https://html.spec.whatwg.org/multipage/canvas.html#imagedata}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -101,8 +101,8 @@ function getImageDataFromCanvas(canvas, topX, topY, width, height) {
|
|||||||
canvas = document.getElementById(canvas);
|
canvas = document.getElementById(canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!canvas || !('getContext' in canvas)) {
|
if (!canvas || typeof canvas !== 'object' || !('getContext' in canvas)) {
|
||||||
return;
|
throw new TypeError('Expecting canvas with `getContext` method in processCanvasRGB(A) calls!');
|
||||||
}
|
}
|
||||||
|
|
||||||
const context = canvas.getContext('2d');
|
const context = canvas.getContext('2d');
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -9400,9 +9400,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stackblur-canvas": {
|
"stackblur-canvas": {
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/stackblur-canvas/-/stackblur-canvas-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/stackblur-canvas/-/stackblur-canvas-2.1.0.tgz",
|
||||||
"integrity": "sha512-660gH1SpjeKyfUYnne9nuIya7CDGds6NdIrxzOToSgaSlOqbh7UYGP9VlxlQ8IX7af/nPuAHLkN03l84OesX7Q==",
|
"integrity": "sha512-RwIUB2RMahW1gf0n98b/CpMnGtzepwD5Nn1RRXdg51FU5Sp5VWAbUEsGPQx7qbw7Ljkwwtzci/APw6G+y10k1w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"stackframe": {
|
"stackframe": {
|
||||||
|
|||||||
@@ -120,7 +120,7 @@
|
|||||||
"rollup-plugin-terser": "^3.0.0",
|
"rollup-plugin-terser": "^3.0.0",
|
||||||
"sinon": "^7.1.1",
|
"sinon": "^7.1.1",
|
||||||
"sinon-test": "^2.4.0",
|
"sinon-test": "^2.4.0",
|
||||||
"stackblur-canvas": "^2.0.0",
|
"stackblur-canvas": "^2.1.0",
|
||||||
"testcafe": "^0.23.2"
|
"testcafe": "^0.23.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user