111
This commit is contained in:
@@ -1179,6 +1179,7 @@ backgroundObject.scaleY,'CanvasManager resetCanvasSizeByFixedLayer')
|
||||
blendMode: v.globalCompositeOperation,
|
||||
gapX: 0,// 平铺模式下的间距
|
||||
gapY: 0,// 平铺模式下的间距
|
||||
fill_repeat: "",
|
||||
}
|
||||
}
|
||||
let left = (v.left - (flLeft - flWidth * flScaleX / 2));
|
||||
@@ -1222,6 +1223,7 @@ backgroundObject.scaleY,'CanvasManager resetCanvasSizeByFixedLayer')
|
||||
obj.location = [left, top];
|
||||
obj.object.gapX = fill_.gapX;
|
||||
obj.object.gapY = fill_.gapY;
|
||||
obj.object.fill_repeat = fill.repeat;
|
||||
}
|
||||
if(sourceData.type === "print"){
|
||||
prints.push(obj);
|
||||
@@ -1730,6 +1732,7 @@ backgroundObject.scaleY,'CanvasManager resetCanvasSizeByFixedLayer')
|
||||
let flipX = false;
|
||||
let flipY = false;
|
||||
let blendMode = BlendMode.MULTIPLY;
|
||||
let fill_repeat = "repeat"
|
||||
if(item.object){
|
||||
top += item.object.top * flScaleY
|
||||
left += item.object.left * flScaleX
|
||||
@@ -1743,6 +1746,7 @@ backgroundObject.scaleY,'CanvasManager resetCanvasSizeByFixedLayer')
|
||||
gapX = item.object.gapX
|
||||
gapY = item.object.gapY
|
||||
fillSource = imageAddGapToCanvas(image, gapX, gapY);
|
||||
if(item.object.fill_repeat) fill_repeat = item.object.fill_repeat;
|
||||
}
|
||||
let rect = new fabric.Rect({
|
||||
id: id,
|
||||
@@ -1761,7 +1765,7 @@ backgroundObject.scaleY,'CanvasManager resetCanvasSizeByFixedLayer')
|
||||
globalCompositeOperation: blendMode,
|
||||
fill: new fabric.Pattern({
|
||||
source: fillSource,
|
||||
repeat: "repeat",
|
||||
repeat: fill_repeat,
|
||||
patternTransform: createPatternTransform(scale, item.angle || 0),
|
||||
offsetX: offsetX, // 水平偏移
|
||||
offsetY: offsetY, // 垂直偏移
|
||||
|
||||
Reference in New Issue
Block a user