@threedddplus/logoeditor 0.0.136 → 0.0.138

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.
@@ -4087,7 +4087,7 @@ var converterSlice = function converterSlice(set, get) {
4087
4087
  objImage.forEach(function (ele) {
4088
4088
  var _ele$id;
4089
4089
  ele.set({
4090
- strokeWidth: 3
4090
+ strokeWidth: 1
4091
4091
  });
4092
4092
  ele.set({
4093
4093
  id: (_ele$id = ele.id) != null ? _ele$id : use3dddPlus.getState().guid()
@@ -4526,7 +4526,8 @@ var converterSlice = function converterSlice(set, get) {
4526
4526
  lockScalingFlip: true
4527
4527
  });
4528
4528
  var fillColors = {
4529
- layer0: text.fill
4529
+ layer0: text.fill,
4530
+ layer1: text.stroke
4530
4531
  };
4531
4532
  text.set({
4532
4533
  //@ts-ignore
@@ -9194,12 +9195,21 @@ var Properties = function Properties(_ref2) {
9194
9195
  }
9195
9196
  };
9196
9197
  var strokeColorChange = function strokeColorChange(_property, color) {
9197
- textSelected.set('stroke', color);
9198
+ console.log("BEFORE-->", textSelected.colorFill);
9199
+ // textSelected.set('stroke', color);
9200
+ textSelected.set({
9201
+ stroke: color,
9202
+ colorFill: {
9203
+ layer0: textSelected.fill,
9204
+ layer1: color
9205
+ }
9206
+ });
9198
9207
  var state = use3dddPlus.getState();
9199
9208
  state.updateModifaction(true);
9200
9209
  state.forIconCapture();
9201
9210
  textSelected.icon = state.iconImage;
9202
9211
  canvas.requestRenderAll();
9212
+ console.log("AFTER-->", textSelected.colorFill);
9203
9213
  };
9204
9214
  var textSpacingHandler = function textSpacingHandler(e) {
9205
9215
  // setSpacinglineVal(e.target.valueAsNumber);
@@ -9254,10 +9264,14 @@ var Properties = function Properties(_ref2) {
9254
9264
  var previousColor = property;
9255
9265
  canvas.getObjects().map(function (data) {
9256
9266
  if (data.type === 'text') {
9267
+ console.log(data);
9257
9268
  var _C = data.fill;
9269
+ // if (data.fill === previousColor || data.stroke === previousColor) {
9258
9270
  if (_C === previousColor) {
9259
9271
  data.set({
9260
9272
  fill: color,
9273
+ // stroke:color,
9274
+ // colorFill: { layer0: color ,layer1: color },
9261
9275
  colorFill: {
9262
9276
  layer0: color
9263
9277
  }