New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@allmaps/stdlib

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allmaps/stdlib - npm Package Compare versions

Comparing version 1.0.0-beta.21 to 1.0.0-beta.22

4

dist/color.d.ts

@@ -11,3 +11,3 @@ import type { Color } from '@allmaps/types';

* @param {string} hex - hex string, e.g. '#0033ff'
* @returns {Color} rgb, e.g. [0, 51, 255]
* @returns {Color} RGB, e.g. [0, 51, 255]
*/

@@ -18,4 +18,4 @@ export declare function hexToRgb(hex: string): Color;

* @param {string} hex - hex string, e.g. '#0033ff'
* @returns {Color} rgb, e.g. [0, 0.2, 1]
* @returns {Color} Fractional RGB, e.g. [0, 0.2, 1]
*/
export declare function hexToFractionalRgb(hex: string): Color;

@@ -18,3 +18,3 @@ /**

* @param {string} hex - hex string, e.g. '#0033ff'
* @returns {Color} rgb, e.g. [0, 51, 255]
* @returns {Color} RGB, e.g. [0, 51, 255]
*/

@@ -31,8 +31,6 @@ export function hexToRgb(hex) {

* @param {string} hex - hex string, e.g. '#0033ff'
* @returns {Color} rgb, e.g. [0, 0.2, 1]
* @returns {Color} Fractional RGB, e.g. [0, 0.2, 1]
*/
export function hexToFractionalRgb(hex) {
return hexToRgb(hex).map((c) => {
return c / 255;
});
return hexToRgb(hex).map((c) => c / 255);
}

@@ -18,2 +18,4 @@ import type { Point, LineString, Line, Ring, Polygon, Geometry, GeojsonPoint, GeojsonLineString, GeojsonPolygon, GeojsonGeometry } from '@allmaps/types';

export declare function isEqualPointArrayArray(pointArrayArray1: Point[][], pointArrayArray2: Point[][]): boolean;
export declare function flipX(point: Point): Point;
export declare function flipY(point: Point): Point;
export declare function midPoint(point0: Point, point1: Point): Point;

@@ -20,0 +22,0 @@ export declare function mixPoints(point0: Point, point1: Point, t: number): Point;

@@ -142,2 +142,8 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

// Compute
export function flipX(point) {
return [-point[0], point[1]];
}
export function flipY(point) {
return [point[0], -point[1]];
}
export function midPoint(point0, point1) {

@@ -144,0 +150,0 @@ return [

{
"name": "@allmaps/stdlib",
"version": "1.0.0-beta.21",
"version": "1.0.0-beta.22",
"contributors": [

@@ -55,4 +55,4 @@ {

"@allmaps/annotation": "^1.0.0-beta.22",
"@allmaps/iiif-parser": "^1.0.0-beta.32",
"@allmaps/types": "^1.0.0-beta.8",
"@allmaps/iiif-parser": "^1.0.0-beta.33",
"@allmaps/types": "^1.0.0-beta.9",
"@placemarkio/geojson-rewind": "^1.0.2",

@@ -72,3 +72,3 @@ "svg-parser": "^2.0.4"

},
"gitHead": "c418156843f0af177f2e644d4376d00c4dd1e0d9"
"gitHead": "7c78af0bfc5772991eda9a4ed8c256f5321daa87"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc