Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
Signed-off-by: Hannah Bollar <github@hannahbollar.com>
  • Loading branch information
hanbollar committed Feb 13, 2024
1 parent 6b7927e commit cd0fc10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/mr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/core/entities/MRImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class MRImage extends MRDivEntity {
this.shadowRoot.appendChild(this.img);

this.imageObject3DFitDimensions = { height: 0, width: 0 };
this.computeImageFitDimensions();
this.computeImageObject3DFitDimensions();

// first creation of the object3D geometry. dispose is not needed but adding just in case.
if (this.object3D.geometry !== undefined) {
Expand All @@ -91,7 +91,7 @@ export class MRImage extends MRDivEntity {
super.mutated();
if (mutation.type != 'attributes' && mutation.attributeName == 'src') {
this.img.setAttribute('src', this.getAttribute('src'));
this.computeImageFitDimensions();
this.computeImageObject3DFitDimensions();

mrjsUtils.material
.loadTextureAsync(this.img.src)
Expand Down

0 comments on commit cd0fc10

Please sign in to comment.