@loaders.gl/schema 3.3.0-alpha.1 → 3.3.0-alpha.11
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/dist/category/common.d.ts +3 -3
- package/dist/category/common.d.ts.map +1 -1
- package/dist/category/gis.d.ts +23 -23
- package/dist/category/gis.d.ts.map +1 -1
- package/dist/category/image/image.d.ts +3 -3
- package/dist/category/image/image.d.ts.map +1 -1
- package/dist/category/mesh/convert-mesh.d.ts +1 -1
- package/dist/category/mesh/convert-mesh.d.ts.map +1 -1
- package/dist/category/mesh/mesh-types.d.ts +4 -4
- package/dist/category/mesh/mesh-types.d.ts.map +1 -1
- package/dist/category/mesh/mesh-utils.d.ts +2 -2
- package/dist/category/mesh/mesh-utils.d.ts.map +1 -1
- package/dist/category/table/table-types.d.ts +8 -8
- package/dist/category/table/table-types.d.ts.map +1 -1
- package/dist/category/texture/texture.d.ts +3 -3
- package/dist/category/texture/texture.d.ts.map +1 -1
- package/dist/es5/bundle.js +0 -1
- package/dist/es5/bundle.js.map +1 -1
- package/dist/es5/category/common.js.map +1 -1
- package/dist/es5/category/gis.js.map +1 -1
- package/dist/es5/category/image/image.js.map +1 -1
- package/dist/es5/category/mesh/convert-mesh.js +2 -12
- package/dist/es5/category/mesh/convert-mesh.js.map +1 -1
- package/dist/es5/category/mesh/deduce-mesh-schema.js +1 -10
- package/dist/es5/category/mesh/deduce-mesh-schema.js.map +1 -1
- package/dist/es5/category/mesh/mesh-to-arrow-table.js +2 -9
- package/dist/es5/category/mesh/mesh-to-arrow-table.js.map +1 -1
- package/dist/es5/category/mesh/mesh-types.js.map +1 -1
- package/dist/es5/category/mesh/mesh-utils.js +1 -6
- package/dist/es5/category/mesh/mesh-utils.js.map +1 -1
- package/dist/es5/category/table/deduce-table-schema.js +0 -11
- package/dist/es5/category/table/deduce-table-schema.js.map +1 -1
- package/dist/es5/category/table/table-types.js.map +1 -1
- package/dist/es5/category/texture/texture.js.map +1 -1
- package/dist/es5/index.js +100 -112
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/lib/arrow/arrow-like-type-utils.js +0 -10
- package/dist/es5/lib/arrow/arrow-like-type-utils.js.map +1 -1
- package/dist/es5/lib/arrow/arrow-type-utils.js +0 -19
- package/dist/es5/lib/arrow/arrow-type-utils.js.map +1 -1
- package/dist/es5/lib/arrow/get-type-info.js +0 -6
- package/dist/es5/lib/arrow/get-type-info.js.map +1 -1
- package/dist/es5/lib/batches/base-table-batch-aggregator.js +0 -13
- package/dist/es5/lib/batches/base-table-batch-aggregator.js.map +1 -1
- package/dist/es5/lib/batches/columnar-table-batch-aggregator.js +6 -23
- package/dist/es5/lib/batches/columnar-table-batch-aggregator.js.map +1 -1
- package/dist/es5/lib/batches/row-table-batch-aggregator.js +0 -13
- package/dist/es5/lib/batches/row-table-batch-aggregator.js.map +1 -1
- package/dist/es5/lib/batches/table-batch-aggregator.js.map +1 -1
- package/dist/es5/lib/batches/table-batch-builder.js +21 -37
- package/dist/es5/lib/batches/table-batch-builder.js.map +1 -1
- package/dist/es5/lib/schema/impl/enum.js +0 -1
- package/dist/es5/lib/schema/impl/enum.js.map +1 -1
- package/dist/es5/lib/schema/impl/field.js +0 -7
- package/dist/es5/lib/schema/impl/field.js.map +1 -1
- package/dist/es5/lib/schema/impl/schema.js +6 -35
- package/dist/es5/lib/schema/impl/schema.js.map +1 -1
- package/dist/es5/lib/schema/impl/type.js +74 -248
- package/dist/es5/lib/schema/impl/type.js.map +1 -1
- package/dist/es5/lib/schema/schema.js +70 -74
- package/dist/es5/lib/schema/schema.js.map +1 -1
- package/dist/es5/lib/schema-utils/deduce-column-type.js +0 -3
- package/dist/es5/lib/schema-utils/deduce-column-type.js.map +1 -1
- package/dist/es5/lib/utils/assert.js +0 -1
- package/dist/es5/lib/utils/assert.js.map +1 -1
- package/dist/es5/lib/utils/async-queue.js +10 -50
- package/dist/es5/lib/utils/async-queue.js.map +1 -1
- package/dist/es5/lib/utils/row-utils.js +1 -10
- package/dist/es5/lib/utils/row-utils.js.map +1 -1
- package/dist/es5/types.js.map +1 -1
- package/dist/esm/bundle.js +1 -1
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/category/common.js.map +1 -1
- package/dist/esm/category/gis.js.map +1 -1
- package/dist/esm/category/image/image.js.map +1 -1
- package/dist/esm/category/mesh/convert-mesh.js +1 -5
- package/dist/esm/category/mesh/convert-mesh.js.map +1 -1
- package/dist/esm/category/mesh/deduce-mesh-schema.js +2 -6
- package/dist/esm/category/mesh/deduce-mesh-schema.js.map +1 -1
- package/dist/esm/category/mesh/mesh-to-arrow-table.js +1 -3
- package/dist/esm/category/mesh/mesh-to-arrow-table.js.map +1 -1
- package/dist/esm/category/mesh/mesh-types.js.map +1 -1
- package/dist/esm/category/mesh/mesh-utils.js +3 -5
- package/dist/esm/category/mesh/mesh-utils.js.map +1 -1
- package/dist/esm/category/table/deduce-table-schema.js +2 -11
- package/dist/esm/category/table/deduce-table-schema.js.map +1 -1
- package/dist/esm/category/table/table-types.js.map +1 -1
- package/dist/esm/category/texture/texture.js.map +1 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/arrow/arrow-like-type-utils.js +0 -8
- package/dist/esm/lib/arrow/arrow-like-type-utils.js.map +1 -1
- package/dist/esm/lib/arrow/arrow-type-utils.js +0 -16
- package/dist/esm/lib/arrow/arrow-type-utils.js.map +1 -1
- package/dist/esm/lib/arrow/get-type-info.js +0 -3
- package/dist/esm/lib/arrow/get-type-info.js.map +1 -1
- package/dist/esm/lib/batches/base-table-batch-aggregator.js +0 -16
- package/dist/esm/lib/batches/base-table-batch-aggregator.js.map +1 -1
- package/dist/esm/lib/batches/columnar-table-batch-aggregator.js +0 -20
- package/dist/esm/lib/batches/columnar-table-batch-aggregator.js.map +1 -1
- package/dist/esm/lib/batches/row-table-batch-aggregator.js +0 -17
- package/dist/esm/lib/batches/row-table-batch-aggregator.js.map +1 -1
- package/dist/esm/lib/batches/table-batch-aggregator.js.map +1 -1
- package/dist/esm/lib/batches/table-batch-builder.js +4 -35
- package/dist/esm/lib/batches/table-batch-builder.js.map +1 -1
- package/dist/esm/lib/schema/impl/enum.js +2 -1
- package/dist/esm/lib/schema/impl/enum.js.map +1 -1
- package/dist/esm/lib/schema/impl/field.js +3 -10
- package/dist/esm/lib/schema/impl/field.js.map +1 -1
- package/dist/esm/lib/schema/impl/schema.js +9 -20
- package/dist/esm/lib/schema/impl/schema.js.map +1 -1
- package/dist/esm/lib/schema/impl/type.js +19 -113
- package/dist/esm/lib/schema/impl/type.js.map +1 -1
- package/dist/esm/lib/schema/schema.js +3 -1
- package/dist/esm/lib/schema/schema.js.map +1 -1
- package/dist/esm/lib/schema-utils/deduce-column-type.js +2 -2
- package/dist/esm/lib/schema-utils/deduce-column-type.js.map +1 -1
- package/dist/esm/lib/utils/assert.js +1 -0
- package/dist/esm/lib/utils/assert.js.map +1 -1
- package/dist/esm/lib/utils/async-queue.js +3 -25
- package/dist/esm/lib/utils/async-queue.js.map +1 -1
- package/dist/esm/lib/utils/row-utils.js +2 -8
- package/dist/esm/lib/utils/row-utils.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/batches/columnar-table-batch-aggregator.d.ts +1 -1
- package/dist/lib/batches/columnar-table-batch-aggregator.d.ts.map +1 -1
- package/dist/lib/batches/row-table-batch-aggregator.js +1 -1
- package/dist/lib/batches/table-batch-builder.d.ts +2 -2
- package/dist/lib/batches/table-batch-builder.d.ts.map +1 -1
- package/dist/lib/schema/impl/schema.d.ts +1 -1
- package/dist/lib/schema/impl/schema.d.ts.map +1 -1
- package/dist/lib/schema/impl/type.d.ts +4 -4
- package/dist/lib/schema/impl/type.d.ts.map +1 -1
- package/dist/lib/schema-utils/deduce-column-type.js +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -4
|
@@ -3,20 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getMeshSize = getMeshSize;
|
|
7
6
|
exports.getMeshBoundingBox = getMeshBoundingBox;
|
|
7
|
+
exports.getMeshSize = getMeshSize;
|
|
8
8
|
|
|
9
9
|
function getMeshSize(attributes) {
|
|
10
10
|
var size = 0;
|
|
11
|
-
|
|
12
11
|
for (var attributeName in attributes) {
|
|
13
12
|
var attribute = attributes[attributeName];
|
|
14
|
-
|
|
15
13
|
if (ArrayBuffer.isView(attribute)) {
|
|
16
14
|
size += attribute.byteLength * attribute.BYTES_PER_ELEMENT;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
return size;
|
|
21
18
|
}
|
|
22
19
|
|
|
@@ -29,7 +26,6 @@ function getMeshBoundingBox(attributes) {
|
|
|
29
26
|
var maxZ = -Infinity;
|
|
30
27
|
var positions = attributes.POSITION ? attributes.POSITION.value : [];
|
|
31
28
|
var len = positions && positions.length;
|
|
32
|
-
|
|
33
29
|
for (var i = 0; i < len; i += 3) {
|
|
34
30
|
var x = positions[i];
|
|
35
31
|
var y = positions[i + 1];
|
|
@@ -41,7 +37,6 @@ function getMeshBoundingBox(attributes) {
|
|
|
41
37
|
maxY = y > maxY ? y : maxY;
|
|
42
38
|
maxZ = z > maxZ ? z : maxZ;
|
|
43
39
|
}
|
|
44
|
-
|
|
45
40
|
return [[minX, minY, minZ], [maxX, maxY, maxZ]];
|
|
46
41
|
}
|
|
47
42
|
//# sourceMappingURL=mesh-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"mesh-utils.js","names":["getMeshSize","attributes","size","attributeName","attribute","ArrayBuffer","isView","byteLength","BYTES_PER_ELEMENT","getMeshBoundingBox","minX","Infinity","minY","minZ","maxX","maxY","maxZ","positions","POSITION","value","len","length","i","x","y","z"],"sources":["../../../../src/category/mesh/mesh-utils.ts"],"sourcesContent":["// Mesh category utilities\n// TODO - move to mesh category module, or to math.gl/geometry module\nimport {TypedArray} from '../../types';\nimport {MeshAttributes} from './mesh-types';\n\ntype TypedArrays = {[key: string]: TypedArray};\n\n/**\n * Holds an axis aligned bounding box\n * TODO - make sure AxisAlignedBoundingBox in math.gl/culling understands this format (or change this format)\n */\ntype BoundingBox = [[number, number, number], [number, number, number]];\n\n/**\n * Get number of vertices in mesh\n * @param attributes\n */\nexport function getMeshSize(attributes: TypedArrays): number {\n let size = 0;\n for (const attributeName in attributes) {\n const attribute = attributes[attributeName];\n if (ArrayBuffer.isView(attribute)) {\n // @ts-ignore DataView doesn't have BYTES_PER_ELEMENT\n size += attribute.byteLength * attribute.BYTES_PER_ELEMENT;\n }\n }\n return size;\n}\n\n/**\n * Get the (axis aligned) bounding box of a mesh\n * @param attributes\n * @returns array of two vectors representing the axis aligned bounding box\n */\n// eslint-disable-next-line complexity\nexport function getMeshBoundingBox(attributes: MeshAttributes): BoundingBox {\n let minX = Infinity;\n let minY = Infinity;\n let minZ = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n let maxZ = -Infinity;\n\n const positions = attributes.POSITION ? attributes.POSITION.value : [];\n const len = positions && positions.length;\n\n for (let i = 0; i < len; i += 3) {\n const x = positions[i];\n const y = positions[i + 1];\n const z = positions[i + 2];\n\n minX = x < minX ? x : minX;\n minY = y < minY ? y : minY;\n minZ = z < minZ ? z : minZ;\n\n maxX = x > maxX ? x : maxX;\n maxY = y > maxY ? y : maxY;\n maxZ = z > maxZ ? z : maxZ;\n }\n return [\n [minX, minY, minZ],\n [maxX, maxY, maxZ]\n ];\n}\n"],"mappings":";;;;;;;;AAiBO,SAASA,WAAW,CAACC,UAAuB,EAAU;EAC3D,IAAIC,IAAI,GAAG,CAAC;EACZ,KAAK,IAAMC,aAAa,IAAIF,UAAU,EAAE;IACtC,IAAMG,SAAS,GAAGH,UAAU,CAACE,aAAa,CAAC;IAC3C,IAAIE,WAAW,CAACC,MAAM,CAACF,SAAS,CAAC,EAAE;MAEjCF,IAAI,IAAIE,SAAS,CAACG,UAAU,GAAGH,SAAS,CAACI,iBAAiB;IAC5D;EACF;EACA,OAAON,IAAI;AACb;;AAQO,SAASO,kBAAkB,CAACR,UAA0B,EAAe;EAC1E,IAAIS,IAAI,GAAGC,QAAQ;EACnB,IAAIC,IAAI,GAAGD,QAAQ;EACnB,IAAIE,IAAI,GAAGF,QAAQ;EACnB,IAAIG,IAAI,GAAG,CAACH,QAAQ;EACpB,IAAII,IAAI,GAAG,CAACJ,QAAQ;EACpB,IAAIK,IAAI,GAAG,CAACL,QAAQ;EAEpB,IAAMM,SAAS,GAAGhB,UAAU,CAACiB,QAAQ,GAAGjB,UAAU,CAACiB,QAAQ,CAACC,KAAK,GAAG,EAAE;EACtE,IAAMC,GAAG,GAAGH,SAAS,IAAIA,SAAS,CAACI,MAAM;EAEzC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,GAAG,EAAEE,CAAC,IAAI,CAAC,EAAE;IAC/B,IAAMC,CAAC,GAAGN,SAAS,CAACK,CAAC,CAAC;IACtB,IAAME,CAAC,GAAGP,SAAS,CAACK,CAAC,GAAG,CAAC,CAAC;IAC1B,IAAMG,CAAC,GAAGR,SAAS,CAACK,CAAC,GAAG,CAAC,CAAC;IAE1BZ,IAAI,GAAGa,CAAC,GAAGb,IAAI,GAAGa,CAAC,GAAGb,IAAI;IAC1BE,IAAI,GAAGY,CAAC,GAAGZ,IAAI,GAAGY,CAAC,GAAGZ,IAAI;IAC1BC,IAAI,GAAGY,CAAC,GAAGZ,IAAI,GAAGY,CAAC,GAAGZ,IAAI;IAE1BC,IAAI,GAAGS,CAAC,GAAGT,IAAI,GAAGS,CAAC,GAAGT,IAAI;IAC1BC,IAAI,GAAGS,CAAC,GAAGT,IAAI,GAAGS,CAAC,GAAGT,IAAI;IAC1BC,IAAI,GAAGS,CAAC,GAAGT,IAAI,GAAGS,CAAC,GAAGT,IAAI;EAC5B;EACA,OAAO,CACL,CAACN,IAAI,EAAEE,IAAI,EAAEC,IAAI,CAAC,EAClB,CAACC,IAAI,EAAEC,IAAI,EAAEC,IAAI,CAAC,CACnB;AACH"}
|
|
@@ -9,41 +9,31 @@ function deduceTableSchema(table, schema) {
|
|
|
9
9
|
var deducedSchema = Array.isArray(table) ? deduceSchemaForRowTable(table) : deduceSchemaForColumnarTable(table);
|
|
10
10
|
return Object.assign(deducedSchema, schema);
|
|
11
11
|
}
|
|
12
|
-
|
|
13
12
|
function deduceSchemaForColumnarTable(columnarTable) {
|
|
14
13
|
var schema = {};
|
|
15
|
-
|
|
16
14
|
for (var field in columnarTable) {
|
|
17
15
|
var column = columnarTable[field];
|
|
18
|
-
|
|
19
16
|
if (ArrayBuffer.isView(column)) {
|
|
20
17
|
schema[field] = column.constructor;
|
|
21
18
|
} else if (column.length) {
|
|
22
19
|
var value = column[0];
|
|
23
20
|
schema[field] = deduceTypeFromValue(value);
|
|
24
21
|
}
|
|
25
|
-
|
|
26
22
|
schema[field] = schema[field] || null;
|
|
27
23
|
}
|
|
28
|
-
|
|
29
24
|
return schema;
|
|
30
25
|
}
|
|
31
|
-
|
|
32
26
|
function deduceSchemaForRowTable(rowTable) {
|
|
33
27
|
var schema = {};
|
|
34
|
-
|
|
35
28
|
if (rowTable.length) {
|
|
36
29
|
var row = rowTable[0];
|
|
37
|
-
|
|
38
30
|
for (var field in row) {
|
|
39
31
|
var value = row[field];
|
|
40
32
|
schema[field] = deduceTypeFromValue(value);
|
|
41
33
|
}
|
|
42
34
|
}
|
|
43
|
-
|
|
44
35
|
return schema;
|
|
45
36
|
}
|
|
46
|
-
|
|
47
37
|
function deduceTypeFromValue(value) {
|
|
48
38
|
if (value instanceof Date) {
|
|
49
39
|
return Date;
|
|
@@ -52,7 +42,6 @@ function deduceTypeFromValue(value) {
|
|
|
52
42
|
} else if (typeof value === 'string') {
|
|
53
43
|
return String;
|
|
54
44
|
}
|
|
55
|
-
|
|
56
45
|
return null;
|
|
57
46
|
}
|
|
58
47
|
//# sourceMappingURL=deduce-table-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"deduce-table-schema.js","names":["deduceTableSchema","table","schema","deducedSchema","Array","isArray","deduceSchemaForRowTable","deduceSchemaForColumnarTable","Object","assign","columnarTable","field","column","ArrayBuffer","isView","constructor","length","value","deduceTypeFromValue","rowTable","row","Date","Number","Float32Array","String"],"sources":["../../../../src/category/table/deduce-table-schema.ts"],"sourcesContent":["// Type deduction\nimport {\n Schema\n // Int,\n // Int8,\n // Int16,\n // Int32,\n // Uint8,\n // Uint16,\n // Uint32,\n // Float32,\n // Float64\n // Bool,\n // Utf8,\n // TimestampMillisecond,\n // Null\n} from '../../lib/schema/schema';\n\n// const TYPED_ARRAY_TO_TYPE = {\n// Int8Array: new Int8(),\n// Int16Array: new Int16(),\n// Int32Array: new Int32(),\n// Uint8Array: new Uint8(),\n// Uint8ClampedArray: new Uint8(),\n// Uint16Array: new Uint16(),\n// Uint32Array: new Uint32(),\n// Float32Array: new Float32(),\n// Float64Array: new Float64()\n// };\n\n// if (typeof BigInt64Array !== 'undefined') {\n// TYPED_ARRAY_TO_TYPE.BigInt64Array = new Int64();\n// TYPED_ARRAY_TO_TYPE.BigUint64Array = new Uint64();\n// }\n\n/**\n * SCHEMA SUPPORT - AUTODEDUCTION\n * @param {*} table\n * @param {*} schema\n * @returns\n */\nexport function deduceTableSchema(table, schema?: Schema) {\n const deducedSchema = Array.isArray(table)\n ? deduceSchemaForRowTable(table)\n : deduceSchemaForColumnarTable(table);\n // Deduced schema will fill in missing info from partial options.schema, if provided\n return Object.assign(deducedSchema, schema);\n}\n\nfunction deduceSchemaForColumnarTable(columnarTable) {\n const schema = {};\n for (const field in columnarTable) {\n const column = columnarTable[field];\n // Check if column is typed, if so we are done\n if (ArrayBuffer.isView(column)) {\n schema[field] = column.constructor;\n // else we need data\n } else if (column.length) {\n const value = column[0];\n schema[field] = deduceTypeFromValue(value);\n // TODO - support nested schemas?\n }\n // else we mark as present but unknow\n schema[field] = schema[field] || null;\n }\n return schema;\n}\n\nfunction deduceSchemaForRowTable(rowTable) {\n const schema = {};\n if (rowTable.length) {\n const row = rowTable[0];\n // TODO - Could look at additional rows if nulls in first row\n for (const field in row) {\n const value = row[field];\n schema[field] = deduceTypeFromValue(value);\n }\n }\n return schema;\n}\n\nfunction deduceTypeFromValue(value) {\n if (value instanceof Date) {\n return Date;\n } else if (value instanceof Number) {\n return Float32Array;\n } else if (typeof value === 'string') {\n return String;\n }\n return null;\n}\n\n/*\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction deduceSchema(rows) {\n const row = rows[0];\n\n const schema = {};\n let i = 0;\n for (const columnName in row) {\n const value = row[columnName];\n switch (typeof value) {\n case 'number':\n case 'boolean':\n // TODO - booleans could be handled differently...\n schema[columnName] = {name: String(columnName), index: i, type: Float32Array};\n break;\n\n case 'object':\n schema[columnName] = {name: String(columnName), index: i, type: Array};\n break;\n\n case 'string':\n default:\n schema[columnName] = {name: String(columnName), index: i, type: Array};\n // We currently only handle numeric rows\n // TODO we could offer a function to map strings to numbers?\n }\n i++;\n }\n return schema;\n}\n*/\n"],"mappings":";;;;;;;AAyCO,SAASA,iBAAiB,CAACC,KAAK,EAAEC,MAAe,EAAE;EACxD,IAAMC,aAAa,GAAGC,KAAK,CAACC,OAAO,CAACJ,KAAK,CAAC,GACtCK,uBAAuB,CAACL,KAAK,CAAC,GAC9BM,4BAA4B,CAACN,KAAK,CAAC;EAEvC,OAAOO,MAAM,CAACC,MAAM,CAACN,aAAa,EAAED,MAAM,CAAC;AAC7C;AAEA,SAASK,4BAA4B,CAACG,aAAa,EAAE;EACnD,IAAMR,MAAM,GAAG,CAAC,CAAC;EACjB,KAAK,IAAMS,KAAK,IAAID,aAAa,EAAE;IACjC,IAAME,MAAM,GAAGF,aAAa,CAACC,KAAK,CAAC;IAEnC,IAAIE,WAAW,CAACC,MAAM,CAACF,MAAM,CAAC,EAAE;MAC9BV,MAAM,CAACS,KAAK,CAAC,GAAGC,MAAM,CAACG,WAAW;IAEpC,CAAC,MAAM,IAAIH,MAAM,CAACI,MAAM,EAAE;MACxB,IAAMC,KAAK,GAAGL,MAAM,CAAC,CAAC,CAAC;MACvBV,MAAM,CAACS,KAAK,CAAC,GAAGO,mBAAmB,CAACD,KAAK,CAAC;IAE5C;IAEAf,MAAM,CAACS,KAAK,CAAC,GAAGT,MAAM,CAACS,KAAK,CAAC,IAAI,IAAI;EACvC;EACA,OAAOT,MAAM;AACf;AAEA,SAASI,uBAAuB,CAACa,QAAQ,EAAE;EACzC,IAAMjB,MAAM,GAAG,CAAC,CAAC;EACjB,IAAIiB,QAAQ,CAACH,MAAM,EAAE;IACnB,IAAMI,GAAG,GAAGD,QAAQ,CAAC,CAAC,CAAC;IAEvB,KAAK,IAAMR,KAAK,IAAIS,GAAG,EAAE;MACvB,IAAMH,KAAK,GAAGG,GAAG,CAACT,KAAK,CAAC;MACxBT,MAAM,CAACS,KAAK,CAAC,GAAGO,mBAAmB,CAACD,KAAK,CAAC;IAC5C;EACF;EACA,OAAOf,MAAM;AACf;AAEA,SAASgB,mBAAmB,CAACD,KAAK,EAAE;EAClC,IAAIA,KAAK,YAAYI,IAAI,EAAE;IACzB,OAAOA,IAAI;EACb,CAAC,MAAM,IAAIJ,KAAK,YAAYK,MAAM,EAAE;IAClC,OAAOC,YAAY;EACrB,CAAC,MAAM,IAAI,OAAON,KAAK,KAAK,QAAQ,EAAE;IACpC,OAAOO,MAAM;EACf;EACA,OAAO,IAAI;AACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"table-types.js","names":[],"sources":["../../../../src/category/table/table-types.ts"],"sourcesContent":["import type {Schema} from '../../lib/schema/schema';\nimport type {Table as ApacheArrowTable, RecordBatch} from 'apache-arrow/Arrow.dom';\nimport type {AnyArray} from '../../types';\nimport type {Batch} from '../common';\nimport type {Feature} from '../gis';\n\n/** A general table */\nexport interface Table {\n shape:\n | 'row-table'\n | 'array-row-table'\n | 'object-row-table'\n | 'geojson-row-table'\n | 'columnar-table'\n | 'arrow-table';\n schema?: Schema;\n schemaType?: 'explicit' | 'deduced';\n}\n\n/** A table organized as an array of rows */\nexport interface RowTable extends Table {\n shape: 'row-table' | 'array-row-table' | 'object-row-table' | 'geojson-row-table';\n data: any[];\n}\n\n/** A table organized as an array of rows, each row is an array of values */\nexport interface ArrayRowTable extends RowTable {\n shape: 'array-row-table';\n data: any[][];\n}\n\n/** A table organized as an array of rows, each row is an object mapping columns to values */\nexport interface ObjectRowTable extends RowTable {\n shape: 'object-row-table';\n data: {[columnName: string]: any}[];\n}\n\n/** A table organized as an array of rows, each row is a GeoJSON Feature */\nexport interface GeoJSONRowTable extends RowTable {\n shape: 'geojson-row-table';\n data: Feature[];\n}\n\n/** A table organized as a map of columns, each column is an array of value */\nexport interface ColumnarTable extends Table {\n shape: 'columnar-table';\n data: {[columnName: string]: AnyArray};\n}\n\n/** A table organized as an Apache Arrow table */\nexport interface ArrowTable extends Table {\n shape: 'arrow-table';\n data: ApacheArrowTable;\n}\n\n/** A collection of tables */\nexport type Tables<TableType extends Table = Table> = {\n shape: 'tables';\n tables: {name: string; table: TableType}[];\n};\n\n// Batches\n\n/** Batch for a general table */\nexport type TableBatch = Batch & {\n data: any;\n length: number;\n schema?: Schema;\n schemaType?: 'explicit' | 'deduced';\n};\n\n/** Batch for a table organized as an array of rows */\nexport type RowTableBatch = TableBatch & {\n shape: 'row-table';\n data: any[];\n};\n\n/** Batch for a table organized as an array of rows, each row is an array of values */\nexport type RowArrayTableBatch = RowTableBatch & {\n shape: 'array-row-table';\n data: any[][];\n};\n\n/** Batch for a table organized as an array of rows, each row is an object mapping columns to values */\nexport type RowObjectTableBatch = RowTableBatch & {\n shape: 'object-row-table';\n data: {[columnName: string]: any}[];\n};\n\n/** Batch for a table organized as an array of rows, each row is an array of values */\nexport type GeoJSONRowTableBatch = RowTableBatch & {\n shape: 'geojson-row-table';\n data: Feature[];\n};\n\n/** Batch for a table organized as a map of columns, each column is an array of value */\nexport type ColumnarTableBatch = TableBatch & {\n shape: 'columnar-table';\n data: {[columnName: string]: AnyArray};\n};\n\n/** Batch for a table organized as an Apache Arrow table */\nexport type ArrowTableBatch = TableBatch & {\n shape: 'arrow-table';\n data: RecordBatch;\n};\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"texture.js","names":[],"sources":["../../../../src/category/texture/texture.ts"],"sourcesContent":["import type {ImageType} from '../image/image';\n\n/**\n * These represent the main compressed texture formats\n * Each format typically has a number of more specific subformats\n */\nexport type GPUTextureFormat =\n | 'dxt'\n | 'dxt-srgb'\n | 'etc1'\n | 'etc2'\n | 'pvrtc'\n | 'atc'\n | 'astc'\n | 'rgtc';\n\n/** One mip level */\nexport type TextureLevel = {\n compressed: boolean;\n format?: number;\n data: Uint8Array;\n width: number;\n height: number;\n levelSize?: number;\n hasAlpha?: boolean;\n};\n\nexport type TextureOrImage = ImageType | (TextureLevel | ImageType);\n"],"mappings":""}
|
package/dist/es5/index.js
CHANGED
|
@@ -1,74 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _tableBatchBuilder.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "RowTableBatchAggregator", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _rowTableBatchAggregator.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "ColumnarTableBatchAggregator", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _columnarTableBatchAggregator.default;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "convertToObjectRow", {
|
|
7
|
+
Object.defineProperty(exports, "AsyncQueue", {
|
|
27
8
|
enumerable: true,
|
|
28
9
|
get: function get() {
|
|
29
|
-
return
|
|
10
|
+
return _asyncQueue.default;
|
|
30
11
|
}
|
|
31
12
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
13
|
+
Object.defineProperty(exports, "Binary", {
|
|
33
14
|
enumerable: true,
|
|
34
15
|
get: function get() {
|
|
35
|
-
return
|
|
16
|
+
return _schema.Binary;
|
|
36
17
|
}
|
|
37
18
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "Bool", {
|
|
39
20
|
enumerable: true,
|
|
40
21
|
get: function get() {
|
|
41
|
-
return
|
|
22
|
+
return _schema.Bool;
|
|
42
23
|
}
|
|
43
24
|
});
|
|
44
|
-
Object.defineProperty(exports, "
|
|
25
|
+
Object.defineProperty(exports, "ColumnarTableBatchAggregator", {
|
|
45
26
|
enumerable: true,
|
|
46
27
|
get: function get() {
|
|
47
|
-
return
|
|
28
|
+
return _columnarTableBatchAggregator.default;
|
|
48
29
|
}
|
|
49
30
|
});
|
|
50
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "DataType", {
|
|
51
32
|
enumerable: true,
|
|
52
33
|
get: function get() {
|
|
53
|
-
return
|
|
34
|
+
return _schema.DataType;
|
|
54
35
|
}
|
|
55
36
|
});
|
|
56
|
-
Object.defineProperty(exports, "
|
|
37
|
+
Object.defineProperty(exports, "Date", {
|
|
57
38
|
enumerable: true,
|
|
58
39
|
get: function get() {
|
|
59
|
-
return
|
|
40
|
+
return _schema.Date;
|
|
60
41
|
}
|
|
61
42
|
});
|
|
62
|
-
Object.defineProperty(exports, "
|
|
43
|
+
Object.defineProperty(exports, "DateDay", {
|
|
63
44
|
enumerable: true,
|
|
64
45
|
get: function get() {
|
|
65
|
-
return
|
|
46
|
+
return _schema.DateDay;
|
|
66
47
|
}
|
|
67
48
|
});
|
|
68
|
-
Object.defineProperty(exports, "
|
|
49
|
+
Object.defineProperty(exports, "DateMillisecond", {
|
|
69
50
|
enumerable: true,
|
|
70
51
|
get: function get() {
|
|
71
|
-
return _schema.
|
|
52
|
+
return _schema.DateMillisecond;
|
|
72
53
|
}
|
|
73
54
|
});
|
|
74
55
|
Object.defineProperty(exports, "Field", {
|
|
@@ -77,40 +58,40 @@ Object.defineProperty(exports, "Field", {
|
|
|
77
58
|
return _schema.Field;
|
|
78
59
|
}
|
|
79
60
|
});
|
|
80
|
-
Object.defineProperty(exports, "
|
|
61
|
+
Object.defineProperty(exports, "FixedSizeList", {
|
|
81
62
|
enumerable: true,
|
|
82
63
|
get: function get() {
|
|
83
|
-
return _schema.
|
|
64
|
+
return _schema.FixedSizeList;
|
|
84
65
|
}
|
|
85
66
|
});
|
|
86
|
-
Object.defineProperty(exports, "
|
|
67
|
+
Object.defineProperty(exports, "Float", {
|
|
87
68
|
enumerable: true,
|
|
88
69
|
get: function get() {
|
|
89
|
-
return _schema.
|
|
70
|
+
return _schema.Float;
|
|
90
71
|
}
|
|
91
72
|
});
|
|
92
|
-
Object.defineProperty(exports, "
|
|
73
|
+
Object.defineProperty(exports, "Float16", {
|
|
93
74
|
enumerable: true,
|
|
94
75
|
get: function get() {
|
|
95
|
-
return _schema.
|
|
76
|
+
return _schema.Float16;
|
|
96
77
|
}
|
|
97
78
|
});
|
|
98
|
-
Object.defineProperty(exports, "
|
|
79
|
+
Object.defineProperty(exports, "Float32", {
|
|
99
80
|
enumerable: true,
|
|
100
81
|
get: function get() {
|
|
101
|
-
return _schema.
|
|
82
|
+
return _schema.Float32;
|
|
102
83
|
}
|
|
103
84
|
});
|
|
104
|
-
Object.defineProperty(exports, "
|
|
85
|
+
Object.defineProperty(exports, "Float64", {
|
|
105
86
|
enumerable: true,
|
|
106
87
|
get: function get() {
|
|
107
|
-
return _schema.
|
|
88
|
+
return _schema.Float64;
|
|
108
89
|
}
|
|
109
90
|
});
|
|
110
|
-
Object.defineProperty(exports, "
|
|
91
|
+
Object.defineProperty(exports, "Int", {
|
|
111
92
|
enumerable: true,
|
|
112
93
|
get: function get() {
|
|
113
|
-
return _schema.
|
|
94
|
+
return _schema.Int;
|
|
114
95
|
}
|
|
115
96
|
});
|
|
116
97
|
Object.defineProperty(exports, "Int16", {
|
|
@@ -131,100 +112,100 @@ Object.defineProperty(exports, "Int64", {
|
|
|
131
112
|
return _schema.Int64;
|
|
132
113
|
}
|
|
133
114
|
});
|
|
134
|
-
Object.defineProperty(exports, "
|
|
115
|
+
Object.defineProperty(exports, "Int8", {
|
|
135
116
|
enumerable: true,
|
|
136
117
|
get: function get() {
|
|
137
|
-
return _schema.
|
|
118
|
+
return _schema.Int8;
|
|
138
119
|
}
|
|
139
120
|
});
|
|
140
|
-
Object.defineProperty(exports, "
|
|
121
|
+
Object.defineProperty(exports, "Interval", {
|
|
141
122
|
enumerable: true,
|
|
142
123
|
get: function get() {
|
|
143
|
-
return _schema.
|
|
124
|
+
return _schema.Interval;
|
|
144
125
|
}
|
|
145
126
|
});
|
|
146
|
-
Object.defineProperty(exports, "
|
|
127
|
+
Object.defineProperty(exports, "IntervalDayTime", {
|
|
147
128
|
enumerable: true,
|
|
148
129
|
get: function get() {
|
|
149
|
-
return _schema.
|
|
130
|
+
return _schema.IntervalDayTime;
|
|
150
131
|
}
|
|
151
132
|
});
|
|
152
|
-
Object.defineProperty(exports, "
|
|
133
|
+
Object.defineProperty(exports, "IntervalYearMonth", {
|
|
153
134
|
enumerable: true,
|
|
154
135
|
get: function get() {
|
|
155
|
-
return _schema.
|
|
136
|
+
return _schema.IntervalYearMonth;
|
|
156
137
|
}
|
|
157
138
|
});
|
|
158
|
-
Object.defineProperty(exports, "
|
|
139
|
+
Object.defineProperty(exports, "Null", {
|
|
159
140
|
enumerable: true,
|
|
160
141
|
get: function get() {
|
|
161
|
-
return _schema.
|
|
142
|
+
return _schema.Null;
|
|
162
143
|
}
|
|
163
144
|
});
|
|
164
|
-
Object.defineProperty(exports, "
|
|
145
|
+
Object.defineProperty(exports, "RowTableBatchAggregator", {
|
|
165
146
|
enumerable: true,
|
|
166
147
|
get: function get() {
|
|
167
|
-
return
|
|
148
|
+
return _rowTableBatchAggregator.default;
|
|
168
149
|
}
|
|
169
150
|
});
|
|
170
|
-
Object.defineProperty(exports, "
|
|
151
|
+
Object.defineProperty(exports, "Schema", {
|
|
171
152
|
enumerable: true,
|
|
172
153
|
get: function get() {
|
|
173
|
-
return _schema.
|
|
154
|
+
return _schema.Schema;
|
|
174
155
|
}
|
|
175
156
|
});
|
|
176
|
-
Object.defineProperty(exports, "
|
|
157
|
+
Object.defineProperty(exports, "Struct", {
|
|
177
158
|
enumerable: true,
|
|
178
159
|
get: function get() {
|
|
179
|
-
return _schema.
|
|
160
|
+
return _schema.Struct;
|
|
180
161
|
}
|
|
181
162
|
});
|
|
182
|
-
Object.defineProperty(exports, "
|
|
163
|
+
Object.defineProperty(exports, "TableBatchBuilder", {
|
|
183
164
|
enumerable: true,
|
|
184
165
|
get: function get() {
|
|
185
|
-
return
|
|
166
|
+
return _tableBatchBuilder.default;
|
|
186
167
|
}
|
|
187
168
|
});
|
|
188
|
-
Object.defineProperty(exports, "
|
|
169
|
+
Object.defineProperty(exports, "Time", {
|
|
189
170
|
enumerable: true,
|
|
190
171
|
get: function get() {
|
|
191
|
-
return _schema.
|
|
172
|
+
return _schema.Time;
|
|
192
173
|
}
|
|
193
174
|
});
|
|
194
|
-
Object.defineProperty(exports, "
|
|
175
|
+
Object.defineProperty(exports, "TimeMillisecond", {
|
|
195
176
|
enumerable: true,
|
|
196
177
|
get: function get() {
|
|
197
|
-
return _schema.
|
|
178
|
+
return _schema.TimeMillisecond;
|
|
198
179
|
}
|
|
199
180
|
});
|
|
200
|
-
Object.defineProperty(exports, "
|
|
181
|
+
Object.defineProperty(exports, "TimeSecond", {
|
|
201
182
|
enumerable: true,
|
|
202
183
|
get: function get() {
|
|
203
|
-
return _schema.
|
|
184
|
+
return _schema.TimeSecond;
|
|
204
185
|
}
|
|
205
186
|
});
|
|
206
|
-
Object.defineProperty(exports, "
|
|
187
|
+
Object.defineProperty(exports, "Timestamp", {
|
|
207
188
|
enumerable: true,
|
|
208
189
|
get: function get() {
|
|
209
|
-
return _schema.
|
|
190
|
+
return _schema.Timestamp;
|
|
210
191
|
}
|
|
211
192
|
});
|
|
212
|
-
Object.defineProperty(exports, "
|
|
193
|
+
Object.defineProperty(exports, "TimestampMicrosecond", {
|
|
213
194
|
enumerable: true,
|
|
214
195
|
get: function get() {
|
|
215
|
-
return _schema.
|
|
196
|
+
return _schema.TimestampMicrosecond;
|
|
216
197
|
}
|
|
217
198
|
});
|
|
218
|
-
Object.defineProperty(exports, "
|
|
199
|
+
Object.defineProperty(exports, "TimestampMillisecond", {
|
|
219
200
|
enumerable: true,
|
|
220
201
|
get: function get() {
|
|
221
|
-
return _schema.
|
|
202
|
+
return _schema.TimestampMillisecond;
|
|
222
203
|
}
|
|
223
204
|
});
|
|
224
|
-
Object.defineProperty(exports, "
|
|
205
|
+
Object.defineProperty(exports, "TimestampNanosecond", {
|
|
225
206
|
enumerable: true,
|
|
226
207
|
get: function get() {
|
|
227
|
-
return _schema.
|
|
208
|
+
return _schema.TimestampNanosecond;
|
|
228
209
|
}
|
|
229
210
|
});
|
|
230
211
|
Object.defineProperty(exports, "TimestampSecond", {
|
|
@@ -233,52 +214,58 @@ Object.defineProperty(exports, "TimestampSecond", {
|
|
|
233
214
|
return _schema.TimestampSecond;
|
|
234
215
|
}
|
|
235
216
|
});
|
|
236
|
-
Object.defineProperty(exports, "
|
|
217
|
+
Object.defineProperty(exports, "Uint16", {
|
|
237
218
|
enumerable: true,
|
|
238
219
|
get: function get() {
|
|
239
|
-
return _schema.
|
|
220
|
+
return _schema.Uint16;
|
|
240
221
|
}
|
|
241
222
|
});
|
|
242
|
-
Object.defineProperty(exports, "
|
|
223
|
+
Object.defineProperty(exports, "Uint32", {
|
|
243
224
|
enumerable: true,
|
|
244
225
|
get: function get() {
|
|
245
|
-
return _schema.
|
|
226
|
+
return _schema.Uint32;
|
|
246
227
|
}
|
|
247
228
|
});
|
|
248
|
-
Object.defineProperty(exports, "
|
|
229
|
+
Object.defineProperty(exports, "Uint64", {
|
|
249
230
|
enumerable: true,
|
|
250
231
|
get: function get() {
|
|
251
|
-
return _schema.
|
|
232
|
+
return _schema.Uint64;
|
|
252
233
|
}
|
|
253
234
|
});
|
|
254
|
-
Object.defineProperty(exports, "
|
|
235
|
+
Object.defineProperty(exports, "Uint8", {
|
|
255
236
|
enumerable: true,
|
|
256
237
|
get: function get() {
|
|
257
|
-
return _schema.
|
|
238
|
+
return _schema.Uint8;
|
|
258
239
|
}
|
|
259
240
|
});
|
|
260
|
-
Object.defineProperty(exports, "
|
|
241
|
+
Object.defineProperty(exports, "Utf8", {
|
|
261
242
|
enumerable: true,
|
|
262
243
|
get: function get() {
|
|
263
|
-
return _schema.
|
|
244
|
+
return _schema.Utf8;
|
|
264
245
|
}
|
|
265
246
|
});
|
|
266
|
-
Object.defineProperty(exports, "
|
|
247
|
+
Object.defineProperty(exports, "convertToArrayRow", {
|
|
267
248
|
enumerable: true,
|
|
268
249
|
get: function get() {
|
|
269
|
-
return
|
|
250
|
+
return _rowUtils.convertToArrayRow;
|
|
270
251
|
}
|
|
271
252
|
});
|
|
272
|
-
Object.defineProperty(exports, "
|
|
253
|
+
Object.defineProperty(exports, "convertToObjectRow", {
|
|
273
254
|
enumerable: true,
|
|
274
255
|
get: function get() {
|
|
275
|
-
return
|
|
256
|
+
return _rowUtils.convertToObjectRow;
|
|
276
257
|
}
|
|
277
258
|
});
|
|
278
|
-
Object.defineProperty(exports, "
|
|
259
|
+
Object.defineProperty(exports, "deduceMeshField", {
|
|
279
260
|
enumerable: true,
|
|
280
261
|
get: function get() {
|
|
281
|
-
return
|
|
262
|
+
return _deduceMeshSchema.deduceMeshField;
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "deduceMeshSchema", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function get() {
|
|
268
|
+
return _deduceMeshSchema.deduceMeshSchema;
|
|
282
269
|
}
|
|
283
270
|
});
|
|
284
271
|
Object.defineProperty(exports, "deduceTypeFromColumn", {
|
|
@@ -293,44 +280,45 @@ Object.defineProperty(exports, "deduceTypeFromValue", {
|
|
|
293
280
|
return _deduceColumnType.deduceTypeFromValue;
|
|
294
281
|
}
|
|
295
282
|
});
|
|
296
|
-
Object.defineProperty(exports, "
|
|
283
|
+
Object.defineProperty(exports, "getArrowTypeFromTypedArray", {
|
|
297
284
|
enumerable: true,
|
|
298
285
|
get: function get() {
|
|
299
|
-
return
|
|
286
|
+
return _arrowLikeTypeUtils.getArrowTypeFromTypedArray;
|
|
300
287
|
}
|
|
301
288
|
});
|
|
302
|
-
Object.defineProperty(exports, "
|
|
289
|
+
Object.defineProperty(exports, "getMeshBoundingBox", {
|
|
303
290
|
enumerable: true,
|
|
304
291
|
get: function get() {
|
|
305
|
-
return
|
|
292
|
+
return _meshUtils.getMeshBoundingBox;
|
|
306
293
|
}
|
|
307
294
|
});
|
|
308
|
-
Object.defineProperty(exports, "
|
|
295
|
+
Object.defineProperty(exports, "getMeshSize", {
|
|
309
296
|
enumerable: true,
|
|
310
297
|
get: function get() {
|
|
311
|
-
return
|
|
298
|
+
return _meshUtils.getMeshSize;
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
Object.defineProperty(exports, "getTypeInfo", {
|
|
302
|
+
enumerable: true,
|
|
303
|
+
get: function get() {
|
|
304
|
+
return _getTypeInfo.getTypeInfo;
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
Object.defineProperty(exports, "makeMeshAttributeMetadata", {
|
|
308
|
+
enumerable: true,
|
|
309
|
+
get: function get() {
|
|
310
|
+
return _deduceMeshSchema.makeMeshAttributeMetadata;
|
|
312
311
|
}
|
|
313
312
|
});
|
|
314
|
-
|
|
315
313
|
var _tableBatchBuilder = _interopRequireDefault(require("./lib/batches/table-batch-builder"));
|
|
316
|
-
|
|
317
314
|
var _rowTableBatchAggregator = _interopRequireDefault(require("./lib/batches/row-table-batch-aggregator"));
|
|
318
|
-
|
|
319
315
|
var _columnarTableBatchAggregator = _interopRequireDefault(require("./lib/batches/columnar-table-batch-aggregator"));
|
|
320
|
-
|
|
321
316
|
var _rowUtils = require("./lib/utils/row-utils");
|
|
322
|
-
|
|
323
317
|
var _meshUtils = require("./category/mesh/mesh-utils");
|
|
324
|
-
|
|
325
318
|
var _deduceMeshSchema = require("./category/mesh/deduce-mesh-schema");
|
|
326
|
-
|
|
327
319
|
var _schema = require("./lib/schema/schema");
|
|
328
|
-
|
|
329
320
|
var _deduceColumnType = require("./lib/schema-utils/deduce-column-type");
|
|
330
|
-
|
|
331
321
|
var _getTypeInfo = require("./lib/arrow/get-type-info");
|
|
332
|
-
|
|
333
322
|
var _arrowLikeTypeUtils = require("./lib/arrow/arrow-like-type-utils");
|
|
334
|
-
|
|
335
323
|
var _asyncQueue = _interopRequireDefault(require("./lib/utils/async-queue"));
|
|
336
324
|
//# sourceMappingURL=index.js.map
|
package/dist/es5/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["// COMMON CATEGORY\nexport type {TypedArray, NumberArray, AnyArray} from './types';\n\nexport type {Batch} from './category/common';\n\n// TABLE CATEGORY TYPES\nexport type {\n Table,\n ArrayRowTable,\n ObjectRowTable,\n GeoJSONRowTable,\n ColumnarTable,\n ArrowTable,\n Tables\n} from './category/table/table-types';\nexport type {\n TableBatch,\n RowArrayTableBatch,\n RowObjectTableBatch,\n GeoJSONRowTableBatch,\n ColumnarTableBatch,\n ArrowTableBatch\n} from './category/table/table-types';\n\n// TABLE CATEGORY UTILS\nexport {default as TableBatchBuilder} from './lib/batches/table-batch-builder';\nexport type {TableBatchAggregator} from './lib/batches/table-batch-aggregator';\nexport {default as RowTableBatchAggregator} from './lib/batches/row-table-batch-aggregator';\nexport {default as ColumnarTableBatchAggregator} from './lib/batches/columnar-table-batch-aggregator';\n\nexport {convertToObjectRow, convertToArrayRow} from './lib/utils/row-utils';\n\n// MESH CATEGORY\nexport type {\n MeshTable,\n MeshArrowTable,\n Mesh,\n MeshGeometry,\n MeshAttribute,\n MeshAttributes\n} from './category/mesh/mesh-types';\n\nexport {getMeshSize, getMeshBoundingBox} from './category/mesh/mesh-utils';\n// Commented out due to https://github.com/visgl/deck.gl/issues/6906 and https://github.com/visgl/loaders.gl/issues/2177\n// export {convertMesh} from './category/mesh/convert-mesh';\nexport {\n deduceMeshSchema,\n deduceMeshField,\n makeMeshAttributeMetadata\n} from './category/mesh/deduce-mesh-schema';\n\n// TEXTURES\nexport type {TextureLevel, GPUTextureFormat} from './category/texture/texture';\n\n// IMAGES\nexport type {ImageDataType, ImageType, ImageTypeEnum} from './category/image/image';\n\n// TYPES\n// GIS CATEGORY - GEOJSON\nexport type {\n GeoJSON,\n Feature,\n FeatureCollection,\n Geometry,\n Position,\n GeoJsonProperties,\n Point,\n MultiPoint,\n LineString,\n MultiLineString,\n Polygon,\n MultiPolygon,\n GeometryCollection\n} from './category/gis';\n\nexport type {GeojsonGeometryInfo} from './category/gis';\n\n// GIS CATEGORY - FLAT GEOJSON\nexport type {\n FlatFeature,\n FlatIndexedGeometry,\n FlatGeometry,\n FlatGeometryType,\n FlatPoint,\n FlatLineString,\n FlatPolygon\n} from './category/gis';\n\n// GIS CATEGORY - BINARY\nexport type {\n BinaryGeometryType,\n BinaryGeometry,\n BinaryPointGeometry,\n BinaryLineGeometry,\n BinaryPolygonGeometry,\n BinaryAttribute\n} from './category/gis';\nexport type {\n BinaryFeatures,\n BinaryPointFeatures,\n BinaryLineFeatures,\n BinaryPolygonFeatures\n} from './category/gis';\n\n// SCHEMA\nexport {\n Schema,\n Field,\n DataType,\n Null,\n Binary,\n Bool,\n Int,\n Int8,\n Int16,\n Int32,\n Int64,\n Uint8,\n Uint16,\n Uint32,\n Uint64,\n Float,\n Float16,\n Float32,\n Float64,\n Utf8,\n Date,\n DateDay,\n DateMillisecond,\n Time,\n TimeMillisecond,\n TimeSecond,\n Timestamp,\n TimestampSecond,\n TimestampMillisecond,\n TimestampMicrosecond,\n TimestampNanosecond,\n Interval,\n IntervalDayTime,\n IntervalYearMonth,\n FixedSizeList,\n Struct\n} from './lib/schema/schema';\n\n// EXPERIMENTAL APIs\n\n// SCHEMA UTILS\nexport {deduceTypeFromColumn, deduceTypeFromValue} from './lib/schema-utils/deduce-column-type';\nexport {getTypeInfo} from './lib/arrow/get-type-info';\nexport {getArrowTypeFromTypedArray} from './lib/arrow/arrow-like-type-utils';\n\nexport {default as AsyncQueue} from './lib/utils/async-queue';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA;AAEA;AACA;AAEA;AAYA;AAGA;AA4DA;AA0CA;AACA;AACA;AAEA"}
|
|
@@ -4,35 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getArrowTypeFromTypedArray = getArrowTypeFromTypedArray;
|
|
7
|
-
|
|
8
7
|
var _schema = require("../schema/schema");
|
|
9
|
-
|
|
10
8
|
function getArrowTypeFromTypedArray(array) {
|
|
11
9
|
switch (array.constructor) {
|
|
12
10
|
case Int8Array:
|
|
13
11
|
return new _schema.Int8();
|
|
14
|
-
|
|
15
12
|
case Uint8Array:
|
|
16
13
|
return new _schema.Uint8();
|
|
17
|
-
|
|
18
14
|
case Int16Array:
|
|
19
15
|
return new _schema.Int16();
|
|
20
|
-
|
|
21
16
|
case Uint16Array:
|
|
22
17
|
return new _schema.Uint16();
|
|
23
|
-
|
|
24
18
|
case Int32Array:
|
|
25
19
|
return new _schema.Int32();
|
|
26
|
-
|
|
27
20
|
case Uint32Array:
|
|
28
21
|
return new _schema.Uint32();
|
|
29
|
-
|
|
30
22
|
case Float32Array:
|
|
31
23
|
return new _schema.Float32();
|
|
32
|
-
|
|
33
24
|
case Float64Array:
|
|
34
25
|
return new _schema.Float64();
|
|
35
|
-
|
|
36
26
|
default:
|
|
37
27
|
throw new Error('array type not supported');
|
|
38
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"arrow-like-type-utils.js","names":["getArrowTypeFromTypedArray","array","constructor","Int8Array","Int8","Uint8Array","Uint8","Int16Array","Int16","Uint16Array","Uint16","Int32Array","Int32","Uint32Array","Uint32","Float32Array","Float32","Float64Array","Float64","Error"],"sources":["../../../../src/lib/arrow/arrow-like-type-utils.ts"],"sourcesContent":["import type {TypedArray} from '../../types';\nimport {\n DataType,\n Float32,\n Float64,\n Int16,\n Int32,\n Int8,\n Uint16,\n Uint32,\n Uint8\n} from '../schema/schema';\n\nexport function getArrowTypeFromTypedArray(array: TypedArray): DataType {\n switch (array.constructor) {\n case Int8Array:\n return new Int8();\n case Uint8Array:\n return new Uint8();\n case Int16Array:\n return new Int16();\n case Uint16Array:\n return new Uint16();\n case Int32Array:\n return new Int32();\n case Uint32Array:\n return new Uint32();\n case Float32Array:\n return new Float32();\n case Float64Array:\n return new Float64();\n default:\n throw new Error('array type not supported');\n }\n}\n"],"mappings":";;;;;;AACA;AAYO,SAASA,0BAA0B,CAACC,KAAiB,EAAY;EACtE,QAAQA,KAAK,CAACC,WAAW;IACvB,KAAKC,SAAS;MACZ,OAAO,IAAIC,YAAI,EAAE;IACnB,KAAKC,UAAU;MACb,OAAO,IAAIC,aAAK,EAAE;IACpB,KAAKC,UAAU;MACb,OAAO,IAAIC,aAAK,EAAE;IACpB,KAAKC,WAAW;MACd,OAAO,IAAIC,cAAM,EAAE;IACrB,KAAKC,UAAU;MACb,OAAO,IAAIC,aAAK,EAAE;IACpB,KAAKC,WAAW;MACd,OAAO,IAAIC,cAAM,EAAE;IACrB,KAAKC,YAAY;MACf,OAAO,IAAIC,eAAO,EAAE;IACtB,KAAKC,YAAY;MACf,OAAO,IAAIC,eAAO,EAAE;IACtB;MACE,MAAM,IAAIC,KAAK,CAAC,0BAA0B,CAAC;EAAC;AAElD"}
|