@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.
@@ -4078,7 +4078,7 @@ var converterSlice = function converterSlice(set, get) {
4078
4078
  objImage.forEach(function (ele) {
4079
4079
  var _ele$id;
4080
4080
  ele.set({
4081
- strokeWidth: 3
4081
+ strokeWidth: 1
4082
4082
  });
4083
4083
  ele.set({
4084
4084
  id: (_ele$id = ele.id) != null ? _ele$id : use3dddPlus.getState().guid()
@@ -4517,7 +4517,8 @@ var converterSlice = function converterSlice(set, get) {
4517
4517
  lockScalingFlip: true
4518
4518
  });
4519
4519
  var fillColors = {
4520
- layer0: text.fill
4520
+ layer0: text.fill,
4521
+ layer1: text.stroke
4521
4522
  };
4522
4523
  text.set({
4523
4524
  //@ts-ignore
@@ -9185,12 +9186,21 @@ var Properties = function Properties(_ref2) {
9185
9186
  }
9186
9187
  };
9187
9188
  var strokeColorChange = function strokeColorChange(_property, color) {
9188
- textSelected.set('stroke', color);
9189
+ console.log("BEFORE-->", textSelected.colorFill);
9190
+ // textSelected.set('stroke', color);
9191
+ textSelected.set({
9192
+ stroke: color,
9193
+ colorFill: {
9194
+ layer0: textSelected.fill,
9195
+ layer1: color
9196
+ }
9197
+ });
9189
9198
  var state = use3dddPlus.getState();
9190
9199
  state.updateModifaction(true);
9191
9200
  state.forIconCapture();
9192
9201
  textSelected.icon = state.iconImage;
9193
9202
  canvas.requestRenderAll();
9203
+ console.log("AFTER-->", textSelected.colorFill);
9194
9204
  };
9195
9205
  var textSpacingHandler = function textSpacingHandler(e) {
9196
9206
  // setSpacinglineVal(e.target.valueAsNumber);
@@ -9245,10 +9255,14 @@ var Properties = function Properties(_ref2) {
9245
9255
  var previousColor = property;
9246
9256
  canvas.getObjects().map(function (data) {
9247
9257
  if (data.type === 'text') {
9258
+ console.log(data);
9248
9259
  var _C = data.fill;
9260
+ // if (data.fill === previousColor || data.stroke === previousColor) {
9249
9261
  if (_C === previousColor) {
9250
9262
  data.set({
9251
9263
  fill: color,
9264
+ // stroke:color,
9265
+ // colorFill: { layer0: color ,layer1: color },
9252
9266
  colorFill: {
9253
9267
  layer0: color
9254
9268
  }