@feltmaps/js-sdk 1.5.0-next.16 → 1.5.0-next.17
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/chunk-QXPO53SH.js +1 -0
- package/dist/client.cjs +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +20 -20
- package/dist/handler.d.ts +20 -20
- package/dist/handler.js +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/{types-C0CJJN-7.d.cts → types-DrMm8Los.d.cts} +32 -25
- package/dist/{types-C0CJJN-7.d.ts → types-DrMm8Los.d.ts} +32 -25
- package/handler.d.ts +20 -20
- package/handler.js +1 -1
- package/package.json +1 -1
- package/{types-C0CJJN-7.d.ts → types-DrMm8Los.d.ts} +32 -25
package/dist/handler.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as g}from"zod";import{z as d}from"zod";import{z as x}from"zod";function t(s,I){return x.strictObject({type:x.literal(s),params:I})}function h(s,I){return x.strictObject({eventName:x.literal(s),id:x.string(),options:I})}function l(s){return x.strictObject({eventName:x.literal(s),id:x.string()})}import{z as a}from"zod";var U=a.number(),N=a.number(),j=a.object({latitude:N,longitude:U}),L=a.tuple([U,N]),F=a.object({type:a.literal("Polygon"),coordinates:a.array(a.array(L))}),de=a.object({type:a.literal("MultiPolygon"),coordinates:a.array(F.shape.coordinates)}),ot=a.object({type:a.literal("LineString"),coordinates:a.array(L)}),T=a.object({type:a.literal("MultiLineString"),coordinates:a.array(ot.shape.coordinates)}),ue=a.number().min(1).max(23),M=a.tuple([U,N,U,N]),C=a.object({show:a.array(a.string()).optional(),hide:a.array(a.string()).optional()}),rt=a.enum(["asc","desc"]),he=a.object({attribute:a.string(),direction:rt});import{z as e}from"zod";var y=e.object({id:e.string(),groupId:e.string().nullable(),color:e.string(),name:e.string().nullable(),description:e.string().nullable(),attributes:e.record(e.string(),e.unknown()),interaction:e.enum(["default","locked"]).optional()}),D=e.object({imageUrl:e.string().nullable()}),Y=e.object({strokeOpacity:e.number(),strokeWidth:e.number(),strokeStyle:e.enum(["solid","dashed","dotted"])}),nt=e.enum(["meter","kilometer","foot","mile"]),R=y.extend(D.shape).extend({type:e.literal("Place"),coordinates:L,symbol:e.string(),frame:e.enum(["frame-circle","frame-square"]).nullable(),hideLabel:e.boolean()}),k=y.extend(D.shape).extend(Y.shape).extend({type:e.literal("Path"),coordinates:T.shape.coordinates,distanceMarker:e.boolean(),routingMode:e.enum(["driving","cycling","walking","flying"]).nullable(),endCaps:e.boolean()}),v=y.extend(D.shape).extend(Y.shape).extend({type:e.literal("Polygon"),coordinates:T.shape.coordinates,fillOpacity:e.number().min(0).max(1),areaMarker:e.boolean()}),A=y.extend(D.shape).extend(Y.shape).extend({type:e.literal("Circle"),center:L,radius:e.number(),radiusMarker:e.boolean(),radiusDisplayAngle:e.number(),radiusDisplayUnit:nt.nullable(),fillOpacity:e.number().min(0).max(1)}),w=y.extend({type:e.literal("Marker"),coordinates:T.shape.coordinates,opacity:e.number().min(0).max(1),size:e.number().min(0).max(100),zoom:e.number().min(0).max(23)}),V=y.extend({type:e.literal("Highlighter"),coordinates:de.shape.coordinates,renderHoles:e.boolean(),opacity:e.number().min(0).max(1)}),fe=e.object({position:L,rotation:e.number(),scale:e.number(),zoom:e.number().min(0).max(23),coordinates:F.shape.coordinates}),Se=e.object({text:e.string(),align:e.enum(["left","center","right"]),style:e.enum(["italic","light","regular","caps"]),name:e.string()}),B=y.extend(fe.shape).extend(Se.shape).extend({type:e.literal("Text")}),H=y.extend(fe.shape).extend(Se.shape).extend({type:e.literal("Note"),widthScale:e.number().min(0)}),O=y.extend({type:e.literal("Image"),coordinates:T.shape.coordinates,imageUrl:e.string(),opacity:e.number().min(0).max(1)}).omit({color:!0}),at=y.extend({type:e.literal("Link"),coordinates:T.shape.coordinates,url:e.string()}),E={type:!0,coordinates:!0},f={id:!0},ee=R.partial().extend(R.pick(E).shape).omit(f),Z=k.partial().extend(k.pick(E).shape).omit(f),te=v.partial().extend(v.pick(E).shape).omit(f),oe=A.partial().extend(A.pick({type:!0,center:!0,radius:!0}).shape).omit(f),re=w.partial().extend(w.pick(E).shape).omit(f),ne=V.partial().extend(V.pick(E).shape).omit(f),ae=B.partial().omit({...f,coordinates:!0,name:!0,type:!0}).extend({type:e.literal("Text"),text:e.string()}),ie=H.partial().omit({...f,coordinates:!0,name:!0,type:!0}).extend({type:e.literal("Note"),text:e.string()}),it=O.partial().extend(O.pick({...E,imageUrl:!0}).shape).omit(f),xe=e.discriminatedUnion("type",[ee,Z,te,oe,re,ne,it,ae,ie]);var cr=k.omit({coordinates:!0}),gr=v.omit({coordinates:!0});var yr=w.omit({coordinates:!0}),dr=V.omit({coordinates:!0}),ur=B.omit({coordinates:!0}),hr=H.omit({coordinates:!0}),fr=O.omit({coordinates:!0}),Sr=at.omit({coordinates:!0}),S={type:!0,id:!0},st=R.partial().extend(R.pick(S).shape),lt=k.partial().extend(k.pick(S).shape),pt=v.partial().extend(v.pick(S).shape),mt=A.partial().extend(A.pick(S).shape),ct=w.partial().extend(w.pick(S).shape),gt=V.partial().extend(V.pick(S).shape),yt=B.partial().extend(B.pick(S).shape).omit({coordinates:!0,name:!0}),dt=H.partial().extend(H.pick(S).shape).omit({coordinates:!0,name:!0}),ut=O.partial().extend(O.pick(S).shape),Le=e.discriminatedUnion("type",[st,lt,pt,mt,ct,gt,yt,dt,ut]),be=e.object({ids:e.array(e.string()).optional()}),Me=e.object({ids:e.array(e.string()).optional()});var ht=t("getElement",d.string()),ft=t("getElementGeometry",d.string()),St=t("getElements",be.optional()),xt=t("getElementGroup",d.string()),Lt=t("getElementGroups",Me.optional()),bt=t("setElementGroupVisibility",C),Mt=h("onElementChange",d.object({id:d.string()})),Ct=l("onElementCreate"),Gt=l("onElementCreateEnd"),It=h("onElementDelete",d.object({id:d.string()})),Tt=h("onElementGroupChange",d.object({id:d.string()})),Et=t("createElement",xe),zt=t("updateElement",Le),Pt=t("deleteElement",d.string()),Ce={methods:[ht,ft,St,xt,Lt,bt,Et,zt,Pt],listeners:[Mt,Ct,Gt,It,Tt]};var Ft=l("onPointerClick"),kt=l("onPointerMove"),Ge={methods:null,listeners:[Ft,kt]};import{z as i}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()]),Te=n.string().or(n.null()),Vt=n.tuple([Te,vt,n.array(Ie).or(n.null())]),Ot=n.tuple([Te,wt,Ie]),se=n.union([Vt,Ot]),le=n.tuple([n.lazy(()=>n.union([le,se,n.null(),n.boolean()])),n.enum(["and","or"]),n.lazy(()=>n.union([le,se,n.null(),n.boolean()]))]),G=n.union([le,se,n.null(),n.boolean()]);import{z as o}from"zod";var Ee=o.enum(["avg","max","min","sum","median"]),Ut=o.object({method:Ee,attribute:o.string()}),Nt=o.object({methods:o.array(o.union([Ee,o.literal("count")])),attribute:o.string().optional()}),q=o.union([M,F,o.array(L)]),ze=o.object({boundary:q.optional(),filters:G.optional(),aggregation:Ut.optional()}),Pe=o.object({layerId:o.string(),attribute:o.string(),limit:o.number().optional(),boundary:q.optional(),filters:G.optional(),values:ze.optional()}),wr=o.object({key:o.union([o.number(),o.string(),o.boolean()]),value:o.number().nullable()}),jt=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([jt,Rt,o.array(o.number())]),boundary:q.optional(),filters:G.optional(),values:ze.optional()}),Vr=o.object({min:o.number(),max:o.number(),value:o.number()}),ke=o.object({layerId:o.string(),boundary:q.optional(),filters:G.optional(),aggregation:Nt});import{z as r}from"zod";var jr=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:j}),r.object({boundary:M})]).optional()}),At=r.object({Point:r.object({}).passthrough().optional(),Line:r.object({}).passthrough().optional(),Polygon:r.object({}).passthrough().optional()}),pe=r.object({type:r.literal("application/geo+json"),name:r.string(),geometryStyles:At.optional()}),Bt=pe.extend({file:r.instanceof(File)}),Ht=pe.extend({url:r.string().url()}),Dt=pe.extend({arrayBuffer:r.instanceof(ArrayBuffer)}),Ue=r.union([Dt,Bt,Ht]);var Zt=t("getLayer",i.string()),qt=t("getLayers",ve.optional()),Jt=t("setLayerVisibility",C),Wt=h("onLayerChange",i.object({id:i.string()})),_t=t("setLayerStyle",i.object({id:i.string(),style:i.object({}).passthrough()})),Qt=t("setLayerLegendVisibility",C),$t=t("createLayer",i.object({source:Ue})),Kt=t("deleteLayer",i.string()),Xt=t("getLayerGroup",i.string()),Yt=t("getLayerGroups",we.optional()),eo=t("setLayerGroupVisibility",C),to=t("setLayerGroupLegendVisibility",C),oo=h("onLayerGroupChange",i.object({id:i.string()})),ro=t("getLegendItem",z),no=t("getLegendItems",Ve.optional()),ao=h("onLegendItemChange",z),io=t("setLegendItemVisibility",i.object({show:z.array().optional(),hide:z.array().optional()})),so=t("getLayerFilters",i.string()),lo=t("setLayerFilters",i.object({layerId:i.string(),filters:G,note:i.string().optional()})),po=h("onLayerFiltersChange",i.object({layerId:i.string()})),mo=t("getRenderedFeatures",Oe.optional()),co=t("getFeature",i.object({id:i.string().or(i.number()),layerId:i.string()})),go=t("getGeoJsonFeature",i.object({id:i.string().or(i.number()),layerId:i.string()})),yo=t("getCategoryData",Pe),uo=t("getHistogramData",Fe),ho=t("getAggregates",ke),fo=t("getLayerSchema",i.string()),Ne={methods:[Zt,qt,Jt,_t,Qt,$t,Kt,Xt,Yt,eo,to,ro,no,io,so,lo,mo,co,go,yo,uo,ho,fo],listeners:[Wt,oo,ao,po]};import{z as So}from"zod";var xo=t("getMapDetails",So.undefined()),je={methods:[xo],listeners:[]};import{z as J}from"zod";import{z as b}from"zod";var Re=b.object({id:b.string().or(b.number()),layerId:b.string(),showPopup:b.boolean().optional(),fitViewport:b.boolean().or(b.object({maxZoom:b.number()})).optional()});var Lo=t("getSelection",J.undefined()),bo=l("onSelectionChange"),Mo=t("selectFeature",Re),Co=t("clearSelection",J.object({features:J.boolean().optional(),elements:J.boolean().optional()}).optional()),Ae={methods:[Lo,Mo,Co],listeners:[bo]};import{z as wo}from"zod";import{z as p}from"zod";var Be=["pin","line","route","polygon","circle","marker","highlighter","text","note"],He=p.enum([...Be,"link"]),De=p.enum(Be),Go=ee.pick({color:!0,symbol:!0,frame:!0}).extend({afterCreation:p.enum(["enter name","add another","select"])}).required(),Io=Z.pick({color:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0}).required(),To=Z.pick({color:!0,routingMode:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0,endCaps:!0}).required(),Eo=te.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,areaMarker:!0}).required(),zo=oe.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,radiusMarker:!0}).required(),Po=re.pick({color:!0,opacity:!0,size:!0}).required(),Fo=ne.pick({color:!0,opacity:!0,renderHoles:!0}).extend({size:p.number().min(0).max(200)}).required(),ko=ae.pick({color:!0,align:!0,style:!0}).required(),vo=ie.pick({color:!0,align:!0,style:!0}).required(),Ze=p.discriminatedUnion("tool",[Go.partial().extend({tool:p.literal("pin")}),Io.partial().extend({tool:p.literal("line")}),To.partial().extend({tool:p.literal("route")}),Eo.partial().extend({tool:p.literal("polygon")}),zo.partial().extend({tool:p.literal("circle")}),Po.partial().extend({tool:p.literal("marker")}),Fo.partial().extend({tool:p.literal("highlighter")}),ko.partial().extend({tool:p.literal("text")}),vo.partial().extend({tool:p.literal("note")})]);var Vo=t("setTool",He.nullable()),Oo=t("getTool",wo.undefined()),Uo=l("onToolChange"),No=t("setToolSettings",Ze),jo=t("getToolSettings",De),Ro=l("onToolSettingsChange"),qe={methods:[Vo,Oo,No,jo],listeners:[Uo,Ro]};import{z as me}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),Bo=t("setOnMapInteractionsUi",We),Ho=t("showLayerDataTable",me.object({layerId:me.string(),sorting:he.optional()}).optional()),Do=t("hideLayerDataTable",me.undefined()),_e={methods:[Ao,Bo,Ho,Do],listeners:null};import{z as Xe}from"zod";import{z as _}from"zod";var W=_.object({center:j,zoom:ue}),Qe=_.object({center:W.shape.center.optional(),zoom:W.shape.zoom.optional()}),$e=_.object({minZoom:W.shape.zoom.nullish(),maxZoom:W.shape.zoom.nullish(),bounds:M.nullish()}).nullable(),Ke=_.object({bounds:M});var Zo=t("getViewport",Xe.undefined()),qo=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:[qo,Zo,Jo,Wo,_o],listeners:[Qo,$o,Ko]};var ce=[_e,Ye,Ne,Ce,Ae,Ge,qe,je];function Un(s,I,ge){let Q=new Map;async function ye(u){if(!rr.safeParse(u.data).success){ge?.onUnknownMessage?.(u.data);return}let $=tt.safeParse(u.data);if(!$.success){ge?.onInvalidMessage?.(u.data,$.error);return}let{data:m}=$;if(m.type==="felt.ready")u.ports[0]?.postMessage(!0);else if(m.type==="felt.addListener"){if(m.event.eventName==="")throw new Error("felt.addListener eventName cannot be empty");let P="options"in m.event?{options:"options"in m.event?m.event.options:void 0,handler:X=>{u.ports[0]?.postMessage(X)}}:{handler:X=>{u.ports[0]?.postMessage(X)}},K=I.listeners[m.event.eventName](P);Q.set(m.event.id,K)}else if(m.type==="felt.removeListener")Q.get(m.id)?.(),Q.delete(m.id);else try{let P=I.methods[m.type],K=await P(m.params);u.ports[0]?.postMessage(K)}catch(P){u.ports[0]?.postMessage({__error__:Xo(P)})}}return s.addEventListener("message",ye),()=>{s.removeEventListener("message",ye)}}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:ce.map(s=>s.methods??[]).flat(),listeners:ce.map(s=>s.listeners??[]).flat()},Yo=g.discriminatedUnion("eventName",[g.strictObject({eventName:g.literal("")}),...et.listeners]),er=g.strictObject({type:g.literal("felt.addListener"),event:Yo}),tr=g.strictObject({type:g.literal("felt.removeListener"),id:g.string()}),or=g.strictObject({type:g.literal("felt.ready")}),tt=g.discriminatedUnion("type",[or,er,tr,...et.methods]),rr=g.object({type:g.enum(tt.options.map(s=>s.shape.type.value))});export{Un as createMessageHandler};
|
|
1
|
+
import{b as _}from"./chunk-QXPO53SH.js";import{z as g}from"zod";import{z as u}from"zod";import{z as x}from"zod";function t(s,I){return x.strictObject({type:x.literal(s),params:I})}function h(s,I){return x.strictObject({eventName:x.literal(s),id:x.string(),options:I})}function l(s){return x.strictObject({eventName:x.literal(s),id:x.string()})}import{z as a}from"zod";var N=a.number(),j=a.number(),R=a.object({latitude:j,longitude:N}),L=a.tuple([N,j]),T=a.object({type:a.literal("Polygon"),coordinates:a.array(a.array(L).min(4).refine(s=>s[0][0]===s[s.length-1][0]&&s[0][1]===s[s.length-1][1],"The last point of each ring must be identical to the first"))}),ue=a.object({type:a.literal("MultiPolygon"),coordinates:a.array(T.shape.coordinates)}),rt=a.object({type:a.literal("LineString"),coordinates:a.array(L).min(2)}),F=a.object({type:a.literal("MultiLineString"),coordinates:a.array(rt.shape.coordinates)}),he=a.number().min(1).max(23),b=a.tuple([N,j,N,j]),C=a.object({show:a.array(a.string()).optional(),hide:a.array(a.string()).optional()}),nt=a.enum(["asc","desc"]),fe=a.object({attribute:a.string(),direction:nt});import{z as e}from"zod";var d=e.object({id:e.string(),groupId:e.string().nullable(),color:e.string(),name:e.string().nullable(),description:e.string().nullable(),attributes:e.record(e.string(),e.unknown()),interaction:e.enum(["default","locked"]).optional()}),Z=e.object({imageUrl:e.string().nullable()}),ee=e.object({strokeOpacity:e.number(),strokeWidth:e.number(),strokeStyle:e.enum(["solid","dashed","dotted"])}),at=e.enum(["meter","kilometer","foot","mile"]),A=d.extend(Z.shape).extend({type:e.literal("Place"),coordinates:L,symbol:e.string(),frame:e.enum(["frame-circle","frame-square"]).nullable(),hideLabel:e.boolean()}),k=d.extend(Z.shape).extend(ee.shape).extend({type:e.literal("Path"),coordinates:F.shape.coordinates,distanceMarker:e.boolean(),routingMode:e.enum(["driving","cycling","walking","flying"]).nullable(),endCaps:e.boolean()}),v=d.extend(Z.shape).extend(ee.shape).extend({type:e.literal("Polygon"),coordinates:T.shape.coordinates,fillOpacity:e.number().min(0).max(1),areaMarker:e.boolean()}),B=d.extend(Z.shape).extend(ee.shape).extend({type:e.literal("Circle"),center:L,radius:e.number(),radiusMarker:e.boolean(),radiusDisplayAngle:e.number(),radiusDisplayUnit:at.nullable(),fillOpacity:e.number().min(0).max(1)}),w=d.extend({type:e.literal("Marker"),coordinates:F.shape.coordinates,opacity:e.number().min(0).max(1),size:e.number().min(0).max(100),zoom:e.number().min(0).max(23)}),V=d.extend({type:e.literal("Highlighter"),coordinates:ue.shape.coordinates,renderHoles:e.boolean(),opacity:e.number().min(0).max(1)}),Se=e.object({position:L,rotation:e.number(),scale:e.number(),zoom:e.number().min(0).max(23),coordinates:T.shape.coordinates}),xe=e.object({text:e.string(),align:e.enum(["left","center","right"]),style:e.enum(["italic","light","regular","caps"]),name:e.string()}),H=d.extend(Se.shape).extend(xe.shape).extend({type:e.literal("Text")}),D=d.extend(Se.shape).extend(xe.shape).extend({type:e.literal("Note"),widthScale:e.number().min(0)}),O=d.extend({type:e.literal("Image"),coordinates:F.shape.coordinates,imageUrl:e.string(),opacity:e.number().min(0).max(1)}).omit({color:!0}),it=d.extend({type:e.literal("Link"),coordinates:F.shape.coordinates,url:e.string()}),E={type:!0,coordinates:!0},f={id:!0},te=A.partial().extend(A.pick(E).shape).omit(f),q=k.partial().extend(k.pick(E).shape).omit(f),oe=v.partial().extend(v.pick(E).shape).omit(f),re=B.partial().extend(B.pick({type:!0,center:!0,radius:!0}).shape).omit(f),ne=w.partial().extend(w.pick(E).shape).omit(f),ae=V.partial().extend(V.pick(E).shape).omit(f),ie=H.partial().omit({...f,coordinates:!0,name:!0,type:!0}).extend({type:e.literal("Text"),text:e.string()}),se=D.partial().omit({...f,coordinates:!0,name:!0,type:!0}).extend({type:e.literal("Note"),text:e.string()}),st=O.partial().extend(O.pick({...E,imageUrl:!0}).shape).omit(f),Le=e.discriminatedUnion("type",[te,q,oe,re,ne,ae,st,ie,se]);var cr=k.omit({coordinates:!0}),gr=v.omit({coordinates:!0});var yr=w.omit({coordinates:!0}),dr=V.omit({coordinates:!0}),ur=H.omit({coordinates:!0}),hr=D.omit({coordinates:!0}),fr=O.omit({coordinates:!0}),Sr=it.omit({coordinates:!0}),S={type:!0,id:!0},lt=A.partial().extend(A.pick(S).shape),pt=k.partial().extend(k.pick(S).shape),mt=v.partial().extend(v.pick(S).shape),ct=B.partial().extend(B.pick(S).shape),gt=w.partial().extend(w.pick(S).shape),yt=V.partial().extend(V.pick(S).shape),dt=H.partial().extend(H.pick(S).shape).omit({coordinates:!0,name:!0}),ut=D.partial().extend(D.pick(S).shape).omit({coordinates:!0,name:!0}),ht=O.partial().extend(O.pick(S).shape),Me=e.discriminatedUnion("type",[lt,pt,mt,ct,gt,yt,dt,ut,ht]),be=e.object({ids:e.array(e.string()).optional()}),Ce=e.object({ids:e.array(e.string()).optional()});var ft=t("getElement",u.string()),St=t("getElementGeometry",u.string()),xt=t("getElements",be.optional()),Lt=t("getElementGroup",u.string()),Mt=t("getElementGroups",Ce.optional()),bt=t("setElementGroupVisibility",C),Ct=h("onElementChange",u.object({id:u.string()})),Gt=l("onElementCreate"),It=l("onElementCreateEnd"),Tt=h("onElementDelete",u.object({id:u.string()})),Et=h("onElementGroupChange",u.object({id:u.string()})),zt=t("createElement",Le),Pt=t("updateElement",Me),Ft=t("deleteElement",u.string()),Ge={methods:[ft,St,xt,Lt,Mt,bt,zt,Pt,Ft],listeners:[Ct,Gt,It,Tt,Et]};var kt=l("onPointerClick"),vt=l("onPointerMove"),Ie={methods:null,listeners:[kt,vt]};import{z as i}from"zod";import{z as n}from"zod";var wt=n.enum(["in","ni"]),Vt=n.enum(["lt","gt","le","ge","eq","ne","cn","nc","is","isnt"]),zr=n.enum(["and","or"]),Te=n.union([n.number(),n.string(),n.boolean(),n.null()]),Ee=n.string().or(n.null()),Ot=n.tuple([Ee,wt,n.array(Te).or(n.null())]),Ut=n.tuple([Ee,Vt,Te]),le=n.union([Ot,Ut]),pe=n.tuple([n.lazy(()=>n.union([pe,le,n.null(),n.boolean()])),n.enum(["and","or"]),n.lazy(()=>n.union([pe,le,n.null(),n.boolean()]))]),G=n.union([pe,le,n.null(),n.boolean()]);import{z as o}from"zod";var ze=o.enum(["avg","max","min","sum","median"]),Nt=o.object({method:ze,attribute:o.string()}),jt=o.object({methods:o.array(o.union([ze,o.literal("count")])),attribute:o.string().optional()}),J=o.union([b,T,o.array(L)]),Pe=o.object({boundary:J.optional(),filters:G.optional(),aggregation:Nt.optional()}),Fe=o.object({layerId:o.string(),attribute:o.string(),limit:o.number().optional(),boundary:J.optional(),filters:G.optional(),values:Pe.optional()}),wr=o.object({key:o.union([o.number(),o.string(),o.boolean()]),value:o.number().nullable()}),Rt=o.object({type:o.literal("equal-intervals"),count:o.number()}),At=o.object({type:o.literal("time-interval"),interval:o.enum(["hour","day","week","month","year"])}),ke=o.object({layerId:o.string(),attribute:o.string(),steps:o.union([Rt,At,o.array(o.number())]),boundary:J.optional(),filters:G.optional(),values:Pe.optional()}),Vr=o.object({min:o.number(),max:o.number(),value:o.number()}),ve=o.object({layerId:o.string(),boundary:J.optional(),filters:G.optional(),aggregation:jt});import{z as r}from"zod";var jr=r.enum(["processing","completed","failed","incomplete"]),we=r.object({ids:r.array(r.string()).optional()}),Ve=r.object({ids:r.array(r.string()).optional()}),z=r.object({id:r.string(),layerId:r.string()}),Oe=r.object({ids:z.array().optional(),layerIds:r.string().array().optional()}),Ue=r.object({layerIds:r.array(r.string()).optional(),areaQuery:r.union([r.object({coordinates:R}),r.object({boundary:b})]).optional()}),Bt=r.object({Point:r.object({}).passthrough().optional(),Line:r.object({}).passthrough().optional(),Polygon:r.object({}).passthrough().optional()}),me=r.object({type:r.literal("application/geo+json"),name:r.string(),geometryStyles:Bt.optional()}),Ht=me.extend({file:r.instanceof(File)}),Dt=me.extend({url:r.string().url()}),Zt=me.extend({arrayBuffer:r.instanceof(ArrayBuffer)}),Ne=r.union([Zt,Ht,Dt]);var qt=t("getLayer",i.string()),Jt=t("getLayers",we.optional()),Wt=t("setLayerVisibility",C),Qt=h("onLayerChange",i.object({id:i.string()})),$t=t("setLayerStyle",i.object({id:i.string(),style:i.object({}).passthrough()})),Kt=t("setLayerLegendVisibility",C),Xt=t("createLayer",i.object({source:Ne})),Yt=t("deleteLayer",i.string()),_t=t("getLayerGroup",i.string()),eo=t("getLayerGroups",Ve.optional()),to=t("setLayerGroupVisibility",C),oo=t("setLayerGroupLegendVisibility",C),ro=h("onLayerGroupChange",i.object({id:i.string()})),no=t("getLegendItem",z),ao=t("getLegendItems",Oe.optional()),io=h("onLegendItemChange",z),so=t("setLegendItemVisibility",i.object({show:z.array().optional(),hide:z.array().optional()})),lo=t("getLayerFilters",i.string()),po=t("setLayerFilters",i.object({layerId:i.string(),filters:G,note:i.string().optional()})),mo=h("onLayerFiltersChange",i.object({layerId:i.string()})),co=t("getRenderedFeatures",Ue.optional()),go=t("getFeature",i.object({id:i.string().or(i.number()),layerId:i.string()})),yo=t("getGeoJsonFeature",i.object({id:i.string().or(i.number()),layerId:i.string()})),uo=t("getCategoryData",Fe),ho=t("getHistogramData",ke),fo=t("getAggregates",ve),So=t("getLayerSchema",i.string()),je={methods:[qt,Jt,Wt,$t,Kt,Xt,Yt,_t,eo,to,oo,no,ao,so,lo,po,co,go,yo,uo,ho,fo,So],listeners:[Qt,ro,io,mo]};import{z as xo}from"zod";var Lo=t("getMapDetails",xo.undefined()),Re={methods:[Lo],listeners:[]};import{z as W}from"zod";import{z as M}from"zod";var Ae=M.object({id:M.string().or(M.number()),layerId:M.string(),showPopup:M.boolean().optional(),fitViewport:M.boolean().or(M.object({maxZoom:M.number()})).optional()});var Mo=t("getSelection",W.undefined()),bo=l("onSelectionChange"),Co=t("selectFeature",Ae),Go=t("clearSelection",W.object({features:W.boolean().optional(),elements:W.boolean().optional()}).optional()),Be={methods:[Mo,Co,Go],listeners:[bo]};import{z as Vo}from"zod";import{z as p}from"zod";var He=["pin","line","route","polygon","circle","marker","highlighter","text","note"],De=p.enum([...He,"link"]),Ze=p.enum(He),Io=te.pick({color:!0,symbol:!0,frame:!0}).extend({afterCreation:p.enum(["enter name","add another","select"])}).required(),To=q.pick({color:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0}).required(),Eo=q.pick({color:!0,routingMode:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,distanceMarker:!0,endCaps:!0}).required(),zo=oe.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,areaMarker:!0}).required(),Po=re.pick({color:!0,fillOpacity:!0,strokeOpacity:!0,strokeWidth:!0,strokeStyle:!0,radiusMarker:!0}).required(),Fo=ne.pick({color:!0,opacity:!0,size:!0}).required(),ko=ae.pick({color:!0,opacity:!0,renderHoles:!0}).extend({size:p.number().min(0).max(200)}).required(),vo=ie.pick({color:!0,align:!0,style:!0}).required(),wo=se.pick({color:!0,align:!0,style:!0}).required(),qe=p.discriminatedUnion("tool",[Io.partial().extend({tool:p.literal("pin")}),To.partial().extend({tool:p.literal("line")}),Eo.partial().extend({tool:p.literal("route")}),zo.partial().extend({tool:p.literal("polygon")}),Po.partial().extend({tool:p.literal("circle")}),Fo.partial().extend({tool:p.literal("marker")}),ko.partial().extend({tool:p.literal("highlighter")}),vo.partial().extend({tool:p.literal("text")}),wo.partial().extend({tool:p.literal("note")})]);var Oo=t("setTool",De.nullable()),Uo=t("getTool",Vo.undefined()),No=l("onToolChange"),jo=t("setToolSettings",qe),Ro=t("getToolSettings",Ze),Ao=l("onToolSettingsChange"),Je={methods:[Oo,Uo,jo,Ro],listeners:[No,Ao]};import{z as ce}from"zod";import{z as c}from"zod";var We=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()}),Qe=c.object({featureSelectPanel:c.boolean().optional(),featureHoverPanel:c.boolean().optional(),elementSelectPanel:c.boolean().optional(),linkClickOpen:c.boolean().optional(),imageLightboxOpen:c.boolean().optional()});var Bo=t("updateUiControls",We),Ho=t("setOnMapInteractionsUi",Qe),Do=t("showLayerDataTable",ce.object({layerId:ce.string(),sorting:fe.optional()}).optional()),Zo=t("hideLayerDataTable",ce.undefined()),$e={methods:[Bo,Ho,Do,Zo],listeners:null};import{z as _e}from"zod";import{z as $}from"zod";var Q=$.object({center:R,zoom:he}),Ke=$.object({center:Q.shape.center.optional(),zoom:Q.shape.zoom.optional()}),Xe=$.object({minZoom:Q.shape.zoom.nullish(),maxZoom:Q.shape.zoom.nullish(),bounds:b.nullish()}).nullable(),Ye=$.object({bounds:b});var qo=t("getViewport",_e.undefined()),Jo=t("setViewport",Ke),Wo=t("getViewportConstraints",_e.undefined()),Qo=t("setViewportConstraints",Xe),$o=t("fitViewportToBounds",Ye),Ko=l("onViewportMove"),Xo=l("onViewportMoveEnd"),Yo=l("onMapIdle"),et={methods:[Jo,qo,Wo,Qo,$o],listeners:[Ko,Xo,Yo]};var ge=[$e,et,je,Ge,Be,Ie,Je,Re];function Nn(s,I,ye){let K=new Map;async function de(y){if(!rr.safeParse(y.data).success){ye?.onUnknownMessage?.(y.data);return}let U=ot.safeParse(y.data);if(!U.success){ye?.onInvalidMessage?.(y.data,U.error),y.ports[0]?.postMessage(_(U.error.message));return}let{data:m}=U;if(m.type==="felt.ready")y.ports[0]?.postMessage(!0);else if(m.type==="felt.addListener"){if(m.event.eventName==="")throw new Error("felt.addListener eventName cannot be empty");let P="options"in m.event?{options:"options"in m.event?m.event.options:void 0,handler:Y=>{y.ports[0]?.postMessage(Y)}}:{handler:Y=>{y.ports[0]?.postMessage(Y)}},X=I.listeners[m.event.eventName](P);K.set(m.event.id,X)}else if(m.type==="felt.removeListener")K.get(m.id)?.(),K.delete(m.id);else try{let P=I.methods[m.type],X=await P(m.params);y.ports[0]?.postMessage(X)}catch(P){y.ports[0]?.postMessage(_(P))}}return s.addEventListener("message",de),()=>{s.removeEventListener("message",de)}}var tt={methods:ge.map(s=>s.methods??[]).flat(),listeners:ge.map(s=>s.listeners??[]).flat()},_o=g.discriminatedUnion("eventName",[g.strictObject({eventName:g.literal("")}),...tt.listeners]),er=g.strictObject({type:g.literal("felt.addListener"),event:_o}),tr=g.strictObject({type:g.literal("felt.removeListener"),id:g.string()}),or=g.strictObject({type:g.literal("felt.ready")}),ot=g.discriminatedUnion("type",[or,er,tr,...tt.methods]),rr=g.object({type:g.enum(ot.options.map(s=>s.shape.type.value))});export{Nn as createMessageHandler};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.47.9"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -80,7 +80,14 @@ interface PolygonGeometry extends zInfer<typeof PolygonGeometrySchema> {
|
|
|
80
80
|
*/
|
|
81
81
|
declare const PolygonGeometrySchema: z.ZodObject<{
|
|
82
82
|
type: z.ZodLiteral<"Polygon">;
|
|
83
|
-
|
|
83
|
+
/**
|
|
84
|
+
* The coordinates of a polygon. The first array is the exterior ring, and
|
|
85
|
+
* any subsequent arrays are the interior rings.
|
|
86
|
+
*
|
|
87
|
+
* Each ring must have at least 4 points: 3 to make a valid triangle and the
|
|
88
|
+
* last to close the path, which must be identical to the first.
|
|
89
|
+
*/
|
|
90
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
84
91
|
}, "strip", z.ZodTypeAny, {
|
|
85
92
|
type: "Polygon";
|
|
86
93
|
coordinates: [number, number][][];
|
|
@@ -525,7 +532,7 @@ declare const PolygonCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
525
532
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
526
533
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
527
534
|
type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
|
|
528
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
535
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
529
536
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
530
537
|
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
531
538
|
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -618,7 +625,7 @@ declare const PolygonCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
618
625
|
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
619
626
|
}>, {
|
|
620
627
|
type: z.ZodLiteral<"Polygon">;
|
|
621
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
628
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
622
629
|
/**
|
|
623
630
|
* The opacity of the polygon's fill, between 0 and 1.
|
|
624
631
|
*
|
|
@@ -980,7 +987,7 @@ declare const HighlighterCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape
|
|
|
980
987
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
981
988
|
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
982
989
|
type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
|
|
983
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">>;
|
|
990
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
|
|
984
991
|
renderHoles: z.ZodOptional<z.ZodBoolean>;
|
|
985
992
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
986
993
|
}, Pick<z.objectUtil.extendShape<{
|
|
@@ -1055,7 +1062,7 @@ declare const HighlighterCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape
|
|
|
1055
1062
|
* If `renderHoles` is set to false, only the outer ring of each polygon
|
|
1056
1063
|
* will be rendered, filling in the area inside the highlighted region.
|
|
1057
1064
|
*/
|
|
1058
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
|
|
1065
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
1059
1066
|
/**
|
|
1060
1067
|
* Whether to render the holes of the highlighted area.
|
|
1061
1068
|
*
|
|
@@ -1102,7 +1109,7 @@ declare const TextCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1102
1109
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1103
1110
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1104
1111
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1105
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1112
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1106
1113
|
text: z.ZodOptional<z.ZodString>;
|
|
1107
1114
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1108
1115
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -1151,7 +1158,7 @@ declare const NoteCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1151
1158
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1152
1159
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1153
1160
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1161
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1155
1162
|
text: z.ZodOptional<z.ZodString>;
|
|
1156
1163
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1157
1164
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -1666,7 +1673,7 @@ declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.obj
|
|
|
1666
1673
|
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
1667
1674
|
}>, {
|
|
1668
1675
|
type: z.ZodLiteral<"Polygon">;
|
|
1669
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
1676
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
1670
1677
|
/**
|
|
1671
1678
|
* The opacity of the polygon's fill, between 0 and 1.
|
|
1672
1679
|
*
|
|
@@ -2061,7 +2068,7 @@ declare const HighlighterReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
2061
2068
|
* If `renderHoles` is set to false, only the outer ring of each polygon
|
|
2062
2069
|
* will be rendered, filling in the area inside the highlighted region.
|
|
2063
2070
|
*/
|
|
2064
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
|
|
2071
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
2065
2072
|
/**
|
|
2066
2073
|
* Whether to render the holes of the highlighted area.
|
|
2067
2074
|
*
|
|
@@ -2166,7 +2173,7 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2166
2173
|
rotation: z.ZodNumber;
|
|
2167
2174
|
scale: z.ZodNumber;
|
|
2168
2175
|
zoom: z.ZodNumber;
|
|
2169
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2176
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2170
2177
|
}>, {
|
|
2171
2178
|
/**
|
|
2172
2179
|
* The text in the element.
|
|
@@ -2295,7 +2302,7 @@ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2295
2302
|
rotation: z.ZodNumber;
|
|
2296
2303
|
scale: z.ZodNumber;
|
|
2297
2304
|
zoom: z.ZodNumber;
|
|
2298
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2305
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2299
2306
|
}>, {
|
|
2300
2307
|
/**
|
|
2301
2308
|
* The text in the element.
|
|
@@ -2869,7 +2876,7 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2869
2876
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
2870
2877
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2871
2878
|
type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
|
|
2872
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
2879
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
2873
2880
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
2874
2881
|
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
2875
2882
|
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -2962,7 +2969,7 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2962
2969
|
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
2963
2970
|
}>, {
|
|
2964
2971
|
type: z.ZodLiteral<"Polygon">;
|
|
2965
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2972
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2966
2973
|
/**
|
|
2967
2974
|
* The opacity of the polygon's fill, between 0 and 1.
|
|
2968
2975
|
*
|
|
@@ -3330,7 +3337,7 @@ declare const HighlighterUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3330
3337
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3331
3338
|
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
3332
3339
|
type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
|
|
3333
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">>;
|
|
3340
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
|
|
3334
3341
|
renderHoles: z.ZodOptional<z.ZodBoolean>;
|
|
3335
3342
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
3336
3343
|
}, Pick<z.objectUtil.extendShape<{
|
|
@@ -3405,7 +3412,7 @@ declare const HighlighterUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3405
3412
|
* If `renderHoles` is set to false, only the outer ring of each polygon
|
|
3406
3413
|
* will be rendered, filling in the area inside the highlighted region.
|
|
3407
3414
|
*/
|
|
3408
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
|
|
3415
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
3409
3416
|
/**
|
|
3410
3417
|
* Whether to render the holes of the highlighted area.
|
|
3411
3418
|
*
|
|
@@ -3454,7 +3461,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3454
3461
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3455
3462
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3456
3463
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3457
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
3464
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3458
3465
|
text: z.ZodOptional<z.ZodString>;
|
|
3459
3466
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3460
3467
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -3529,7 +3536,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3529
3536
|
rotation: z.ZodNumber;
|
|
3530
3537
|
scale: z.ZodNumber;
|
|
3531
3538
|
zoom: z.ZodNumber;
|
|
3532
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
3539
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3533
3540
|
}>, {
|
|
3534
3541
|
/**
|
|
3535
3542
|
* The text in the element.
|
|
@@ -3598,7 +3605,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3598
3605
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3599
3606
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3600
3607
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3601
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
3608
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3602
3609
|
text: z.ZodOptional<z.ZodString>;
|
|
3603
3610
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3604
3611
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -3674,7 +3681,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3674
3681
|
rotation: z.ZodNumber;
|
|
3675
3682
|
scale: z.ZodNumber;
|
|
3676
3683
|
zoom: z.ZodNumber;
|
|
3677
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
3684
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3678
3685
|
}>, {
|
|
3679
3686
|
/**
|
|
3680
3687
|
* The text in the element.
|
|
@@ -5031,7 +5038,7 @@ interface MultiAggregationConfig<T extends AggregationMethod | "count"> extends
|
|
|
5031
5038
|
declare const ValueConfigurationSchema: z.ZodObject<{
|
|
5032
5039
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5033
5040
|
type: z.ZodLiteral<"Polygon">;
|
|
5034
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5041
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5035
5042
|
}, "strip", z.ZodTypeAny, {
|
|
5036
5043
|
type: "Polygon";
|
|
5037
5044
|
coordinates: [number, number][][];
|
|
@@ -5121,7 +5128,7 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
|
|
|
5121
5128
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
5122
5129
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5123
5130
|
type: z.ZodLiteral<"Polygon">;
|
|
5124
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5131
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5125
5132
|
}, "strip", z.ZodTypeAny, {
|
|
5126
5133
|
type: "Polygon";
|
|
5127
5134
|
coordinates: [number, number][][];
|
|
@@ -5133,7 +5140,7 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
|
|
|
5133
5140
|
values: z.ZodOptional<z.ZodObject<{
|
|
5134
5141
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5135
5142
|
type: z.ZodLiteral<"Polygon">;
|
|
5136
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5143
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5137
5144
|
}, "strip", z.ZodTypeAny, {
|
|
5138
5145
|
type: "Polygon";
|
|
5139
5146
|
coordinates: [number, number][][];
|
|
@@ -5299,7 +5306,7 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
|
|
|
5299
5306
|
}>, z.ZodArray<z.ZodNumber, "many">]>;
|
|
5300
5307
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5301
5308
|
type: z.ZodLiteral<"Polygon">;
|
|
5302
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5309
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5303
5310
|
}, "strip", z.ZodTypeAny, {
|
|
5304
5311
|
type: "Polygon";
|
|
5305
5312
|
coordinates: [number, number][][];
|
|
@@ -5324,7 +5331,7 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
|
|
|
5324
5331
|
values: z.ZodOptional<z.ZodObject<{
|
|
5325
5332
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5326
5333
|
type: z.ZodLiteral<"Polygon">;
|
|
5327
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5334
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5328
5335
|
}, "strip", z.ZodTypeAny, {
|
|
5329
5336
|
type: "Polygon";
|
|
5330
5337
|
coordinates: [number, number][][];
|
|
@@ -5473,7 +5480,7 @@ declare const GetLayerCalculationParamsSchema: z.ZodObject<{
|
|
|
5473
5480
|
layerId: z.ZodString;
|
|
5474
5481
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5475
5482
|
type: z.ZodLiteral<"Polygon">;
|
|
5476
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5483
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5477
5484
|
}, "strip", z.ZodTypeAny, {
|
|
5478
5485
|
type: "Polygon";
|
|
5479
5486
|
coordinates: [number, number][][];
|
|
@@ -80,7 +80,14 @@ interface PolygonGeometry extends zInfer<typeof PolygonGeometrySchema> {
|
|
|
80
80
|
*/
|
|
81
81
|
declare const PolygonGeometrySchema: z.ZodObject<{
|
|
82
82
|
type: z.ZodLiteral<"Polygon">;
|
|
83
|
-
|
|
83
|
+
/**
|
|
84
|
+
* The coordinates of a polygon. The first array is the exterior ring, and
|
|
85
|
+
* any subsequent arrays are the interior rings.
|
|
86
|
+
*
|
|
87
|
+
* Each ring must have at least 4 points: 3 to make a valid triangle and the
|
|
88
|
+
* last to close the path, which must be identical to the first.
|
|
89
|
+
*/
|
|
90
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
84
91
|
}, "strip", z.ZodTypeAny, {
|
|
85
92
|
type: "Polygon";
|
|
86
93
|
coordinates: [number, number][][];
|
|
@@ -525,7 +532,7 @@ declare const PolygonCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
525
532
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
526
533
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
527
534
|
type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
|
|
528
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
535
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
529
536
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
530
537
|
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
531
538
|
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -618,7 +625,7 @@ declare const PolygonCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
618
625
|
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
619
626
|
}>, {
|
|
620
627
|
type: z.ZodLiteral<"Polygon">;
|
|
621
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
628
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
622
629
|
/**
|
|
623
630
|
* The opacity of the polygon's fill, between 0 and 1.
|
|
624
631
|
*
|
|
@@ -980,7 +987,7 @@ declare const HighlighterCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape
|
|
|
980
987
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
981
988
|
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
982
989
|
type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
|
|
983
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">>;
|
|
990
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
|
|
984
991
|
renderHoles: z.ZodOptional<z.ZodBoolean>;
|
|
985
992
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
986
993
|
}, Pick<z.objectUtil.extendShape<{
|
|
@@ -1055,7 +1062,7 @@ declare const HighlighterCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape
|
|
|
1055
1062
|
* If `renderHoles` is set to false, only the outer ring of each polygon
|
|
1056
1063
|
* will be rendered, filling in the area inside the highlighted region.
|
|
1057
1064
|
*/
|
|
1058
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
|
|
1065
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
1059
1066
|
/**
|
|
1060
1067
|
* Whether to render the holes of the highlighted area.
|
|
1061
1068
|
*
|
|
@@ -1102,7 +1109,7 @@ declare const TextCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1102
1109
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1103
1110
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1104
1111
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1105
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1112
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1106
1113
|
text: z.ZodOptional<z.ZodString>;
|
|
1107
1114
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1108
1115
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -1151,7 +1158,7 @@ declare const NoteCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1151
1158
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1152
1159
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1153
1160
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1161
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1155
1162
|
text: z.ZodOptional<z.ZodString>;
|
|
1156
1163
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1157
1164
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -1666,7 +1673,7 @@ declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.obj
|
|
|
1666
1673
|
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
1667
1674
|
}>, {
|
|
1668
1675
|
type: z.ZodLiteral<"Polygon">;
|
|
1669
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
1676
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
1670
1677
|
/**
|
|
1671
1678
|
* The opacity of the polygon's fill, between 0 and 1.
|
|
1672
1679
|
*
|
|
@@ -2061,7 +2068,7 @@ declare const HighlighterReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
2061
2068
|
* If `renderHoles` is set to false, only the outer ring of each polygon
|
|
2062
2069
|
* will be rendered, filling in the area inside the highlighted region.
|
|
2063
2070
|
*/
|
|
2064
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
|
|
2071
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
2065
2072
|
/**
|
|
2066
2073
|
* Whether to render the holes of the highlighted area.
|
|
2067
2074
|
*
|
|
@@ -2166,7 +2173,7 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2166
2173
|
rotation: z.ZodNumber;
|
|
2167
2174
|
scale: z.ZodNumber;
|
|
2168
2175
|
zoom: z.ZodNumber;
|
|
2169
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2176
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2170
2177
|
}>, {
|
|
2171
2178
|
/**
|
|
2172
2179
|
* The text in the element.
|
|
@@ -2295,7 +2302,7 @@ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2295
2302
|
rotation: z.ZodNumber;
|
|
2296
2303
|
scale: z.ZodNumber;
|
|
2297
2304
|
zoom: z.ZodNumber;
|
|
2298
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2305
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2299
2306
|
}>, {
|
|
2300
2307
|
/**
|
|
2301
2308
|
* The text in the element.
|
|
@@ -2869,7 +2876,7 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2869
2876
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
2870
2877
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2871
2878
|
type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
|
|
2872
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
2879
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
2873
2880
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
2874
2881
|
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
2875
2882
|
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -2962,7 +2969,7 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2962
2969
|
strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
|
|
2963
2970
|
}>, {
|
|
2964
2971
|
type: z.ZodLiteral<"Polygon">;
|
|
2965
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
2972
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2966
2973
|
/**
|
|
2967
2974
|
* The opacity of the polygon's fill, between 0 and 1.
|
|
2968
2975
|
*
|
|
@@ -3330,7 +3337,7 @@ declare const HighlighterUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3330
3337
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3331
3338
|
interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
|
|
3332
3339
|
type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
|
|
3333
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">>;
|
|
3340
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
|
|
3334
3341
|
renderHoles: z.ZodOptional<z.ZodBoolean>;
|
|
3335
3342
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
3336
3343
|
}, Pick<z.objectUtil.extendShape<{
|
|
@@ -3405,7 +3412,7 @@ declare const HighlighterUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3405
3412
|
* If `renderHoles` is set to false, only the outer ring of each polygon
|
|
3406
3413
|
* will be rendered, filling in the area inside the highlighted region.
|
|
3407
3414
|
*/
|
|
3408
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
|
|
3415
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
|
|
3409
3416
|
/**
|
|
3410
3417
|
* Whether to render the holes of the highlighted area.
|
|
3411
3418
|
*
|
|
@@ -3454,7 +3461,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3454
3461
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3455
3462
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3456
3463
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3457
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
3464
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3458
3465
|
text: z.ZodOptional<z.ZodString>;
|
|
3459
3466
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3460
3467
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -3529,7 +3536,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3529
3536
|
rotation: z.ZodNumber;
|
|
3530
3537
|
scale: z.ZodNumber;
|
|
3531
3538
|
zoom: z.ZodNumber;
|
|
3532
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
3539
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3533
3540
|
}>, {
|
|
3534
3541
|
/**
|
|
3535
3542
|
* The text in the element.
|
|
@@ -3598,7 +3605,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3598
3605
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3599
3606
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3600
3607
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3601
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
3608
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3602
3609
|
text: z.ZodOptional<z.ZodString>;
|
|
3603
3610
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3604
3611
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
@@ -3674,7 +3681,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3674
3681
|
rotation: z.ZodNumber;
|
|
3675
3682
|
scale: z.ZodNumber;
|
|
3676
3683
|
zoom: z.ZodNumber;
|
|
3677
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
3684
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3678
3685
|
}>, {
|
|
3679
3686
|
/**
|
|
3680
3687
|
* The text in the element.
|
|
@@ -5031,7 +5038,7 @@ interface MultiAggregationConfig<T extends AggregationMethod | "count"> extends
|
|
|
5031
5038
|
declare const ValueConfigurationSchema: z.ZodObject<{
|
|
5032
5039
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5033
5040
|
type: z.ZodLiteral<"Polygon">;
|
|
5034
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5041
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5035
5042
|
}, "strip", z.ZodTypeAny, {
|
|
5036
5043
|
type: "Polygon";
|
|
5037
5044
|
coordinates: [number, number][][];
|
|
@@ -5121,7 +5128,7 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
|
|
|
5121
5128
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
5122
5129
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5123
5130
|
type: z.ZodLiteral<"Polygon">;
|
|
5124
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5131
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5125
5132
|
}, "strip", z.ZodTypeAny, {
|
|
5126
5133
|
type: "Polygon";
|
|
5127
5134
|
coordinates: [number, number][][];
|
|
@@ -5133,7 +5140,7 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
|
|
|
5133
5140
|
values: z.ZodOptional<z.ZodObject<{
|
|
5134
5141
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5135
5142
|
type: z.ZodLiteral<"Polygon">;
|
|
5136
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5143
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5137
5144
|
}, "strip", z.ZodTypeAny, {
|
|
5138
5145
|
type: "Polygon";
|
|
5139
5146
|
coordinates: [number, number][][];
|
|
@@ -5299,7 +5306,7 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
|
|
|
5299
5306
|
}>, z.ZodArray<z.ZodNumber, "many">]>;
|
|
5300
5307
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5301
5308
|
type: z.ZodLiteral<"Polygon">;
|
|
5302
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5309
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5303
5310
|
}, "strip", z.ZodTypeAny, {
|
|
5304
5311
|
type: "Polygon";
|
|
5305
5312
|
coordinates: [number, number][][];
|
|
@@ -5324,7 +5331,7 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
|
|
|
5324
5331
|
values: z.ZodOptional<z.ZodObject<{
|
|
5325
5332
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5326
5333
|
type: z.ZodLiteral<"Polygon">;
|
|
5327
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5334
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5328
5335
|
}, "strip", z.ZodTypeAny, {
|
|
5329
5336
|
type: "Polygon";
|
|
5330
5337
|
coordinates: [number, number][][];
|
|
@@ -5473,7 +5480,7 @@ declare const GetLayerCalculationParamsSchema: z.ZodObject<{
|
|
|
5473
5480
|
layerId: z.ZodString;
|
|
5474
5481
|
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
5475
5482
|
type: z.ZodLiteral<"Polygon">;
|
|
5476
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
5483
|
+
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
5477
5484
|
}, "strip", z.ZodTypeAny, {
|
|
5478
5485
|
type: "Polygon";
|
|
5479
5486
|
coordinates: [number, number][][];
|