This commit is contained in:
franknstayn
2022-04-02 21:03:53 +08:00
parent c0f9ea76f7
commit 0a314d2d64
2 changed files with 119 additions and 87 deletions

View File

@@ -496,7 +496,7 @@
function frontContent(fb_height, fb_width, fb_x, fb_y){
var objects = frontCanvas.getObjects();
console.log(objects)
// console.log(objects)
try{
var p_number = '{{ $order_item_array[0]->Number }}';
for (var j in objects) {
@@ -845,8 +845,9 @@
//Your scale factor is 2.172 (1086/500 = 2.172) or 2.13 (639/300 = 2.13) to be more precise.
// X = WIDTH and Y = HEIGHT
if(side == "Front" || side == "Back"){
var SCALE_FACTOR_X = actualSizeX / 222;
var SCALE_FACTOR_Y = actualSizeY / 380;
// width="157.936px" height="173.727px" // hoodie
var SCALE_FACTOR_X = actualSizeX / 157.936;
var SCALE_FACTOR_Y = actualSizeY / 173.727;
}
if(side == "Right" || side == "Left"){