react-design-editor 0.0.58 → 0.0.59
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.
|
@@ -202252,7 +202252,7 @@ var Handler_Handler = /*#__PURE__*/function () {
|
|
|
202252
202252
|
return Promise.resolve(_this.setImage(findObject, source, keepSize));
|
|
202253
202253
|
};
|
|
202254
202254
|
|
|
202255
|
-
this.setSvg = function (obj, source,
|
|
202255
|
+
this.setSvg = function (obj, source, keepSize, xmlString) {
|
|
202256
202256
|
return new Promise(function (resolve) {
|
|
202257
202257
|
if (!source) {
|
|
202258
202258
|
resolve(obj.loadSvg({
|
|
@@ -202276,7 +202276,7 @@ var Handler_Handler = /*#__PURE__*/function () {
|
|
|
202276
202276
|
} else {
|
|
202277
202277
|
resolve(obj.loadSvg({
|
|
202278
202278
|
src: source,
|
|
202279
|
-
loadType:
|
|
202279
|
+
loadType: xmlString ? 'svg' : 'file',
|
|
202280
202280
|
keepSize: keepSize
|
|
202281
202281
|
}));
|
|
202282
202282
|
}
|