react-design-editor 0.0.59 → 0.0.61
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.
|
@@ -198591,19 +198591,20 @@ var Svg = fabric["fabric"].util.createClass(fabric["fabric"].Group, {
|
|
|
198591
198591
|
var _this2 = this;
|
|
198592
198592
|
|
|
198593
198593
|
var src = option.src,
|
|
198594
|
+
svg = option.svg,
|
|
198594
198595
|
loadType = option.loadType,
|
|
198595
198596
|
fill = option.fill,
|
|
198596
198597
|
stroke = option.stroke;
|
|
198597
198598
|
return new Promise(function (resolve) {
|
|
198598
198599
|
if (loadType === 'svg') {
|
|
198599
|
-
fabric["fabric"].loadSVGFromString(src, function (objects, options) {
|
|
198600
|
+
fabric["fabric"].loadSVGFromString(svg || src, function (objects, options) {
|
|
198600
198601
|
resolve(_this2.addSvgElements(objects, Svg_objectSpread(Svg_objectSpread({}, options), {}, {
|
|
198601
198602
|
fill: fill,
|
|
198602
198603
|
stroke: stroke
|
|
198603
198604
|
})));
|
|
198604
198605
|
});
|
|
198605
198606
|
} else {
|
|
198606
|
-
fabric["fabric"].loadSVGFromURL(src, function (objects, options) {
|
|
198607
|
+
fabric["fabric"].loadSVGFromURL(svg || src, function (objects, options) {
|
|
198607
198608
|
resolve(_this2.addSvgElements(objects, Svg_objectSpread(Svg_objectSpread({}, options), {}, {
|
|
198608
198609
|
fill: fill,
|
|
198609
198610
|
stroke: stroke
|
|
@@ -202790,6 +202791,7 @@ var Handler_Handler = /*#__PURE__*/function () {
|
|
|
202790
202791
|
type: obj.type,
|
|
202791
202792
|
nodeClazz: obj.nodeClazz,
|
|
202792
202793
|
configuration: obj.configuration,
|
|
202794
|
+
descriptor: obj.descriptor,
|
|
202793
202795
|
properties: {
|
|
202794
202796
|
left: activeObject.left + activeObject.width / 2 + obj.left || 0,
|
|
202795
202797
|
top: activeObject.top + activeObject.height / 2 + obj.top || 0,
|
|
@@ -202818,6 +202820,7 @@ var Handler_Handler = /*#__PURE__*/function () {
|
|
|
202818
202820
|
type: cloned.type,
|
|
202819
202821
|
nodeClazz: cloned.nodeClazz,
|
|
202820
202822
|
configuration: cloned.configuration,
|
|
202823
|
+
descriptor: cloned.descriptor,
|
|
202821
202824
|
properties: {
|
|
202822
202825
|
left: cloned.left || 0,
|
|
202823
202826
|
top: cloned.top || 0,
|