ol 6.14.2-dev.1657087552593 → 6.14.2-dev.1657087675342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/worker/version.js +1 -1
- package/src/worker/webgl.js +1 -1
- package/util.js +1 -1
- package/worker/version.js +1 -1
- package/worker/version.js.map +1 -1
- package/worker/webgl.js +1 -1
- package/worker/webgl.js.map +1 -1
package/package.json
CHANGED
package/src/worker/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
export function create() {
|
|
3
|
-
const source = "
|
|
3
|
+
const source = "const e=self;e.onmessage=s=>{console.log(\"version worker received message:\",s.data),e.postMessage(\"version: latest\")};";
|
|
4
4
|
return new Worker(typeof Blob === 'undefined'
|
|
5
5
|
? 'data:application/javascript;base64,' + Buffer.from(source, 'binary').toString('base64')
|
|
6
6
|
: URL.createObjectURL(new Blob([source], {type: 'application/javascript'})));
|
package/src/worker/webgl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
export function create() {
|
|
3
|
-
const source = "
|
|
3
|
+
const source = "const e=\"function\"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError(\"Cannot convert undefined or null to object\");const t=Object(e);for(let e=1,n=arguments.length;e<n;++e){const n=arguments[e];if(null!=n)for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}return t},n=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\";n.indexOf(\"firefox\");-1!==n.indexOf(\"safari\")&&-1==n.indexOf(\"chrom\")&&(n.indexOf(\"version/15.4\")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf(\"webkit\")&&n.indexOf(\"edge\"),n.indexOf(\"macintosh\"),\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){let e=!1;try{const n=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"_\",null,n),window.removeEventListener(\"_\",null,n)}catch(e){}}(),new Array(6);const t=\"GENERATE_BUFFERS\",o=[],r={vertexPosition:0,indexPosition:0};function i(e,n,t,o,r){e[n+0]=t,e[n+1]=o,e[n+2]=r}function s(e,n,t,s,f,c){const l=3+f,a=e[n+0],u=e[n+1],d=o;d.length=f;for(let t=0;t<d.length;t++)d[t]=e[n+2+t];let g=c?c.vertexPosition:0,x=c?c.indexPosition:0;const h=g/l;return i(t,g,a,u,0),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,1),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,2),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,3),d.length&&t.set(d,g+3),g+=l,s[x++]=h,s[x++]=h+1,s[x++]=h+3,s[x++]=h+1,s[x++]=h+2,s[x++]=h+3,r.vertexPosition=g,r.indexPosition=x,r}const f=self;f.onmessage=n=>{const o=n.data;if(o.type===t){const n=3,t=2,r=o.customAttributesCount,i=t+r,c=new Float32Array(o.renderInstructions),l=c.length/i,a=4*l*(r+n),u=new Uint32Array(6*l),d=new Float32Array(a);let g;for(let e=0;e<c.length;e+=i)g=s(c,e,d,u,r,g);const x=e({vertexBuffer:d.buffer,indexBuffer:u.buffer,renderInstructions:c.buffer},o);f.postMessage(x,[d.buffer,u.buffer,c.buffer])}};";
|
|
4
4
|
return new Worker(typeof Blob === 'undefined'
|
|
5
5
|
? 'data:application/javascript;base64,' + Buffer.from(source, 'binary').toString('base64')
|
|
6
6
|
: URL.createObjectURL(new Blob([source], {type: 'application/javascript'})));
|
package/util.js
CHANGED
package/worker/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function create() {
|
|
2
|
-
var source = "
|
|
2
|
+
var source = "const e=self;e.onmessage=s=>{console.log(\"version worker received message:\",s.data),e.postMessage(\"version: latest\")};";
|
|
3
3
|
return new Worker(typeof Blob === 'undefined'
|
|
4
4
|
? 'data:application/javascript;base64,' + Buffer.from(source, 'binary').toString('base64')
|
|
5
5
|
: URL.createObjectURL(new Blob([source], { type: 'application/javascript' })));
|
package/worker/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/worker/version.js"],"names":[],"mappings":"AACQ,MAAM,UAAU,MAAM;IACpB,IAAM,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/worker/version.js"],"names":[],"mappings":"AACQ,MAAM,UAAU,MAAM;IACpB,IAAM,MAAM,GAAG,4HAA4H,CAAC;IAC5I,OAAO,IAAI,MAAM,CAAC,OAAO,IAAI,KAAK,WAAW;QAC3C,CAAC,CAAC,qCAAqC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC1F,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAC,CAAC,CAAC,CAAC,CAAC;AACjF,CAAC"}
|
package/worker/webgl.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function create() {
|
|
2
|
-
var source = "
|
|
2
|
+
var source = "const e=\"function\"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError(\"Cannot convert undefined or null to object\");const t=Object(e);for(let e=1,n=arguments.length;e<n;++e){const n=arguments[e];if(null!=n)for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}return t},n=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\";n.indexOf(\"firefox\");-1!==n.indexOf(\"safari\")&&-1==n.indexOf(\"chrom\")&&(n.indexOf(\"version/15.4\")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf(\"webkit\")&&n.indexOf(\"edge\"),n.indexOf(\"macintosh\"),\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){let e=!1;try{const n=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"_\",null,n),window.removeEventListener(\"_\",null,n)}catch(e){}}(),new Array(6);const t=\"GENERATE_BUFFERS\",o=[],r={vertexPosition:0,indexPosition:0};function i(e,n,t,o,r){e[n+0]=t,e[n+1]=o,e[n+2]=r}function s(e,n,t,s,f,c){const l=3+f,a=e[n+0],u=e[n+1],d=o;d.length=f;for(let t=0;t<d.length;t++)d[t]=e[n+2+t];let g=c?c.vertexPosition:0,x=c?c.indexPosition:0;const h=g/l;return i(t,g,a,u,0),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,1),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,2),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,3),d.length&&t.set(d,g+3),g+=l,s[x++]=h,s[x++]=h+1,s[x++]=h+3,s[x++]=h+1,s[x++]=h+2,s[x++]=h+3,r.vertexPosition=g,r.indexPosition=x,r}const f=self;f.onmessage=n=>{const o=n.data;if(o.type===t){const n=3,t=2,r=o.customAttributesCount,i=t+r,c=new Float32Array(o.renderInstructions),l=c.length/i,a=4*l*(r+n),u=new Uint32Array(6*l),d=new Float32Array(a);let g;for(let e=0;e<c.length;e+=i)g=s(c,e,d,u,r,g);const x=e({vertexBuffer:d.buffer,indexBuffer:u.buffer,renderInstructions:c.buffer},o);f.postMessage(x,[d.buffer,u.buffer,c.buffer])}};";
|
|
3
3
|
return new Worker(typeof Blob === 'undefined'
|
|
4
4
|
? 'data:application/javascript;base64,' + Buffer.from(source, 'binary').toString('base64')
|
|
5
5
|
: URL.createObjectURL(new Blob([source], { type: 'application/javascript' })));
|
package/worker/webgl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl.js","sourceRoot":"","sources":["../src/worker/webgl.js"],"names":[],"mappings":"AACQ,MAAM,UAAU,MAAM;IACpB,IAAM,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"webgl.js","sourceRoot":"","sources":["../src/worker/webgl.js"],"names":[],"mappings":"AACQ,MAAM,UAAU,MAAM;IACpB,IAAM,MAAM,GAAG,o3DAAo3D,CAAC;IACp4D,OAAO,IAAI,MAAM,CAAC,OAAO,IAAI,KAAK,WAAW;QAC3C,CAAC,CAAC,qCAAqC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC1F,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAC,CAAC,CAAC,CAAC,CAAC;AACjF,CAAC"}
|