Skip to content

Commit

Permalink
Merge pull request #180 from webarkit/dev
Browse files Browse the repository at this point in the history
latest from dev (SIMD fixes)
  • Loading branch information
kalwalt authored Jun 29, 2022
2 parents 211bbaa + 9c63804 commit 1d650bd
Show file tree
Hide file tree
Showing 28 changed files with 4,640 additions and 3,913 deletions.
4,905 changes: 2,451 additions & 2,454 deletions build/artoolkitNFT.debug.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions build/artoolkitNFT.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/artoolkitNFT_ES6_wasm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/artoolkitNFT_ES6_wasm.simd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/artoolkitNFT_wasm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/artoolkitNFT_wasm.simd.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/ARToolkitNFT.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/ARToolkitNFT.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3 changes: 2 additions & 1 deletion dist/ARToolkitNFT_simd.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/ARToolkitNFT_simd.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2 changes: 1 addition & 1 deletion js/artoolkitNFT.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
this._bwpointer = undefined;
this._lumaCtx = undefined;

this.version = '1.1.3';
this.version = '1.1.4';
console.info('JsartoolkitNFT ', this.version);

if (typeof cameraPara === 'string') {
Expand Down
35 changes: 23 additions & 12 deletions js/artoolkitNFT.multi_worker.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
var browser = (function() {
var test = function(regexp) {return regexp.test(navigator.userAgent)}
var browser = (function () {
var test = function (regexp) {
return regexp.test(navigator.userAgent);
};
switch (true) {
case test(/edg/i): return "Microsoft Edge";
case test(/trident/i): return "Microsoft Internet Explorer";
case test(/firefox|fxios/i): return "Mozilla Firefox";
case test(/opr\//i): return "Opera";
case test(/ucbrowser/i): return "UC Browser";
case test(/samsungbrowser/i): return "Samsung Browser";
case test(/chrome|chromium|crios/i): return "Google Chrome";
case test(/safari/i): return "Apple Safari";
default: return "Other";
case test(/edg/i):
return "Microsoft Edge";
case test(/trident/i):
return "Microsoft Internet Explorer";
case test(/firefox|fxios/i):
return "Mozilla Firefox";
case test(/opr\//i):
return "Opera";
case test(/ucbrowser/i):
return "UC Browser";
case test(/samsungbrowser/i):
return "Samsung Browser";
case test(/chrome|chromium|crios/i):
return "Google Chrome";
case test(/safari/i):
return "Apple Safari";
default:
return "Other";
}
})();

if(browser == "Apple Safari") {
if (browser == "Apple Safari") {
importScripts("../build/artoolkitNFT_wasm.js");
} else {
importScripts("../build/artoolkitNFT_wasm.simd.js");
Expand Down
35 changes: 23 additions & 12 deletions js/artoolkitNFT.worker.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
var browser = (function() {
var test = function(regexp) {return regexp.test(navigator.userAgent)}
var browser = (function () {
var test = function (regexp) {
return regexp.test(navigator.userAgent);
};
switch (true) {
case test(/edg/i): return "Microsoft Edge";
case test(/trident/i): return "Microsoft Internet Explorer";
case test(/firefox|fxios/i): return "Mozilla Firefox";
case test(/opr\//i): return "Opera";
case test(/ucbrowser/i): return "UC Browser";
case test(/samsungbrowser/i): return "Samsung Browser";
case test(/chrome|chromium|crios/i): return "Google Chrome";
case test(/safari/i): return "Apple Safari";
default: return "Other";
case test(/edg/i):
return "Microsoft Edge";
case test(/trident/i):
return "Microsoft Internet Explorer";
case test(/firefox|fxios/i):
return "Mozilla Firefox";
case test(/opr\//i):
return "Opera";
case test(/ucbrowser/i):
return "UC Browser";
case test(/samsungbrowser/i):
return "Samsung Browser";
case test(/chrome|chromium|crios/i):
return "Google Chrome";
case test(/safari/i):
return "Apple Safari";
default:
return "Other";
}
})();

if(browser == "Apple Safari") {
if (browser == "Apple Safari") {
importScripts("../build/artoolkitNFT_wasm.js");
} else {
importScripts("../build/artoolkitNFT_wasm.simd.js");
Expand Down
35 changes: 23 additions & 12 deletions js/artoolkitNFT_ES6.worker.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
var browser = (function() {
var test = function(regexp) {return regexp.test(navigator.userAgent)}
var browser = (function () {
var test = function (regexp) {
return regexp.test(navigator.userAgent);
};
switch (true) {
case test(/edg/i): return "Microsoft Edge";
case test(/trident/i): return "Microsoft Internet Explorer";
case test(/firefox|fxios/i): return "Mozilla Firefox";
case test(/opr\//i): return "Opera";
case test(/ucbrowser/i): return "UC Browser";
case test(/samsungbrowser/i): return "Samsung Browser";
case test(/chrome|chromium|crios/i): return "Google Chrome";
case test(/safari/i): return "Apple Safari";
default: return "Other";
case test(/edg/i):
return "Microsoft Edge";
case test(/trident/i):
return "Microsoft Internet Explorer";
case test(/firefox|fxios/i):
return "Mozilla Firefox";
case test(/opr\//i):
return "Opera";
case test(/ucbrowser/i):
return "UC Browser";
case test(/samsungbrowser/i):
return "Samsung Browser";
case test(/chrome|chromium|crios/i):
return "Google Chrome";
case test(/safari/i):
return "Apple Safari";
default:
return "Other";
}
})();

if(browser == "Apple Safari") {
if (browser == "Apple Safari") {
importScripts("../dist/ARToolkitNFT.js");
} else {
importScripts("../dist/ARToolkitNFT_simd.js");
Expand Down
35 changes: 23 additions & 12 deletions js/artoolkitNFT_multi_ES6.worker.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
var browser = (function() {
var test = function(regexp) {return regexp.test(navigator.userAgent)}
var browser = (function () {
var test = function (regexp) {
return regexp.test(navigator.userAgent);
};
switch (true) {
case test(/edg/i): return "Microsoft Edge";
case test(/trident/i): return "Microsoft Internet Explorer";
case test(/firefox|fxios/i): return "Mozilla Firefox";
case test(/opr\//i): return "Opera";
case test(/ucbrowser/i): return "UC Browser";
case test(/samsungbrowser/i): return "Samsung Browser";
case test(/chrome|chromium|crios/i): return "Google Chrome";
case test(/safari/i): return "Apple Safari";
default: return "Other";
case test(/edg/i):
return "Microsoft Edge";
case test(/trident/i):
return "Microsoft Internet Explorer";
case test(/firefox|fxios/i):
return "Mozilla Firefox";
case test(/opr\//i):
return "Opera";
case test(/ucbrowser/i):
return "UC Browser";
case test(/samsungbrowser/i):
return "Samsung Browser";
case test(/chrome|chromium|crios/i):
return "Google Chrome";
case test(/safari/i):
return "Apple Safari";
default:
return "Other";
}
})();

if(browser == "Apple Safari") {
if (browser == "Apple Safari") {
importScripts("../dist/ARToolkitNFT.js");
} else {
importScripts("../dist/ARToolkitNFT_simd.js");
Expand Down
Loading

0 comments on commit 1d650bd

Please sign in to comment.