react-design-editor 0.0.39 → 0.0.40
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.
|
@@ -196019,16 +196019,32 @@ var Svg = fabric["fabric"].util.createClass(fabric["fabric"].Group, {
|
|
|
196019
196019
|
createdObj.getObjects().forEach(function (obj) {
|
|
196020
196020
|
_this.add(obj);
|
|
196021
196021
|
|
|
196022
|
-
|
|
196023
|
-
|
|
196022
|
+
if (options.fill) {
|
|
196023
|
+
obj.set('fill', options.fill);
|
|
196024
|
+
}
|
|
196025
|
+
|
|
196026
|
+
if (options.stroke) {
|
|
196027
|
+
obj.set('stroke', options.stroke);
|
|
196028
|
+
}
|
|
196024
196029
|
});
|
|
196025
196030
|
} else {
|
|
196026
196031
|
createdObj.set({
|
|
196027
196032
|
originX: 'center',
|
|
196028
|
-
originY: 'center'
|
|
196029
|
-
fill: options.fill,
|
|
196030
|
-
stroke: options.stroke
|
|
196033
|
+
originY: 'center'
|
|
196031
196034
|
});
|
|
196035
|
+
|
|
196036
|
+
if (options.fill) {
|
|
196037
|
+
createdObj.set({
|
|
196038
|
+
fill: options.fill
|
|
196039
|
+
});
|
|
196040
|
+
}
|
|
196041
|
+
|
|
196042
|
+
if (options.stroke) {
|
|
196043
|
+
createdObj.set({
|
|
196044
|
+
stroke: options.stroke
|
|
196045
|
+
});
|
|
196046
|
+
}
|
|
196047
|
+
|
|
196032
196048
|
this.add(createdObj);
|
|
196033
196049
|
}
|
|
196034
196050
|
|
|
@@ -196045,6 +196061,7 @@ var Svg = fabric["fabric"].util.createClass(fabric["fabric"].Group, {
|
|
|
196045
196061
|
loadType = option.loadType,
|
|
196046
196062
|
fill = option.fill,
|
|
196047
196063
|
stroke = option.stroke;
|
|
196064
|
+
console.log(option);
|
|
196048
196065
|
return new Promise(function (resolve) {
|
|
196049
196066
|
if (loadType === 'svg') {
|
|
196050
196067
|
fabric["fabric"].loadSVGFromString(svg, function (objects, options) {
|