@osmix/core 0.1.3 → 0.1.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 (107) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/entities.d.ts +1 -1
  3. package/dist/entities.d.ts.map +1 -1
  4. package/dist/ids.d.ts +1 -1
  5. package/dist/ids.d.ts.map +1 -1
  6. package/dist/ids.js +1 -2
  7. package/dist/ids.js.map +1 -1
  8. package/dist/index.d.ts +0 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +0 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/nodes.d.ts +1 -1
  13. package/dist/nodes.d.ts.map +1 -1
  14. package/dist/nodes.js.map +1 -1
  15. package/dist/osm.d.ts.map +1 -1
  16. package/dist/osm.js +1 -1
  17. package/dist/osm.js.map +1 -1
  18. package/dist/relations.d.ts +1 -1
  19. package/dist/relations.d.ts.map +1 -1
  20. package/dist/relations.js +1 -1
  21. package/dist/relations.js.map +1 -1
  22. package/dist/stringtable.d.ts +1 -1
  23. package/dist/stringtable.d.ts.map +1 -1
  24. package/dist/stringtable.js.map +1 -1
  25. package/dist/tags.d.ts +1 -1
  26. package/dist/tags.d.ts.map +1 -1
  27. package/dist/tags.js.map +1 -1
  28. package/dist/typed-arrays.d.ts +2 -2
  29. package/dist/ways.d.ts +1 -1
  30. package/dist/ways.d.ts.map +1 -1
  31. package/dist/ways.js +0 -7
  32. package/dist/ways.js.map +1 -1
  33. package/package.json +3 -3
  34. package/src/entities.ts +1 -1
  35. package/src/ids.ts +2 -3
  36. package/src/index.ts +0 -1
  37. package/src/nodes.ts +1 -1
  38. package/src/osm.ts +1 -1
  39. package/src/relations.ts +2 -1
  40. package/src/stringtable.ts +1 -1
  41. package/src/tags.ts +1 -1
  42. package/src/ways.ts +1 -8
  43. package/dist/src/entities.d.ts +0 -120
  44. package/dist/src/entities.d.ts.map +0 -1
  45. package/dist/src/entities.js +0 -159
  46. package/dist/src/entities.js.map +0 -1
  47. package/dist/src/ids.d.ts +0 -119
  48. package/dist/src/ids.d.ts.map +0 -1
  49. package/dist/src/ids.js +0 -243
  50. package/dist/src/ids.js.map +0 -1
  51. package/dist/src/index.d.ts +0 -32
  52. package/dist/src/index.d.ts.map +0 -1
  53. package/dist/src/index.js +0 -35
  54. package/dist/src/index.js.map +0 -1
  55. package/dist/src/nodes.d.ts +0 -106
  56. package/dist/src/nodes.d.ts.map +0 -1
  57. package/dist/src/nodes.js +0 -318
  58. package/dist/src/nodes.js.map +0 -1
  59. package/dist/src/osm.d.ts +0 -99
  60. package/dist/src/osm.d.ts.map +0 -1
  61. package/dist/src/osm.js +0 -165
  62. package/dist/src/osm.js.map +0 -1
  63. package/dist/src/relations.d.ts +0 -123
  64. package/dist/src/relations.d.ts.map +0 -1
  65. package/dist/src/relations.js +0 -424
  66. package/dist/src/relations.js.map +0 -1
  67. package/dist/src/stringtable.d.ts +0 -101
  68. package/dist/src/stringtable.d.ts.map +0 -1
  69. package/dist/src/stringtable.js +0 -180
  70. package/dist/src/stringtable.js.map +0 -1
  71. package/dist/src/tags.d.ts +0 -132
  72. package/dist/src/tags.d.ts.map +0 -1
  73. package/dist/src/tags.js +0 -239
  74. package/dist/src/tags.js.map +0 -1
  75. package/dist/src/typed-arrays.d.ts +0 -124
  76. package/dist/src/typed-arrays.d.ts.map +0 -1
  77. package/dist/src/typed-arrays.js +0 -198
  78. package/dist/src/typed-arrays.js.map +0 -1
  79. package/dist/src/utils.d.ts +0 -38
  80. package/dist/src/utils.d.ts.map +0 -1
  81. package/dist/src/utils.js +0 -87
  82. package/dist/src/utils.js.map +0 -1
  83. package/dist/src/ways.d.ts +0 -106
  84. package/dist/src/ways.d.ts.map +0 -1
  85. package/dist/src/ways.js +0 -346
  86. package/dist/src/ways.js.map +0 -1
  87. package/dist/test/memory.test.d.ts +0 -7
  88. package/dist/test/memory.test.d.ts.map +0 -1
  89. package/dist/test/memory.test.js +0 -29
  90. package/dist/test/memory.test.js.map +0 -1
  91. package/dist/test/mock-osm.d.ts +0 -13
  92. package/dist/test/mock-osm.d.ts.map +0 -1
  93. package/dist/test/mock-osm.js +0 -122
  94. package/dist/test/mock-osm.js.map +0 -1
  95. package/dist/test/tags-search.test.d.ts +0 -2
  96. package/dist/test/tags-search.test.d.ts.map +0 -1
  97. package/dist/test/tags-search.test.js +0 -56
  98. package/dist/test/tags-search.test.js.map +0 -1
  99. package/dist/test/typed-arrays.test.d.ts +0 -2
  100. package/dist/test/typed-arrays.test.d.ts.map +0 -1
  101. package/dist/test/typed-arrays.test.js +0 -102
  102. package/dist/test/typed-arrays.test.js.map +0 -1
  103. package/dist/utils.d.ts +0 -38
  104. package/dist/utils.d.ts.map +0 -1
  105. package/dist/utils.js +0 -87
  106. package/dist/utils.js.map +0 -1
  107. package/src/utils.ts +0 -95
@@ -1,124 +0,0 @@
1
- /**
2
- * Resizable typed array utilities.
3
- *
4
- * Wraps typed arrays with automatic buffer expansion (ArrayList semantics).
5
- * Uses SharedArrayBuffer (if available) for zero-copy worker transfer.
6
- *
7
- * @module
8
- */
9
- /**
10
- * Use SharedArrayBuffer if the runtime supports it, otherwise fall back to ArrayBuffer.
11
- * SharedArrayBuffer enables zero-copy transfer between workers.
12
- */
13
- export declare const BufferConstructor: SharedArrayBufferConstructor | ArrayBufferConstructor;
14
- /** The buffer type used by this runtime (SharedArrayBuffer or ArrayBuffer). */
15
- export type BufferType = InstanceType<typeof BufferConstructor>;
16
- /**
17
- * Union of all standard typed array types.
18
- * Generic over buffer type to preserve SharedArrayBuffer compatibility.
19
- */
20
- export type TypedArray<B extends BufferType = BufferType> = Int8Array<B> | Uint8Array<B> | Uint8ClampedArray<B> | Int16Array<B> | Uint16Array<B> | Int32Array<B> | Uint32Array<B> | Float32Array<B> | Float64Array<B>;
21
- /**
22
- * Constructor interface for typed arrays.
23
- */
24
- export interface TypedArrayConstructor<T extends TypedArray<BufferType> = TypedArray<BufferType>> {
25
- new (buffer: BufferType): T;
26
- readonly BYTES_PER_ELEMENT: number;
27
- }
28
- /**
29
- * Float64Array for storing OSM IDs.
30
- *
31
- * OSM IDs are 64-bit integers. JavaScript's number type (IEEE 754 double)
32
- * can exactly represent integers up to 2^53, which covers all current OSM IDs.
33
- * Float64Array allows typed array operations while maintaining precision.
34
- */
35
- export declare const IdArrayType: Float64ArrayConstructor;
36
- /**
37
- * Uint32Array for storing array indices.
38
- *
39
- * Internal indices into typed arrays never exceed 2^32 elements,
40
- * so Uint32Array provides the best balance of range and memory efficiency.
41
- */
42
- export declare const IndexArrayType: Uint32ArrayConstructor;
43
- /**
44
- * Initial buffer size for ResizeableTypedArray.
45
- * 1 MiB provides reasonable initial capacity while avoiding excessive memory allocation.
46
- */
47
- export declare const DEFAULT_BUFFER_SIZE: number;
48
- /**
49
- * Auto-expanding typed array wrapper.
50
- *
51
- * - `push()` appends elements, doubling buffer size as needed.
52
- * - `compact()` shrinks buffer to fit data.
53
- * - Supports growable SharedArrayBuffer and resizable ArrayBuffer.
54
- */
55
- export declare class ResizeableTypedArray<TA extends TypedArray> {
56
- /** The typed array constructor for this instance */
57
- ArrayType: TypedArrayConstructor<TA>;
58
- /** The current typed array view into the buffer */
59
- array: TA;
60
- /** Number of items actually stored (may be less than array.length) */
61
- items: number;
62
- /** The underlying ArrayBuffer or SharedArrayBuffer */
63
- buffer: BufferType;
64
- /** Current buffer size in bytes */
65
- bufferSize: number;
66
- /** Maximum byte length for growable buffers */
67
- maxByteLength: number;
68
- /** Buffer constructor (SharedArrayBuffer or ArrayBuffer) */
69
- BC: SharedArrayBufferConstructor | ArrayBufferConstructor;
70
- /**
71
- * Reconstruct a ResizeableTypedArray from an existing buffer.
72
- *
73
- * Used after transferring buffers between workers. The resulting array
74
- * is considered "compacted" with items = array.length.
75
- *
76
- * @param ArrayType - The typed array constructor.
77
- * @param buffer - The existing buffer to wrap.
78
- * @returns A new ResizeableTypedArray wrapping the buffer.
79
- */
80
- static from<TA extends TypedArray>(ArrayType: TypedArrayConstructor<TA>, buffer: BufferType): ResizeableTypedArray<TA>;
81
- /**
82
- * Create a new ResizeableTypedArray with an empty buffer.
83
- *
84
- * @param ArrayType - The typed array constructor (e.g., Float64Array).
85
- * @param BC - Buffer constructor to use (defaults to SharedArrayBuffer if available).
86
- */
87
- constructor(ArrayType: TypedArrayConstructor<TA>, BC?: SharedArrayBufferConstructor | ArrayBufferConstructor);
88
- /**
89
- * Iterate over the array values.
90
- */
91
- [Symbol.iterator](): ArrayIterator<number>;
92
- /**
93
- * Double the buffer capacity.
94
- * Uses in-place grow/resize if supported, otherwise allocates new buffer and copies.
95
- */
96
- expandArray(): void;
97
- /**
98
- * Get the value at an index. Handles negative indices.
99
- */
100
- at(index: number): number;
101
- /**
102
- * Get a slice of the array.
103
- */
104
- slice(start: number, end: number): Int8Array<ArrayBuffer> | Uint8Array<ArrayBuffer> | Uint8ClampedArray<ArrayBuffer> | Int16Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Int32Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Float32Array<ArrayBuffer> | Float64Array<ArrayBuffer>;
105
- get length(): number;
106
- /**
107
- * Push a value to the end of the array.
108
- */
109
- push(value: number): number;
110
- /**
111
- * Set a value at a specific index. Expands array if needed.
112
- */
113
- set(index: number, value: number): void;
114
- /**
115
- * Push multiple values to the end of the array.
116
- */
117
- pushMany(values: number[] | TypedArray): void;
118
- /**
119
- * Shrink the buffer to exactly fit stored items.
120
- * Buffer becomes fixed-length after compacting.
121
- */
122
- compact(): TA;
123
- }
124
- //# sourceMappingURL=typed-arrays.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-arrays.d.ts","sourceRoot":"","sources":["../../src/typed-arrays.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,uDAGa,CAAA;AAE3C,+EAA+E;AAC/E,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CA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AAC,EACpC,MAAM,EAAE,UAAU;IAYnB;;;;;OAKG;gBAEF,SAAS,EAAE,qBAAqB,CAAC,EAAE,CAAC,EACpC,EAAE,GACC,4BAA4B,GAC5B,sBAA0C;IAY9C;;OAEG;IACH,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC;IAI1C;;;OAGG;IACH,WAAW;IAwBX;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IASzB;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAIhC,IAAI,MAAM,WAET;IAED;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAQ3B;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAShC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU;IAMtC;;;OAGG;IACH,OAAO;CAgBP"}
@@ -1,198 +0,0 @@
1
- /**
2
- * Resizable typed array utilities.
3
- *
4
- * Wraps typed arrays with automatic buffer expansion (ArrayList semantics).
5
- * Uses SharedArrayBuffer (if available) for zero-copy worker transfer.
6
- *
7
- * @module
8
- */
9
- /**
10
- * Use SharedArrayBuffer if the runtime supports it, otherwise fall back to ArrayBuffer.
11
- * SharedArrayBuffer enables zero-copy transfer between workers.
12
- */
13
- export const BufferConstructor = typeof SharedArrayBuffer !== "undefined"
14
- ? SharedArrayBuffer
15
- : ArrayBuffer;
16
- /**
17
- * Float64Array for storing OSM IDs.
18
- *
19
- * OSM IDs are 64-bit integers. JavaScript's number type (IEEE 754 double)
20
- * can exactly represent integers up to 2^53, which covers all current OSM IDs.
21
- * Float64Array allows typed array operations while maintaining precision.
22
- */
23
- export const IdArrayType = Float64Array;
24
- /**
25
- * Uint32Array for storing array indices.
26
- *
27
- * Internal indices into typed arrays never exceed 2^32 elements,
28
- * so Uint32Array provides the best balance of range and memory efficiency.
29
- */
30
- export const IndexArrayType = Uint32Array;
31
- /**
32
- * Initial buffer size for ResizeableTypedArray.
33
- * 1 MiB provides reasonable initial capacity while avoiding excessive memory allocation.
34
- */
35
- export const DEFAULT_BUFFER_SIZE = 2 ** 20; // 1 MiB
36
- /**
37
- * Auto-expanding typed array wrapper.
38
- *
39
- * - `push()` appends elements, doubling buffer size as needed.
40
- * - `compact()` shrinks buffer to fit data.
41
- * - Supports growable SharedArrayBuffer and resizable ArrayBuffer.
42
- */
43
- export class ResizeableTypedArray {
44
- /** The typed array constructor for this instance */
45
- ArrayType;
46
- /** The current typed array view into the buffer */
47
- array;
48
- /** Number of items actually stored (may be less than array.length) */
49
- items = 0;
50
- /** The underlying ArrayBuffer or SharedArrayBuffer */
51
- buffer;
52
- /** Current buffer size in bytes */
53
- bufferSize;
54
- /** Maximum byte length for growable buffers */
55
- maxByteLength;
56
- /** Buffer constructor (SharedArrayBuffer or ArrayBuffer) */
57
- BC;
58
- /**
59
- * Reconstruct a ResizeableTypedArray from an existing buffer.
60
- *
61
- * Used after transferring buffers between workers. The resulting array
62
- * is considered "compacted" with items = array.length.
63
- *
64
- * @param ArrayType - The typed array constructor.
65
- * @param buffer - The existing buffer to wrap.
66
- * @returns A new ResizeableTypedArray wrapping the buffer.
67
- */
68
- static from(ArrayType, buffer) {
69
- const rta = new ResizeableTypedArray(ArrayType, buffer instanceof SharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer);
70
- rta.buffer = buffer;
71
- rta.array = new ArrayType(buffer);
72
- rta.items = rta.array.length;
73
- return rta;
74
- }
75
- /**
76
- * Create a new ResizeableTypedArray with an empty buffer.
77
- *
78
- * @param ArrayType - The typed array constructor (e.g., Float64Array).
79
- * @param BC - Buffer constructor to use (defaults to SharedArrayBuffer if available).
80
- */
81
- constructor(ArrayType, BC = BufferConstructor) {
82
- this.ArrayType = ArrayType;
83
- this.bufferSize = DEFAULT_BUFFER_SIZE;
84
- this.maxByteLength = DEFAULT_BUFFER_SIZE * 2;
85
- this.BC = BC;
86
- this.buffer = new BC(this.bufferSize, {
87
- maxByteLength: this.maxByteLength,
88
- });
89
- this.array = new this.ArrayType(this.buffer);
90
- }
91
- /**
92
- * Iterate over the array values.
93
- */
94
- [Symbol.iterator]() {
95
- return this.array[Symbol.iterator]();
96
- }
97
- /**
98
- * Double the buffer capacity.
99
- * Uses in-place grow/resize if supported, otherwise allocates new buffer and copies.
100
- */
101
- expandArray() {
102
- this.bufferSize *= 2;
103
- if (this.bufferSize > this.buffer.maxByteLength) {
104
- // Need a completely new buffer with larger maxByteLength
105
- this.maxByteLength *= 2;
106
- const newBuffer = new this.BC(this.bufferSize, {
107
- maxByteLength: this.maxByteLength,
108
- });
109
- const newArray = new this.ArrayType(newBuffer);
110
- newArray.set(this.array);
111
- this.buffer = newBuffer;
112
- this.array = newArray;
113
- }
114
- else {
115
- // Can grow/resize the existing buffer in place
116
- if (this.buffer instanceof SharedArrayBuffer && this.buffer.growable) {
117
- this.buffer.grow(this.bufferSize);
118
- }
119
- else if (this.buffer instanceof ArrayBuffer && this.buffer.resizable) {
120
- this.buffer.resize(this.bufferSize);
121
- }
122
- else {
123
- throw Error("Buffer is not growable or resizable");
124
- }
125
- }
126
- }
127
- /**
128
- * Get the value at an index. Handles negative indices.
129
- */
130
- at(index) {
131
- if (index < -this.length || index >= this.length)
132
- throw Error(`Index out of bounds: ${index}. Length: ${this.length}`);
133
- if (index < 0)
134
- return this.at(this.length + index);
135
- const result = this.array[index];
136
- if (result === undefined)
137
- throw Error(`No value at index: ${index}`);
138
- return result;
139
- }
140
- /**
141
- * Get a slice of the array.
142
- */
143
- slice(start, end) {
144
- return this.array.slice(start, end);
145
- }
146
- get length() {
147
- return this.items;
148
- }
149
- /**
150
- * Push a value to the end of the array.
151
- */
152
- push(value) {
153
- if (this.length >= this.array.length) {
154
- this.expandArray();
155
- }
156
- this.array[this.items++] = value;
157
- return this.length - 1;
158
- }
159
- /**
160
- * Set a value at a specific index. Expands array if needed.
161
- */
162
- set(index, value) {
163
- if (index < 0)
164
- throw Error("Index out of bounds");
165
- if (index >= this.length) {
166
- while (index >= this.array.length)
167
- this.expandArray();
168
- this.items = index + 1;
169
- }
170
- this.array[index] = value;
171
- }
172
- /**
173
- * Push multiple values to the end of the array.
174
- */
175
- pushMany(values) {
176
- while (this.length + values.length > this.array.length)
177
- this.expandArray();
178
- this.array.set(values, this.length);
179
- this.items += values.length;
180
- }
181
- /**
182
- * Shrink the buffer to exactly fit stored items.
183
- * Buffer becomes fixed-length after compacting.
184
- */
185
- compact() {
186
- if (this.buffer instanceof SharedArrayBuffer) {
187
- // SharedArrayBuffer uses slice() to create a new fixed-size buffer
188
- this.buffer = this.buffer.slice(0, this.length * this.ArrayType.BYTES_PER_ELEMENT);
189
- }
190
- else {
191
- // ArrayBuffer uses transferToFixedLength() to detach and resize
192
- this.buffer = this.buffer.transferToFixedLength(this.length * this.ArrayType.BYTES_PER_ELEMENT);
193
- }
194
- this.array = new this.ArrayType(this.buffer);
195
- return this.array;
196
- }
197
- }
198
- //# sourceMappingURL=typed-arrays.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-arrays.js","sourceRoot":"","sources":["../../src/typed-arrays.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAC7B,OAAO,iBAAiB,KAAK,WAAW;IACvC,CAAC,CAAE,iBAAkD;IACrD,CAAC,CAAE,WAAsC,CAAA;AA8B3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAA;AAEvC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAA;AAEzC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,CAAA,CAAC,QAAQ;AAEnD;;;;;;GAMG;AACH,MAAM,OAAO,oBAAoB;IAChC,oDAAoD;IACpD,SAAS,CAA2B;I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AQ,CAAC,MAA6B;QACrC,OAAO,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,IAAI,CAAC,WAAW,EAAE,CAAA;QAC1E,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,CAAA;IAC5B,CAAC;IAED;;;OAGG;IACH,OAAO;QACN,IAAI,IAAI,CAAC,MAAM,YAAY,iBAAiB,EAAE,CAAC;YAC9C,mEAAmE;YACnE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAC9B,CAAC,EACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAC9C,CAAA;QACF,CAAC;aAAM,CAAC;YACP,gEAAgE;YAChE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAC9C,CAAA;QACF,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAA;IAClB,CAAC;CACD"}
@@ -1,38 +0,0 @@
1
- /**
2
- * Utility functions for @osmix/core.
3
- * @module
4
- */
5
- import type { GeoBbox2D, LonLat } from "@osmix/shared/types";
6
- /**
7
- * Compute the bounding box of a set of coordinates.
8
- * Returns `[minLon, minLat, maxLon, maxLat]`.
9
- */
10
- export declare function bboxFromLonLats(lonLats: LonLat[]): GeoBbox2D;
11
- /**
12
- * Hash state that can be incrementally updated with multiple buffers.
13
- */
14
- export declare class ContentHasher {
15
- private hash;
16
- /**
17
- * Update the hash with a typed array's underlying bytes.
18
- */
19
- update(data: ArrayBufferView | ArrayBuffer): this;
20
- /**
21
- * Update the hash with a number (as 8 bytes).
22
- */
23
- updateNumber(n: number): this;
24
- /**
25
- * Get the final hash as a hex string.
26
- */
27
- digest(): string;
28
- /**
29
- * Get the raw hash value.
30
- */
31
- digestNumber(): number;
32
- }
33
- /**
34
- * Create a content hash from multiple typed arrays.
35
- * Returns a hex string suitable for use as a content identifier.
36
- */
37
- export declare function hashBuffers(...buffers: (ArrayBufferView | ArrayBuffer)[]): string;
38
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAY5D;AAmBD;;GAEG;AACH,qBAAa,aAAa;IACzB,OAAO,CAAC,IAAI,CAAmB;IAE/B;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,GAAG,IAAI;IAOjD;;OAEG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAM7B;;OAEG;IACH,MAAM,IAAI,MAAM;IAIhB;;OAEG;IACH,YAAY,IAAI,MAAM;CAGtB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAC1B,GAAG,OAAO,EAAE,CAAC,eAAe,GAAG,WAAW,CAAC,EAAE,GAC3C,MAAM,CAMR"}
package/dist/src/utils.js DELETED
@@ -1,87 +0,0 @@
1
- /**
2
- * Utility functions for @osmix/core.
3
- * @module
4
- */
5
- /**
6
- * Compute the bounding box of a set of coordinates.
7
- * Returns `[minLon, minLat, maxLon, maxLat]`.
8
- */
9
- export function bboxFromLonLats(lonLats) {
10
- let minLon = Number.POSITIVE_INFINITY;
11
- let minLat = Number.POSITIVE_INFINITY;
12
- let maxLon = Number.NEGATIVE_INFINITY;
13
- let maxLat = Number.NEGATIVE_INFINITY;
14
- for (const [lon, lat] of lonLats) {
15
- if (lon < minLon)
16
- minLon = lon;
17
- if (lat < minLat)
18
- minLat = lat;
19
- if (lon > maxLon)
20
- maxLon = lon;
21
- if (lat > maxLat)
22
- maxLat = lat;
23
- }
24
- return [minLon, minLat, maxLon, maxLat];
25
- }
26
- // FNV-1a hash constants (32-bit)
27
- const FNV_OFFSET_BASIS = 2166136261;
28
- const FNV_PRIME = 16777619;
29
- /**
30
- * FNV-1a hash implementation for Uint8Array.
31
- * Fast, non-cryptographic hash suitable for content comparison.
32
- */
33
- function fnv1aHash(data, initialHash = FNV_OFFSET_BASIS) {
34
- let hash = initialHash;
35
- for (let i = 0; i < data.length; i++) {
36
- hash ^= data[i];
37
- hash = Math.imul(hash, FNV_PRIME) >>> 0;
38
- }
39
- return hash >>> 0;
40
- }
41
- /**
42
- * Hash state that can be incrementally updated with multiple buffers.
43
- */
44
- export class ContentHasher {
45
- hash = FNV_OFFSET_BASIS;
46
- /**
47
- * Update the hash with a typed array's underlying bytes.
48
- */
49
- update(data) {
50
- const buffer = data instanceof ArrayBuffer ? data : data.buffer;
51
- const bytes = new Uint8Array(buffer);
52
- this.hash = fnv1aHash(bytes, this.hash);
53
- return this;
54
- }
55
- /**
56
- * Update the hash with a number (as 8 bytes).
57
- */
58
- updateNumber(n) {
59
- const buffer = new ArrayBuffer(8);
60
- new Float64Array(buffer)[0] = n;
61
- return this.update(buffer);
62
- }
63
- /**
64
- * Get the final hash as a hex string.
65
- */
66
- digest() {
67
- return this.hash.toString(16).padStart(8, "0");
68
- }
69
- /**
70
- * Get the raw hash value.
71
- */
72
- digestNumber() {
73
- return this.hash;
74
- }
75
- }
76
- /**
77
- * Create a content hash from multiple typed arrays.
78
- * Returns a hex string suitable for use as a content identifier.
79
- */
80
- export function hashBuffers(...buffers) {
81
- const hasher = new ContentHasher();
82
- for (const buffer of buffers) {
83
- hasher.update(buffer);
84
- }
85
- return hasher.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- import type { GeoBbox2D, LonLat, OsmTags, OsmWay } from "@osmix/shared/types";
3
- import Flatbush from "flatbush";
4
- import { Entities, type EntitiesTransferables } from "./entities";
5
- import { type IdOrIndex } from "./ids";
6
- import type { Nodes } from "./nodes";
7
- import type StringTable from "./stringtable";
8
- import { type BufferType } from "./typed-arrays";
9
- import type { ContentHasher } from "./utils";
10
- export interface WaysTransferables<T extends BufferType = BufferType> extends EntitiesTransferables<T> {
11
- refStart: T;
12
- refCount: T;
13
- refs: T;
14
- bbox: T;
15
- /** Optional - can be rebuilt via buildSpatialIndex() */
16
- spatialIndex?: T;
17
- }
18
- export declare class Ways extends Entities<OsmWay> {
19
- private spatialIndex;
20
- private spatialIndexBuilt;
21
- private refStart;
22
- private refCount;
23
- private refs;
24
- private bbox;
25
- private nodes;
26
- /**
27
- * Create a new Ways index.
28
- */
29
- constructor(stringTable: StringTable, nodes: Nodes, transferables?: WaysTransferables);
30
- /**
31
- * Add a single way to the index.
32
- */
33
- addWay(way: OsmWay): number;
34
- /**
35
- * Bulk add ways directly from a PBF PrimitiveBlock.
36
- */
37
- addWays(ways: OsmPbfWay[], blockStringIndexMap: Uint32Array, filter?: (way: OsmWay) => OsmWay | null): number;
38
- /**
39
- * Compact the internal arrays to free up memory.
40
- */
41
- buildEntityIndex(): void;
42
- /**
43
- * Build the spatial index for ways.
44
- * If bbox data already exists (e.g., loaded from storage), reuses it.
45
- */
46
- buildSpatialIndex(): Flatbush;
47
- /**
48
- * Check if the spatial index has been built.
49
- */
50
- hasSpatialIndex(): boolean;
51
- /**
52
- * Get the full way entity.
53
- */
54
- getFullEntity(index: number, id: number, tags?: OsmTags): OsmWay;
55
- /**
56
- * Get the node IDs referenced by a way.
57
- */
58
- getRefIds(index: number): number[];
59
- /**
60
- * Get the bounding box of a way.
61
- */
62
- getEntityBbox(idOrIndex: IdOrIndex): GeoBbox2D;
63
- /**
64
- * Get the coordinates of a way as a flat array.
65
- */
66
- getLine(index: number): Float64Array<ArrayBuffer>;
67
- /**
68
- * Get the coordinates of a way as an array of [lon, lat] pairs.
69
- */
70
- getCoordinates(index: number): LonLat[];
71
- /**
72
- * Find way indexes that intersect a bounding box.
73
- */
74
- intersects(bbox: GeoBbox2D, filterFn?: (index: number) => boolean): number[];
75
- /**
76
- * Find way indexes near a point using great-circle distance.
77
- * @param lon - Longitude in degrees.
78
- * @param lat - Latitude in degrees.
79
- * @param maxResults - Maximum number of results to return.
80
- * @param maxDistanceKm - Maximum distance in kilometers.
81
- * @returns Array of way indexes sorted by distance.
82
- */
83
- neighbors(lon: number, lat: number, maxResults?: number, maxDistanceKm?: number): number[];
84
- /**
85
- * Get ways within a bounding box.
86
- */
87
- withinBbox(bbox: GeoBbox2D, include?: (index: number) => boolean): {
88
- ids: Float64Array;
89
- positions: Float64Array;
90
- startIndices: Uint32Array;
91
- };
92
- /**
93
- * Get transferable objects for passing to another thread.
94
- * Only includes spatialIndex if it has been built.
95
- */
96
- transferables(): WaysTransferables;
97
- /**
98
- * Get the approximate memory requirements for a given number of ways in bytes.
99
- */
100
- static getBytesRequired(count: number): number;
101
- /**
102
- * Update a ContentHasher with way-specific data (node references).
103
- */
104
- updateHash(hasher: ContentHasher): ContentHasher;
105
- }
106
- //# sourceMappingURL=ways.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ways.d.ts","sourceRoot":"","sources":["../../src/ways.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,QAAQ,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACjE,OAAO,EAAE,KAAK,SAAS,EAAO,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;A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