@allmaps/stdlib
Version:
Allmaps Standard Library
15 lines (14 loc) • 4.19 kB
TypeScript
export { fetchAnnotationsFromApi } from './api.js';
export { getImageData, getColorsArray, getColorHistogram, getMaxOccurringColor } from './background-color.js';
export { computeMinMax, bindValue, bindPoint, bindPointLngLatProjection, bindPointWebMercatorProjection, computeBbox, combineBboxes, doBboxesIntersect, intersectBboxes, pointInBbox, bufferBbox, bufferBboxByRatio, bboxToRectangle, bboxToPolygon, bboxToLine, bboxToDiameter, geometryToDiameter, bboxToCenter, bboxToSize, bboxToResolution, rectangleToSize, convexHull, sizesToScale, scaleSize, sizeToResolution, sizeToCenter, sizeToBbox, sizeToRectangle, bboxesToScale, rectanglesToScale } from './bbox.js';
export { getPropertyFromCacheOrComputation, getPropertyFromDoubleCacheOrComputation, getPropertyFromTripleCacheOrComputation, getPropertyFromQuadrupleCacheOrComputation } from './cache.js';
export { rgbToHex, rgbaToHex, hexToRgb, hexToRgba, hexToOpaqueRgba, hexToFractionalRgb, hexToFractionalRgba, hexToFractionalOpaqueRgba } from './color.js';
export { fetchUrl, fetchJson, fetchImageInfo, fetchImageBitmap } from './fetch.js';
export { isGeojsonPoint, isGeojsonLineString, isGeojsonPolygon, isGeojsonMultiPoint, isGeojsonMultiLineString, isGeojsonMultiPolygon, isGeojsonGeometry, isGeojsonMultiGeometry, geojsonPointToPoint, geojsonLineStringToLineString, geojsonPolygonToRing, geojsonPolygonToPolygon, geojsonMultiPointToMultiPoint, geojsonMultiLineStringToMultiLineString, geojsonMultiPolygonToMultiPolygon, geojsonGeometryToGeometry, geojsonGeometryToSvgGeometry, geojsonGeometryToGeojsonFeature, geojsonFeaturesToGeojsonFeatureCollection, geojsonGeometriesToGeojsonFeatureCollection, geojsonFeatureToGeojsonGeometry, geojsonFeatureCollectionToGeojsonGeometries, expandGeojsonMultiPointToGeojsonPoints, expandGeojsonMultiLineStringToGeojsonLineStrings, expandGeojsonMultiPolygonToGeojsonPolygons, expandGeojsonMultiGeometryToGeojsonGeometries, contractGeojsonPointsToGeojsonMultiPoint, contractGeojsonLineStringsToGeojsonMultiLineString, contractGeojsonPolygonsToGeojsonMultiPolygon, contractGeojsonGeometriesToGeojsonMultiGeometry, mergeGeojsonFeaturesCollections } from './geojson.js';
export { isPoint, isLineString, isRing, isPolygon, isMultiPoint, isMultiLineString, isMultiPolygon, isGeometry, closeRing, uncloseRing, closePolygon, unclosePolygon, closeMultiPolygon, uncloseMultiPolygon, conformLineString, conformRing, conformPolygon, conformMultiLineString, conformMultiPolygon, pointToGeojsonPoint, lineStringToGeojsonLineString, ringToGeojsonPolygon, polygonToGeojsonPolygon, multiPointToGeojsonMultiPoint, multiLineStringToGeojsonMultiLineString, multiPolygonToGeojsonMultiPolygon, geometryToGeojsonGeometry, geometryToSvgGeometry, isClosed, isEqualPoint, isEqualPointArray, isEqualPointArrayArray, pointsAndPointsToLines, lineStringToLines, pointToPixel, pixelToIntArrayIndex, flipX, flipY, mixNumbers, mixPoints, mixLineStrings, midPoint, lineAngle, stepDistanceAngle, distance, squaredDistance, rms, triangleArea, invertPoint, invertPoints, scalePoint, scalePoints, translatePoint, translatePoints, rotatePoint, rotatePoints, triangleAngles, threePointsToAngle } from './geometry.js';
export { degreesToRadians, radiansToDegrees, angle, bearing, groupBy, isEqualArray, arrayRepeated, subSetArray, equalSet, objectDifference, objectOmitDifference, omit, isValidHttpUrl, camelCaseToWords } from './main.js';
export { getFullResourceMask } from './masks.js';
export { newArrayMatrix, arrayMatrixSize, multiplyArrayMatrix, subArrayMatrix, transposeArrayMatrix, pasteArrayMatrix, sliceArrayMatrix, shallowCopyArrayMatrix, newBlockArrayMatrix } from './matrix.js';
export { mergeOptions, mergeOptionsUnlessUndefined, mergePartialOptions, removeUndefinedOptions, optionKeysToUndefinedOptions, optionKeysByMapIdToUndefinedOptionsByMapId } from './options.js';
export { polygonSelfIntersectionPoints, linesIntersectionPoint, prolongedLinesIntersectionPoint } from './self-intersect.js';
export { isSvgCircle, isSvgLine, isSvgPolyLine, isSvgRect, isSvgPolygon, stringToSvgGeometriesGenerator, svgGeometriesToSvgString, svgGeometryToString, mapToResourceMaskSvgPolygon, svgGeometryToGeometry } from './svg.js';