@zwishing/emap 0.1.0 → 0.1.2
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/CHANGELOG.md +33 -2
- package/README.md +68 -8
- package/dist/emap.js +2 -2
- package/dist/emap.mjs +1 -5
- package/dist/index.d.ts +2 -2
- package/dist/map/types.d.ts +5 -0
- package/dist/mapshaper-vendor.mjs +1 -0
- package/dist/source/topology-source.d.ts +14 -0
- package/dist/ui/basemap-control.d.ts +2 -1
- package/package.json +17 -8
- package/style.css.d.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './shim';
|
|
2
2
|
import 'mapshaper';
|
|
3
3
|
export { Emap } from './map/map';
|
|
4
|
-
export type { ExpressionEvaluationPolicy, QueryFeaturesOptions, QueriedFeature, FeatureRef, HighlightFeatureRef, HighlightStyle, FeatureTranslateSession, FeatureAffineSession, ClipEraseOptions, DissolveOptions, CleanOptions, BufferOptions, ApplyExpressionOptions, ExplodeOptions, InnerlinesOptions, FilterOptions, FilterIslandsOptions, FilterSliversOptions, FilterGeomOptions, AffineLayerOptions, DataFillOptions, SnapOptions, MosaicOptions, UnionOptions, DivideOptions, PointsOptions, PointsMode, LinesOptions, PolygonsOptions, SimplifyOptions, SimplifyMethod, ProjectOptions, RebuildTopologyOptions, RenameLayerOptions, MergeLayersOptions, SplitLayerOptions, DropLayerOptions, SortFeaturesOptions, UniqueFeaturesOptions, FilterFieldsOptions, RenameFieldsOptions, JoinTableOptions, JoinTableData, CheckGeometryOptions, GeometryCheckReport, IntersectionPointsLayerOptions, ExportSnapshotOptions, LoadSnapshotOptions, } from './map/map';
|
|
4
|
+
export type { MapOptions, ExpressionEvaluationPolicy, QueryFeaturesOptions, QueriedFeature, FeatureRef, HighlightFeatureRef, HighlightStyle, FeatureTranslateSession, FeatureAffineSession, ClipEraseOptions, DissolveOptions, CleanOptions, BufferOptions, ApplyExpressionOptions, ExplodeOptions, InnerlinesOptions, FilterOptions, FilterIslandsOptions, FilterSliversOptions, FilterGeomOptions, AffineLayerOptions, DataFillOptions, SnapOptions, MosaicOptions, UnionOptions, DivideOptions, PointsOptions, PointsMode, LinesOptions, PolygonsOptions, SimplifyOptions, SimplifyMethod, ProjectOptions, RebuildTopologyOptions, RenameLayerOptions, MergeLayersOptions, SplitLayerOptions, DropLayerOptions, SortFeaturesOptions, UniqueFeaturesOptions, FilterFieldsOptions, RenameFieldsOptions, JoinTableOptions, JoinTableData, CheckGeometryOptions, GeometryCheckReport, IntersectionPointsLayerOptions, ExportSnapshotOptions, LoadSnapshotOptions, } from './map/map';
|
|
5
5
|
export type { LayerSpecification, LayerType, LayerPaint, LayerLayout, FillPaint, LinePaint, CirclePaint, } from './map/layer';
|
|
6
6
|
export { resolveStrokeStyle, resolvePointStyle } from './map/layer';
|
|
7
7
|
export { HighlightManager } from './map/highlight-manager';
|
|
@@ -20,7 +20,7 @@ export type { ExportedFile, MapshaperAdapter, MapshaperBBox, PackedSession, Runn
|
|
|
20
20
|
export { MapshaperWorkerPool } from './core/mapshaper-worker-pool';
|
|
21
21
|
export type { MapshaperWorkerPoolOptions } from './core/mapshaper-worker-pool';
|
|
22
22
|
export { TopologySource } from './source/topology-source';
|
|
23
|
-
export type { TopologySourceData, TopologySourceInput, TopologySourceOptions, ZipExtractionLimits, } from './source/topology-source';
|
|
23
|
+
export type { TopologySourceData, TopologySourceInput, TopologySourceOptions, TopologySourceFromBytesOptions, ZipExtractionLimits, } from './source/topology-source';
|
|
24
24
|
export type { TopologySource as ITopologySource, ExportFormat, ExportOptions } from './source/source';
|
|
25
25
|
export { Bounds } from './geo/bounds';
|
|
26
26
|
export { AffineTransform, AffineTransform as Transform } from './geo/transform';
|
package/dist/map/types.d.ts
CHANGED
|
@@ -38,6 +38,11 @@ export interface MapOptions {
|
|
|
38
38
|
* overhead.
|
|
39
39
|
*/
|
|
40
40
|
useWorker?: boolean | 'auto';
|
|
41
|
+
/**
|
|
42
|
+
* Compatibility alias for {@link useWorker}. If both are supplied,
|
|
43
|
+
* `useWorker` wins.
|
|
44
|
+
*/
|
|
45
|
+
workerMode?: boolean | 'auto';
|
|
41
46
|
/**
|
|
42
47
|
* Vertex-count threshold for `useWorker: 'auto'`. Datasets whose
|
|
43
48
|
* `arcs.getPointCount()` is at least this large route through the
|