@nebula.gl/edit-modes
Advanced tools
Comparing version 1.1.0-alpha.3 to 1.1.0-alpha.4
@@ -1,2 +0,2 @@ | ||
import { MultiLineString as MultiLineString_2 } from '@turf/helpers'; | ||
import type { MultiLineString as MultiLineString_2 } from '@turf/helpers'; | ||
@@ -7,3 +7,3 @@ export declare type AnyCoordinates = PointCoordinates | LineStringCoordinates | PolygonCoordinates | MultiPointCoordinates | MultiLineStringCoordinates | MultiPolygonCoordinates; | ||
declare type BasePointerEvent = { | ||
export declare type BasePointerEvent = { | ||
picks: Pick_2[]; | ||
@@ -179,3 +179,3 @@ screenCoords: ScreenCoordinates; | ||
declare type EditHandleFeature = FeatureWithProps<Point, { | ||
export declare type EditHandleFeature = FeatureWithProps<Point, { | ||
guideType: 'editHandle'; | ||
@@ -188,3 +188,3 @@ editHandleType: EditHandleType; | ||
declare type EditHandleType = 'existing' | 'intermediate' | 'snap-source' | 'snap-target' | 'scale' | 'rotate'; | ||
export declare type EditHandleType = 'existing' | 'intermediate' | 'snap-source' | 'snap-target' | 'scale' | 'rotate'; | ||
@@ -238,3 +238,3 @@ export declare interface EditMode<TData, TGuides> { | ||
features: Feature[]; | ||
properties?: {}; | ||
properties?: Record<string, unknown>; | ||
id?: string | number; | ||
@@ -311,3 +311,3 @@ bbox?: BoundingBoxArray; | ||
declare type GuideFeature = EditHandleFeature | TentativeFeature; | ||
export declare type GuideFeature = EditHandleFeature | TentativeFeature; | ||
@@ -317,3 +317,3 @@ export declare type GuideFeatureCollection = { | ||
features: Readonly<GuideFeature>[]; | ||
properties?: {}; | ||
properties?: Record<string, unknown>; | ||
}; | ||
@@ -602,3 +602,3 @@ | ||
declare type TentativeFeature = FeatureWithProps<Geometry, { | ||
export declare type TentativeFeature = FeatureWithProps<Geometry, { | ||
guideType: 'tentative'; | ||
@@ -605,0 +605,0 @@ shape?: string; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "1.1.0-alpha.3", | ||
"version": "1.1.0-alpha.4", | ||
"author": "Georgios Karnas <georgios@uber.com>", | ||
@@ -76,3 +76,3 @@ "repository": { | ||
}, | ||
"gitHead": "1fde52990b7c6de0109368bda49ef088d0027cea" | ||
"gitHead": "039d7042ee60ef937bfd8955d200ccde49ce4242" | ||
} |
@@ -84,3 +84,3 @@ // Geometry types | ||
features: Feature[]; | ||
properties?: {}; | ||
properties?: Record<string, unknown>; | ||
id?: string | number; | ||
@@ -87,0 +87,0 @@ bbox?: BoundingBoxArray; |
@@ -65,2 +65,7 @@ import * as utils from './utils'; | ||
Tooltip, | ||
GuideFeature, | ||
TentativeFeature, | ||
BasePointerEvent, | ||
EditHandleFeature, | ||
EditHandleType, | ||
} from './types'; | ||
@@ -67,0 +72,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Position, Point, Geometry, FeatureWithProps } from './geojson-types'; | ||
import type { Position, Point, Geometry, FeatureWithProps } from './geojson-types'; | ||
@@ -109,3 +109,3 @@ export type ScreenCoordinates = [number, number]; | ||
features: Readonly<GuideFeature>[]; | ||
properties?: {}; | ||
properties?: Record<string, unknown>; | ||
}; | ||
@@ -112,0 +112,0 @@ |
@@ -5,7 +5,8 @@ import destination from '@turf/destination'; | ||
import { flattenEach } from '@turf/meta'; | ||
import { point, MultiLineString } from '@turf/helpers'; | ||
import { point } from '@turf/helpers'; | ||
import type { MultiLineString } from '@turf/helpers'; | ||
import { getCoords } from '@turf/invariant'; | ||
import WebMercatorViewport from 'viewport-mercator-project'; | ||
import { Viewport, Pick, EditHandleFeature, EditHandleType } from './types'; | ||
import { | ||
import type { Viewport, Pick, EditHandleFeature, EditHandleType } from './types'; | ||
import type { | ||
Geometry, | ||
@@ -12,0 +13,0 @@ Position, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1024072
8544
0