@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.
Files changed (138) hide show
  1. package/dist/category/common.d.ts +3 -3
  2. package/dist/category/common.d.ts.map +1 -1
  3. package/dist/category/gis.d.ts +23 -23
  4. package/dist/category/gis.d.ts.map +1 -1
  5. package/dist/category/image/image.d.ts +3 -3
  6. package/dist/category/image/image.d.ts.map +1 -1
  7. package/dist/category/mesh/convert-mesh.d.ts +1 -1
  8. package/dist/category/mesh/convert-mesh.d.ts.map +1 -1
  9. package/dist/category/mesh/mesh-types.d.ts +4 -4
  10. package/dist/category/mesh/mesh-types.d.ts.map +1 -1
  11. package/dist/category/mesh/mesh-utils.d.ts +2 -2
  12. package/dist/category/mesh/mesh-utils.d.ts.map +1 -1
  13. package/dist/category/table/table-types.d.ts +8 -8
  14. package/dist/category/table/table-types.d.ts.map +1 -1
  15. package/dist/category/texture/texture.d.ts +3 -3
  16. package/dist/category/texture/texture.d.ts.map +1 -1
  17. package/dist/es5/bundle.js +0 -1
  18. package/dist/es5/bundle.js.map +1 -1
  19. package/dist/es5/category/common.js.map +1 -1
  20. package/dist/es5/category/gis.js.map +1 -1
  21. package/dist/es5/category/image/image.js.map +1 -1
  22. package/dist/es5/category/mesh/convert-mesh.js +2 -12
  23. package/dist/es5/category/mesh/convert-mesh.js.map +1 -1
  24. package/dist/es5/category/mesh/deduce-mesh-schema.js +1 -10
  25. package/dist/es5/category/mesh/deduce-mesh-schema.js.map +1 -1
  26. package/dist/es5/category/mesh/mesh-to-arrow-table.js +2 -9
  27. package/dist/es5/category/mesh/mesh-to-arrow-table.js.map +1 -1
  28. package/dist/es5/category/mesh/mesh-types.js.map +1 -1
  29. package/dist/es5/category/mesh/mesh-utils.js +1 -6
  30. package/dist/es5/category/mesh/mesh-utils.js.map +1 -1
  31. package/dist/es5/category/table/deduce-table-schema.js +0 -11
  32. package/dist/es5/category/table/deduce-table-schema.js.map +1 -1
  33. package/dist/es5/category/table/table-types.js.map +1 -1
  34. package/dist/es5/category/texture/texture.js.map +1 -1
  35. package/dist/es5/index.js +100 -112
  36. package/dist/es5/index.js.map +1 -1
  37. package/dist/es5/lib/arrow/arrow-like-type-utils.js +0 -10
  38. package/dist/es5/lib/arrow/arrow-like-type-utils.js.map +1 -1
  39. package/dist/es5/lib/arrow/arrow-type-utils.js +0 -19
  40. package/dist/es5/lib/arrow/arrow-type-utils.js.map +1 -1
  41. package/dist/es5/lib/arrow/get-type-info.js +0 -6
  42. package/dist/es5/lib/arrow/get-type-info.js.map +1 -1
  43. package/dist/es5/lib/batches/base-table-batch-aggregator.js +0 -13
  44. package/dist/es5/lib/batches/base-table-batch-aggregator.js.map +1 -1
  45. package/dist/es5/lib/batches/columnar-table-batch-aggregator.js +6 -23
  46. package/dist/es5/lib/batches/columnar-table-batch-aggregator.js.map +1 -1
  47. package/dist/es5/lib/batches/row-table-batch-aggregator.js +0 -13
  48. package/dist/es5/lib/batches/row-table-batch-aggregator.js.map +1 -1
  49. package/dist/es5/lib/batches/table-batch-aggregator.js.map +1 -1
  50. package/dist/es5/lib/batches/table-batch-builder.js +21 -37
  51. package/dist/es5/lib/batches/table-batch-builder.js.map +1 -1
  52. package/dist/es5/lib/schema/impl/enum.js +0 -1
  53. package/dist/es5/lib/schema/impl/enum.js.map +1 -1
  54. package/dist/es5/lib/schema/impl/field.js +0 -7
  55. package/dist/es5/lib/schema/impl/field.js.map +1 -1
  56. package/dist/es5/lib/schema/impl/schema.js +6 -35
  57. package/dist/es5/lib/schema/impl/schema.js.map +1 -1
  58. package/dist/es5/lib/schema/impl/type.js +74 -248
  59. package/dist/es5/lib/schema/impl/type.js.map +1 -1
  60. package/dist/es5/lib/schema/schema.js +70 -74
  61. package/dist/es5/lib/schema/schema.js.map +1 -1
  62. package/dist/es5/lib/schema-utils/deduce-column-type.js +0 -3
  63. package/dist/es5/lib/schema-utils/deduce-column-type.js.map +1 -1
  64. package/dist/es5/lib/utils/assert.js +0 -1
  65. package/dist/es5/lib/utils/assert.js.map +1 -1
  66. package/dist/es5/lib/utils/async-queue.js +10 -50
  67. package/dist/es5/lib/utils/async-queue.js.map +1 -1
  68. package/dist/es5/lib/utils/row-utils.js +1 -10
  69. package/dist/es5/lib/utils/row-utils.js.map +1 -1
  70. package/dist/es5/types.js.map +1 -1
  71. package/dist/esm/bundle.js +1 -1
  72. package/dist/esm/bundle.js.map +1 -1
  73. package/dist/esm/category/common.js.map +1 -1
  74. package/dist/esm/category/gis.js.map +1 -1
  75. package/dist/esm/category/image/image.js.map +1 -1
  76. package/dist/esm/category/mesh/convert-mesh.js +1 -5
  77. package/dist/esm/category/mesh/convert-mesh.js.map +1 -1
  78. package/dist/esm/category/mesh/deduce-mesh-schema.js +2 -6
  79. package/dist/esm/category/mesh/deduce-mesh-schema.js.map +1 -1
  80. package/dist/esm/category/mesh/mesh-to-arrow-table.js +1 -3
  81. package/dist/esm/category/mesh/mesh-to-arrow-table.js.map +1 -1
  82. package/dist/esm/category/mesh/mesh-types.js.map +1 -1
  83. package/dist/esm/category/mesh/mesh-utils.js +3 -5
  84. package/dist/esm/category/mesh/mesh-utils.js.map +1 -1
  85. package/dist/esm/category/table/deduce-table-schema.js +2 -11
  86. package/dist/esm/category/table/deduce-table-schema.js.map +1 -1
  87. package/dist/esm/category/table/table-types.js.map +1 -1
  88. package/dist/esm/category/texture/texture.js.map +1 -1
  89. package/dist/esm/index.js +5 -0
  90. package/dist/esm/index.js.map +1 -1
  91. package/dist/esm/lib/arrow/arrow-like-type-utils.js +0 -8
  92. package/dist/esm/lib/arrow/arrow-like-type-utils.js.map +1 -1
  93. package/dist/esm/lib/arrow/arrow-type-utils.js +0 -16
  94. package/dist/esm/lib/arrow/arrow-type-utils.js.map +1 -1
  95. package/dist/esm/lib/arrow/get-type-info.js +0 -3
  96. package/dist/esm/lib/arrow/get-type-info.js.map +1 -1
  97. package/dist/esm/lib/batches/base-table-batch-aggregator.js +0 -16
  98. package/dist/esm/lib/batches/base-table-batch-aggregator.js.map +1 -1
  99. package/dist/esm/lib/batches/columnar-table-batch-aggregator.js +0 -20
  100. package/dist/esm/lib/batches/columnar-table-batch-aggregator.js.map +1 -1
  101. package/dist/esm/lib/batches/row-table-batch-aggregator.js +0 -17
  102. package/dist/esm/lib/batches/row-table-batch-aggregator.js.map +1 -1
  103. package/dist/esm/lib/batches/table-batch-aggregator.js.map +1 -1
  104. package/dist/esm/lib/batches/table-batch-builder.js +4 -35
  105. package/dist/esm/lib/batches/table-batch-builder.js.map +1 -1
  106. package/dist/esm/lib/schema/impl/enum.js +2 -1
  107. package/dist/esm/lib/schema/impl/enum.js.map +1 -1
  108. package/dist/esm/lib/schema/impl/field.js +3 -10
  109. package/dist/esm/lib/schema/impl/field.js.map +1 -1
  110. package/dist/esm/lib/schema/impl/schema.js +9 -20
  111. package/dist/esm/lib/schema/impl/schema.js.map +1 -1
  112. package/dist/esm/lib/schema/impl/type.js +19 -113
  113. package/dist/esm/lib/schema/impl/type.js.map +1 -1
  114. package/dist/esm/lib/schema/schema.js +3 -1
  115. package/dist/esm/lib/schema/schema.js.map +1 -1
  116. package/dist/esm/lib/schema-utils/deduce-column-type.js +2 -2
  117. package/dist/esm/lib/schema-utils/deduce-column-type.js.map +1 -1
  118. package/dist/esm/lib/utils/assert.js +1 -0
  119. package/dist/esm/lib/utils/assert.js.map +1 -1
  120. package/dist/esm/lib/utils/async-queue.js +3 -25
  121. package/dist/esm/lib/utils/async-queue.js.map +1 -1
  122. package/dist/esm/lib/utils/row-utils.js +2 -8
  123. package/dist/esm/lib/utils/row-utils.js.map +1 -1
  124. package/dist/esm/types.js.map +1 -1
  125. package/dist/index.js +1 -1
  126. package/dist/lib/batches/columnar-table-batch-aggregator.d.ts +1 -1
  127. package/dist/lib/batches/columnar-table-batch-aggregator.d.ts.map +1 -1
  128. package/dist/lib/batches/row-table-batch-aggregator.js +1 -1
  129. package/dist/lib/batches/table-batch-builder.d.ts +2 -2
  130. package/dist/lib/batches/table-batch-builder.d.ts.map +1 -1
  131. package/dist/lib/schema/impl/schema.d.ts +1 -1
  132. package/dist/lib/schema/impl/schema.d.ts.map +1 -1
  133. package/dist/lib/schema/impl/type.d.ts +4 -4
  134. package/dist/lib/schema/impl/type.d.ts.map +1 -1
  135. package/dist/lib/schema-utils/deduce-column-type.js +1 -1
  136. package/dist/types.d.ts +4 -4
  137. package/dist/types.d.ts.map +1 -1
  138. package/package.json +3 -4
@@ -1,9 +1,9 @@
1
1
  import type { RecordBatch } from 'apache-arrow';
2
- export declare type Field = any;
3
- export declare type Schema = {
2
+ export type Field = any;
3
+ export type Schema = {
4
4
  [key: string]: Field;
5
5
  };
6
- export declare type Batch = {
6
+ export type Batch = {
7
7
  batchType: 'data' | 'metadata' | 'partial-result' | 'final-result';
8
8
  mimeType?: string;
9
9
  shape: string;
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/category/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAE9C,oBAAY,KAAK,GAAG,GAAG,CAAC;AAExB,oBAAY,MAAM,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;CACtB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,gBAAgB,GAAG,cAAc,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/category/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,KAAK,GAAG,GAAG,CAAC;AAExB,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,gBAAgB,GAAG,cAAc,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC"}
@@ -2,7 +2,7 @@ import type { TypedArray } from '../types';
2
2
  import type { Feature, Geometry, Point, LineString, Polygon } from 'geojson';
3
3
  export type { GeoJSON, Feature, FeatureCollection, Geometry, Position, GeoJsonProperties } from 'geojson';
4
4
  export type { Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from 'geojson';
5
- export declare type GeojsonGeometryInfo = {
5
+ export type GeojsonGeometryInfo = {
6
6
  coordLength: number;
7
7
  pointPositionsCount: number;
8
8
  pointFeaturesCount: number;
@@ -14,84 +14,84 @@ export declare type GeojsonGeometryInfo = {
14
14
  polygonRingsCount: number;
15
15
  polygonFeaturesCount: number;
16
16
  };
17
- export declare type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';
18
- declare type RemoveCoordinatesField<Type> = {
17
+ export type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';
18
+ type RemoveCoordinatesField<Type> = {
19
19
  [Property in keyof Type as Exclude<Property, 'coordinates'>]: Type[Property];
20
20
  };
21
21
  /**
22
22
  * Generic flat geometry data storage type
23
23
  */
24
- export declare type FlatIndexedGeometry = {
24
+ export type FlatIndexedGeometry = {
25
25
  data: number[];
26
26
  indices: number[];
27
27
  };
28
28
  /**
29
29
  * GeoJSON (Multi)Point geometry with coordinate data flattened into `data` array and indexed by `indices`
30
30
  */
31
- export declare type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;
31
+ export type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;
32
32
  /**
33
33
  * GeoJSON (Multi)LineString geometry with coordinate data flattened into `data` array and indexed by `indices`
34
34
  */
35
- export declare type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;
35
+ export type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;
36
36
  /**
37
37
  * GeoJSON (Multi)Polygon geometry with coordinate data flattened into `data` array and indexed by 2D `indices`
38
38
  */
39
- export declare type FlatPolygon = RemoveCoordinatesField<Polygon> & {
39
+ export type FlatPolygon = RemoveCoordinatesField<Polygon> & {
40
40
  data: number[];
41
41
  indices: number[][];
42
42
  areas: number[][];
43
43
  };
44
- export declare type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;
45
- declare type FlattenGeometry<Type> = {
44
+ export type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;
45
+ type FlattenGeometry<Type> = {
46
46
  [Property in keyof Type]: Type[Property] extends Geometry ? FlatGeometry : Type[Property];
47
47
  };
48
48
  /**
49
49
  * GeoJSON Feature with Geometry replaced by FlatGeometry
50
50
  */
51
- export declare type FlatFeature = FlattenGeometry<Feature>;
52
- export declare type BinaryAttribute = {
51
+ export type FlatFeature = FlattenGeometry<Feature>;
52
+ export type BinaryAttribute = {
53
53
  value: TypedArray;
54
54
  size: number;
55
55
  };
56
- export declare type BinaryGeometryType = 'Point' | 'LineString' | 'Polygon';
57
- declare type NumericProps = {
56
+ export type BinaryGeometryType = 'Point' | 'LineString' | 'Polygon';
57
+ type NumericProps = {
58
58
  [key: string]: BinaryAttribute;
59
59
  };
60
- declare type Properties = object[];
60
+ type Properties = object[];
61
61
  /**
62
62
  * Represent a single Geometry, similar to a GeoJSON Geometry
63
63
  */
64
- export declare type BinaryGeometry = BinaryPointGeometry | BinaryLineGeometry | BinaryPolygonGeometry;
65
- export declare type BinaryPointGeometry = {
64
+ export type BinaryGeometry = BinaryPointGeometry | BinaryLineGeometry | BinaryPolygonGeometry;
65
+ export type BinaryPointGeometry = {
66
66
  type: 'Point';
67
67
  positions: BinaryAttribute;
68
68
  };
69
- export declare type BinaryLineGeometry = {
69
+ export type BinaryLineGeometry = {
70
70
  type: 'LineString';
71
71
  positions: BinaryAttribute;
72
72
  pathIndices: BinaryAttribute;
73
73
  };
74
- export declare type BinaryPolygonGeometry = {
74
+ export type BinaryPolygonGeometry = {
75
75
  type: 'Polygon';
76
76
  positions: BinaryAttribute;
77
77
  polygonIndices: BinaryAttribute;
78
78
  primitivePolygonIndices: BinaryAttribute;
79
79
  triangles?: BinaryAttribute;
80
80
  };
81
- export declare type BinaryProperties = {
81
+ export type BinaryProperties = {
82
82
  featureIds: BinaryAttribute;
83
83
  globalFeatureIds: BinaryAttribute;
84
84
  numericProps: NumericProps;
85
85
  properties: Properties;
86
86
  fields?: Properties;
87
87
  };
88
- export declare type BinaryPointFeatures = BinaryPointGeometry & BinaryProperties;
89
- export declare type BinaryLineFeatures = BinaryLineGeometry & BinaryProperties;
90
- export declare type BinaryPolygonFeatures = BinaryPolygonGeometry & BinaryProperties;
88
+ export type BinaryPointFeatures = BinaryPointGeometry & BinaryProperties;
89
+ export type BinaryLineFeatures = BinaryLineGeometry & BinaryProperties;
90
+ export type BinaryPolygonFeatures = BinaryPolygonGeometry & BinaryProperties;
91
91
  /**
92
92
  * Represent a collection of Features, similar to a GeoJSON FeatureCollection
93
93
  */
94
- export declare type BinaryFeatures = {
94
+ export type BinaryFeatures = {
95
95
  points?: BinaryPointFeatures;
96
96
  lines?: BinaryLineFeatures;
97
97
  polygons?: BinaryPolygonFeatures;
@@ -1 +1 @@
1
- {"version":3,"file":"gis.d.ts","sourceRoot":"","sources":["../../src/category/gis.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC;AAK3E,YAAY,EACV,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,KAAK,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,OAAO,EACP,YAAY,EACZ,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAGjB,oBAAY,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAGF,oBAAY,gBAAgB,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;AAClE,aAAK,sBAAsB,CAAC,IAAI,IAAI;KACjC,QAAQ,IAAI,MAAM,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;CAC7E,CAAC;AAEF;;GA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gB,EAAE,eAAe,CAAC;IAClC,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG,gBAAgB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * data images
3
3
  */
4
- export declare type ImageDataType = {
4
+ export type ImageDataType = {
5
5
  data: Uint8Array;
6
6
  width: number;
7
7
  height: number;
@@ -10,9 +10,9 @@ export declare type ImageDataType = {
10
10
  /**
11
11
  * Supported Image Types
12
12
  */
13
- export declare type ImageType = ImageBitmap | typeof Image | ImageDataType;
13
+ export type ImageType = ImageBitmap | typeof Image | ImageDataType;
14
14
  /**
15
15
  * Image type string used to control or determine the type of images returned from ImageLoader
16
16
  */
17
- export declare type ImageTypeEnum = 'imagebitmap' | 'image' | 'data';
17
+ export type ImageTypeEnum = 'imagebitmap' | 'image' | 'data';
18
18
  //# sourceMappingURL=image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/category/image/image.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS,GAAG,WAAW,GAAG,OAAO,KAAK,GAAG,aAAa,CAAC;AAEnE;;GAEG;AACH,oBAAY,aAAa,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/category/image/image.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,OAAO,KAAK,GAAG,aAAa,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Mesh } from './mesh-types';
2
2
  import type { ColumnarTable, ArrowTable } from '../table/table-types';
3
- declare type TargetShape = 'mesh' | 'columnar-table' | 'arrow-table';
3
+ type TargetShape = 'mesh' | 'columnar-table' | 'arrow-table';
4
4
  /**
5
5
  * Convert a mesh to a specific shape
6
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"convert-mesh.d.ts","sourceRoot":"","sources":["../../../src/category/mesh/convert-mesh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAGpE,aAAK,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAE7D;;GAEG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,GAAG,GACZ,IAAI,GAAG,aAAa,GAAG,UAAU,CAcnC;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,aAAa,CAYpE"}
1
+ {"version":3,"file":"convert-mesh.d.ts","sourceRoot":"","sources":["../../../src/category/mesh/convert-mesh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAGpE,KAAK,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAE7D;;GAEG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,GAAG,GACZ,IAAI,GAAG,aAAa,GAAG,UAAU,CAcnC;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,aAAa,CAYpE"}
@@ -12,7 +12,7 @@ export interface MeshArrowTable extends ArrowTable {
12
12
  indices?: MeshAttribute;
13
13
  }
14
14
  /** Geometry part of a Mesh (compatible with a standard luma.gl "mesh") */
15
- export declare type MeshGeometry = {
15
+ export type MeshGeometry = {
16
16
  attributes: {
17
17
  [attributeName: string]: MeshAttribute;
18
18
  };
@@ -21,7 +21,7 @@ export declare type MeshGeometry = {
21
21
  mode: number;
22
22
  };
23
23
  /** Geometry and metadata for a Mesh (compatible with a standard luma.gl "mesh") */
24
- export declare type Mesh = MeshGeometry & {
24
+ export type Mesh = MeshGeometry & {
25
25
  loader?: string;
26
26
  loaderData?: {
27
27
  [key: string]: any;
@@ -36,7 +36,7 @@ export declare type Mesh = MeshGeometry & {
36
36
  * luma.gl compatible attribute descriptors
37
37
  * Can be mapped to any WebGL framework
38
38
  */
39
- export declare type MeshAttribute = {
39
+ export type MeshAttribute = {
40
40
  value: TypedArray;
41
41
  size: number;
42
42
  byteOffset?: number;
@@ -44,7 +44,7 @@ export declare type MeshAttribute = {
44
44
  normalized?: boolean;
45
45
  };
46
46
  /** A map of mesh attributes keyed by attribute names */
47
- export declare type MeshAttributes = {
47
+ export type MeshAttributes = {
48
48
  [attributeName: string]: MeshAttribute;
49
49
  };
50
50
  //# sourceMappingURL=mesh-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mesh-types.d.ts","sourceRoot":"","sources":["../../../src/category/mesh/mesh-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEpE,6BAA6B;AAC7B,MAAM,WAAW,SAAU,SAAQ,aAAa;IAE9C,QAAQ,EAAE,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAAC;IAC5D,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,0BAA0B;AAC1B,MAAM,WAAW,cAAe,SAAQ,UAAU;IAEhD,QAAQ,EAAE,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAAC;IAC5D,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,0EAA0E;AAC1E,oBAAY,YAAY,GAAG;IACzB,UAAU,EAAE;QAAC,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAA;KAAC,CAAC;IACrD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAAC;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,mFAAmF;AACnF,oBAAY,IAAI,GAAG,YAAY,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAClC,MAAM,CAAC,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,CAAC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M,CAAC;CACd,CAAC;AAEF,mFAAmF;AACnF,MAAM,MAAM,IAAI,GAAG,YAAY,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAClC,MAAM,CAAC,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;KACpC,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wDAAwD;AACxD,MAAM,MAAM,cAAc,GAAG;IAAC,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAA;CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { TypedArray } from '../../types';
2
2
  import { MeshAttributes } from './mesh-types';
3
- declare type TypedArrays = {
3
+ type TypedArrays = {
4
4
  [key: string]: TypedArray;
5
5
  };
6
6
  /**
7
7
  * Holds an axis aligned bounding box
8
8
  * TODO - make sure AxisAlignedBoundingBox in math.gl/culling understands this format (or change this format)
9
9
  */
10
- declare type BoundingBox = [[number, number, number], [number, number, number]];
10
+ type BoundingBox = [[number, number, number], [number, number, number]];
11
11
  /**
12
12
  * Get number of vertices in mesh
13
13
  * @param attributes
@@ -1 +1 @@
1
- {"version":3,"file":"mesh-utils.d.ts","sourceRoot":"","sources":["../../../src/category/mesh/mesh-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAE5C,aAAK,WAAW,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAC,CAAC;AAE/C;;;GAGG;AACH,aAAK,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,WAAW,GAAG,MAAM,CAU3D;AAED;;;;GAIG;AAEH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,cAAc,GAAG,WAAW,CA4B1E"}
1
+ {"version":3,"file":"mesh-utils.d.ts","sourceRoot":"","sources":["../../../src/category/mesh/mesh-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAE5C,KAAK,WAAW,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAC,CAAC;AAE/C;;;GAGG;AACH,KAAK,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,WAAW,GAAG,MAAM,CAU3D;AAED;;;;GAIG;AAEH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,cAAc,GAAG,WAAW,CA4B1E"}
@@ -44,7 +44,7 @@ export interface ArrowTable extends Table {
44
44
  data: ApacheArrowTable;
45
45
  }
46
46
  /** A collection of tables */
47
- export declare type Tables<TableType extends Table = Table> = {
47
+ export type Tables<TableType extends Table = Table> = {
48
48
  shape: 'tables';
49
49
  tables: {
50
50
  name: string;
@@ -52,43 +52,43 @@ export declare type Tables<TableType extends Table = Table> = {
52
52
  }[];
53
53
  };
54
54
  /** Batch for a general table */
55
- export declare type TableBatch = Batch & {
55
+ export type TableBatch = Batch & {
56
56
  data: any;
57
57
  length: number;
58
58
  schema?: Schema;
59
59
  schemaType?: 'explicit' | 'deduced';
60
60
  };
61
61
  /** Batch for a table organized as an array of rows */
62
- export declare type RowTableBatch = TableBatch & {
62
+ export type RowTableBatch = TableBatch & {
63
63
  shape: 'row-table';
64
64
  data: any[];
65
65
  };
66
66
  /** Batch for a table organized as an array of rows, each row is an array of values */
67
- export declare type RowArrayTableBatch = RowTableBatch & {
67
+ export type RowArrayTableBatch = RowTableBatch & {
68
68
  shape: 'array-row-table';
69
69
  data: any[][];
70
70
  };
71
71
  /** Batch for a table organized as an array of rows, each row is an object mapping columns to values */
72
- export declare type RowObjectTableBatch = RowTableBatch & {
72
+ export type RowObjectTableBatch = RowTableBatch & {
73
73
  shape: 'object-row-table';
74
74
  data: {
75
75
  [columnName: string]: any;
76
76
  }[];
77
77
  };
78
78
  /** Batch for a table organized as an array of rows, each row is an array of values */
79
- export declare type GeoJSONRowTableBatch = RowTableBatch & {
79
+ export type GeoJSONRowTableBatch = RowTableBatch & {
80
80
  shape: 'geojson-row-table';
81
81
  data: Feature[];
82
82
  };
83
83
  /** Batch for a table organized as a map of columns, each column is an array of value */
84
- export declare type ColumnarTableBatch = TableBatch & {
84
+ export type ColumnarTableBatch = TableBatch & {
85
85
  shape: 'columnar-table';
86
86
  data: {
87
87
  [columnName: string]: AnyArray;
88
88
  };
89
89
  };
90
90
  /** Batch for a table organized as an Apache Arrow table */
91
- export declare type ArrowTableBatch = TableBatch & {
91
+ export type ArrowTableBatch = TableBatch & {
92
92
  shape: 'arrow-table';
93
93
  data: RecordBatch;
94
94
  };
@@ -1 +1 @@
1
- {"version":3,"file":"table-types.d.ts","sourceRoot":"","sources":["../../../src/category/table/table-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EA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mBAAmB,GAAG,aAAa,GAAG;IAChD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,IAAI,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,EAAE,CAAC;CACrC,CAAC;AAEF,sFAAsF;AACtF,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,KAAK,EAAE,mBAAmB,CAAC;IAC3B,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC;AAEF,wFAAwF;AACxF,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAC,CAAC;CACxC,CAAC;AAEF,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
@@ -3,9 +3,9 @@ import type { ImageType } from '../image/image';
3
3
  * These represent the main compressed texture formats
4
4
  * Each format typically has a number of more specific subformats
5
5
  */
6
- export declare type GPUTextureFormat = 'dxt' | 'dxt-srgb' | 'etc1' | 'etc2' | 'pvrtc' | 'atc' | 'astc' | 'rgtc';
6
+ export type GPUTextureFormat = 'dxt' | 'dxt-srgb' | 'etc1' | 'etc2' | 'pvrtc' | 'atc' | 'astc' | 'rgtc';
7
7
  /** One mip level */
8
- export declare type TextureLevel = {
8
+ export type TextureLevel = {
9
9
  compressed: boolean;
10
10
  format?: number;
11
11
  data: Uint8Array;
@@ -14,5 +14,5 @@ export declare type TextureLevel = {
14
14
  levelSize?: number;
15
15
  hasAlpha?: boolean;
16
16
  };
17
- export declare type TextureOrImage = ImageType | (TextureLevel | ImageType);
17
+ export type TextureOrImage = ImageType | (TextureLevel | ImageType);
18
18
  //# sourceMappingURL=texture.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"texture.d.ts","sourceRoot":"","sources":["../../../src/category/texture/texture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,oBAAY,gBAAgB,GACxB,KAAK,GACL,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,MAAM,CAAC;AAEX,oBAAoB;AACpB,oBAAY,YAAY,GAAG;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,cAAc,GAAG,SAAS,GAAG,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"texture.d.ts","sourceRoot":"","sources":["../../../src/category/texture/texture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,MAAM,CAAC;AAEX,oBAAoB;AACpB,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var moduleExports = require('./index');
4
-
5
4
  globalThis.loaders = globalThis.loaders || {};
6
5
  module.exports = Object.assign(globalThis.loaders, moduleExports);
7
6
  //# sourceMappingURL=bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bundle.ts"],"names":["moduleExports","require","globalThis","loaders","module","exports","Object","assign"],"mappings":";;AACA,IAAMA,aAAa,GAAGC,OAAO,CAAC,SAAD,CAA7B;;AACAC,UAAU,CAACC,OAAX,GAAqBD,UAAU,CAACC,OAAX,IAAsB,EAA3C;AACAC,MAAM,CAACC,OAAP,GAAiBC,MAAM,CAACC,MAAP,CAAcL,UAAU,CAACC,OAAzB,EAAkCH,aAAlC,CAAjB","sourcesContent":["// @ts-nocheck\nconst moduleExports = require('./index');\nglobalThis.loaders = globalThis.loaders || {};\nmodule.exports = Object.assign(globalThis.loaders, moduleExports);\n"],"file":"bundle.js"}
1
+ {"version":3,"file":"bundle.js","names":["moduleExports","require","globalThis","loaders","module","exports","Object","assign"],"sources":["../../src/bundle.ts"],"sourcesContent":["// @ts-nocheck\nconst moduleExports = require('./index');\nglobalThis.loaders = globalThis.loaders || {};\nmodule.exports = Object.assign(globalThis.loaders, moduleExports);\n"],"mappings":";;AACA,IAAMA,aAAa,GAAGC,OAAO,CAAC,SAAS,CAAC;AACxCC,UAAU,CAACC,OAAO,GAAGD,UAAU,CAACC,OAAO,IAAI,CAAC,CAAC;AAC7CC,MAAM,CAACC,OAAO,GAAGC,MAAM,CAACC,MAAM,CAACL,UAAU,CAACC,OAAO,EAAEH,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"common.js"}
1
+ {"version":3,"file":"common.js","names":[],"sources":["../../../src/category/common.ts"],"sourcesContent":["import type {RecordBatch} from 'apache-arrow';\n\nexport type Field = any;\n\nexport type Schema = {\n [key: string]: Field;\n};\n\nexport type Batch = {\n batchType: 'data' | 'metadata' | 'partial-result' | 'final-result';\n mimeType?: string;\n shape: string;\n data: any;\n recordBatch?: RecordBatch;\n length: number;\n schema?: Schema;\n bytesUsed?: number;\n count?: number;\n cursor?: number;\n [key: string]: any;\n};\n\n/*\nexport type Batch = {\n bytesUsed?: number;\n count?: number;\n cursor?: number;\n [key: string]: any;\n}\n*/\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"gis.js"}
1
+ {"version":3,"file":"gis.js","names":[],"sources":["../../../src/category/gis.ts"],"sourcesContent":["// GIS\nimport type {TypedArray} from '../types';\nimport type {Feature, Geometry, Point, LineString, Polygon} from 'geojson';\n\n// GEOJSON FORMAT GEOMETRY\n\n// eslint-disable-next-line import/no-unresolved\nexport type {\n GeoJSON,\n Feature,\n FeatureCollection,\n Geometry,\n Position,\n GeoJsonProperties\n} from 'geojson';\n// eslint-disable-next-line import/no-unresolved\nexport type {\n Point,\n MultiPoint,\n LineString,\n MultiLineString,\n Polygon,\n MultiPolygon,\n GeometryCollection\n} from 'geojson';\n\n// Aggregate information for converting GeoJSON into other formats\nexport type GeojsonGeometryInfo = {\n coordLength: number;\n pointPositionsCount: number;\n pointFeaturesCount: number;\n linePositionsCount: number;\n linePathsCount: number;\n lineFeaturesCount: number;\n polygonPositionsCount: number;\n polygonObjectsCount: number;\n polygonRingsCount: number;\n polygonFeaturesCount: number;\n};\n\n// FLAT GEOJSON FORMAT GEOMETRY\nexport type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';\ntype RemoveCoordinatesField<Type> = {\n [Property in keyof Type as Exclude<Property, 'coordinates'>]: Type[Property];\n};\n\n/**\n * Generic flat geometry data storage type\n */\nexport type FlatIndexedGeometry = {\n data: number[];\n indices: number[];\n};\n\n/**\n * GeoJSON (Multi)Point geometry with coordinate data flattened into `data` array and indexed by `indices`\n */\nexport type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;\n\n/**\n * GeoJSON (Multi)LineString geometry with coordinate data flattened into `data` array and indexed by `indices`\n */\nexport type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;\n\n/**\n * GeoJSON (Multi)Polygon geometry with coordinate data flattened into `data` array and indexed by 2D `indices`\n */\nexport type FlatPolygon = RemoveCoordinatesField<Polygon> & {\n data: number[];\n indices: number[][];\n areas: number[][];\n};\n\nexport type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;\n\ntype FlattenGeometry<Type> = {\n [Property in keyof Type]: Type[Property] extends Geometry ? FlatGeometry : Type[Property];\n};\n\n/**\n * GeoJSON Feature with Geometry replaced by FlatGeometry\n */\nexport type FlatFeature = FlattenGeometry<Feature>;\n\n// BINARY FORMAT GEOMETRY\n\nexport type BinaryAttribute = {value: TypedArray; size: number};\nexport type BinaryGeometryType = 'Point' | 'LineString' | 'Polygon';\n\ntype NumericProps = {[key: string]: BinaryAttribute};\ntype Properties = object[];\n\n/**\n * Represent a single Geometry, similar to a GeoJSON Geometry\n */\nexport type BinaryGeometry = BinaryPointGeometry | BinaryLineGeometry | BinaryPolygonGeometry;\n\nexport type BinaryPointGeometry = {\n type: 'Point';\n positions: BinaryAttribute;\n};\n\nexport type BinaryLineGeometry = {\n type: 'LineString';\n positions: BinaryAttribute;\n pathIndices: BinaryAttribute;\n};\n\nexport type BinaryPolygonGeometry = {\n type: 'Polygon';\n positions: BinaryAttribute;\n polygonIndices: BinaryAttribute;\n primitivePolygonIndices: BinaryAttribute;\n triangles?: BinaryAttribute;\n};\n\nexport type BinaryProperties = {\n featureIds: BinaryAttribute;\n globalFeatureIds: BinaryAttribute;\n numericProps: NumericProps;\n properties: Properties;\n fields?: Properties;\n};\n\nexport type BinaryPointFeatures = BinaryPointGeometry & BinaryProperties;\nexport type BinaryLineFeatures = BinaryLineGeometry & BinaryProperties;\nexport type BinaryPolygonFeatures = BinaryPolygonGeometry & BinaryProperties;\n\n/**\n * Represent a collection of Features, similar to a GeoJSON FeatureCollection\n */\nexport type BinaryFeatures = {\n points?: BinaryPointFeatures;\n lines?: BinaryLineFeatures;\n polygons?: BinaryPolygonFeatures;\n};\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"image.js"}
1
+ {"version":3,"file":"image.js","names":[],"sources":["../../../../src/category/image/image.ts"],"sourcesContent":["/**\n * data images\n */\nexport type ImageDataType = {\n data: Uint8Array;\n width: number;\n height: number;\n compressed?: boolean;\n};\n\n/**\n * Supported Image Types\n */\nexport type ImageType = ImageBitmap | typeof Image | ImageDataType;\n\n/**\n * Image type string used to control or determine the type of images returned from ImageLoader\n */\nexport type ImageTypeEnum = 'imagebitmap' | 'image' | 'data';\n"],"mappings":""}
@@ -1,31 +1,24 @@
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
7
  exports.convertMesh = convertMesh;
9
8
  exports.convertMeshToColumnarTable = convertMeshToColumnarTable;
10
-
11
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
-
13
10
  var _meshToArrowTable = require("./mesh-to-arrow-table");
14
-
15
11
  function convertMesh(mesh, shape, options) {
16
12
  switch (shape || 'mesh') {
17
13
  case 'mesh':
18
14
  return mesh;
19
-
20
15
  case 'columnar-table':
21
16
  return convertMeshToColumnarTable(mesh);
22
-
23
17
  case 'arrow-table':
24
18
  return {
25
19
  shape: 'arrow-table',
26
20
  data: (0, _meshToArrowTable.convertMeshToArrowTable)(mesh)
27
21
  };
28
-
29
22
  default:
30
23
  throw new Error("Unsupported shape ".concat(options === null || options === void 0 ? void 0 : options.shape));
31
24
  }
@@ -33,15 +26,12 @@ function convertMesh(mesh, shape, options) {
33
26
 
34
27
  function convertMeshToColumnarTable(mesh) {
35
28
  var columns = {};
36
-
37
29
  for (var _i = 0, _Object$entries = Object.entries(mesh.attributes); _i < _Object$entries.length; _i++) {
38
30
  var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i], 2),
39
- columnName = _Object$entries$_i[0],
40
- attribute = _Object$entries$_i[1];
41
-
31
+ columnName = _Object$entries$_i[0],
32
+ attribute = _Object$entries$_i[1];
42
33
  columns[columnName] = attribute.value;
43
34
  }
44
-
45
35
  return {
46
36
  shape: 'columnar-table',
47
37
  schema: mesh.schema,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/category/mesh/convert-mesh.ts"],"names":["convertMesh","mesh","shape","options","convertMeshToColumnarTable","data","Error","columns","Object","entries","attributes","columnName","attribute","value","schema"],"mappings":";;;;;;;;;;;;AAEA;;AAOO,SAASA,WAAT,CACLC,IADK,EAELC,KAFK,EAGLC,OAHK,EAI8B;AACnC,UAAQD,KAAK,IAAI,MAAjB;AACE,SAAK,MAAL;AACE,aAAOD,IAAP;;AACF,SAAK,gBAAL;AACE,aAAOG,0BAA0B,CAACH,IAAD,CAAjC;;AACF,SAAK,aAAL;AACE,aAAO;AACLC,QAAAA,KAAK,EAAE,aADF;AAELG,QAAAA,IAAI,EAAE,+CAAwBJ,IAAxB;AAFD,OAAP;;AAIF;AACE,YAAM,IAAIK,KAAJ,6BAA+BH,OAA/B,aAA+BA,OAA/B,uBAA+BA,OAAO,CAAED,KAAxC,EAAN;AAXJ;AAaD;;AAOM,SAASE,0BAAT,CAAoCH,IAApC,EAA+D;AACpE,MAAMM,OAAO,GAAG,EAAhB;;AAEA,qCAAsCC,MAAM,CAACC,OAAP,CAAeR,IAAI,CAACS,UAApB,CAAtC,qCAAuE;AAAlE;AAAA,QAAOC,UAAP;AAAA,QAAmBC,SAAnB;;AACHL,IAAAA,OAAO,CAACI,UAAD,CAAP,GAAsBC,SAAS,CAACC,KAAhC;AACD;;AAED,SAAO;AACLX,IAAAA,KAAK,EAAE,gBADF;AAELY,IAAAA,MAAM,EAAEb,IAAI,CAACa,MAFR;AAGLT,IAAAA,IAAI,EAAEE;AAHD,GAAP;AAKD","sourcesContent":["import type {Mesh} from './mesh-types';\nimport type {ColumnarTable, ArrowTable} from '../table/table-types';\nimport {convertMeshToArrowTable} from './mesh-to-arrow-table';\n\ntype TargetShape = 'mesh' | 'columnar-table' | 'arrow-table';\n\n/**\n * Convert a mesh to a specific shape\n */\nexport function convertMesh(\n mesh: Mesh,\n shape: TargetShape,\n options?: any\n): Mesh | ColumnarTable | ArrowTable {\n switch (shape || 'mesh') {\n case 'mesh':\n return mesh;\n case 'columnar-table':\n return convertMeshToColumnarTable(mesh);\n case 'arrow-table':\n return {\n shape: 'arrow-table',\n data: convertMeshToArrowTable(mesh)\n };\n default:\n throw new Error(`Unsupported shape ${options?.shape}`);\n }\n}\n\n/**\n * Convert a loaders.gl Mesh to a Columnar Table\n * @param mesh\n * @returns\n */\nexport function convertMeshToColumnarTable(mesh: Mesh): ColumnarTable {\n const columns = {};\n\n for (const [columnName, attribute] of Object.entries(mesh.attributes)) {\n columns[columnName] = attribute.value;\n }\n\n return {\n shape: 'columnar-table',\n schema: mesh.schema,\n data: columns\n };\n}\n"],"file":"convert-mesh.js"}
1
+ {"version":3,"file":"convert-mesh.js","names":["convertMesh","mesh","shape","options","convertMeshToColumnarTable","data","convertMeshToArrowTable","Error","columns","Object","entries","attributes","columnName","attribute","value","schema"],"sources":["../../../../src/category/mesh/convert-mesh.ts"],"sourcesContent":["import type {Mesh} from './mesh-types';\nimport type {ColumnarTable, ArrowTable} from '../table/table-types';\nimport {convertMeshToArrowTable} from './mesh-to-arrow-table';\n\ntype TargetShape = 'mesh' | 'columnar-table' | 'arrow-table';\n\n/**\n * Convert a mesh to a specific shape\n */\nexport function convertMesh(\n mesh: Mesh,\n shape: TargetShape,\n options?: any\n): Mesh | ColumnarTable | ArrowTable {\n switch (shape || 'mesh') {\n case 'mesh':\n return mesh;\n case 'columnar-table':\n return convertMeshToColumnarTable(mesh);\n case 'arrow-table':\n return {\n shape: 'arrow-table',\n data: convertMeshToArrowTable(mesh)\n };\n default:\n throw new Error(`Unsupported shape ${options?.shape}`);\n }\n}\n\n/**\n * Convert a loaders.gl Mesh to a Columnar Table\n * @param mesh\n * @returns\n */\nexport function convertMeshToColumnarTable(mesh: Mesh): ColumnarTable {\n const columns = {};\n\n for (const [columnName, attribute] of Object.entries(mesh.attributes)) {\n columns[columnName] = attribute.value;\n }\n\n return {\n shape: 'columnar-table',\n schema: mesh.schema,\n data: columns\n };\n}\n"],"mappings":";;;;;;;;;AAEA;AAOO,SAASA,WAAW,CACzBC,IAAU,EACVC,KAAkB,EAClBC,OAAa,EACsB;EACnC,QAAQD,KAAK,IAAI,MAAM;IACrB,KAAK,MAAM;MACT,OAAOD,IAAI;IACb,KAAK,gBAAgB;MACnB,OAAOG,0BAA0B,CAACH,IAAI,CAAC;IACzC,KAAK,aAAa;MAChB,OAAO;QACLC,KAAK,EAAE,aAAa;QACpBG,IAAI,EAAE,IAAAC,yCAAuB,EAACL,IAAI;MACpC,CAAC;IACH;MACE,MAAM,IAAIM,KAAK,6BAAsBJ,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAED,KAAK,EAAG;EAAC;AAE7D;;AAOO,SAASE,0BAA0B,CAACH,IAAU,EAAiB;EACpE,IAAMO,OAAO,GAAG,CAAC,CAAC;EAElB,mCAAsCC,MAAM,CAACC,OAAO,CAACT,IAAI,CAACU,UAAU,CAAC,qCAAE;IAAlE;MAAOC,UAAU;MAAEC,SAAS;IAC/BL,OAAO,CAACI,UAAU,CAAC,GAAGC,SAAS,CAACC,KAAK;EACvC;EAEA,OAAO;IACLZ,KAAK,EAAE,gBAAgB;IACvBa,MAAM,EAAEd,IAAI,CAACc,MAAM;IACnBV,IAAI,EAAEG;EACR,CAAC;AACH"}
@@ -3,14 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.deduceMeshSchema = deduceMeshSchema;
7
6
  exports.deduceMeshField = deduceMeshField;
7
+ exports.deduceMeshSchema = deduceMeshSchema;
8
8
  exports.makeMeshAttributeMetadata = makeMeshAttributeMetadata;
9
-
10
9
  var _schema = require("../../lib/schema/schema");
11
-
12
10
  var _arrowLikeTypeUtils = require("../../lib/arrow/arrow-like-type-utils");
13
-
14
11
  function deduceMeshSchema(attributes, metadata) {
15
12
  var fields = deduceMeshFields(attributes);
16
13
  return new _schema.Schema(fields, metadata);
@@ -25,30 +22,24 @@ function deduceMeshField(attributeName, attribute, optionalMetadata) {
25
22
 
26
23
  function deduceMeshFields(attributes) {
27
24
  var fields = [];
28
-
29
25
  for (var attributeName in attributes) {
30
26
  var attribute = attributes[attributeName];
31
27
  fields.push(deduceMeshField(attributeName, attribute));
32
28
  }
33
-
34
29
  return fields;
35
30
  }
36
31
 
37
32
  function makeMeshAttributeMetadata(attribute) {
38
33
  var result = new Map();
39
-
40
34
  if ('byteOffset' in attribute) {
41
35
  result.set('byteOffset', attribute.byteOffset.toString(10));
42
36
  }
43
-
44
37
  if ('byteStride' in attribute) {
45
38
  result.set('byteStride', attribute.byteStride.toString(10));
46
39
  }
47
-
48
40
  if ('normalized' in attribute) {
49
41
  result.set('normalized', attribute.normalized.toString());
50
42
  }
51
-
52
43
  return result;
53
44
  }
54
45
  //# sourceMappingURL=deduce-mesh-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/category/mesh/deduce-mesh-schema.ts"],"names":["deduceMeshSchema","attributes","metadata","fields","deduceMeshFields","Schema","deduceMeshField","attributeName","attribute","optionalMetadata","type","value","makeMeshAttributeMetadata","field","Field","FixedSizeList","size","push","result","Map","set","byteOffset","toString","byteStride","normalized"],"mappings":";;;;;;;;;AACA;;AACA;;AAQO,SAASA,gBAAT,CACLC,UADK,EAELC,QAFK,EAGG;AACR,MAAMC,MAAM,GAAGC,gBAAgB,CAACH,UAAD,CAA/B;AACA,SAAO,IAAII,cAAJ,CAAWF,MAAX,EAAmBD,QAAnB,CAAP;AACD;;AASM,SAASI,eAAT,CACLC,aADK,EAELC,SAFK,EAGLC,gBAHK,EAIE;AACP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es} from './mesh-types';\nimport {Schema, Field, FixedSizeList} from '../../lib/schema/schema';\nimport {getArrowTypeFromTypedArray} from '../../lib/arrow/arrow-like-type-utils';\n\n/**\n * Create a schema for mesh attributes data\n * @param attributes\n * @param metadata\n * @returns\n */\nexport function deduceMeshSchema(\n attributes: MeshAttributes,\n metadata?: Map<string, string>\n): Schema {\n const fields = deduceMeshFields(attributes);\n return new Schema(fields, metadata);\n}\n\n/**\n * Create arrow-like schema field for mesh attribute\n * @param attributeName\n * @param attribute\n * @param optionalMetadata\n * @returns\n */\nexport function deduceMeshField(\n attributeName: string,\n attribute: MeshAttribute,\n optionalMetadata?: Map<string, string>\n): Field {\n const type = getArrowTypeFromTypedArray(attribute.value);\n const metadata = optionalMetadata ? optionalMetadata : makeMeshAttributeMetadata(attribute);\n const field = new Field(\n attributeName,\n new FixedSizeList(attribute.size, new Field('value', type)),\n false,\n metadata\n );\n return field;\n}\n\n/**\n * Create fields array for mesh attributes\n * @param attributes\n * @returns\n */\nfunction deduceMeshFields(attributes: MeshAttributes): Field[] {\n const fields: Field[] = [];\n for (const attributeName in attributes) {\n const attribute: MeshAttribute = attributes[attributeName];\n fields.push(deduceMeshField(attributeName, attribute));\n }\n return fields;\n}\n\n/**\n * Make metadata by mesh attribute properties\n * @param attribute\n * @returns\n */\nexport function makeMeshAttributeMetadata(attribute: MeshAttribute): Map<string, string> {\n const result = new Map();\n if ('byteOffset' in attribute) {\n result.set('byteOffset', attribute.byteOffset!.toString(10));\n }\n if ('byteStride' in attribute) {\n result.set('byteStride', attribute.byteStride!.toString(10));\n }\n if ('normalized' in attribute) {\n result.set('normalized', attribute.normalized!.toString());\n }\n return result;\n}\n"],"file":"deduce-mesh-schema.js"}
1
+ {"version":3,"file":"deduce-mesh-schema.js","names":["deduceMeshSchema","attributes","metadata","fields","deduceMeshFields","Schema","deduceMeshField","attributeName","attribute","optionalMetadata","type","getArrowTypeFromTypedArray","value","makeMeshAttributeMetadata","field","Field","FixedSizeList","size","push","result","Map","set","byteOffset","toString","byteStride","normalized"],"sources":["../../../../src/category/mesh/deduce-mesh-schema.ts"],"sourcesContent":["import {MeshAttribute, MeshAttributes} from './mesh-types';\nimport {Schema, Field, FixedSizeList} from '../../lib/schema/schema';\nimport {getArrowTypeFromTypedArray} from '../../lib/arrow/arrow-like-type-utils';\n\n/**\n * Create a schema for mesh attributes data\n * @param attributes\n * @param metadata\n * @returns\n */\nexport function deduceMeshSchema(\n attributes: MeshAttributes,\n metadata?: Map<string, string>\n): Schema {\n const fields = deduceMeshFields(attributes);\n return new Schema(fields, metadata);\n}\n\n/**\n * Create arrow-like schema field for mesh attribute\n * @param attributeName\n * @param attribute\n * @param optionalMetadata\n * @returns\n */\nexport function deduceMeshField(\n attributeName: string,\n attribute: MeshAttribute,\n optionalMetadata?: Map<string, string>\n): Field {\n const type = getArrowTypeFromTypedArray(attribute.value);\n const metadata = optionalMetadata ? optionalMetadata : makeMeshAttributeMetadata(attribute);\n const field = new Field(\n attributeName,\n new FixedSizeList(attribute.size, new Field('value', type)),\n false,\n metadata\n );\n return field;\n}\n\n/**\n * Create fields array for mesh attributes\n * @param attributes\n * @returns\n */\nfunction deduceMeshFields(attributes: MeshAttributes): Field[] {\n const fields: Field[] = [];\n for (const attributeName in attributes) {\n const attribute: MeshAttribute = attributes[attributeName];\n fields.push(deduceMeshField(attributeName, attribute));\n }\n return fields;\n}\n\n/**\n * Make metadata by mesh attribute properties\n * @param attribute\n * @returns\n */\nexport function makeMeshAttributeMetadata(attribute: MeshAttribute): Map<string, string> {\n const result = new Map();\n if ('byteOffset' in attribute) {\n result.set('byteOffset', attribute.byteOffset!.toString(10));\n }\n if ('byteStride' in attribute) {\n result.set('byteStride', attribute.byteStride!.toString(10));\n }\n if ('normalized' in attribute) {\n result.set('normalized', attribute.normalized!.toString());\n }\n return result;\n}\n"],"mappings":";;;;;;;;AACA;AACA;AAQO,SAASA,gBAAgB,CAC9BC,UAA0B,EAC1BC,QAA8B,EACtB;EACR,IAAMC,MA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W,MAAM,CAACE,GAAG,CAAC,YAAY,EAAEb,SAAS,CAACiB,UAAU,CAAEF,QAAQ,EAAE,CAAC;EAC5D;EACA,OAAOJ,MAAM;AACf"}
@@ -4,24 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.convertMeshToArrowTable = convertMeshToArrowTable;
7
-
8
7
  var _Arrow = require("apache-arrow/Arrow.dom");
9
-
10
8
  var _arrowTypeUtils = require("../../lib/arrow/arrow-type-utils");
11
-
12
9
  var _deduceMeshSchema = require("./deduce-mesh-schema");
13
-
14
10
  function convertMeshToArrowTable(mesh, batchSize) {
15
11
  var _mesh$schema;
16
-
17
12
  var vectors = [];
18
13
  var fields = [];
19
-
20
14
  for (var attributeKey in mesh.attributes) {
21
15
  var attribute = mesh.attributes[attributeKey];
22
16
  var value = attribute.value,
23
- _attribute$size = attribute.size,
24
- size = _attribute$size === void 0 ? 1 : _attribute$size;
17
+ _attribute$size = attribute.size,
18
+ size = _attribute$size === void 0 ? 1 : _attribute$size;
25
19
  var type = (0, _arrowTypeUtils.getArrowType)(value);
26
20
  var vector = (0, _arrowTypeUtils.getArrowVector)(value);
27
21
  var listType = new _Arrow.FixedSizeList(size, new _Arrow.Field('value', type));
@@ -31,7 +25,6 @@ function convertMeshToArrowTable(mesh, batchSize) {
31
25
  vectors.push(listVector);
32
26
  fields.push(field);
33
27
  }
34
-
35
28
  var schema = new _Arrow.Schema(fields, (mesh === null || mesh === void 0 ? void 0 : (_mesh$schema = mesh.schema) === null || _mesh$schema === void 0 ? void 0 : _mesh$schema.metadata) || new Map());
36
29
  var recordBatch = new _Arrow.RecordBatch(schema, vectors[0].length, vectors);
37
30
  var table = new _Arrow.Table(schema, recordBatch);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/category/mesh/mesh-to-arrow-table.ts"],"names":["convertMeshToArrowTable","mesh","batchSize","vectors","fields","attributeKey","attributes","attribute","value","size","type","vector","listType","FixedSizeList","Field","field","data","Data","length","undefined","listVector","FixedSizeListVector","push","schema","Schema","metadata","Map","recordBatch","RecordBatch","table","Table"],"mappings":";;;;;;;AAAA;;AAUA;;AAEA;;AASO,SAASA,uBAAT,CAAiCC,IAAjC,EAA6CC,SAA7C,EAAwE;AAAA;;AAC7E,MAAMC,OAAyB,GAAG,EAAlC;AACA,MAAMC,MAAe,GAAG,EAAxB;;AACA,OAAK,IAAMC,YAAX,IAA2BJ,IAAI,CAACK,UAAhC,EAA4C;AAC1C,QAAMC,SAAS,GAAGN,IAAI,CAACK,UAAL,CAAgBD,YAAhB,CAAlB;AACA,QAAOG,KAAP,GAA0BD,SAA1B,CAAOC,KAAP;AAAA,0BAA0BD,SAA1B,CAAcE,IAAd;AAAA,QAAcA,IAAd,gCAAqB,CAArB;AACA,QAAMC,IAAI,GAAG,kCAAaF,KAAb,CAAb;AACA,QAAMG,MAAM,GAAG,oCAAeH,KAAf,CAAf;AACA,QAAMI,QAAQ,GAAG,IAAIC,oBAAJ,CAAkBJ,IAAlB,EAAwB,IAAIK,YAAJ,CAAU,OAAV,EAAmBJ,IAAnB,CAAxB,CAAjB;AACA,QAAMK,KAAK,GAAG,IAAID,YAAJ,CAAUT,YAAV,EAAwBO,QAAxB,EAAkC,KAAlC,EAAyC,iDAA0BL,SAA1B,CAAzC,CAAd;AACA,QAAMS,IAAI,GAAG,IAAIC,WAAJ,CAASL,QAAT,EAAmB,CAAnB,EAAsBJ,KAAK,CAACU,MAAN,GAAeT,IAArC,EAA2C,CAA3C,EAA8CU,SAA9C,EAAyD,CAACR,MAAD,CAAzD,CAAb;AACA,QAAMS,UAAU,GAAG,IAAIC,0BAAJ,CAAwBL,IAAxB,CAAnB;AACAb,IAAAA,OAAO,CAACmB,IAAR,CAAaF,UAAb;AACAhB,IAAAA,MAAM,CAACkB,IAAP,CAAYP,KAAZ;AACD;;AACD,MAAMQ,MAAM,GAAG,IAAIC,aAAJ,CAAWpB,MAAX,EAAmB,CAAAH,IAAI,SAAJ,IAAAA,IAAI,WAAJ,4BAAAA,IAAI,CAAEsB,MAAN,8DAAcE,QAAd,KAA0B,IAAIC,GAAJ,EAA7C,CAAf;AACA,MAAMC,WAAW,GAAG,IAAIC,kBAAJ,CAAgBL,MAAhB,EAAwBpB,OAAO,CAAC,CAAD,CAAP,CAAWe,MAAnC,EAA2Cf,OAA3C,CAApB;AACA,MAAM0B,KAAK,GAAG,IAAIC,YAAJ,CAAUP,MAAV,EAAkBI,WAAlB,CAAd;AACA,SAAOE,KAAP;AACD","sourcesContent":["import {\n Table,\n Schema,\n RecordBatch,\n FixedSizeList,\n Field,\n Data,\n FixedSizeListVector\n} from 'apache-arrow/Arrow.dom';\nimport {AbstractVector} from 'apache-arrow/vector';\nimport {getArrowType, getArrowVector} from '../../lib/arrow/arrow-type-utils';\nimport type {Mesh} from './mesh-types';\nimport {makeMeshAttributeMetadata} from './deduce-mesh-schema';\n\n/**\n * * Convert a loaders.gl Mesh to an Apache Arrow Table\n * @param mesh\n * @param metadata\n * @param batchSize\n * @returns\n */\nexport function convertMeshToArrowTable(mesh: Mesh, batchSize?: number): Table {\n const vectors: AbstractVector[] = [];\n const fields: Field[] = [];\n for (const attributeKey in mesh.attributes) {\n const attribute = mesh.attributes[attributeKey];\n const {value, size = 1} = attribute;\n const type = getArrowType(value);\n const vector = getArrowVector(value);\n const listType = new FixedSizeList(size, new Field('value', type));\n const field = new Field(attributeKey, listType, false, makeMeshAttributeMetadata(attribute));\n const data = new Data(listType, 0, value.length / size, 0, undefined, [vector]);\n const listVector = new FixedSizeListVector(data);\n vectors.push(listVector);\n fields.push(field);\n }\n const schema = new Schema(fields, mesh?.schema?.metadata || new Map<string, string>());\n const recordBatch = new RecordBatch(schema, vectors[0].length, vectors);\n const table = new Table(schema, recordBatch);\n return table;\n}\n"],"file":"mesh-to-arrow-table.js"}
1
+ {"version":3,"file":"mesh-to-arrow-table.js","names":["convertMeshToArrowTable","mesh","batchSize","vectors","fields","attributeKey","attributes","attribute","value","size","type","getArrowType","vector","getArrowVector","listType","FixedSizeList","Field","field","makeMeshAttributeMetadata","data","Data","length","undefined","listVector","FixedSizeListVector","push","schema","Schema","metadata","Map","recordBatch","RecordBatch","table","Table"],"sources":["../../../../src/category/mesh/mesh-to-arrow-table.ts"],"sourcesContent":["import {\n Table,\n Schema,\n RecordBatch,\n FixedSizeList,\n Field,\n Data,\n FixedSizeListVector\n} from 'apache-arrow/Arrow.dom';\nimport {AbstractVector} from 'apache-arrow/vector';\nimport {getArrowType, getArrowVector} from '../../lib/arrow/arrow-type-utils';\nimport type {Mesh} from './mesh-types';\nimport {makeMeshAttributeMetadata} from './deduce-mesh-schema';\n\n/**\n * * Convert a loaders.gl Mesh to an Apache Arrow Table\n * @param mesh\n * @param metadata\n * @param batchSize\n * @returns\n */\nexport function convertMeshToArrowTable(mesh: Mesh, batchSize?: number): Table {\n const vectors: AbstractVector[] = [];\n const fields: Field[] = [];\n for (const attributeKey in mesh.attributes) {\n const attribute = mesh.attributes[attributeKey];\n const {value, size = 1} = attribute;\n const type = getArrowType(value);\n const vector = getArrowVector(value);\n const listType = new FixedSizeList(size, new Field('value', type));\n const field = new Field(attributeKey, listType, false, makeMeshAttributeMetadata(attribute));\n const data = new Data(listType, 0, value.length / size, 0, undefined, [vector]);\n const listVector = new FixedSizeListVector(data);\n vectors.push(listVector);\n fields.push(field);\n }\n const schema = new Schema(fields, mesh?.schema?.metadata || new Map<string, string>());\n const recordBatch = new RecordBatch(schema, vectors[0].length, vectors);\n const table = new Table(schema, recordBatch);\n return table;\n}\n"],"mappings":";;;;;;AAAA;AAUA;AAEA;AASO,SAASA,uBAAuB,CAACC,IAAU,EAAEC,SAAkB,EAAS;EAAA;EAC7E,IAAMC,OAAyB,GAAG,EAAE;EACpC,IAAMC,MAAe,GAAG,EAAE;EAC1B,KAAK,IAAMC,YAAY,IAAIJ,IAAI,CAACK,UAAU,EAAE;IAC1C,IAAMC,SAAS,GAAGN,IAAI,CAACK,UAAU,CAACD,YAAY,CAAC;IAC/C,I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"file":"mesh-types.js","names":[],"sources":["../../../../src/category/mesh/mesh-types.ts"],"sourcesContent":["import type {Schema} from '../../lib/schema/schema';\nimport type {TypedArray} from '../../types';\nimport type {ColumnarTable, ArrowTable} from '../table/table-types';\n\n/** Mesh as columnar table */\nexport interface MeshTable extends ColumnarTable {\n // shape: 'mesh-table';\n topology: 'point-list' | 'triangle-list' | 'triangle-strip';\n indices?: MeshAttribute;\n}\n\n/** Mesh as arrow table */\nexport interface MeshArrowTable extends ArrowTable {\n // shape: 'mesh-arrow-table';\n topology: 'point-list' | 'triangle-list' | 'triangle-strip';\n indices?: MeshAttribute;\n}\n\n/** Geometry part of a Mesh (compatible with a standard luma.gl \"mesh\") */\nexport type MeshGeometry = {\n attributes: {[attributeName: string]: MeshAttribute};\n indices?: MeshAttribute;\n topology: 'point-list' | 'triangle-list' | 'triangle-strip';\n mode: number;\n};\n\n/** Geometry and metadata for a Mesh (compatible with a standard luma.gl \"mesh\") */\nexport type Mesh = MeshGeometry & {\n loader?: string;\n loaderData?: {[key: string]: any};\n header?: {\n vertexCount: number;\n boundingBox?: [number[], number[]];\n };\n schema: Schema;\n};\n\n/**\n * luma.gl compatible attribute descriptors\n * Can be mapped to any WebGL framework\n */\nexport type MeshAttribute = {\n value: TypedArray;\n size: number;\n byteOffset?: number;\n byteStride?: number;\n normalized?: boolean;\n};\n\n/** A map of mesh attributes keyed by attribute names */\nexport type MeshAttributes = {[attributeName: string]: MeshAttribute};\n"],"mappings":""}