Browse Source

image size adjust

master
cailean 2 hours ago
parent
commit
a3f2cf5d96
  1. 2
      js/Content.js

2
js/Content.js

@ -175,7 +175,7 @@ export class ImageContent extends Content {
(texture) => { (texture) => {
this.texture = texture; this.texture = texture;
const aspect = texture.image.width / texture.image.height; const aspect = texture.image.width / texture.image.height;
const maxWidth = 6; const maxWidth = 4.5;
const height = 4; const height = 4;
let width = height * aspect; let width = height * aspect;
if (width > maxWidth) { if (width > maxWidth) {

Loading…
Cancel
Save