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

Removing artoolkitNFT as a global variable (part 2) #283

Merged
merged 12 commits into from
Feb 27, 2023
2 changes: 1 addition & 1 deletion dist/ARToolkitNFT.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ARToolkitNFT_simd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ARControllerNFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export default class ARControllerNFT implements AbstractARControllerNFT {
q += 4;
}
} else if (this.grayscaleEnabled == true) {
this.videoLuma.set(this.grayscaleSource);
Copy link
Member Author

@kalwalt kalwalt Feb 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can't understand why this will make fail, with an out bounds error. I will investigate.

this.videoLuma = this.grayscaleSource;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/ARControllerNFT_simd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export default class ARControllerNFT implements AbstractARControllerNFT {
q += 4;
}
} else if (this.grayscaleEnabled == true) {
this.videoLuma.set(this.grayscaleSource);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as bove.

this.videoLuma = this.grayscaleSource;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/index_simd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*
*/
import ARToolkitNFT from "./ARToolkitNFT_simd";
import ARControllerNFT from "./ARControllerNFT";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was exporting the wrong lib here! it wasn't using simd at all...

import ARControllerNFT from "./ARControllerNFT_simd";

export default {
ARToolkitNFT,
Expand Down
2 changes: 1 addition & 1 deletion types/src/index_simd.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ARToolkitNFT from "./ARToolkitNFT_simd";
import ARControllerNFT from "./ARControllerNFT";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

import ARControllerNFT from "./ARControllerNFT_simd";
declare const _default: {
ARToolkitNFT: typeof ARToolkitNFT;
ARControllerNFT: typeof ARControllerNFT;
Expand Down