Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thanks for your great library. I am using Photon Along with Stencil JS to give lighting to the custom 3D components. I am getting below issue. #12

Open
SenthilKumaranC opened this issue Sep 2, 2019 · 1 comment

Comments

@SenthilKumaranC
Copy link

SenthilKumaranC commented Sep 2, 2019

ReferenceError: point is not defined
at FirminCSSMatrix.setMatrixValue (awesome-3d.entry.js:371)
at new FirminCSSMatrix (awesome-3d.entry.js:342)
at Object.buildMatrix (awesome-3d.entry.js:88)
at Photon.Face.getRotations (awesome-3d.entry.js:92)
at new Photon.Face (awesome-3d.entry.js:91)
at Awesome3DComponent.componentDidLoad (awesome-3d.entry.j

`face1: HTMLElement;

face2: HTMLElement;

face3: HTMLElement;

photonFace1;
photonFace2;
photonFace3;

constructor() {

}

componentDidLoad() {
this.light = new (Photon as any).Light();
this.photonFace1 = new (Photon as any).Face(this.face1);
this.photonFace2 = new (Photon as any).Face(this.face2);
this.photonFace3 = new (Photon as any).Face(this.face3);
}

componentDidUpdate() {
console.log(this.photonFace1)
this.photonFace1.render(this.light);
this.photonFace2.render(this.light);
this.photonFace3.render(this.light);
}`

@SenthilKumaranC
Copy link
Author

SenthilKumaranC commented Sep 2, 2019

Hi I have found the problem , looks like many variables are not declared in minified js.

I have directly included in index.html , now no problem.

Is it possible to share typescript version of your library?

@SenthilKumaranC SenthilKumaranC changed the title Using Photon Along with Stencil JS to give lighting to the custom 3D components. I am getting below issue. Thanks for your great library. I m using Photon Along with Stencil JS to give lighting to the custom 3D components. I am getting below issue. Sep 2, 2019
@SenthilKumaranC SenthilKumaranC changed the title Thanks for your great library. I m using Photon Along with Stencil JS to give lighting to the custom 3D components. I am getting below issue. Thanks for your great library. I am using Photon Along with Stencil JS to give lighting to the custom 3D components. I am getting below issue. Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant