@sansitech/react-img-editor 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.es.js +11 -29
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +11 -29
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var require$$1 = require('canvas');
|
|
4
3
|
var React = require('react');
|
|
5
4
|
var ReactDOM = require('react-dom');
|
|
6
5
|
|
|
@@ -115,7 +114,7 @@ function getDefaultExportFromCjs (x) {
|
|
|
115
114
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
var
|
|
117
|
+
var lib$1 = {exports: {}};
|
|
119
118
|
|
|
120
119
|
var _FullInternals = {};
|
|
121
120
|
|
|
@@ -12028,38 +12027,21 @@ function require_FullInternals () {
|
|
|
12028
12027
|
return _FullInternals;
|
|
12029
12028
|
}
|
|
12030
12029
|
|
|
12031
|
-
var
|
|
12030
|
+
var lib = lib$1.exports;
|
|
12032
12031
|
|
|
12033
|
-
var
|
|
12032
|
+
var hasRequiredLib;
|
|
12034
12033
|
|
|
12035
|
-
function
|
|
12036
|
-
if (
|
|
12037
|
-
|
|
12038
|
-
Object.defineProperty(
|
|
12034
|
+
function requireLib () {
|
|
12035
|
+
if (hasRequiredLib) return lib$1.exports;
|
|
12036
|
+
hasRequiredLib = 1;
|
|
12037
|
+
Object.defineProperty(lib, "__esModule", { value: true });
|
|
12039
12038
|
const _FullInternals_1 = require_FullInternals();
|
|
12040
|
-
|
|
12041
|
-
|
|
12042
|
-
commonjsGlobal.DOMMatrix = canvas.DOMMatrix;
|
|
12043
|
-
const isNode = typeof commonjsGlobal.document === 'undefined';
|
|
12044
|
-
if (isNode) {
|
|
12045
|
-
_FullInternals_1.Konva.Util['createCanvasElement'] = () => {
|
|
12046
|
-
const node = canvas.createCanvas(300, 300);
|
|
12047
|
-
if (!node['style']) {
|
|
12048
|
-
node['style'] = {};
|
|
12049
|
-
}
|
|
12050
|
-
return node;
|
|
12051
|
-
};
|
|
12052
|
-
_FullInternals_1.Konva.Util.createImageElement = () => {
|
|
12053
|
-
const node = new canvas.Image();
|
|
12054
|
-
return node;
|
|
12055
|
-
};
|
|
12056
|
-
}
|
|
12057
|
-
indexNode$1.exports = _FullInternals_1.Konva;
|
|
12058
|
-
return indexNode$1.exports;
|
|
12039
|
+
lib$1.exports = _FullInternals_1.Konva;
|
|
12040
|
+
return lib$1.exports;
|
|
12059
12041
|
}
|
|
12060
12042
|
|
|
12061
|
-
var
|
|
12062
|
-
var Konva = /*@__PURE__*/getDefaultExportFromCjs(
|
|
12043
|
+
var libExports = requireLib();
|
|
12044
|
+
var Konva = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
12063
12045
|
|
|
12064
12046
|
var Plugin = /** @class */ (function () {
|
|
12065
12047
|
function Plugin() {
|