Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
v1.1.2 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwojcik authored May 15, 2019
1 parent db7c128 commit 663bcc9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions dist/js/tridi.js

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

2 changes: 1 addition & 1 deletion dist/js/tridi.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/tridi.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/tridi.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tridi",
"version": "1.1.1",
"version": "1.1.2",
"description": "JavaScript 360 3D Product Viewer",
"main": "dist/js/tridi.min.js",
"types": "dist/js/tridi.min.d.ts",
Expand Down
12 changes: 6 additions & 6 deletions src/tridi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Tridi v1.1.1 - JavaScript 360 3D Product Viewer
Tridi v1.1.2 - JavaScript 360 3D Product Viewer
Author: Lukasz Wojcik
License: MIT
Homepage: https://tridi.lukem.net
Expand Down Expand Up @@ -407,10 +407,10 @@ class Tridi {
callback: Function
) {
const img = new Image();
img.src = imageSrc;
img.onload = callback.bind(this);
img.className += `tridi-image tridi-image-${index + 1}`;
img.src = imageSrc;
stash.innerHTML += img.outerHTML;
img.onload = callback.bind(this);
}

private populateStash() {
Expand All @@ -432,15 +432,15 @@ class Tridi {
private generateViewerImage() {
const viewer = this.viewer();
const viewerImage = new Image();
viewerImage.src = this.image(1);
/* istanbul ignore next */
viewerImage.onload = () => this.trigger('onViewerImageGenerate');
viewerImage.className += `tridi-viewer-image tridi-${
this.elementName
}-viewer-image`;
viewerImage.setAttribute("draggable", "false");
viewerImage.setAttribute("alt", "");
viewerImage.src = this.image(1);
viewer.innerHTML = `${viewerImage.outerHTML}${viewer.innerHTML}`;
/* istanbul ignore next */
viewerImage.onload = () => this.trigger('onViewerImageGenerate');
}

private updateViewerImage(whichImage: number) {
Expand Down

0 comments on commit 663bcc9

Please sign in to comment.