diff --git a/JsVotable.min.js b/JsVotable.min.js index ff73098..98226ba 100644 --- a/JsVotable.min.js +++ b/JsVotable.min.js @@ -17,4 +17,4 @@ * along with JVotable. If not, see . ******************************************************************************/ -!function(){function t(t){"use strict";var e,r,n;return e=new ArrayBuffer(2),r=new DataView(e),n=t.join(""),r.setUint16(0,parseInt(n,2)),r.getInt16(0)}function e(t){"use strict";var e,r,n;return e=new ArrayBuffer(4),r=new DataView(e),n=t.join(""),r.setUint32(0,parseInt(n,2)),r.getInt32(0)}function r(t){"use strict";var e,r,n;return e=new ArrayBuffer(4),r=new DataView(e),n=t.join(""),r.setUint32(0,parseInt(n,2)),r.getFloat32(0)}function n(t){"use strict";var e,r,n;return e=new ArrayBuffer(8),r=new DataView(e),n=t.slice(0,32).join(""),r.setUint32(0,parseInt(n,2)),n="",n=t.slice(32,64).join(""),r.setUint32(4,parseInt(n,2)),r.getFloat64(0)}function o(t){"use strict";var e,r,n;return e=new ArrayBuffer(1),r=new DataView(e),n=t.join(""),r.setUint8(0,parseInt(n,2)),r.getUint8(0)}function s(t){"use strict";var e,r,n,i,s;for(e=t.length/8,r=[],s="",i=0,n=0;n64&&t<91?e=t-65:t>96&&t<123?e=t-71:t>47&&t<58?e=t+4:43===t?e=62:47===t&&(e=63),e}function c(t){function e(t){var e,r=t.getDefinitions();return null!=r&&(e=r.getCoosyss()[0]),null!=t.getCoosyss()[0]&&(e=t.getCoosyss()[0]),e}var r={type:"FeatureCollection",features:[]},n=e(t);null!=n&&(r.crs={type:"name",properties:{name:n}});for(var o=[],i=t.getResources(),s=0;s0;a>>=1)r.length!==t?r.push((s&a)===a?"1":"0"):this.bufferTabBits.push((s&a)===a?"1":"0");this.ptrStream+=1}return r},_.prototype.decodeValue=function(i,a,u,c){var p,h=[];switch("NULL"!=i&&(h=this.streamB64(a,c)),i){case"short":p=t(h);break;case"int":p=e(h);break;case"float":p=r(h),p=p.toFixed(this.fields[u].precision());break;case"double":p=n(h),p=p.toFixed(this.fields[u].precision());break;case"unsignedByte":p=o(h);break;case"char":p=s(h);break;case"NULL":p="NULL"}return"NaN"!==p&&"NULL"!==p&&0!==p||(p=""),p},_.prototype.decode=function(t){var e=[],r=0,n=t.length,o=this.fields.length,i=[];do{var s=this.fields[r].datatype(),a=this.computeDataSize(s,r,t);0==a&&(s="NULL");var u=this.decodeValue(s,a,r,t);i.push(u),r===o-1?(r=0,e.push(i),i=[]):r+=1}while(this.ptrStream64&&t<91?e=t-65:t>96&&t<123?e=t-71:t>47&&t<58?e=t+4:43===t?e=62:47===t&&(e=63),e}function c(t){function e(t){var e,r=t.getDefinitions();return null!=r&&(e=r.getCoosyss()[0]),null!=t.getCoosyss()[0]&&(e=t.getCoosyss()[0]),e}var r={type:"FeatureCollection",features:[]},n=e(t);null!=n&&(r.crs={type:"name",properties:{name:n}});for(var o=[],i=t.getResources(),s=0;s0;a>>=1)r.length!==t?r.push((s&a)===a?"1":"0"):this.bufferTabBits.push((s&a)===a?"1":"0");this.ptrStream+=1}return r},_.prototype.decodeValue=function(i,a,u,c){var p,h=[];switch("NULL"!=i&&(h=this.streamB64(a,c)),i){case"short":p=t(h);break;case"int":p=e(h);break;case"float":p=r(h),p=p.toFixed(this.fields[u].precision());break;case"double":p=n(h),p=p.toFixed(this.fields[u].precision());break;case"unsignedByte":p=o(h);break;case"char":p=s(h);break;case"NULL":p="NULL"}return"NaN"!==p&&"NULL"!==p&&0!==p||(p=""),p},_.prototype.decode=function(t){var e=[],r=0,n=t.length,o=this.fields.length,i=[];do{var s=this.fields[r].datatype(),a=this.computeDataSize(s,r,t);0==a&&(s="NULL");var u=this.decodeValue(s,a,r,t);i.push(u),r===o-1?(r=0,e.push(i),i=[]):r+=1}while(this.ptrStream