Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@loaders.gl/schema

Package Overview
Dependencies
Maintainers
7
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/schema - npm Package Compare versions

Comparing version 3.3.0-alpha.7 to 3.3.0-alpha.8

6

dist/category/common.d.ts
import type { RecordBatch } from 'apache-arrow';
export declare type Field = any;
export declare type Schema = {
export type Field = any;
export type Schema = {
[key: string]: Field;
};
export declare type Batch = {
export type Batch = {
batchType: 'data' | 'metadata' | 'partial-result' | 'final-result';

@@ -8,0 +8,0 @@ mimeType?: string;

@@ -5,3 +5,3 @@ import type { TypedArray } from '../types';

export type { Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from 'geojson';
export declare type GeojsonGeometryInfo = {
export type GeojsonGeometryInfo = {
coordLength: number;

@@ -18,4 +18,4 @@ pointPositionsCount: number;

};
export declare type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';
declare type RemoveCoordinatesField<Type> = {
export type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';
type RemoveCoordinatesField<Type> = {
[Property in keyof Type as Exclude<Property, 'coordinates'>]: Type[Property];

@@ -26,3 +26,3 @@ };

*/
export declare type FlatIndexedGeometry = {
export type FlatIndexedGeometry = {
data: number[];

@@ -34,11 +34,11 @@ indices: number[];

*/
export declare type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;
export type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;
/**
* GeoJSON (Multi)LineString geometry with coordinate data flattened into `data` array and indexed by `indices`
*/
export declare type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;
export type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;
/**
* GeoJSON (Multi)Polygon geometry with coordinate data flattened into `data` array and indexed by 2D `indices`
*/
export declare type FlatPolygon = RemoveCoordinatesField<Polygon> & {
export type FlatPolygon = RemoveCoordinatesField<Polygon> & {
data: number[];

@@ -48,4 +48,4 @@ indices: number[][];

};
export declare type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;
declare type FlattenGeometry<Type> = {
export type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;
type FlattenGeometry<Type> = {
[Property in keyof Type]: Type[Property] extends Geometry ? FlatGeometry : Type[Property];

@@ -56,21 +56,21 @@ };

*/
export declare type FlatFeature = FlattenGeometry<Feature>;
export declare type BinaryAttribute = {
export type FlatFeature = FlattenGeometry<Feature>;
export type BinaryAttribute = {
value: TypedArray;
size: number;
};
export declare type BinaryGeometryType = 'Point' | 'LineString' | 'Polygon';
declare type NumericProps = {
export type BinaryGeometryType = 'Point' | 'LineString' | 'Polygon';
type NumericProps = {
[key: string]: BinaryAttribute;
};
declare type Properties = object[];
type Properties = object[];
/**
* Represent a single Geometry, similar to a GeoJSON Geometry
*/
export declare type BinaryGeometry = BinaryPointGeometry | BinaryLineGeometry | BinaryPolygonGeometry;
export declare type BinaryPointGeometry = {
export type BinaryGeometry = BinaryPointGeometry | BinaryLineGeometry | BinaryPolygonGeometry;
export type BinaryPointGeometry = {
type: 'Point';
positions: BinaryAttribute;
};
export declare type BinaryLineGeometry = {
export type BinaryLineGeometry = {
type: 'LineString';

@@ -80,3 +80,3 @@ positions: BinaryAttribute;

};
export declare type BinaryPolygonGeometry = {
export type BinaryPolygonGeometry = {
type: 'Polygon';

@@ -88,3 +88,3 @@ positions: BinaryAttribute;

};
export declare type BinaryProperties = {
export type BinaryProperties = {
featureIds: BinaryAttribute;

@@ -96,9 +96,9 @@ globalFeatureIds: BinaryAttribute;

};
export declare type BinaryPointFeatures = BinaryPointGeometry & BinaryProperties;
export declare type BinaryLineFeatures = BinaryLineGeometry & BinaryProperties;
export declare type BinaryPolygonFeatures = BinaryPolygonGeometry & BinaryProperties;
export type BinaryPointFeatures = BinaryPointGeometry & BinaryProperties;
export type BinaryLineFeatures = BinaryLineGeometry & BinaryProperties;
export type BinaryPolygonFeatures = BinaryPolygonGeometry & BinaryProperties;
/**
* Represent a collection of Features, similar to a GeoJSON FeatureCollection
*/
export declare type BinaryFeatures = {
export type BinaryFeatures = {
points?: BinaryPointFeatures;

@@ -105,0 +105,0 @@ lines?: BinaryLineFeatures;

/**
* data images
*/
export declare type ImageDataType = {
export type ImageDataType = {
data: Uint8Array;

@@ -13,7 +13,7 @@ width: number;

*/
export declare type ImageType = ImageBitmap | typeof Image | ImageDataType;
export type ImageType = ImageBitmap | typeof Image | ImageDataType;
/**
* Image type string used to control or determine the type of images returned from ImageLoader
*/
export declare type ImageTypeEnum = 'imagebitmap' | 'image' | 'data';
export type ImageTypeEnum = 'imagebitmap' | 'image' | 'data';
//# sourceMappingURL=image.d.ts.map
import type { Mesh } from './mesh-types';
import type { ColumnarTable, ArrowTable } from '../table/table-types';
declare type TargetShape = 'mesh' | 'columnar-table' | 'arrow-table';
type TargetShape = 'mesh' | 'columnar-table' | 'arrow-table';
/**

@@ -5,0 +5,0 @@ * Convert a mesh to a specific shape

@@ -15,3 +15,3 @@ import type { Schema } from '../../lib/schema/schema';

/** Geometry part of a Mesh (compatible with a standard luma.gl "mesh") */
export declare type MeshGeometry = {
export type MeshGeometry = {
attributes: {

@@ -25,3 +25,3 @@ [attributeName: string]: MeshAttribute;

/** Geometry and metadata for a Mesh (compatible with a standard luma.gl "mesh") */
export declare type Mesh = MeshGeometry & {
export type Mesh = MeshGeometry & {
loader?: string;

@@ -41,3 +41,3 @@ loaderData?: {

*/
export declare type MeshAttribute = {
export type MeshAttribute = {
value: TypedArray;

@@ -50,5 +50,5 @@ size: number;

/** A map of mesh attributes keyed by attribute names */
export declare type MeshAttributes = {
export type MeshAttributes = {
[attributeName: string]: MeshAttribute;
};
//# sourceMappingURL=mesh-types.d.ts.map
import { TypedArray } from '../../types';
import { MeshAttributes } from './mesh-types';
declare type TypedArrays = {
type TypedArrays = {
[key: string]: TypedArray;

@@ -10,3 +10,3 @@ };

*/
declare type BoundingBox = [[number, number, number], [number, number, number]];
type BoundingBox = [[number, number, number], [number, number, number]];
/**

@@ -13,0 +13,0 @@ * Get number of vertices in mesh

@@ -47,3 +47,3 @@ import type { Schema } from '../../lib/schema/schema';

/** A collection of tables */
export declare type Tables<TableType extends Table = Table> = {
export type Tables<TableType extends Table = Table> = {
shape: 'tables';

@@ -56,3 +56,3 @@ tables: {

/** Batch for a general table */
export declare type TableBatch = Batch & {
export type TableBatch = Batch & {
data: any;

@@ -64,3 +64,3 @@ length: number;

/** Batch for a table organized as an array of rows */
export declare type RowTableBatch = TableBatch & {
export type RowTableBatch = TableBatch & {
shape: 'row-table';

@@ -70,3 +70,3 @@ data: any[];

/** Batch for a table organized as an array of rows, each row is an array of values */
export declare type RowArrayTableBatch = RowTableBatch & {
export type RowArrayTableBatch = RowTableBatch & {
shape: 'array-row-table';

@@ -76,3 +76,3 @@ data: any[][];

/** Batch for a table organized as an array of rows, each row is an object mapping columns to values */
export declare type RowObjectTableBatch = RowTableBatch & {
export type RowObjectTableBatch = RowTableBatch & {
shape: 'object-row-table';

@@ -84,3 +84,3 @@ data: {

/** Batch for a table organized as an array of rows, each row is an array of values */
export declare type GeoJSONRowTableBatch = RowTableBatch & {
export type GeoJSONRowTableBatch = RowTableBatch & {
shape: 'geojson-row-table';

@@ -90,3 +90,3 @@ data: Feature[];

/** Batch for a table organized as a map of columns, each column is an array of value */
export declare type ColumnarTableBatch = TableBatch & {
export type ColumnarTableBatch = TableBatch & {
shape: 'columnar-table';

@@ -98,3 +98,3 @@ data: {

/** Batch for a table organized as an Apache Arrow table */
export declare type ArrowTableBatch = TableBatch & {
export type ArrowTableBatch = TableBatch & {
shape: 'arrow-table';

@@ -101,0 +101,0 @@ data: RecordBatch;

@@ -6,5 +6,5 @@ import type { ImageType } from '../image/image';

*/
export declare type GPUTextureFormat = 'dxt' | 'dxt-srgb' | 'etc1' | 'etc2' | 'pvrtc' | 'atc' | 'astc' | 'rgtc';
export type GPUTextureFormat = 'dxt' | 'dxt-srgb' | 'etc1' | 'etc2' | 'pvrtc' | 'atc' | 'astc' | 'rgtc';
/** One mip level */
export declare type TextureLevel = {
export type TextureLevel = {
compressed: boolean;

@@ -18,3 +18,3 @@ format?: number;

};
export declare type TextureOrImage = ImageType | (TextureLevel | ImageType);
export type TextureOrImage = ImageType | (TextureLevel | ImageType);
//# sourceMappingURL=texture.d.ts.map
import type { Schema } from '../schema/schema';
import type { ColumnarTableBatch, ArrowTableBatch } from '../../category/table/table-types';
import { TableBatchAggregator } from './table-batch-aggregator';
declare type ColumnarTableBatchOptions = {};
type ColumnarTableBatchOptions = {};
export default class ColumnarTableBatchAggregator implements TableBatchAggregator {

@@ -6,0 +6,0 @@ schema: Schema;

import type { Schema } from '../schema/schema';
import type { TableBatch } from '../../category/table/table-types';
import type { TableBatchConstructor } from './table-batch-aggregator';
declare type TableBatchBuilderOptions = {
type TableBatchBuilderOptions = {
shape: 'row-table' | 'array-row-table' | 'object-row-table' | 'columnar-table' | 'arrow-table';

@@ -11,3 +11,3 @@ batchSize?: number | 'auto';

};
declare type GetBatchOptions = {
type GetBatchOptions = {
bytesUsed?: number;

@@ -14,0 +14,0 @@ [key: string]: any;

import Field from './field';
export declare type SchemaMetadata = Map<string, any>;
export type SchemaMetadata = Map<string, any>;
/**

@@ -4,0 +4,0 @@ * ArrowJS `Schema` API-compatible class for row-based tables (returned from `DataTable`)

import { Type } from './enum';
import Field from './field';
export { Type } from './enum';
export declare type TypedIntArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Int32Array | Uint32Array | Uint8ClampedArray;
export declare type TypedFloatArray = Float32Array | Float64Array;
export declare type TypedArray = TypedIntArray | TypedFloatArray;
export declare type AnyArrayType = Array<any> | TypedIntArray | TypedFloatArray;
export type TypedIntArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Int32Array | Uint32Array | Uint8ClampedArray;
export type TypedFloatArray = Float32Array | Float64Array;
export type TypedArray = TypedIntArray | TypedFloatArray;
export type AnyArrayType = Array<any> | TypedIntArray | TypedFloatArray;
export declare class DataType {

@@ -9,0 +9,0 @@ static isNull(x: any): boolean;

/** Any typed array */
export declare type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
export declare type BigTypedArray = TypedArray | BigInt64Array | BigUint64Array;
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
export type BigTypedArray = TypedArray | BigInt64Array | BigUint64Array;
/** Any numeric array: typed array or `number[]` */
export declare type NumberArray = number[] | TypedArray;
export type NumberArray = number[] | TypedArray;
/** Any array: typed array or js array (`any[]`) */
export declare type AnyArray = any[] | TypedArray;
export type AnyArray = any[] | TypedArray;
//# sourceMappingURL=types.d.ts.map
{
"name": "@loaders.gl/schema",
"version": "3.3.0-alpha.7",
"version": "3.3.0-alpha.8",
"description": "Table format APIs for JSON, CSV, etc...",

@@ -37,3 +37,3 @@ "license": "MIT",

},
"gitHead": "29b08f3519c50984e84bf4234e607cab7c7d1c3e"
"gitHead": "69cfde0340328dd800c7c90151b56b406f47e9ae"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc