@loaders.gl/schema 4.0.0-alpha.4 → 4.0.0-alpha.5

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.
Files changed (100) hide show
  1. package/dist/bundle.d.ts +2 -0
  2. package/dist/bundle.d.ts.map +1 -0
  3. package/dist/category/common.d.ts +19 -0
  4. package/dist/category/common.d.ts.map +1 -0
  5. package/dist/category/gis.d.ts +99 -0
  6. package/dist/category/gis.d.ts.map +1 -0
  7. package/dist/category/image/image.d.ts +18 -0
  8. package/dist/category/image/image.d.ts.map +1 -0
  9. package/dist/category/image/image.js +2 -0
  10. package/dist/category/image/image.js.map +1 -0
  11. package/dist/category/mesh/convert-mesh.d.ts +15 -0
  12. package/dist/category/mesh/convert-mesh.d.ts.map +1 -0
  13. package/dist/category/mesh/deduce-mesh-schema.d.ts +24 -0
  14. package/dist/category/mesh/deduce-mesh-schema.d.ts.map +1 -0
  15. package/dist/category/mesh/deduce-mesh-schema.js +1 -1
  16. package/dist/category/mesh/deduce-mesh-schema.js.map +1 -1
  17. package/dist/category/mesh/mesh-to-arrow-table.d.ts +11 -0
  18. package/dist/category/mesh/mesh-to-arrow-table.d.ts.map +1 -0
  19. package/dist/category/mesh/mesh-types.d.ts +50 -0
  20. package/dist/category/mesh/mesh-types.d.ts.map +1 -0
  21. package/dist/category/mesh/mesh-utils.d.ts +23 -0
  22. package/dist/category/mesh/mesh-utils.d.ts.map +1 -0
  23. package/dist/category/table/deduce-table-schema.d.ts +9 -0
  24. package/dist/category/table/deduce-table-schema.d.ts.map +1 -0
  25. package/dist/category/table/deduce-table-schema.js.map +1 -1
  26. package/dist/category/table/table-types.d.ts +76 -0
  27. package/dist/category/table/table-types.d.ts.map +1 -0
  28. package/dist/category/texture/texture.d.ts +18 -0
  29. package/dist/category/texture/texture.d.ts.map +1 -0
  30. package/dist/category/texture/texture.js +2 -0
  31. package/dist/category/texture/texture.js.map +1 -0
  32. package/dist/dist.min.js +16159 -0
  33. package/dist/index.d.ts +27 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +1 -1
  36. package/dist/index.js.map +1 -1
  37. package/dist/lib/arrow/arrow-like-type-utils.d.ts +4 -0
  38. package/dist/lib/arrow/arrow-like-type-utils.d.ts.map +1 -0
  39. package/dist/lib/arrow/arrow-like-type-utils.js +1 -1
  40. package/dist/lib/arrow/arrow-like-type-utils.js.map +1 -1
  41. package/dist/lib/arrow/arrow-type-utils.d.ts +6 -0
  42. package/dist/lib/arrow/arrow-type-utils.d.ts.map +1 -0
  43. package/dist/lib/arrow/get-type-info.d.ts +14 -0
  44. package/dist/lib/arrow/get-type-info.d.ts.map +1 -0
  45. package/dist/lib/arrow/get-type-info.js +1 -1
  46. package/dist/lib/arrow/get-type-info.js.map +1 -1
  47. package/dist/lib/batches/base-table-batch-aggregator.d.ts +19 -0
  48. package/dist/lib/batches/base-table-batch-aggregator.d.ts.map +1 -0
  49. package/dist/lib/batches/base-table-batch-aggregator.js.map +1 -1
  50. package/dist/lib/batches/columnar-table-batch-aggregator.d.ts +23 -0
  51. package/dist/lib/batches/columnar-table-batch-aggregator.d.ts.map +1 -0
  52. package/dist/lib/batches/columnar-table-batch-aggregator.js.map +1 -1
  53. package/dist/lib/batches/row-table-batch-aggregator.d.ts +22 -0
  54. package/dist/lib/batches/row-table-batch-aggregator.d.ts.map +1 -0
  55. package/dist/lib/batches/row-table-batch-aggregator.js.map +1 -1
  56. package/dist/lib/batches/table-batch-aggregator.d.ts +25 -0
  57. package/dist/lib/batches/table-batch-aggregator.d.ts.map +1 -0
  58. package/dist/lib/batches/table-batch-builder.d.ts +53 -0
  59. package/dist/lib/batches/table-batch-builder.d.ts.map +1 -0
  60. package/dist/lib/batches/table-batch-builder.js.map +1 -1
  61. package/dist/lib/schema/impl/enum.d.ts +92 -0
  62. package/dist/lib/schema/impl/enum.d.ts.map +1 -0
  63. package/dist/lib/schema/impl/field.d.ts +19 -0
  64. package/dist/lib/schema/impl/field.d.ts.map +1 -0
  65. package/dist/lib/schema/impl/schema.d.ts +16 -0
  66. package/dist/lib/schema/impl/schema.d.ts.map +1 -0
  67. package/dist/lib/schema/impl/type.d.ts +176 -0
  68. package/dist/lib/schema/impl/type.d.ts.map +1 -0
  69. package/dist/lib/schema/schema.d.ts +5 -0
  70. package/dist/lib/schema/schema.d.ts.map +1 -0
  71. package/dist/lib/schema/{index.js → schema.js} +1 -1
  72. package/dist/lib/schema/schema.js.map +1 -0
  73. package/dist/lib/schema-utils/deduce-column-type.d.ts +3 -0
  74. package/dist/lib/schema-utils/deduce-column-type.d.ts.map +1 -0
  75. package/dist/lib/utils/assert.d.ts +2 -0
  76. package/dist/lib/utils/assert.d.ts.map +1 -0
  77. package/dist/lib/utils/async-queue.d.ts +18 -0
  78. package/dist/lib/utils/async-queue.d.ts.map +1 -0
  79. package/dist/lib/utils/row-utils.d.ts +9 -0
  80. package/dist/lib/utils/row-utils.d.ts.map +1 -0
  81. package/dist/types.d.ts +8 -0
  82. package/dist/types.d.ts.map +1 -0
  83. package/package.json +4 -4
  84. package/src/category/gis.ts +69 -1
  85. package/src/category/image/image.ts +19 -0
  86. package/src/category/mesh/deduce-mesh-schema.ts +1 -1
  87. package/src/category/mesh/mesh-types.ts +1 -1
  88. package/src/category/table/deduce-table-schema.ts +1 -1
  89. package/src/category/table/table-types.ts +1 -1
  90. package/src/category/texture/texture.ts +28 -0
  91. package/src/index.ts +22 -3
  92. package/src/lib/arrow/arrow-like-type-utils.ts +11 -1
  93. package/src/lib/arrow/get-type-info.ts +1 -1
  94. package/src/lib/batches/base-table-batch-aggregator.ts +1 -1
  95. package/src/lib/batches/columnar-table-batch-aggregator.ts +1 -1
  96. package/src/lib/batches/row-table-batch-aggregator.ts +1 -1
  97. package/src/lib/batches/table-batch-aggregator.ts +1 -1
  98. package/src/lib/batches/table-batch-builder.ts +1 -1
  99. package/src/lib/schema/{index.ts → schema.ts} +0 -0
  100. package/dist/lib/schema/index.js.map +0 -1
@@ -0,0 +1,16 @@
1
+ import Field from './field';
2
+ export declare type SchemaMetadata = Map<string, any>;
3
+ /**
4
+ * ArrowJS `Schema` API-compatible class for row-based tables (returned from `DataTable`)
5
+ * https://loaders.gl/arrowjs/docs/api-reference/schema
6
+ */
7
+ export default class Schema {
8
+ fields: Field[];
9
+ metadata: SchemaMetadata;
10
+ constructor(fields: Field[], metadata?: SchemaMetadata);
11
+ compareTo(other: Schema): boolean;
12
+ select(...columnNames: string[]): Schema;
13
+ selectAt(...columnIndices: number[]): Schema;
14
+ assign(schemaOrFields: Schema | Field[]): Schema;
15
+ }
16
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/lib/schema/impl/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,oBAAY,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,MAAM;IACzB,MAAM,EAAE,KAAK,EAAE,CAAC;IAEhB,QAAQ,EAAE,cAAc,CAAC;gBAEb,MAAM,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,EAAE,cAAc;IAStD,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAejC,MAAM,CAAC,GAAG,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM;IAUxC,QAAQ,CAAC,GAAG,aAAa,EAAE,MAAM,EAAE,GAAG,MAAM;IAM5C,MAAM,CAAC,cAAc,EAAE,MAAM,GAAG,KAAK,EAAE,GAAG,MAAM;CA2BjD"}
@@ -0,0 +1,176 @@
1
+ import { Type } from './enum';
2
+ import Field from './field';
3
+ export { Type } from './enum';
4
+ export declare type TypedIntArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Int32Array | Uint32Array | Uint8ClampedArray;
5
+ export declare type TypedFloatArray = Float32Array | Float64Array;
6
+ export declare type TypedArray = TypedIntArray | TypedFloatArray;
7
+ export declare type AnyArrayType = Array<any> | TypedIntArray | TypedFloatArray;
8
+ export declare class DataType {
9
+ static isNull(x: any): boolean;
10
+ static isInt(x: any): boolean;
11
+ static isFloat(x: any): boolean;
12
+ static isBinary(x: any): boolean;
13
+ static isUtf8(x: any): boolean;
14
+ static isBool(x: any): boolean;
15
+ static isDecimal(x: any): boolean;
16
+ static isDate(x: any): boolean;
17
+ static isTime(x: any): boolean;
18
+ static isTimestamp(x: any): boolean;
19
+ static isInterval(x: any): boolean;
20
+ static isList(x: any): boolean;
21
+ static isStruct(x: any): boolean;
22
+ static isUnion(x: any): boolean;
23
+ static isFixedSizeBinary(x: any): boolean;
24
+ static isFixedSizeList(x: any): boolean;
25
+ static isMap(x: any): boolean;
26
+ static isDictionary(x: any): boolean;
27
+ get typeId(): Type;
28
+ compareTo(other: DataType): boolean;
29
+ }
30
+ export declare class Null extends DataType {
31
+ get typeId(): Type;
32
+ get [Symbol.toStringTag](): string;
33
+ toString(): string;
34
+ }
35
+ export declare class Bool extends DataType {
36
+ get typeId(): Type;
37
+ get [Symbol.toStringTag](): string;
38
+ toString(): string;
39
+ }
40
+ export declare class Int extends DataType {
41
+ readonly isSigned: boolean;
42
+ readonly bitWidth: number;
43
+ constructor(isSigned: any, bitWidth: any);
44
+ get typeId(): Type;
45
+ get [Symbol.toStringTag](): string;
46
+ toString(): string;
47
+ }
48
+ export declare class Int8 extends Int {
49
+ constructor();
50
+ }
51
+ export declare class Int16 extends Int {
52
+ constructor();
53
+ }
54
+ export declare class Int32 extends Int {
55
+ constructor();
56
+ }
57
+ export declare class Int64 extends Int {
58
+ constructor();
59
+ }
60
+ export declare class Uint8 extends Int {
61
+ constructor();
62
+ }
63
+ export declare class Uint16 extends Int {
64
+ constructor();
65
+ }
66
+ export declare class Uint32 extends Int {
67
+ constructor();
68
+ }
69
+ export declare class Uint64 extends Int {
70
+ constructor();
71
+ }
72
+ export declare class Float extends DataType {
73
+ readonly precision: number;
74
+ constructor(precision: any);
75
+ get typeId(): Type;
76
+ get [Symbol.toStringTag](): string;
77
+ toString(): string;
78
+ }
79
+ export declare class Float16 extends Float {
80
+ constructor();
81
+ }
82
+ export declare class Float32 extends Float {
83
+ constructor();
84
+ }
85
+ export declare class Float64 extends Float {
86
+ constructor();
87
+ }
88
+ export declare class Binary extends DataType {
89
+ constructor();
90
+ get typeId(): Type;
91
+ toString(): string;
92
+ get [Symbol.toStringTag](): string;
93
+ }
94
+ export declare class Utf8 extends DataType {
95
+ get typeId(): Type;
96
+ get [Symbol.toStringTag](): string;
97
+ toString(): string;
98
+ }
99
+ export declare class Date extends DataType {
100
+ readonly unit: number;
101
+ constructor(unit: any);
102
+ get typeId(): Type;
103
+ get [Symbol.toStringTag](): string;
104
+ toString(): string;
105
+ }
106
+ export declare class DateDay extends Date {
107
+ constructor();
108
+ }
109
+ export declare class DateMillisecond extends Date {
110
+ constructor();
111
+ }
112
+ export declare class Time extends DataType {
113
+ readonly unit: any;
114
+ readonly bitWidth: number;
115
+ constructor(unit: any, bitWidth: number);
116
+ get typeId(): Type;
117
+ toString(): string;
118
+ get [Symbol.toStringTag](): string;
119
+ }
120
+ export declare class TimeSecond extends Time {
121
+ constructor();
122
+ }
123
+ export declare class TimeMillisecond extends Time {
124
+ constructor();
125
+ }
126
+ export declare class Timestamp extends DataType {
127
+ readonly unit: any;
128
+ readonly timezone: any;
129
+ constructor(unit: any, timezone?: null);
130
+ get typeId(): Type;
131
+ get [Symbol.toStringTag](): string;
132
+ toString(): string;
133
+ }
134
+ export declare class TimestampSecond extends Timestamp {
135
+ constructor(timezone?: null);
136
+ }
137
+ export declare class TimestampMillisecond extends Timestamp {
138
+ constructor(timezone?: null);
139
+ }
140
+ export declare class TimestampMicrosecond extends Timestamp {
141
+ constructor(timezone?: null);
142
+ }
143
+ export declare class TimestampNanosecond extends Timestamp {
144
+ constructor(timezone?: null);
145
+ }
146
+ export declare class Interval extends DataType {
147
+ readonly unit: number;
148
+ constructor(unit: number);
149
+ get typeId(): Type;
150
+ get [Symbol.toStringTag](): string;
151
+ toString(): string;
152
+ }
153
+ export declare class IntervalDayTime extends Interval {
154
+ constructor();
155
+ }
156
+ export declare class IntervalYearMonth extends Interval {
157
+ constructor();
158
+ }
159
+ export declare class FixedSizeList extends DataType {
160
+ readonly listSize: number;
161
+ readonly children: Field[];
162
+ constructor(listSize: number, child: Field);
163
+ get typeId(): Type;
164
+ get valueType(): DataType;
165
+ get valueField(): Field;
166
+ get [Symbol.toStringTag](): string;
167
+ toString(): string;
168
+ }
169
+ export declare class Struct extends DataType {
170
+ readonly children: Field[];
171
+ constructor(children: Field[]);
172
+ get typeId(): Type;
173
+ toString(): string;
174
+ get [Symbol.toStringTag](): string;
175
+ }
176
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/lib/schema/impl/type.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAE5B,oBAAY,aAAa,GACrB,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,iBAAiB,CAAC;AAEtB,oBAAY,eAAe,GAAG,YAAY,GAAG,YAAY,CAAC;AAE1D,oBAAY,UAAU,GAAG,aAAa,GAAG,eAAe,CAAC;AAEzD,oBAAY,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,aAAa,GAAG,eAAe,CAAC;AAExE,qBAAa,QAAQ;IACnB,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,GAAG,OAAO;IAG9B,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,OAAO;IAG7B,MAAM,CAAC,OAAO,CAAC,CAAC,EAA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,OAAO;CAG5B;AACD,qBAAa,oBAAqB,SAAQ,SAAS;gBACrC,QAAQ,OAAO;CAG5B;AACD,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,QAAQ,OAAO;CAG5B;AAOD,qBAAa,QAAS,SAAQ,QAAQ;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBACV,IAAI,EAAE,MAAM;IAIxB,IAAI,MAAM,IAAI,IAAI,CAEjB;IAID,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAEjC;IACD,QAAQ,IAAI,MAAM;CAGnB;AAED,qBAAa,eAAgB,SAAQ,QAAQ;;CAI5C;AACD,qBAAa,iBAAkB,SAAQ,QAAQ;;CAI9C;AAED,qBAAa,aAAc,SAAQ,QAAQ;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC;gBAEf,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;IAK1C,IAAI,MAAM,IAAI,IAAI,CAEjB;IACD,IAAI,SAAS,aAEZ;IACD,IAAI,UAAU,UAEb;IAID,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAEjC;IACD,QAAQ,IAAI,MAAM;CAGnB;AAED,qBAAa,MAAO,SAAQ,QAAQ;IAClC,SAAgB,QAAQ,EAAE,KAAK,EAAE,CAAC;gBAEtB,QAAQ,EAAE,KAAK,EAAE;IAK7B,IAAW,MAAM,SAEhB;IACM,QAAQ;IAGf,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAEjC;CACF"}
@@ -0,0 +1,5 @@
1
+ export { default as Schema } from './impl/schema';
2
+ export { default as Field } from './impl/field';
3
+ export { Type } from './impl/type';
4
+ export { DataType, Null, Bool, Int, Int8, Int16, Int32, Int64, Uint8, Uint16, Uint32, Uint64, Float, Float16, Float32, Float64, Binary, Utf8, Date, DateDay, DateMillisecond, Time, TimeSecond, TimeMillisecond, Timestamp, TimestampSecond, TimestampMillisecond, TimestampMicrosecond, TimestampNanosecond, Interval, IntervalDayTime, IntervalYearMonth, FixedSizeList, Struct } from './impl/type';
5
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/lib/schema/schema.ts"],"names":[],"mappings":"AAyCA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,OAAO,EACP,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,eAAe,EACf,IAAI,EACJ,UAAU,EACV,eAAe,EAGf,SAAS,EACT,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,MAAM,EACP,MAAM,aAAa,CAAC"}
@@ -2,4 +2,4 @@ export { default as Schema } from './impl/schema';
2
2
  export { default as Field } from './impl/field';
3
3
  export { Type } from './impl/type';
4
4
  export { DataType, Null, Bool, Int, Int8, Int16, Int32, Int64, Uint8, Uint16, Uint32, Uint64, Float, Float16, Float32, Float64, Binary, Utf8, Date, DateDay, DateMillisecond, Time, TimeSecond, TimeMillisecond, Timestamp, TimestampSecond, TimestampMillisecond, TimestampMicrosecond, TimestampNanosecond, Interval, IntervalDayTime, IntervalYearMonth, FixedSizeList, Struct } from './impl/type';
5
- //# sourceMappingURL=index.js.map
5
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/schema/schema.ts"],"names":["default","Schema","Field","Type","DataType","Null","Bool","Int","Int8","Int16","Int32","Int64","Uint8","Uint16","Uint32","Uint64","Float","Float16","Float32","Float64","Binary","Utf8","Date","DateDay","DateMillisecond","Time","TimeSecond","TimeMillisecond","Timestamp","TimestampSecond","TimestampMillisecond","TimestampMicrosecond","TimestampNanosecond","Interval","IntervalDayTime","IntervalYearMonth","FixedSizeList","Struct"],"mappings":"AAyCA,SAAQA,OAAO,IAAIC,MAAnB,QAAgC,eAAhC;AACA,SAAQD,OAAO,IAAIE,KAAnB,QAA+B,cAA/B;AACA,SAAQC,IAAR,QAAmB,aAAnB;AACA,SACEC,QADF,EAEEC,IAFF,EAGEC,IAHF,EAIEC,GAJF,EAKEC,IALF,EAMEC,KANF,EAOEC,KAPF,EAQEC,KARF,EASEC,KATF,EAUEC,MAVF,EAWEC,MAXF,EAYEC,MAZF,EAaEC,KAbF,EAcEC,OAdF,EAeEC,OAfF,EAgBEC,OAhBF,EAiBEC,MAjBF,EAkBEC,IAlBF,EAmBEC,IAnBF,EAoBEC,OApBF,EAqBEC,eArBF,EAsBEC,IAtBF,EAuBEC,UAvBF,EAwBEC,eAxBF,EA2BEC,SA3BF,EA4BEC,eA5BF,EA6BEC,oBA7BF,EA8BEC,oBA9BF,EA+BEC,mBA/BF,EAgCEC,QAhCF,EAiCEC,eAjCF,EAkCEC,iBAlCF,EAmCEC,aAnCF,EAoCEC,MApCF,QAqCO,aArCP","sourcesContent":["/*\nexport {\n Schema,\n Field,\n DataType,\n Null,\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 Binary,\n Utf8,\n Date,\n DateDay,\n DateMillisecond,\n Time,\n TimeSecond,\n TimeMillisecond,\n TimeMicrosecond,\n TimeNanosecond,\n Timestamp,\n TimestampSecond,\n TimestampMillisecond,\n TimestampMicrosecond,\n TimestampNanosecond,\n Interval,\n IntervalDayTime,\n IntervalYearMonth,\n FixedSizeList\n} from 'apache-arrow';\n*/\nexport {default as Schema} from './impl/schema';\nexport {default as Field} from './impl/field';\nexport {Type} from './impl/type';\nexport {\n DataType,\n Null,\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 Binary,\n Utf8,\n Date,\n DateDay,\n DateMillisecond,\n Time,\n TimeSecond,\n TimeMillisecond,\n // TimeMicrosecond,\n // TimeNanosecond,\n Timestamp,\n TimestampSecond,\n TimestampMillisecond,\n TimestampMicrosecond,\n TimestampNanosecond,\n Interval,\n IntervalDayTime,\n IntervalYearMonth,\n FixedSizeList,\n Struct\n} from './impl/type';\n"],"file":"schema.js"}
@@ -0,0 +1,3 @@
1
+ export declare function deduceTypeFromColumn(value: unknown): StringConstructor | DateConstructor | Float32ArrayConstructor | null;
2
+ export declare function deduceTypeFromValue(value: unknown): StringConstructor | DateConstructor | Float32ArrayConstructor | null;
3
+ //# sourceMappingURL=deduce-column-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deduce-column-type.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-utils/deduce-column-type.ts"],"names":[],"mappings":"AAmCA,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,GACb,iBAAiB,GAAG,eAAe,GAAG,uBAAuB,GAAG,IAAI,CAStE;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,OAAO,GACb,iBAAiB,GAAG,eAAe,GAAG,uBAAuB,GAAG,IAAI,CAStE"}
@@ -0,0 +1,2 @@
1
+ export declare function assert(condition: boolean, message?: string): void;
2
+ //# sourceMappingURL=assert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/assert.ts"],"names":[],"mappings":"AAGA,wBAAgB,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,QAI1D"}
@@ -0,0 +1,18 @@
1
+ export default class AsyncQueue<T> {
2
+ private _values;
3
+ private _settlers;
4
+ private _closed;
5
+ constructor();
6
+ close(): void;
7
+ [Symbol.asyncIterator](): AsyncIterator<T>;
8
+ enqueue(value: T | Error): void;
9
+ /**
10
+ * @returns a Promise for an IteratorResult
11
+ */
12
+ next(): Promise<any>;
13
+ }
14
+ /**
15
+ * @returns a Promise for an Array with the elements in `asyncIterable`
16
+ */
17
+ export declare function takeAsync(asyncIterable: AsyncIterable<any>, count?: number): Promise<any[]>;
18
+ //# sourceMappingURL=async-queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-queue.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/async-queue.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,OAAO,UAAU,CAAC,CAAC;IAC/B,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,SAAS,CAA8E;IAC/F,OAAO,CAAC,OAAO,CAAU;;IAazB,KAAK,IAAI,IAAI;IAOb,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC;IAI1C,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,IAAI;IAoB/B;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC;CAoBrB;AAED;;GAEG;AACH,wBAAsB,SAAS,CAC7B,aAAa,EAAE,aAAa,CAAC,GAAG,CAAC,EACjC,KAAK,SAAW,GACf,OAAO,CAAC,GAAG,EAAE,CAAC,CAWhB"}
@@ -0,0 +1,9 @@
1
+ /** Convert an object row to an array row */
2
+ export declare function convertToObjectRow(arrayRow: any[], headers: string[]): {
3
+ [columnName: string]: any;
4
+ };
5
+ /** Convert an object row to an array row */
6
+ export declare function convertToArrayRow(objectRow: {
7
+ [columnName: string]: any;
8
+ }, headers: string[]): any[];
9
+ //# sourceMappingURL=row-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/row-utils.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,GAAG,EAAE,EACf,OAAO,EAAE,MAAM,EAAE,GAChB;IAAC,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,CAY7B;AAED,4CAA4C;AAC5C,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE;IAAC,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,EACtC,OAAO,EAAE,MAAM,EAAE,GAChB,GAAG,EAAE,CAYP"}
@@ -0,0 +1,8 @@
1
+ /** Any typed array */
2
+ export declare type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
3
+ export declare type BigTypedArray = TypedArray | BigInt64Array | BigUint64Array;
4
+ /** Any numeric array: typed array or `number[]` */
5
+ export declare type NumberArray = number[] | TypedArray;
6
+ /** Any array: typed array or js array (`any[]`) */
7
+ export declare type AnyArray = any[] | TypedArray;
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,oBAAY,UAAU,GAClB,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,iBAAiB,GACjB,YAAY,GACZ,YAAY,CAAC;AAEjB,oBAAY,aAAa,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,CAAC;AAExE,mDAAmD;AACnD,oBAAY,WAAW,GAAG,MAAM,EAAE,GAAG,UAAU,CAAC;AAEhD,mDAAmD;AACnD,oBAAY,QAAQ,GAAG,GAAG,EAAE,GAAG,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/schema",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.5",
4
4
  "description": "Table format APIs for JSON, CSV, etc...",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -18,7 +18,7 @@
18
18
  "point cloud",
19
19
  "PLY"
20
20
  ],
21
- "types": "src/index.ts",
21
+ "types": "dist/index.d.ts",
22
22
  "main": "dist/index.js",
23
23
  "module": "dist/index.js",
24
24
  "sideEffects": false,
@@ -29,11 +29,11 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "pre-build": "npm run build-bundle",
32
- "build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/bundle.js"
32
+ "build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
33
33
  },
34
34
  "dependencies": {
35
35
  "@types/geojson": "^7946.0.7",
36
36
  "apache-arrow": "^4.0.0"
37
37
  },
38
- "gitHead": "53026061b3c8871f7e96d3a5826125cc6613bddc"
38
+ "gitHead": "7a71a54bdf1ddf985cc3af3db90b82e7fa97d025"
39
39
  }
@@ -1,12 +1,79 @@
1
1
  // GIS
2
2
  import type {TypedArray} from '../types';
3
+ import type {Feature, Geometry, Point, LineString, Polygon} from 'geojson';
3
4
 
4
5
  // GEOJSON FORMAT GEOMETRY
5
6
 
6
7
  // eslint-disable-next-line import/no-unresolved
7
8
  export type {GeoJSON, Feature, Geometry, Position, GeoJsonProperties} from 'geojson';
8
9
  // eslint-disable-next-line import/no-unresolved
9
- export type {Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon} from 'geojson';
10
+ export type {
11
+ Point,
12
+ MultiPoint,
13
+ LineString,
14
+ MultiLineString,
15
+ Polygon,
16
+ MultiPolygon,
17
+ GeometryCollection
18
+ } from 'geojson';
19
+
20
+ // Aggregate information for converting GeoJSON into other formats
21
+ export type GeojsonGeometryInfo = {
22
+ coordLength: number;
23
+ pointPositionsCount: number;
24
+ pointFeaturesCount: number;
25
+ linePositionsCount: number;
26
+ linePathsCount: number;
27
+ lineFeaturesCount: number;
28
+ polygonPositionsCount: number;
29
+ polygonObjectsCount: number;
30
+ polygonRingsCount: number;
31
+ polygonFeaturesCount: number;
32
+ };
33
+
34
+ // FLAT GEOJSON FORMAT GEOMETRY
35
+ export type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';
36
+ type RemoveCoordinatesField<Type> = {
37
+ [Property in keyof Type as Exclude<Property, 'coordinates'>]: Type[Property];
38
+ };
39
+
40
+ /**
41
+ * Generic flat geometry data storage type
42
+ */
43
+ export type FlatIndexedGeometry = {
44
+ data: number[];
45
+ indices: number[];
46
+ };
47
+
48
+ /**
49
+ * GeoJSON (Multi)Point geometry with coordinate data flattened into `data` array and indexed by `indices`
50
+ */
51
+ export type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;
52
+
53
+ /**
54
+ * GeoJSON (Multi)LineString geometry with coordinate data flattened into `data` array and indexed by `indices`
55
+ */
56
+ export type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;
57
+
58
+ /**
59
+ * GeoJSON (Multi)Polygon geometry with coordinate data flattened into `data` array and indexed by 2D `indices`
60
+ */
61
+ export type FlatPolygon = RemoveCoordinatesField<Polygon> & {
62
+ data: number[];
63
+ indices: number[][];
64
+ areas: number[][];
65
+ };
66
+
67
+ export type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;
68
+
69
+ type FlattenGeometry<Type> = {
70
+ [Property in keyof Type]: Type[Property] extends Geometry ? FlatGeometry : Type[Property];
71
+ };
72
+
73
+ /**
74
+ * GeoJSON Feature with Geometry replaced by FlatGeometry
75
+ */
76
+ export type FlatFeature = FlattenGeometry<Feature>;
10
77
 
11
78
  // BINARY FORMAT GEOMETRY
12
79
 
@@ -37,6 +104,7 @@ export type BinaryPolygonGeometry = {
37
104
  positions: BinaryAttribute;
38
105
  polygonIndices: BinaryAttribute;
39
106
  primitivePolygonIndices: BinaryAttribute;
107
+ triangles?: BinaryAttribute;
40
108
  };
41
109
 
42
110
  export type BinaryProperties = {
@@ -0,0 +1,19 @@
1
+ /**
2
+ * data images
3
+ */
4
+ export type ImageDataType = {
5
+ data: Uint8Array;
6
+ width: number;
7
+ height: number;
8
+ compressed?: boolean;
9
+ };
10
+
11
+ /**
12
+ * Supported Image Types
13
+ */
14
+ export type ImageType = ImageBitmap | typeof Image | ImageDataType;
15
+
16
+ /**
17
+ * Image type string used to control or determine the type of images returned from ImageLoader
18
+ */
19
+ export type ImageTypeEnum = 'imagebitmap' | 'image' | 'data';
@@ -1,5 +1,5 @@
1
1
  import {MeshAttribute, MeshAttributes} from './mesh-types';
2
- import {Schema, Field, FixedSizeList} from '../../lib/schema';
2
+ import {Schema, Field, FixedSizeList} from '../../lib/schema/schema';
3
3
  import {getArrowTypeFromTypedArray} from '../../lib/arrow/arrow-like-type-utils';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type {Schema} from '../../lib/schema';
1
+ import type {Schema} from '../../lib/schema/schema';
2
2
  import type {TypedArray} from '../../types';
3
3
  import type {ColumnarTable, ArrowTable} from '../table/table-types';
4
4
 
@@ -14,7 +14,7 @@ import {
14
14
  // Utf8,
15
15
  // TimestampMillisecond,
16
16
  // Null
17
- } from '../../lib/schema';
17
+ } from '../../lib/schema/schema';
18
18
 
19
19
  // const TYPED_ARRAY_TO_TYPE = {
20
20
  // Int8Array: new Int8(),
@@ -1,4 +1,4 @@
1
- import type {Schema} from '../../lib/schema';
1
+ import type {Schema} from '../../lib/schema/schema';
2
2
  import type {Table as ApacheArrowTable, RecordBatch} from 'apache-arrow/Arrow.dom';
3
3
  import type {AnyArray} from '../../types';
4
4
  import type {Batch} from '../common';
@@ -0,0 +1,28 @@
1
+ import type {ImageType} from '../image/image';
2
+
3
+ /**
4
+ * These represent the main compressed texture formats
5
+ * Each format typically has a number of more specific subformats
6
+ */
7
+ export type GPUTextureFormat =
8
+ | 'dxt'
9
+ | 'dxt-srgb'
10
+ | 'etc1'
11
+ | 'etc2'
12
+ | 'pvrtc'
13
+ | 'atc'
14
+ | 'astc'
15
+ | 'rgtc';
16
+
17
+ /** One mip level */
18
+ export type TextureLevel = {
19
+ compressed: boolean;
20
+ format?: number;
21
+ data: Uint8Array;
22
+ width: number;
23
+ height: number;
24
+ levelSize?: number;
25
+ hasAlpha?: boolean;
26
+ };
27
+
28
+ export type TextureOrImage = ImageType | (TextureLevel | ImageType);
package/src/index.ts CHANGED
@@ -4,7 +4,6 @@ export type {TypedArray, NumberArray, AnyArray} from './types';
4
4
  export type {Batch} from './category/common';
5
5
 
6
6
  // TABLE CATEGORY TYPES
7
-
8
7
  export type {
9
8
  Table,
10
9
  ArrayRowTable,
@@ -46,6 +45,12 @@ export {
46
45
  makeMeshAttributeMetadata
47
46
  } from './category/mesh/deduce-mesh-schema';
48
47
 
48
+ // TEXTURES
49
+ export type {TextureLevel, GPUTextureFormat} from './category/texture/texture';
50
+
51
+ // IMAGES
52
+ export type {ImageDataType, ImageType, ImageTypeEnum} from './category/image/image';
53
+
49
54
  // TYPES
50
55
  // GIS CATEGORY - GEOJSON
51
56
  export type {GeoJSON, Feature, Geometry, Position, GeoJsonProperties} from './category/gis';
@@ -55,7 +60,21 @@ export type {
55
60
  LineString,
56
61
  MultiLineString,
57
62
  Polygon,
58
- MultiPolygon
63
+ MultiPolygon,
64
+ GeometryCollection
65
+ } from './category/gis';
66
+
67
+ export type {GeojsonGeometryInfo} from './category/gis';
68
+
69
+ // GIS CATEGORY - FLAT GEOJSON
70
+ export type {
71
+ FlatFeature,
72
+ FlatIndexedGeometry,
73
+ FlatGeometry,
74
+ FlatGeometryType,
75
+ FlatPoint,
76
+ FlatLineString,
77
+ FlatPolygon
59
78
  } from './category/gis';
60
79
 
61
80
  // GIS CATEGORY - BINARY
@@ -112,7 +131,7 @@ export {
112
131
  IntervalYearMonth,
113
132
  FixedSizeList,
114
133
  Struct
115
- } from './lib/schema';
134
+ } from './lib/schema/schema';
116
135
 
117
136
  // EXPERIMENTAL APIs
118
137
 
@@ -1,5 +1,15 @@
1
1
  import type {TypedArray} from '../../types';
2
- import {DataType, Float32, Float64, Int16, Int32, Int8, Uint16, Uint32, Uint8} from '../schema';
2
+ import {
3
+ DataType,
4
+ Float32,
5
+ Float64,
6
+ Int16,
7
+ Int32,
8
+ Int8,
9
+ Uint16,
10
+ Uint32,
11
+ Uint8
12
+ } from '../schema/schema';
3
13
 
4
14
  export function getArrowTypeFromTypedArray(array: TypedArray): DataType {
5
15
  switch (array.constructor) {
@@ -1,4 +1,4 @@
1
- import {Type} from '../schema';
1
+ import {Type} from '../schema/schema';
2
2
  import {AnyArray} from '../../types';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type {Schema} from '../schema';
1
+ import type {Schema} from '../schema/schema';
2
2
  import type {TableBatch} from '../../category/table/table-types';
3
3
  import {TableBatchAggregator, TableBatchOptions} from './table-batch-aggregator';
4
4
 
@@ -1,4 +1,4 @@
1
- import type {Schema} from '../schema';
1
+ import type {Schema} from '../schema/schema';
2
2
  import type {ColumnarTableBatch, ArrowTableBatch} from '../../category/table/table-types';
3
3
  import {TableBatchAggregator} from './table-batch-aggregator';
4
4
 
@@ -1,4 +1,4 @@
1
- import type {Schema} from '../schema';
1
+ import type {Schema} from '../schema/schema';
2
2
  import type {TableBatch} from '../../category/table/table-types';
3
3
  // import type {ArrayRowTableBatch, ObjectRowTableBatch} from '../../category/table';
4
4
  import {convertToArrayRow, convertToObjectRow} from '../utils/row-utils';
@@ -1,4 +1,4 @@
1
- import type {Schema} from '../schema';
1
+ import type {Schema} from '../schema/schema';
2
2
  import type {TableBatch} from '../../category/table/table-types';
3
3
 
4
4
  export interface TableBatchOptions {
@@ -1,4 +1,4 @@
1
- import type {Schema} from '../schema';
1
+ import type {Schema} from '../schema/schema';
2
2
  import type {TableBatch} from '../../category/table/table-types';
3
3
  import type {TableBatchAggregator, TableBatchConstructor} from './table-batch-aggregator';
4
4
  import BaseTableBatchAggregator from './base-table-batch-aggregator';
File without changes
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/lib/schema/index.ts"],"names":["default","Schema","Field","Type","DataType","Null","Bool","Int","Int8","Int16","Int32","Int64","Uint8","Uint16","Uint32","Uint64","Float","Float16","Float32","Float64","Binary","Utf8","Date","DateDay","DateMillisecond","Time","TimeSecond","TimeMillisecond","Timestamp","TimestampSecond","TimestampMillisecond","TimestampMicrosecond","TimestampNanosecond","Interval","IntervalDayTime","IntervalYearMonth","FixedSizeList","Struct"],"mappings":"AAyCA,SAAQA,OAAO,IAAIC,MAAnB,QAAgC,eAAhC;AACA,SAAQD,OAAO,IAAIE,KAAnB,QAA+B,cAA/B;AACA,SAAQC,IAAR,QAAmB,aAAnB;AACA,SACEC,QADF,EAEEC,IAFF,EAGEC,IAHF,EAIEC,GAJF,EAKEC,IALF,EAMEC,KANF,EAOEC,KAPF,EAQEC,KARF,EASEC,KATF,EAUEC,MAVF,EAWEC,MAXF,EAYEC,MAZF,EAaEC,KAbF,EAcEC,OAdF,EAeEC,OAfF,EAgBEC,OAhBF,EAiBEC,MAjBF,EAkBEC,IAlBF,EAmBEC,IAnBF,EAoBEC,OApBF,EAqBEC,eArBF,EAsBEC,IAtBF,EAuBEC,UAvBF,EAwBEC,eAxBF,EA2BEC,SA3BF,EA4BEC,eA5BF,EA6BEC,oBA7BF,EA8BEC,oBA9BF,EA+BEC,mBA/BF,EAgCEC,QAhCF,EAiCEC,eAjCF,EAkCEC,iBAlCF,EAmCEC,aAnCF,EAoCEC,MApCF,QAqCO,aArCP","sourcesContent":["/*\nexport {\n Schema,\n Field,\n DataType,\n Null,\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 Binary,\n Utf8,\n Date,\n DateDay,\n DateMillisecond,\n Time,\n TimeSecond,\n TimeMillisecond,\n TimeMicrosecond,\n TimeNanosecond,\n Timestamp,\n TimestampSecond,\n TimestampMillisecond,\n TimestampMicrosecond,\n TimestampNanosecond,\n Interval,\n IntervalDayTime,\n IntervalYearMonth,\n FixedSizeList\n} from 'apache-arrow';\n*/\nexport {default as Schema} from './impl/schema';\nexport {default as Field} from './impl/field';\nexport {Type} from './impl/type';\nexport {\n DataType,\n Null,\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 Binary,\n Utf8,\n Date,\n DateDay,\n DateMillisecond,\n Time,\n TimeSecond,\n TimeMillisecond,\n // TimeMicrosecond,\n // TimeNanosecond,\n Timestamp,\n TimestampSecond,\n TimestampMillisecond,\n TimestampMicrosecond,\n TimestampNanosecond,\n Interval,\n IntervalDayTime,\n IntervalYearMonth,\n FixedSizeList,\n Struct\n} from './impl/type';\n"],"file":"index.js"}