...
Code Block | ||
---|---|---|
| ||
let price = 10; let smallestDimesion = Math.min(model.wh, model.hw, model.wd); let biggestDimension = Math.max(model.wh, model.hw, model.wd); let aspectRatio = biggestDimension / smallestDimesion; if (aspectRatio > 10) { // If there is a high aspect ratio, activate manual pricing // by setting a very high price price = 9999999999; } price; |
...