@tmlmobilidade/utils 20250819.1402.50 → 20250819.1746.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './src/batching/index.js';
2
2
  export * from './src/convert-object.js';
3
+ export * from './src/css/index.js';
3
4
  export * from './src/dates/index.js';
4
5
  export * from './src/files/files.js';
5
6
  export * from './src/generic/index.js';
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './src/batching/index.js';
2
2
  export * from './src/convert-object.js';
3
+ export * from './src/css/index.js';
3
4
  export * from './src/dates/index.js';
4
5
  export * from './src/files/files.js';
5
6
  export * from './src/generic/index.js';
@@ -0,0 +1 @@
1
+ export declare const getCssVariableValue: (variableName: string) => any;
@@ -0,0 +1,8 @@
1
+ /* * */
2
+ export const getCssVariableValue = (variableName) => {
3
+ if (typeof globalThis.window === 'undefined')
4
+ return undefined;
5
+ return globalThis.window.getComputedStyle(globalThis.document.documentElement)
6
+ .getPropertyValue(variableName)
7
+ .trim();
8
+ };
@@ -0,0 +1 @@
1
+ export * from './get-variable-value.js';
@@ -0,0 +1 @@
1
+ export * from './get-variable-value.js';
@@ -0,0 +1,6 @@
1
+ import { FeatureCollection, Point } from 'geojson';
2
+ /**
3
+ * Creates a base GeoJSON feature collection for point features.
4
+ * @returns A base GeoJSON feature collection with an empty features array.
5
+ */
6
+ export declare const getBaseGeoJsonFeatureCollectionPoint: <T>() => FeatureCollection<Point, T>;
@@ -0,0 +1,8 @@
1
+ /* * */
2
+ /**
3
+ * Creates a base GeoJSON feature collection for point features.
4
+ * @returns A base GeoJSON feature collection with an empty features array.
5
+ */
6
+ export const getBaseGeoJsonFeatureCollectionPoint = () => {
7
+ return Object.assign({ features: [], type: 'FeatureCollection' });
8
+ };
@@ -2,6 +2,7 @@ export * from './chunk-line.js';
2
2
  export * from './constants.js';
3
3
  export * from './conversions.js';
4
4
  export * from './cut-line-at-length.js';
5
+ export * from './geojson-collections.js';
5
6
  export * from './get-geofence-on-point.js';
6
7
  export * from './is-point-in-polygon.js';
7
8
  export * from './measurements.js';
@@ -2,6 +2,7 @@ export * from './chunk-line.js';
2
2
  export * from './constants.js';
3
3
  export * from './conversions.js';
4
4
  export * from './cut-line-at-length.js';
5
+ export * from './geojson-collections.js';
5
6
  export * from './get-geofence-on-point.js';
6
7
  export * from './is-point-in-polygon.js';
7
8
  export * from './measurements.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/utils",
3
- "version": "20250819.1402.50",
3
+ "version": "20250819.1746.12",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",