@feltmaps/js-sdk 1.5.0-next.12 → 1.5.0-next.13
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/client.cjs +1 -1
- package/dist/client.d.cts +41 -3
- package/dist/client.d.ts +41 -3
- package/dist/client.js +1 -1
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +251 -3
- package/dist/handler.d.ts +251 -3
- package/dist/handler.js +1 -1
- package/dist/{types-C_wMpqIu.d.cts → types-PSY3LPGC.d.cts} +153 -1
- package/dist/{types-C_wMpqIu.d.ts → types-PSY3LPGC.d.ts} +153 -1
- package/handler.d.ts +251 -3
- package/handler.js +1 -1
- package/package.json +1 -1
- package/{types-C_wMpqIu.d.ts → types-PSY3LPGC.d.ts} +153 -1
package/dist/handler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
1
|
+
import { z, ZodError } from 'zod';
|
|
2
|
+
import { Q as zInfer, E as Element, G as GeoJsonGeometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, m as LayerGroup, q as LegendItem, t as LayerFilters, v as LayerFeature, w as GeoJsonFeature, y as GetLayerCategoriesGroup, A as GetLayerHistogramBin, B as AggregationMethod, D as LayerSchema, i as LayerChangeCallbackParams, o as LayerGroupChangeCallbackParams, s as LegendItemChangeCallbackParams, aB as FilterTernary, H as MapDetails, I as EntityNode, T as ToolType, O as ToolSettingsMap, P as ToolSettingsChangeEvent, V as ViewportState, W as ViewportConstraints, b5 as UnionToIntersection, b6 as PromiseOrNot } from './types-PSY3LPGC.js';
|
|
3
3
|
|
|
4
4
|
type Method<TRequest extends {
|
|
5
5
|
type: string;
|
|
@@ -1669,6 +1669,252 @@ declare const SetLayerLegendVisibilityMessage: z.ZodObject<{
|
|
|
1669
1669
|
};
|
|
1670
1670
|
type: "setLayerLegendVisibility";
|
|
1671
1671
|
}>;
|
|
1672
|
+
declare const createLayerMessage: z.ZodObject<{
|
|
1673
|
+
type: z.ZodLiteral<"createLayer">;
|
|
1674
|
+
params: z.ZodObject<{
|
|
1675
|
+
source: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
1676
|
+
type: z.ZodLiteral<"application/geo+json">;
|
|
1677
|
+
name: z.ZodString;
|
|
1678
|
+
geometryStyles: z.ZodOptional<z.ZodObject<{
|
|
1679
|
+
Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1680
|
+
Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1681
|
+
Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1682
|
+
}, "strip", z.ZodTypeAny, {
|
|
1683
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1684
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1685
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1686
|
+
}, {
|
|
1687
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1688
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1689
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1690
|
+
}>>;
|
|
1691
|
+
}, {
|
|
1692
|
+
arrayBuffer: z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>;
|
|
1693
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1694
|
+
type: "application/geo+json";
|
|
1695
|
+
name: string;
|
|
1696
|
+
arrayBuffer: ArrayBuffer;
|
|
1697
|
+
geometryStyles?: {
|
|
1698
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1699
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1700
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1701
|
+
} | undefined;
|
|
1702
|
+
}, {
|
|
1703
|
+
type: "application/geo+json";
|
|
1704
|
+
name: string;
|
|
1705
|
+
arrayBuffer: ArrayBuffer;
|
|
1706
|
+
geometryStyles?: {
|
|
1707
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1708
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1709
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1710
|
+
} | undefined;
|
|
1711
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1712
|
+
type: z.ZodLiteral<"application/geo+json">;
|
|
1713
|
+
name: z.ZodString;
|
|
1714
|
+
geometryStyles: z.ZodOptional<z.ZodObject<{
|
|
1715
|
+
Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1716
|
+
Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1717
|
+
Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1718
|
+
}, "strip", z.ZodTypeAny, {
|
|
1719
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1720
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1721
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1722
|
+
}, {
|
|
1723
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1724
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1725
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1726
|
+
}>>;
|
|
1727
|
+
}, {
|
|
1728
|
+
file: z.ZodType<File, z.ZodTypeDef, File>;
|
|
1729
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1730
|
+
type: "application/geo+json";
|
|
1731
|
+
name: string;
|
|
1732
|
+
file: File;
|
|
1733
|
+
geometryStyles?: {
|
|
1734
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1735
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1736
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1737
|
+
} | undefined;
|
|
1738
|
+
}, {
|
|
1739
|
+
type: "application/geo+json";
|
|
1740
|
+
name: string;
|
|
1741
|
+
file: File;
|
|
1742
|
+
geometryStyles?: {
|
|
1743
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1744
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1745
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1746
|
+
} | undefined;
|
|
1747
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1748
|
+
type: z.ZodLiteral<"application/geo+json">;
|
|
1749
|
+
name: z.ZodString;
|
|
1750
|
+
geometryStyles: z.ZodOptional<z.ZodObject<{
|
|
1751
|
+
Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1752
|
+
Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1753
|
+
Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1754
|
+
}, "strip", z.ZodTypeAny, {
|
|
1755
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1756
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1757
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1758
|
+
}, {
|
|
1759
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1760
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1761
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1762
|
+
}>>;
|
|
1763
|
+
}, {
|
|
1764
|
+
url: z.ZodString;
|
|
1765
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1766
|
+
type: "application/geo+json";
|
|
1767
|
+
name: string;
|
|
1768
|
+
url: string;
|
|
1769
|
+
geometryStyles?: {
|
|
1770
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1771
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1772
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1773
|
+
} | undefined;
|
|
1774
|
+
}, {
|
|
1775
|
+
type: "application/geo+json";
|
|
1776
|
+
name: string;
|
|
1777
|
+
url: string;
|
|
1778
|
+
geometryStyles?: {
|
|
1779
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1780
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1781
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1782
|
+
} | undefined;
|
|
1783
|
+
}>]>;
|
|
1784
|
+
}, "strip", z.ZodTypeAny, {
|
|
1785
|
+
source: {
|
|
1786
|
+
type: "application/geo+json";
|
|
1787
|
+
name: string;
|
|
1788
|
+
arrayBuffer: ArrayBuffer;
|
|
1789
|
+
geometryStyles?: {
|
|
1790
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1791
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1792
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1793
|
+
} | undefined;
|
|
1794
|
+
} | {
|
|
1795
|
+
type: "application/geo+json";
|
|
1796
|
+
name: string;
|
|
1797
|
+
file: File;
|
|
1798
|
+
geometryStyles?: {
|
|
1799
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1800
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1801
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1802
|
+
} | undefined;
|
|
1803
|
+
} | {
|
|
1804
|
+
type: "application/geo+json";
|
|
1805
|
+
name: string;
|
|
1806
|
+
url: string;
|
|
1807
|
+
geometryStyles?: {
|
|
1808
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1809
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1810
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1811
|
+
} | undefined;
|
|
1812
|
+
};
|
|
1813
|
+
}, {
|
|
1814
|
+
source: {
|
|
1815
|
+
type: "application/geo+json";
|
|
1816
|
+
name: string;
|
|
1817
|
+
arrayBuffer: ArrayBuffer;
|
|
1818
|
+
geometryStyles?: {
|
|
1819
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1820
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1821
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1822
|
+
} | undefined;
|
|
1823
|
+
} | {
|
|
1824
|
+
type: "application/geo+json";
|
|
1825
|
+
name: string;
|
|
1826
|
+
file: File;
|
|
1827
|
+
geometryStyles?: {
|
|
1828
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1829
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1830
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1831
|
+
} | undefined;
|
|
1832
|
+
} | {
|
|
1833
|
+
type: "application/geo+json";
|
|
1834
|
+
name: string;
|
|
1835
|
+
url: string;
|
|
1836
|
+
geometryStyles?: {
|
|
1837
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1838
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1839
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1840
|
+
} | undefined;
|
|
1841
|
+
};
|
|
1842
|
+
}>;
|
|
1843
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1844
|
+
params: {
|
|
1845
|
+
source: {
|
|
1846
|
+
type: "application/geo+json";
|
|
1847
|
+
name: string;
|
|
1848
|
+
arrayBuffer: ArrayBuffer;
|
|
1849
|
+
geometryStyles?: {
|
|
1850
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1851
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1852
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1853
|
+
} | undefined;
|
|
1854
|
+
} | {
|
|
1855
|
+
type: "application/geo+json";
|
|
1856
|
+
name: string;
|
|
1857
|
+
file: File;
|
|
1858
|
+
geometryStyles?: {
|
|
1859
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1860
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1861
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1862
|
+
} | undefined;
|
|
1863
|
+
} | {
|
|
1864
|
+
type: "application/geo+json";
|
|
1865
|
+
name: string;
|
|
1866
|
+
url: string;
|
|
1867
|
+
geometryStyles?: {
|
|
1868
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1869
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1870
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1871
|
+
} | undefined;
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
type: "createLayer";
|
|
1875
|
+
}, {
|
|
1876
|
+
params: {
|
|
1877
|
+
source: {
|
|
1878
|
+
type: "application/geo+json";
|
|
1879
|
+
name: string;
|
|
1880
|
+
arrayBuffer: ArrayBuffer;
|
|
1881
|
+
geometryStyles?: {
|
|
1882
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1883
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1884
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1885
|
+
} | undefined;
|
|
1886
|
+
} | {
|
|
1887
|
+
type: "application/geo+json";
|
|
1888
|
+
name: string;
|
|
1889
|
+
file: File;
|
|
1890
|
+
geometryStyles?: {
|
|
1891
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1892
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1893
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1894
|
+
} | undefined;
|
|
1895
|
+
} | {
|
|
1896
|
+
type: "application/geo+json";
|
|
1897
|
+
name: string;
|
|
1898
|
+
url: string;
|
|
1899
|
+
geometryStyles?: {
|
|
1900
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1901
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1902
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1903
|
+
} | undefined;
|
|
1904
|
+
};
|
|
1905
|
+
};
|
|
1906
|
+
type: "createLayer";
|
|
1907
|
+
}>;
|
|
1908
|
+
declare const DeleteLayerMessage: z.ZodObject<{
|
|
1909
|
+
type: z.ZodLiteral<"deleteLayer">;
|
|
1910
|
+
params: z.ZodString;
|
|
1911
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1912
|
+
params: string;
|
|
1913
|
+
type: "deleteLayer";
|
|
1914
|
+
}, {
|
|
1915
|
+
params: string;
|
|
1916
|
+
type: "deleteLayer";
|
|
1917
|
+
}>;
|
|
1672
1918
|
declare const GetGroupMessage: z.ZodObject<{
|
|
1673
1919
|
type: z.ZodLiteral<"getLayerGroup">;
|
|
1674
1920
|
params: z.ZodString;
|
|
@@ -2563,6 +2809,8 @@ type LayersSchema = {
|
|
|
2563
2809
|
setLayerVisibility: Method<zInfer<typeof SetLayerVisibilityMessage>, void>;
|
|
2564
2810
|
setLayerStyle: Method<zInfer<typeof SetLayerStyleMessage>, void>;
|
|
2565
2811
|
setLayerLegendVisibility: Method<zInfer<typeof SetLayerLegendVisibilityMessage>, void>;
|
|
2812
|
+
createLayer: Method<zInfer<typeof createLayerMessage>, LayerGroup | null>;
|
|
2813
|
+
deleteLayer: Method<zInfer<typeof DeleteLayerMessage>, void>;
|
|
2566
2814
|
getLayerGroup: Method<zInfer<typeof GetGroupMessage>, LayerGroup | null>;
|
|
2567
2815
|
getLayerGroups: Method<zInfer<typeof GetGroupsMessage>, Array<LayerGroup | null>>;
|
|
2568
2816
|
setLayerGroupVisibility: Method<zInfer<typeof SetLayerGroupVisibilityMessage>, void>;
|
|
@@ -3423,7 +3671,7 @@ declare function createMessageHandler(feltWindow: Window, handlers: FeltHandlers
|
|
|
3423
3671
|
*
|
|
3424
3672
|
* @param message
|
|
3425
3673
|
*/
|
|
3426
|
-
onInvalidMessage?: (message: unknown) => void;
|
|
3674
|
+
onInvalidMessage?: (message: unknown, error: ZodError) => void;
|
|
3427
3675
|
}): VoidFunction;
|
|
3428
3676
|
|
|
3429
3677
|
export { createMessageHandler };
|
package/dist/handler.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as g}from"zod";import{z as d}from"zod";import{z as b}from"zod";function t(i,T){return b.strictObject({type:b.literal(i),params:T})}function h(i,T){return b.strictObject({eventName:b.literal(i),id:b.string(),options:T})}function l(i){return b.strictObject({eventName:b.literal(i),id:b.string()})}import{z as n}from"zod";var F=n.number(),k=n.number(),v=n.object({latitude:k,longitude:F}),M=n.tuple([F,k]),pe=n.object({type:n.literal("Point"),coordinates:M}),ce=n.object({type:n.literal("Polygon"),coordinates:n.array(n.array(M))}),et=n.object({type:n.literal("LineString"),coordinates:n.array(M)}),L=n.object({type:n.literal("MultiLineString"),coordinates:n.array(et.shape.coordinates)}),ge=n.number().min(1).max(23),G=n.tuple([F,k,F,k]),I=n.object({show:n.array(n.string()).optional(),hide:n.array(n.string()).optional()}),tt=n.enum(["asc","desc"]),ye=n.object({attribute:n.string(),direction:tt});import{z as e}from"zod";var y=e.object({id:e.string(),groupId:e.string().nullable(),color:e.string(),name:e.union([e.string(),e.null()]),description:e.union([e.string(),e.null()]),attributes:e.record(e.string(),e.unknown()),interaction:e.enum(["default","locked"]).optional()}),w=e.object({imageUrl:e.string().nullable()}),H=e.object({strokeOpacity:e.number(),strokeWidth:e.number(),strokeStyle:e.enum(["solid","dashed","dotted"])}),ot=e.enum(["meter","kilometer","foot","mile"]),de=y.extend(w.shape).extend({type:e.literal("Place"),coordinates:pe.shape.coordinates,symbol:e.string(),frame:e.enum(["frame-circle","frame-square"]).nullable(),hideLabel:e.boolean()}),B=y.extend(w.shape).extend(H.shape).extend({type:e.literal("Path"),coordinates:L.shape.coordinates,distanceMarker:e.boolean(),endCaps:e.boolean(),routingMode:e.enum(["driving","cycling","walking","flying"]).nullable()}),D=y.extend(w.shape).extend(H.shape).extend({type:e.literal("Polygon"),coordinates:L.shape.coordinates,fillOpacity:e.number().min(0).max(1),areaMarker:e.boolean()}),ue=y.extend(w.shape).extend(H.shape).extend({type:e.literal("Circle"),coordinates:M,radius:e.number(),radiusDisplayAngle:e.number(),radiusDisplayUnit:ot.nullable(),fillOpacity:e.number().min(0).max(1),radiusMarker:e.boolean()}),Z=y.extend({type:e.literal("Marker"),coordinates:L.shape.coordinates,opacity:e.number().min(0).max(1),size:e.number().min(0).max(100),zoom:e.number().min(0).max(23)}),J=y.extend({type:e.literal("Highlighter"),coordinates:L.shape.coordinates,opacity:e.number().min(0).max(1)}),he=e.object({position:M,rotation:e.number(),scale:e.number(),zoom:e.number().min(0).max(23),coordinates:L.shape.coordinates}),fe=e.object({text:e.string(),align:e.enum(["left","center","right"]),style:e.enum(["italic","light","regular","caps"]),name:e.string()}),W=y.extend(he.shape).extend(fe.shape).extend({type:e.literal("Text")}),_=y.extend(he.shape).extend(fe.shape).extend({type:e.literal("Note"),widthScale:e.number().min(0)}),Q=y.extend({type:e.literal("Image"),coordinates:L.shape.coordinates,imageUrl:e.string(),opacity:e.number().min(0).max(1)}).omit({color:!0}),rt=y.extend({type:e.literal("Link"),coordinates:L.shape.coordinates,url:e.string()}),f={type:!0,coordinates:!0},S={id:!0},$=de.partial().required(f).omit(S),V=B.partial().required(f).omit(S),K=D.partial().required(f).omit(S),X=ue.partial().required(f).required({radius:!0}).omit(S),Y=Z.partial().required(f).omit(S),ee=J.partial().required(f).omit(S),te=W.partial().required(f).required({text:!0}).omit(S).omit({coordinates:!0,name:!0}),oe=_.partial().required(f).required({text:!0}).omit(S).omit({coordinates:!0,name:!0}),nt=Q.partial().required(f).required({imageUrl:!0}).omit(S),Se=e.discriminatedUnion("type",[$,V,K,X,Y,ee,nt,te,oe]);var rr=B.omit({coordinates:!0}),nr=D.omit({coordinates:!0});var ar=Z.omit({coordinates:!0}),ir=J.omit({coordinates:!0}),sr=W.omit({coordinates:!0}),lr=_.omit({coordinates:!0}),mr=Q.omit({coordinates:!0}),pr=rt.omit({coordinates:!0}),x={type:!0,id:!0},at=de.partial().required(x),it=B.partial().required(x),st=D.partial().required(x),lt=ue.partial().required(x),mt=Z.partial().required(x),pt=J.partial().required(x),ct=W.partial().required(x).omit({coordinates:!0,name:!0}),gt=_.partial().required(x).omit({coordinates:!0,name:!0}),yt=Q.partial().required(x),xe=e.discriminatedUnion("type",[at,it,st,lt,mt,pt,ct,gt,yt]),be=e.object({ids:e.array(e.string()).optional()}),Me=e.object({ids:e.array(e.string()).optional()});var dt=t("getElement",d.string()),ut=t("getElementGeometry",d.string()),ht=t("getElements",be.optional()),ft=t("getElementGroup",d.string()),St=t("getElementGroups",Me.optional()),xt=t("setElementGroupVisibility",I),bt=h("onElementChange",d.object({id:d.string()})),Mt=l("onElementCreate"),Lt=l("onElementCreateEnd"),Ct=h("onElementDelete",d.object({id:d.string()})),Gt=h("onElementGroupChange",d.object({id:d.string()})),It=t("createElement",Se),Et=t("updateElement",xe),Tt=t("deleteElement",d.string()),Le={methods:[dt,ut,ht,ft,St,xt,It,Et,Tt],listeners:[bt,Mt,Lt,Ct,Gt]};var zt=l("onPointerClick"),Pt=l("onPointerMove"),Ce={methods:null,listeners:[zt,Pt]};import{z as a}from"zod";import{z as r}from"zod";var Ft=r.enum(["in","ni"]),kt=r.enum(["lt","gt","le","ge","eq","ne","cn","nc","is","isnt"]),br=r.enum(["and","or"]),Ge=r.union([r.number(),r.string(),r.boolean(),r.null()]),Ie=r.string().or(r.null()),vt=r.tuple([Ie,Ft,r.array(Ge).or(r.null())]),wt=r.tuple([Ie,kt,Ge]),re=r.union([vt,wt]),ne=r.tuple([r.lazy(()=>r.union([ne,re,r.null(),r.boolean()])),r.enum(["and","or"]),r.lazy(()=>r.union([ne,re,r.null(),r.boolean()]))]),E=r.union([ne,re,r.null(),r.boolean()]);import{z as o}from"zod";var Ee=o.enum(["avg","max","min","sum","median"]),Vt=o.object({method:Ee,attribute:o.string()}),Ot=o.object({methods:o.array(o.union([Ee,o.literal("count")])),attribute:o.string().optional()}),O=o.union([G,ce,o.array(M)]),Te=o.object({boundary:O.optional(),filters:E.optional(),aggregation:Vt.optional()}),ze=o.object({layerId:o.string(),attribute:o.string(),limit:o.number().optional(),boundary:O.optional(),filters:E.optional(),values:Te.optional()}),Ir=o.object({key:o.union([o.number(),o.string(),o.boolean()]),value:o.number().nullable()}),Ut=o.object({type:o.literal("equal-intervals"),count:o.number()}),Nt=o.object({type:o.literal("time-interval"),interval:o.enum(["hour","day","week","month","year"])}),Pe=o.object({layerId:o.string(),attribute:o.string(),steps:o.union([Ut,Nt,o.array(o.number())]),boundary:O.optional(),filters:E.optional(),values:Te.optional()}),Er=o.object({min:o.number(),max:o.number(),value:o.number()}),Fe=o.object({layerId:o.string(),boundary:O.optional(),filters:E.optional(),aggregation:Ot});import{z as s}from"zod";var Fr=s.enum(["processing","completed","failed","incomplete"]),ke=s.object({ids:s.array(s.string()).optional()}),ve=s.object({ids:s.array(s.string()).optional()}),z=s.object({id:s.string(),layerId:s.string()}),we=s.object({ids:z.array().optional(),layerIds:s.string().array().optional()}),Ve=s.object({layerIds:s.array(s.string()).optional(),areaQuery:s.union([s.object({coordinates:v}),s.object({boundary:G})]).optional()});var Rt=t("getLayer",a.string()),jt=t("getLayers",ke.optional()),At=t("setLayerVisibility",I),qt=h("onLayerChange",a.object({id:a.string()})),Ht=t("setLayerStyle",a.object({id:a.string(),style:a.object({}).passthrough()})),Bt=t("setLayerLegendVisibility",I),Dt=t("getLayerGroup",a.string()),Zt=t("getLayerGroups",ve.optional()),Jt=t("setLayerGroupVisibility",I),Wt=t("setLayerGroupLegendVisibility",I),_t=h("onLayerGroupChange",a.object({id:a.string()})),Qt=t("getLegendItem",z),$t=t("getLegendItems",we.optional()),Kt=h("onLegendItemChange",z),Xt=t("setLegendItemVisibility",a.object({show:z.array().optional(),hide:z.array().optional()})),Yt=t("getLayerFilters",a.string()),eo=t("setLayerFilters",a.object({layerId:a.string(),filters:E,note:a.string().optional()})),to=h("onLayerFiltersChange",a.object({layerId:a.string()})),oo=t("getRenderedFeatures",Ve.optional()),ro=t("getFeature",a.object({id:a.string().or(a.number()),layerId:a.string()})),no=t("getGeoJsonFeature",a.object({id:a.string().or(a.number()),layerId:a.string()})),ao=t("getCategoryData",ze),io=t("getHistogramData",Pe),so=t("getAggregates",Fe),lo=t("getLayerSchema",a.string()),Oe={methods:[Rt,jt,At,Ht,Bt,Dt,Zt,Jt,Wt,Qt,$t,Xt,Yt,eo,oo,ro,no,ao,io,so,lo],listeners:[qt,_t,Kt,to]};import{z as mo}from"zod";var po=t("getMapDetails",mo.undefined()),Ue={methods:[po],listeners:[]};import{z as U}from"zod";import{z as C}from"zod";var Ne=C.object({id:C.string().or(C.number()),layerId:C.string(),showPopup:C.boolean().optional(),fitViewport:C.boolean().or(C.object({maxZoom:C.number()})).optional()});var co=t("getSelection",U.undefined()),go=l("onSelectionChange"),yo=t("selectFeature",Ne),uo=t("clearSelection",U.object({features:U.boolean().optional(),elements:U.boolean().optional()}).optional()),Re={methods:[co,yo,uo],listeners:[go]};import{z as Io}from"zod";import{z as m}from"zod";var je=["pin","line","route","polygon","circle","marker","highlighter","text","note"],Ae=m.enum([...je,"link"]),qe=m.enum(je),ho=$.pick({color:!0,symbol:!0,frame:!0}).extend({afterCreation:m.enum(["enter name","add another","select"])}).required(),fo=V.pick({color:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0}).required(),So=V.pick({color:!0,routingMode:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0,endCaps:!0}).required(),xo=K.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,areaMarker:!0}).required(),bo=X.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,radiusMarker:!0}).required(),Mo=Y.pick({color:!0,opacity:!0,size:!0}).required(),Lo=ee.pick({color:!0,opacity:!0}).extend({size:m.number().min(0).max(200)}).required(),Co=te.pick({color:!0,align:!0,style:!0}).required(),Go=oe.pick({color:!0,align:!0,style:!0}).required(),He=m.discriminatedUnion("tool",[ho.partial().extend({tool:m.literal("pin")}),fo.partial().extend({tool:m.literal("line")}),So.partial().extend({tool:m.literal("route")}),xo.partial().extend({tool:m.literal("polygon")}),bo.partial().extend({tool:m.literal("circle")}),Mo.partial().extend({tool:m.literal("marker")}),Lo.partial().extend({tool:m.literal("highlighter")}),Co.partial().extend({tool:m.literal("text")}),Go.partial().extend({tool:m.literal("note")})]);var Eo=t("setTool",Ae.nullable()),To=t("getTool",Io.undefined()),zo=l("onToolChange"),Po=t("setToolSettings",He),Fo=t("getToolSettings",qe),ko=l("onToolSettingsChange"),Be={methods:[Eo,To,Po,Fo],listeners:[zo,ko]};import{z as ae}from"zod";import{z as c}from"zod";var De=c.object({showLegend:c.boolean().optional(),cooperativeGestures:c.boolean().optional(),fullScreenButton:c.boolean().optional(),geolocation:c.boolean().optional(),zoomControls:c.boolean().optional(),scaleBar:c.boolean().optional()}),Ze=c.object({featureSelectPanel:c.boolean().optional(),featureHoverPanel:c.boolean().optional(),elementSelectPanel:c.boolean().optional(),linkClickOpen:c.boolean().optional(),imageLightboxOpen:c.boolean().optional()});var vo=t("updateUiControls",De),wo=t("setOnMapInteractionsUi",Ze),Vo=t("showLayerDataTable",ae.object({layerId:ae.string(),sorting:ye.optional()}).optional()),Oo=t("hideLayerDataTable",ae.undefined()),Je={methods:[vo,wo,Vo,Oo],listeners:null};import{z as $e}from"zod";import{z as R}from"zod";var N=R.object({center:v,zoom:ge}),We=R.object({center:N.shape.center.optional(),zoom:N.shape.zoom.optional()}),_e=R.object({minZoom:N.shape.zoom.nullish(),maxZoom:N.shape.zoom.nullish(),bounds:G.nullish()}).nullable(),Qe=R.object({bounds:G});var Uo=t("getViewport",$e.undefined()),No=t("setViewport",We),Ro=t("getViewportConstraints",$e.undefined()),jo=t("setViewportConstraints",_e),Ao=t("fitViewportToBounds",Qe),qo=l("onViewportMove"),Ho=l("onViewportMoveEnd"),Bo=l("onMapIdle"),Ke={methods:[No,Uo,Ro,jo,Ao],listeners:[qo,Ho,Bo]};var ie=[Je,Ke,Oe,Le,Re,Ce,Be,Ue];function Tn(i,T,se){let j=new Map;async function le(u){if(!Qo.safeParse(u.data).success){se?.onUnknownMessage?.(u.data);return}let me=Ye.safeParse(u.data);if(!me.success){se?.onInvalidMessage?.(u.data);return}let{data:p}=me;if(p.type==="felt.ready")u.ports[0]?.postMessage(!0);else if(p.type==="felt.addListener"){if(p.event.eventName==="")throw new Error("felt.addListener eventName cannot be empty");let P="options"in p.event?{options:"options"in p.event?p.event.options:void 0,handler:q=>{u.ports[0]?.postMessage(q)}}:{handler:q=>{u.ports[0]?.postMessage(q)}},A=T.listeners[p.event.eventName](P);j.set(p.event.id,A)}else if(p.type==="felt.removeListener")j.get(p.id)?.(),j.delete(p.id);else try{let P=T.methods[p.type],A=await P(p.params);u.ports[0]?.postMessage(A)}catch(P){u.ports[0]?.postMessage({__error__:Do(P)})}}return i.addEventListener("message",le),()=>{i.removeEventListener("message",le)}}function Do(i){return i instanceof Error?i.message:typeof i=="object"&&i!==null&&"message"in i?String(i.message):typeof i=="string"?i:"Unknown error"}var Xe={methods:ie.map(i=>i.methods??[]).flat(),listeners:ie.map(i=>i.listeners??[]).flat()},Zo=g.discriminatedUnion("eventName",[g.strictObject({eventName:g.literal("")}),...Xe.listeners]),Jo=g.strictObject({type:g.literal("felt.addListener"),event:Zo}),Wo=g.strictObject({type:g.literal("felt.removeListener"),id:g.string()}),_o=g.strictObject({type:g.literal("felt.ready")}),Ye=g.discriminatedUnion("type",[_o,Jo,Wo,...Xe.methods]),Qo=g.object({type:g.enum(Ye.options.map(i=>i.shape.type.value))});export{Tn as createMessageHandler};
|
|
1
|
+
import{z as y}from"zod";import{z as d}from"zod";import{z as b}from"zod";function t(s,T){return b.strictObject({type:b.literal(s),params:T})}function h(s,T){return b.strictObject({eventName:b.literal(s),id:b.string(),options:T})}function l(s){return b.strictObject({eventName:b.literal(s),id:b.string()})}import{z as i}from"zod";var F=i.number(),k=i.number(),v=i.object({latitude:k,longitude:F}),M=i.tuple([F,k]),ce=i.object({type:i.literal("Point"),coordinates:M}),ye=i.object({type:i.literal("Polygon"),coordinates:i.array(i.array(M))}),ot=i.object({type:i.literal("LineString"),coordinates:i.array(M)}),L=i.object({type:i.literal("MultiLineString"),coordinates:i.array(ot.shape.coordinates)}),ge=i.number().min(1).max(23),G=i.tuple([F,k,F,k]),I=i.object({show:i.array(i.string()).optional(),hide:i.array(i.string()).optional()}),rt=i.enum(["asc","desc"]),de=i.object({attribute:i.string(),direction:rt});import{z as e}from"zod";var g=e.object({id:e.string(),groupId:e.string().nullable(),color:e.string(),name:e.union([e.string(),e.null()]),description:e.union([e.string(),e.null()]),attributes:e.record(e.string(),e.unknown()),interaction:e.enum(["default","locked"]).optional()}),w=e.object({imageUrl:e.string().nullable()}),H=e.object({strokeOpacity:e.number(),strokeWidth:e.number(),strokeStyle:e.enum(["solid","dashed","dotted"])}),nt=e.enum(["meter","kilometer","foot","mile"]),ue=g.extend(w.shape).extend({type:e.literal("Place"),coordinates:ce.shape.coordinates,symbol:e.string(),frame:e.enum(["frame-circle","frame-square"]).nullable(),hideLabel:e.boolean()}),D=g.extend(w.shape).extend(H.shape).extend({type:e.literal("Path"),coordinates:L.shape.coordinates,distanceMarker:e.boolean(),endCaps:e.boolean(),routingMode:e.enum(["driving","cycling","walking","flying"]).nullable()}),Z=g.extend(w.shape).extend(H.shape).extend({type:e.literal("Polygon"),coordinates:L.shape.coordinates,fillOpacity:e.number().min(0).max(1),areaMarker:e.boolean()}),he=g.extend(w.shape).extend(H.shape).extend({type:e.literal("Circle"),coordinates:M,radius:e.number(),radiusDisplayAngle:e.number(),radiusDisplayUnit:nt.nullable(),fillOpacity:e.number().min(0).max(1),radiusMarker:e.boolean()}),J=g.extend({type:e.literal("Marker"),coordinates:L.shape.coordinates,opacity:e.number().min(0).max(1),size:e.number().min(0).max(100),zoom:e.number().min(0).max(23)}),W=g.extend({type:e.literal("Highlighter"),coordinates:L.shape.coordinates,opacity:e.number().min(0).max(1)}),fe=e.object({position:M,rotation:e.number(),scale:e.number(),zoom:e.number().min(0).max(23),coordinates:L.shape.coordinates}),Se=e.object({text:e.string(),align:e.enum(["left","center","right"]),style:e.enum(["italic","light","regular","caps"]),name:e.string()}),_=g.extend(fe.shape).extend(Se.shape).extend({type:e.literal("Text")}),Q=g.extend(fe.shape).extend(Se.shape).extend({type:e.literal("Note"),widthScale:e.number().min(0)}),$=g.extend({type:e.literal("Image"),coordinates:L.shape.coordinates,imageUrl:e.string(),opacity:e.number().min(0).max(1)}).omit({color:!0}),at=g.extend({type:e.literal("Link"),coordinates:L.shape.coordinates,url:e.string()}),f={type:!0,coordinates:!0},S={id:!0},K=ue.partial().required(f).omit(S),V=D.partial().required(f).omit(S),X=Z.partial().required(f).omit(S),Y=he.partial().required(f).required({radius:!0}).omit(S),ee=J.partial().required(f).omit(S),te=W.partial().required(f).omit(S),oe=_.partial().required(f).required({text:!0}).omit(S).omit({coordinates:!0,name:!0}),re=Q.partial().required(f).required({text:!0}).omit(S).omit({coordinates:!0,name:!0}),it=$.partial().required(f).required({imageUrl:!0}).omit(S),xe=e.discriminatedUnion("type",[K,V,X,Y,ee,te,it,oe,re]);var cr=D.omit({coordinates:!0}),yr=Z.omit({coordinates:!0});var gr=J.omit({coordinates:!0}),dr=W.omit({coordinates:!0}),ur=_.omit({coordinates:!0}),hr=Q.omit({coordinates:!0}),fr=$.omit({coordinates:!0}),Sr=at.omit({coordinates:!0}),x={type:!0,id:!0},st=ue.partial().required(x),lt=D.partial().required(x),mt=Z.partial().required(x),pt=he.partial().required(x),ct=J.partial().required(x),yt=W.partial().required(x),gt=_.partial().required(x).omit({coordinates:!0,name:!0}),dt=Q.partial().required(x).omit({coordinates:!0,name:!0}),ut=$.partial().required(x),be=e.discriminatedUnion("type",[st,lt,mt,pt,ct,yt,gt,dt,ut]),Me=e.object({ids:e.array(e.string()).optional()}),Le=e.object({ids:e.array(e.string()).optional()});var ht=t("getElement",d.string()),ft=t("getElementGeometry",d.string()),St=t("getElements",Me.optional()),xt=t("getElementGroup",d.string()),bt=t("getElementGroups",Le.optional()),Mt=t("setElementGroupVisibility",I),Lt=h("onElementChange",d.object({id:d.string()})),Ct=l("onElementCreate"),Gt=l("onElementCreateEnd"),It=h("onElementDelete",d.object({id:d.string()})),Et=h("onElementGroupChange",d.object({id:d.string()})),Tt=t("createElement",xe),zt=t("updateElement",be),Pt=t("deleteElement",d.string()),Ce={methods:[ht,ft,St,xt,bt,Mt,Tt,zt,Pt],listeners:[Lt,Ct,Gt,It,Et]};var Ft=l("onPointerClick"),kt=l("onPointerMove"),Ge={methods:null,listeners:[Ft,kt]};import{z as a}from"zod";import{z as n}from"zod";var vt=n.enum(["in","ni"]),wt=n.enum(["lt","gt","le","ge","eq","ne","cn","nc","is","isnt"]),zr=n.enum(["and","or"]),Ie=n.union([n.number(),n.string(),n.boolean(),n.null()]),Ee=n.string().or(n.null()),Vt=n.tuple([Ee,vt,n.array(Ie).or(n.null())]),Ot=n.tuple([Ee,wt,Ie]),ne=n.union([Vt,Ot]),ae=n.tuple([n.lazy(()=>n.union([ae,ne,n.null(),n.boolean()])),n.enum(["and","or"]),n.lazy(()=>n.union([ae,ne,n.null(),n.boolean()]))]),E=n.union([ae,ne,n.null(),n.boolean()]);import{z as o}from"zod";var Te=o.enum(["avg","max","min","sum","median"]),Ut=o.object({method:Te,attribute:o.string()}),jt=o.object({methods:o.array(o.union([Te,o.literal("count")])),attribute:o.string().optional()}),O=o.union([G,ye,o.array(M)]),ze=o.object({boundary:O.optional(),filters:E.optional(),aggregation:Ut.optional()}),Pe=o.object({layerId:o.string(),attribute:o.string(),limit:o.number().optional(),boundary:O.optional(),filters:E.optional(),values:ze.optional()}),wr=o.object({key:o.union([o.number(),o.string(),o.boolean()]),value:o.number().nullable()}),Nt=o.object({type:o.literal("equal-intervals"),count:o.number()}),Rt=o.object({type:o.literal("time-interval"),interval:o.enum(["hour","day","week","month","year"])}),Fe=o.object({layerId:o.string(),attribute:o.string(),steps:o.union([Nt,Rt,o.array(o.number())]),boundary:O.optional(),filters:E.optional(),values:ze.optional()}),Vr=o.object({min:o.number(),max:o.number(),value:o.number()}),ke=o.object({layerId:o.string(),boundary:O.optional(),filters:E.optional(),aggregation:jt});import{z as r}from"zod";var Nr=r.enum(["processing","completed","failed","incomplete"]),ve=r.object({ids:r.array(r.string()).optional()}),we=r.object({ids:r.array(r.string()).optional()}),z=r.object({id:r.string(),layerId:r.string()}),Ve=r.object({ids:z.array().optional(),layerIds:r.string().array().optional()}),Oe=r.object({layerIds:r.array(r.string()).optional(),areaQuery:r.union([r.object({coordinates:v}),r.object({boundary:G})]).optional()}),At=r.object({Point:r.object({}).passthrough().optional(),Line:r.object({}).passthrough().optional(),Polygon:r.object({}).passthrough().optional()}),ie=r.object({type:r.literal("application/geo+json"),name:r.string(),geometryStyles:At.optional()}),qt=ie.extend({file:r.instanceof(File)}),Bt=ie.extend({url:r.string().url()}),Ht=ie.extend({arrayBuffer:r.instanceof(ArrayBuffer)}),Ue=r.union([Ht,qt,Bt]);var Dt=t("getLayer",a.string()),Zt=t("getLayers",ve.optional()),Jt=t("setLayerVisibility",I),Wt=h("onLayerChange",a.object({id:a.string()})),_t=t("setLayerStyle",a.object({id:a.string(),style:a.object({}).passthrough()})),Qt=t("setLayerLegendVisibility",I),$t=t("createLayer",a.object({source:Ue})),Kt=t("deleteLayer",a.string()),Xt=t("getLayerGroup",a.string()),Yt=t("getLayerGroups",we.optional()),eo=t("setLayerGroupVisibility",I),to=t("setLayerGroupLegendVisibility",I),oo=h("onLayerGroupChange",a.object({id:a.string()})),ro=t("getLegendItem",z),no=t("getLegendItems",Ve.optional()),ao=h("onLegendItemChange",z),io=t("setLegendItemVisibility",a.object({show:z.array().optional(),hide:z.array().optional()})),so=t("getLayerFilters",a.string()),lo=t("setLayerFilters",a.object({layerId:a.string(),filters:E,note:a.string().optional()})),mo=h("onLayerFiltersChange",a.object({layerId:a.string()})),po=t("getRenderedFeatures",Oe.optional()),co=t("getFeature",a.object({id:a.string().or(a.number()),layerId:a.string()})),yo=t("getGeoJsonFeature",a.object({id:a.string().or(a.number()),layerId:a.string()})),go=t("getCategoryData",Pe),uo=t("getHistogramData",Fe),ho=t("getAggregates",ke),fo=t("getLayerSchema",a.string()),je={methods:[Dt,Zt,Jt,_t,Qt,$t,Kt,Xt,Yt,eo,to,ro,no,io,so,lo,po,co,yo,go,uo,ho,fo],listeners:[Wt,oo,ao,mo]};import{z as So}from"zod";var xo=t("getMapDetails",So.undefined()),Ne={methods:[xo],listeners:[]};import{z as U}from"zod";import{z as C}from"zod";var Re=C.object({id:C.string().or(C.number()),layerId:C.string(),showPopup:C.boolean().optional(),fitViewport:C.boolean().or(C.object({maxZoom:C.number()})).optional()});var bo=t("getSelection",U.undefined()),Mo=l("onSelectionChange"),Lo=t("selectFeature",Re),Co=t("clearSelection",U.object({features:U.boolean().optional(),elements:U.boolean().optional()}).optional()),Ae={methods:[bo,Lo,Co],listeners:[Mo]};import{z as wo}from"zod";import{z as m}from"zod";var qe=["pin","line","route","polygon","circle","marker","highlighter","text","note"],Be=m.enum([...qe,"link"]),He=m.enum(qe),Go=K.pick({color:!0,symbol:!0,frame:!0}).extend({afterCreation:m.enum(["enter name","add another","select"])}).required(),Io=V.pick({color:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0}).required(),Eo=V.pick({color:!0,routingMode:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0,endCaps:!0}).required(),To=X.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,areaMarker:!0}).required(),zo=Y.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,radiusMarker:!0}).required(),Po=ee.pick({color:!0,opacity:!0,size:!0}).required(),Fo=te.pick({color:!0,opacity:!0}).extend({size:m.number().min(0).max(200)}).required(),ko=oe.pick({color:!0,align:!0,style:!0}).required(),vo=re.pick({color:!0,align:!0,style:!0}).required(),De=m.discriminatedUnion("tool",[Go.partial().extend({tool:m.literal("pin")}),Io.partial().extend({tool:m.literal("line")}),Eo.partial().extend({tool:m.literal("route")}),To.partial().extend({tool:m.literal("polygon")}),zo.partial().extend({tool:m.literal("circle")}),Po.partial().extend({tool:m.literal("marker")}),Fo.partial().extend({tool:m.literal("highlighter")}),ko.partial().extend({tool:m.literal("text")}),vo.partial().extend({tool:m.literal("note")})]);var Vo=t("setTool",Be.nullable()),Oo=t("getTool",wo.undefined()),Uo=l("onToolChange"),jo=t("setToolSettings",De),No=t("getToolSettings",He),Ro=l("onToolSettingsChange"),Ze={methods:[Vo,Oo,jo,No],listeners:[Uo,Ro]};import{z as se}from"zod";import{z as c}from"zod";var Je=c.object({showLegend:c.boolean().optional(),cooperativeGestures:c.boolean().optional(),fullScreenButton:c.boolean().optional(),geolocation:c.boolean().optional(),zoomControls:c.boolean().optional(),scaleBar:c.boolean().optional()}),We=c.object({featureSelectPanel:c.boolean().optional(),featureHoverPanel:c.boolean().optional(),elementSelectPanel:c.boolean().optional(),linkClickOpen:c.boolean().optional(),imageLightboxOpen:c.boolean().optional()});var Ao=t("updateUiControls",Je),qo=t("setOnMapInteractionsUi",We),Bo=t("showLayerDataTable",se.object({layerId:se.string(),sorting:de.optional()}).optional()),Ho=t("hideLayerDataTable",se.undefined()),_e={methods:[Ao,qo,Bo,Ho],listeners:null};import{z as Xe}from"zod";import{z as N}from"zod";var j=N.object({center:v,zoom:ge}),Qe=N.object({center:j.shape.center.optional(),zoom:j.shape.zoom.optional()}),$e=N.object({minZoom:j.shape.zoom.nullish(),maxZoom:j.shape.zoom.nullish(),bounds:G.nullish()}).nullable(),Ke=N.object({bounds:G});var Do=t("getViewport",Xe.undefined()),Zo=t("setViewport",Qe),Jo=t("getViewportConstraints",Xe.undefined()),Wo=t("setViewportConstraints",$e),_o=t("fitViewportToBounds",Ke),Qo=l("onViewportMove"),$o=l("onViewportMoveEnd"),Ko=l("onMapIdle"),Ye={methods:[Zo,Do,Jo,Wo,_o],listeners:[Qo,$o,Ko]};var le=[_e,Ye,je,Ce,Ae,Ge,Ze,Ne];function Un(s,T,me){let R=new Map;async function pe(u){if(!rr.safeParse(u.data).success){me?.onUnknownMessage?.(u.data);return}let A=tt.safeParse(u.data);if(!A.success){me?.onInvalidMessage?.(u.data,A.error);return}let{data:p}=A;if(p.type==="felt.ready")u.ports[0]?.postMessage(!0);else if(p.type==="felt.addListener"){if(p.event.eventName==="")throw new Error("felt.addListener eventName cannot be empty");let P="options"in p.event?{options:"options"in p.event?p.event.options:void 0,handler:B=>{u.ports[0]?.postMessage(B)}}:{handler:B=>{u.ports[0]?.postMessage(B)}},q=T.listeners[p.event.eventName](P);R.set(p.event.id,q)}else if(p.type==="felt.removeListener")R.get(p.id)?.(),R.delete(p.id);else try{let P=T.methods[p.type],q=await P(p.params);u.ports[0]?.postMessage(q)}catch(P){u.ports[0]?.postMessage({__error__:Xo(P)})}}return s.addEventListener("message",pe),()=>{s.removeEventListener("message",pe)}}function Xo(s){return s instanceof Error?s.message:typeof s=="object"&&s!==null&&"message"in s?String(s.message):typeof s=="string"?s:"Unknown error"}var et={methods:le.map(s=>s.methods??[]).flat(),listeners:le.map(s=>s.listeners??[]).flat()},Yo=y.discriminatedUnion("eventName",[y.strictObject({eventName:y.literal("")}),...et.listeners]),er=y.strictObject({type:y.literal("felt.addListener"),event:Yo}),tr=y.strictObject({type:y.literal("felt.removeListener"),id:y.string()}),or=y.strictObject({type:y.literal("felt.ready")}),tt=y.discriminatedUnion("type",[or,er,tr,...et.methods]),rr=y.object({type:y.enum(tt.options.map(s=>s.shape.type.value))});export{Un as createMessageHandler};
|
|
@@ -2241,6 +2241,158 @@ interface LayerSchemaDateTimeAttribute extends LayerSchemaCommonAttribute {
|
|
|
2241
2241
|
count: number;
|
|
2242
2242
|
}>;
|
|
2243
2243
|
}
|
|
2244
|
+
declare const EphemeralLayerSourceSchema: z.ZodObject<{
|
|
2245
|
+
type: z.ZodLiteral<"application/geo+json">;
|
|
2246
|
+
name: z.ZodString;
|
|
2247
|
+
geometryStyles: z.ZodOptional<z.ZodObject<{
|
|
2248
|
+
Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2249
|
+
Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2250
|
+
Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2251
|
+
}, "strip", z.ZodTypeAny, {
|
|
2252
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2253
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2254
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2255
|
+
}, {
|
|
2256
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2257
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2258
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2259
|
+
}>>;
|
|
2260
|
+
}, "strip", z.ZodTypeAny, {
|
|
2261
|
+
type: "application/geo+json";
|
|
2262
|
+
name: string;
|
|
2263
|
+
geometryStyles?: {
|
|
2264
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2265
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2266
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2267
|
+
} | undefined;
|
|
2268
|
+
}, {
|
|
2269
|
+
type: "application/geo+json";
|
|
2270
|
+
name: string;
|
|
2271
|
+
geometryStyles?: {
|
|
2272
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2273
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2274
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2275
|
+
} | undefined;
|
|
2276
|
+
}>;
|
|
2277
|
+
interface EphemeralLayerSource extends zInfer<typeof EphemeralLayerSourceSchema> {
|
|
2278
|
+
}
|
|
2279
|
+
declare const GeoJsonFileSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2280
|
+
type: z.ZodLiteral<"application/geo+json">;
|
|
2281
|
+
name: z.ZodString;
|
|
2282
|
+
geometryStyles: z.ZodOptional<z.ZodObject<{
|
|
2283
|
+
Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2284
|
+
Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2285
|
+
Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2286
|
+
}, "strip", z.ZodTypeAny, {
|
|
2287
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2288
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2289
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2290
|
+
}, {
|
|
2291
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2292
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2293
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2294
|
+
}>>;
|
|
2295
|
+
}, {
|
|
2296
|
+
file: z.ZodType<File, z.ZodTypeDef, File>;
|
|
2297
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2298
|
+
type: "application/geo+json";
|
|
2299
|
+
name: string;
|
|
2300
|
+
file: File;
|
|
2301
|
+
geometryStyles?: {
|
|
2302
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2303
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2304
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2305
|
+
} | undefined;
|
|
2306
|
+
}, {
|
|
2307
|
+
type: "application/geo+json";
|
|
2308
|
+
name: string;
|
|
2309
|
+
file: File;
|
|
2310
|
+
geometryStyles?: {
|
|
2311
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2312
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2313
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2314
|
+
} | undefined;
|
|
2315
|
+
}>;
|
|
2316
|
+
interface GeoJsonFileSource extends zInfer<typeof GeoJsonFileSourceSchema>, EphemeralLayerSource {
|
|
2317
|
+
}
|
|
2318
|
+
declare const GeoJsonUrlSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2319
|
+
type: z.ZodLiteral<"application/geo+json">;
|
|
2320
|
+
name: z.ZodString;
|
|
2321
|
+
geometryStyles: z.ZodOptional<z.ZodObject<{
|
|
2322
|
+
Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2323
|
+
Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2324
|
+
Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2325
|
+
}, "strip", z.ZodTypeAny, {
|
|
2326
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2327
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2328
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2329
|
+
}, {
|
|
2330
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2331
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2332
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2333
|
+
}>>;
|
|
2334
|
+
}, {
|
|
2335
|
+
url: z.ZodString;
|
|
2336
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2337
|
+
type: "application/geo+json";
|
|
2338
|
+
name: string;
|
|
2339
|
+
url: string;
|
|
2340
|
+
geometryStyles?: {
|
|
2341
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2342
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2343
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2344
|
+
} | undefined;
|
|
2345
|
+
}, {
|
|
2346
|
+
type: "application/geo+json";
|
|
2347
|
+
name: string;
|
|
2348
|
+
url: string;
|
|
2349
|
+
geometryStyles?: {
|
|
2350
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2351
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2352
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2353
|
+
} | undefined;
|
|
2354
|
+
}>;
|
|
2355
|
+
interface GeoJsonUrlSource extends z.infer<typeof GeoJsonUrlSourceSchema>, EphemeralLayerSource {
|
|
2356
|
+
}
|
|
2357
|
+
declare const GeoJsonArrayBufferSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2358
|
+
type: z.ZodLiteral<"application/geo+json">;
|
|
2359
|
+
name: z.ZodString;
|
|
2360
|
+
geometryStyles: z.ZodOptional<z.ZodObject<{
|
|
2361
|
+
Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2362
|
+
Line: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2363
|
+
Polygon: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
2364
|
+
}, "strip", z.ZodTypeAny, {
|
|
2365
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2366
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2367
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2368
|
+
}, {
|
|
2369
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2370
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2371
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2372
|
+
}>>;
|
|
2373
|
+
}, {
|
|
2374
|
+
arrayBuffer: z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>;
|
|
2375
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2376
|
+
type: "application/geo+json";
|
|
2377
|
+
name: string;
|
|
2378
|
+
arrayBuffer: ArrayBuffer;
|
|
2379
|
+
geometryStyles?: {
|
|
2380
|
+
Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2381
|
+
Polygon?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2382
|
+
Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2383
|
+
} | undefined;
|
|
2384
|
+
}, {
|
|
2385
|
+
type: "application/geo+json";
|
|
2386
|
+
name: string;
|
|
2387
|
+
arrayBuffer: ArrayBuffer;
|
|
2388
|
+
geometryStyles?: {
|
|
2389
|
+
Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2390
|
+
Polygon?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2391
|
+
Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2392
|
+
} | undefined;
|
|
2393
|
+
}>;
|
|
2394
|
+
interface GeoJsonArrayBufferSource extends zInfer<typeof GeoJsonArrayBufferSourceSchema>, EphemeralLayerSource {
|
|
2395
|
+
}
|
|
2244
2396
|
|
|
2245
2397
|
/**
|
|
2246
2398
|
* @group Filters
|
|
@@ -3552,4 +3704,4 @@ declare const ViewportFitBoundsParamsSchema: z.ZodObject<{
|
|
|
3552
3704
|
bounds: [number, number, number, number];
|
|
3553
3705
|
}>;
|
|
3554
3706
|
|
|
3555
|
-
export type {
|
|
3707
|
+
export type { CircleElementUpdate as $, GetLayerHistogramBin as A, AggregationMethod as B, GetLayerCalculationParams as C, LayerSchema as D, Element as E, Filters as F, GeoJsonGeometry as G, MapDetails as H, EntityNode as I, FeatureSelection as J, InputToolSettings as K, Layer as L, MapInteractionEvent as M, ConfigurableToolType as N, ToolSettingsMap as O, ToolSettingsChangeEvent as P, zInfer as Q, SortConfig as R, SetVisibilityRequest as S, ToolType as T, SetViewportCenterZoomParams as U, ViewportState as V, ViewportConstraints as W, ViewportFitBoundsParams as X, ViewportCenterZoom as Y, CircleElementCreate as Z, CircleElementRead as _, GetElementsConstraint as a, PinToolSettings as a$, HighlighterElementCreate as a0, HighlighterElementRead as a1, HighlighterElementUpdate as a2, ImageElementCreate as a3, ImageElementRead as a4, ImageElementUpdate as a5, LinkElementRead as a6, MarkerElementCreate as a7, MarkerElementRead as a8, MarkerElementUpdate as a9, FilterLogicGate as aA, FilterTernary as aB, AggregationConfig as aC, MultiAggregationConfig as aD, ValueConfiguration as aE, ElementGroupNode as aF, ElementNode as aG, FeatureNode as aH, LayerGroupNode as aI, LayerNode as aJ, FeltBoundary as aK, FeltZoom as aL, GeoJsonProperties as aM, LatLng as aN, LineStringGeometry as aO, LngLatTuple as aP, MultiLineStringGeometry as aQ, MultiPointGeometry as aR, MultiPolygonGeometry as aS, PointGeometry as aT, PolygonGeometry as aU, SortDirection as aV, CircleToolSettings as aW, HighlighterToolSettings as aX, LineToolSettings as aY, MarkerToolSettings as aZ, NoteToolSettings as a_, NoteElementCreate as aa, NoteElementRead as ab, NoteElementUpdate as ac, PathElementCreate as ad, PathElementRead as ae, PathElementUpdate as af, PlaceElementCreate as ag, PlaceElementRead as ah, PlaceElementUpdate as ai, PolygonElementCreate as aj, PolygonElementRead as ak, PolygonElementUpdate as al, TextElementCreate as am, TextElementRead as an, TextElementUpdate as ao, EphemeralLayerSource as ap, LayerProcessingStatus as aq, RasterValue as ar, LayerSchemaAttribute as as, LayerSchemaBooleanAttribute as at, LayerSchemaCommonAttribute as au, LayerSchemaDateAttribute as av, LayerSchemaDateTimeAttribute as aw, LayerSchemaNumericAttribute as ax, LayerSchemaTextAttribute as ay, FilterExpression as az, ElementGroup as b, PlaceFrame as b0, PlaceSymbol as b1, PolygonToolSettings as b2, RouteToolSettings as b3, TextToolSettings as b4, UnionToIntersection as b5, PromiseOrNot as b6, GetElementGroupsConstraint as c, ElementChangeCallbackParams as d, ElementGroupChangeCallbackParams as e, ElementCreate as f, ElementUpdate as g, GetLayersConstraint as h, LayerChangeCallbackParams as i, GeoJsonArrayBufferSource as j, GeoJsonFileSource as k, GeoJsonUrlSource as l, LayerGroup as m, GetLayerGroupsConstraint as n, LayerGroupChangeCallbackParams as o, LegendItemIdentifier as p, LegendItem as q, LegendItemsConstraint as r, LegendItemChangeCallbackParams as s, LayerFilters as t, GetRenderedFeaturesConstraint as u, LayerFeature as v, GeoJsonFeature as w, GetLayerCategoriesParams as x, GetLayerCategoriesGroup as y, GetLayerHistogramParams as z };
|