From 74de0e1e8cb1ba195027ef76852a2c5153779c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E5=BC=80=E5=8D=8A=E4=BA=A9=E5=9C=B0?= <2572468699@qq.com> Date: Sun, 22 May 2022 23:59:50 +0800 Subject: [PATCH] docs: build --- docs/dist/404.html | 6 +++--- .../assets/{404.144cfd11.js => 404.d37a25d6.js} | 2 +- .../{404.html.0dc12284.js => 404.html.e05097ea.js} | 2 +- .../{Layout.85f3b0be.js => Layout.95bd35c7.js} | 2 +- .../assets/{app.1205231e.js => app.e8329c2e.js} | 8 ++++---- ...cle.html.2f27ff8c.js => circle.html.e55dfa30.js} | 2 +- ...html.ae21a434.js => com-events.html.702140c6.js} | 2 +- ...tom.html.141ef4f6.js => custom.html.e76c605d.js} | 2 +- .../assets/{index.dfb9b42f.js => index.05e41ef2.js} | 2 +- .../assets/{index.3c2eae00.js => index.26666c3d.js} | 2 +- .../assets/{index.78740035.js => index.6326f851.js} | 2 +- .../assets/{index.8bff2b04.js => index.6a829b55.js} | 2 +- .../assets/{index.4d673253.js => index.74e821d6.js} | 2 +- .../assets/{index.b93ff2da.js => index.773c2ec3.js} | 2 +- .../assets/{index.03b9c72f.js => index.7b3fc084.js} | 2 +- .../assets/{index.324d77ad.js => index.9c75391a.js} | 2 +- .../assets/{index.c36c7e18.js => index.c616a8c4.js} | 2 +- .../assets/{index.5b00e009.js => index.ce5b6421.js} | 2 +- docs/dist/assets/index.html.1a899239.js | 1 - ...ndex.html.707e0525.js => index.html.26147b4f.js} | 2 +- docs/dist/assets/index.html.310d7568.js | 1 + ...ndex.html.acee05e2.js => index.html.9bd47afe.js} | 2 +- ...ndex.html.bed3a029.js => index.html.f1c42617.js} | 2 +- ...abel.html.fdfabe1c.js => label.html.73f15287.js} | 2 +- ...ker.html.bf72420b.js => marker.html.db73ad54.js} | 2 +- ...ml.d8e1422a.js => navigation3d.html.ae5dfc49.js} | 2 +- ...on.html.458c6521.js => polygon.html.70c874a9.js} | 2 +- ...e.html.500f35cb.js => polyline.html.ce403c78.js} | 2 +- ...tml.2c33a43c.js => quick-start.html.6225a0dd.js} | 2 +- ...cale.html.9d11e8f7.js => scale.html.751c3746.js} | 2 +- docs/dist/assets/useBaseMapEffect.90e9ccd0.js | 1 + docs/dist/assets/useBaseMapEffect.aa0ca7f0.js | 1 - .../{useLife.2e7b82fe.js => useLife.970079a8.js} | 2 +- ...{zoom.html.c908032d.js => zoom.html.070f272a.js} | 2 +- docs/dist/index.html | 4 ++-- docs/dist/zh/base/com-events.html | 4 ++-- docs/dist/zh/base/index.html | 4 ++-- docs/dist/zh/control/custom.html | 4 ++-- docs/dist/zh/control/navigation3d.html | 4 ++-- docs/dist/zh/control/scale.html | 4 ++-- docs/dist/zh/control/zoom.html | 4 ++-- docs/dist/zh/guide/quick-start.html | 4 ++-- docs/dist/zh/index.html | 6 +++--- docs/dist/zh/overlay/circle.html | 4 ++-- docs/dist/zh/overlay/label.html | 4 ++-- docs/dist/zh/overlay/marker.html | 4 ++-- docs/dist/zh/overlay/polygon.html | 4 ++-- docs/dist/zh/overlay/polyline.html | 4 ++-- docs/zh/README.md | 13 ++++++++----- 49 files changed, 74 insertions(+), 71 deletions(-) rename docs/dist/assets/{404.144cfd11.js => 404.d37a25d6.js} (90%) rename docs/dist/assets/{404.html.0dc12284.js => 404.html.e05097ea.js} (56%) rename docs/dist/assets/{Layout.85f3b0be.js => Layout.95bd35c7.js} (99%) rename docs/dist/assets/{app.1205231e.js => app.e8329c2e.js} (96%) rename docs/dist/assets/{circle.html.2f27ff8c.js => circle.html.e55dfa30.js} (99%) rename docs/dist/assets/{com-events.html.ae21a434.js => com-events.html.702140c6.js} (92%) rename docs/dist/assets/{custom.html.141ef4f6.js => custom.html.e76c605d.js} (99%) rename docs/dist/assets/{index.dfb9b42f.js => index.05e41ef2.js} (94%) rename docs/dist/assets/{index.3c2eae00.js => index.26666c3d.js} (66%) rename docs/dist/assets/{index.78740035.js => index.6326f851.js} (85%) rename docs/dist/assets/{index.8bff2b04.js => index.6a829b55.js} (86%) rename docs/dist/assets/{index.4d673253.js => index.74e821d6.js} (90%) rename docs/dist/assets/{index.b93ff2da.js => index.773c2ec3.js} (65%) rename docs/dist/assets/{index.03b9c72f.js => index.7b3fc084.js} (72%) rename docs/dist/assets/{index.324d77ad.js => index.9c75391a.js} (88%) rename docs/dist/assets/{index.c36c7e18.js => index.c616a8c4.js} (74%) rename docs/dist/assets/{index.5b00e009.js => index.ce5b6421.js} (98%) delete mode 100644 docs/dist/assets/index.html.1a899239.js rename docs/dist/assets/{index.html.707e0525.js => index.html.26147b4f.js} (99%) create mode 100644 docs/dist/assets/index.html.310d7568.js rename docs/dist/assets/{index.html.acee05e2.js => index.html.9bd47afe.js} (58%) rename docs/dist/assets/{index.html.bed3a029.js => index.html.f1c42617.js} (58%) rename docs/dist/assets/{label.html.fdfabe1c.js => label.html.73f15287.js} (99%) rename docs/dist/assets/{marker.html.bf72420b.js => marker.html.db73ad54.js} (99%) rename docs/dist/assets/{navigation3d.html.d8e1422a.js => navigation3d.html.ae5dfc49.js} (98%) rename docs/dist/assets/{polygon.html.458c6521.js => polygon.html.70c874a9.js} (99%) rename docs/dist/assets/{polyline.html.500f35cb.js => polyline.html.ce403c78.js} (99%) rename docs/dist/assets/{quick-start.html.2c33a43c.js => quick-start.html.6225a0dd.js} (99%) rename docs/dist/assets/{scale.html.9d11e8f7.js => scale.html.751c3746.js} (98%) create mode 100644 docs/dist/assets/useBaseMapEffect.90e9ccd0.js delete mode 100644 docs/dist/assets/useBaseMapEffect.aa0ca7f0.js rename docs/dist/assets/{useLife.2e7b82fe.js => useLife.970079a8.js} (89%) rename docs/dist/assets/{zoom.html.c908032d.js => zoom.html.070f272a.js} (98%) diff --git a/docs/dist/404.html b/docs/dist/404.html index 49675165..35c1c2ad 100644 --- a/docs/dist/404.html +++ b/docs/dist/404.html @@ -31,11 +31,11 @@ s.parentNode.insertBefore(hm, s); })(); - + -

404

How did we get here?
Take me home
- +

404

That's a Four-Oh-Four.
Take me home
+ diff --git a/docs/dist/assets/404.144cfd11.js b/docs/dist/assets/404.d37a25d6.js similarity index 90% rename from docs/dist/assets/404.144cfd11.js rename to docs/dist/assets/404.d37a25d6.js index b7af7e82..740de055 100644 --- a/docs/dist/assets/404.144cfd11.js +++ b/docs/dist/assets/404.d37a25d6.js @@ -1 +1 @@ -import{_ as d,d as i,y as p,z as f,j as v,b as k,c as x,e as o,t as c,m as L,q as g,u as l,x as B}from"./app.1205231e.js";const N={class:"theme-container"},T={class:"theme-default-content"},b=o("h1",null,"404",-1),C=i({setup(M){var a,s,n;const u=p(),e=f(),t=(a=e.value.notFound)!=null?a:["Not Found"],r=()=>t[Math.floor(Math.random()*t.length)],_=(s=e.value.home)!=null?s:u.value,m=(n=e.value.backToHome)!=null?n:"Back to home";return(R,V)=>{const h=v("RouterLink");return k(),x("div",N,[o("div",T,[b,o("blockquote",null,c(r()),1),L(h,{to:l(_)},{default:g(()=>[B(c(l(m)),1)]),_:1},8,["to"])])])}}});var y=d(C,[["__file","404.vue"]]);export{y as default}; +import{_ as d,d as i,y as p,z as f,j as v,b as k,c as x,e as o,t as c,m as L,q as g,u as l,x as B}from"./app.e8329c2e.js";const N={class:"theme-container"},T={class:"theme-default-content"},b=o("h1",null,"404",-1),C=i({setup(M){var a,s,n;const u=p(),e=f(),t=(a=e.value.notFound)!=null?a:["Not Found"],r=()=>t[Math.floor(Math.random()*t.length)],_=(s=e.value.home)!=null?s:u.value,m=(n=e.value.backToHome)!=null?n:"Back to home";return(R,V)=>{const h=v("RouterLink");return k(),x("div",N,[o("div",T,[b,o("blockquote",null,c(r()),1),L(h,{to:l(_)},{default:g(()=>[B(c(l(m)),1)]),_:1},8,["to"])])])}}});var y=d(C,[["__file","404.vue"]]);export{y as default}; diff --git a/docs/dist/assets/404.html.0dc12284.js b/docs/dist/assets/404.html.e05097ea.js similarity index 56% rename from docs/dist/assets/404.html.0dc12284.js rename to docs/dist/assets/404.html.e05097ea.js index 677df270..8b17d8b9 100644 --- a/docs/dist/assets/404.html.0dc12284.js +++ b/docs/dist/assets/404.html.e05097ea.js @@ -1 +1 @@ -import{_}from"./app.1205231e.js";const e={};function r(t,c){return null}var f=_(e,[["render",r],["__file","404.html.vue"]]);export{f as default}; +import{_}from"./app.e8329c2e.js";const e={};function r(t,c){return null}var f=_(e,[["render",r],["__file","404.html.vue"]]);export{f as default}; diff --git a/docs/dist/assets/Layout.85f3b0be.js b/docs/dist/assets/Layout.95bd35c7.js similarity index 99% rename from docs/dist/assets/Layout.85f3b0be.js rename to docs/dist/assets/Layout.95bd35c7.js index 7e38cb78..cbc6e0f6 100644 --- a/docs/dist/assets/Layout.85f3b0be.js +++ b/docs/dist/assets/Layout.95bd35c7.js @@ -1 +1 @@ -var De=Object.defineProperty,Ie=Object.defineProperties;var Me=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var pe=(l,t,e)=>t in l?De(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e,Y=(l,t)=>{for(var e in t||(t={}))He.call(t,e)&&pe(l,e,t[e]);if(de)for(var e of de(t))Pe.call(t,e)&&pe(l,e,t[e]);return l},J=(l,t)=>Ie(l,Me(t));import{_ as C,j as R,b as r,c,m as $,d as S,A as P,B as h,C as fe,u as a,F as I,D as A,E as w,e as g,t as T,G as z,H as Q,I as x,q as N,J as he,r as y,x as j,K as X,L as Ee,M as Z,N as ee,O as K,P as me,Q as be,R as E,y as ge,z as D,T as ke,h as F,w as $e,k as q,S as G,U as Re,V as Ae,W as te,X as Le,Y as ye,s as Oe,o as we,n as Fe,Z as U,$ as ae,a0 as ze,a1 as We,a as Ve,a2 as Ue}from"./app.1205231e.js";const je=l=>/^mailto:/.test(l),Ke=l=>/^tel:/.test(l),qe={},Ge={class:"theme-default-content custom"};function Xe(l,t){const e=R("Content");return r(),c("div",Ge,[$(e)])}var Ye=C(qe,[["render",Xe],["__file","HomeContent.vue"]]);const Je={key:0,class:"features"},Qe=S({setup(l){const t=P(),e=h(()=>fe(t.value.features)?t.value.features:[]);return(i,o)=>a(e).length?(r(),c("div",Je,[(r(!0),c(I,null,A(a(e),d=>(r(),c("div",{key:d.title,class:"feature"},[g("h2",null,T(d.title),1),g("p",null,T(d.details),1)]))),128))])):w("",!0)}});var Ze=C(Qe,[["__file","HomeFeatures.vue"]]);const et=["innerHTML"],tt=["textContent"],at=S({setup(l){const t=P(),e=h(()=>t.value.footer),i=h(()=>t.value.footerHtml);return(o,d)=>a(e)?(r(),c(I,{key:0},[a(i)?(r(),c("div",{key:0,class:"footer",innerHTML:a(e)},null,8,et)):(r(),c("div",{key:1,class:"footer",textContent:T(a(e))},null,8,tt))],64)):w("",!0)}});var nt=C(at,[["__file","HomeFooter.vue"]]);const rt=["href","rel","target","aria-label"],ot=S({inheritAttrs:!1}),st=S(J(Y({},ot),{props:{item:{type:Object,required:!0}},setup(l){const t=l,e=z(),i=Ee(),{item:o}=Q(t),d=h(()=>X(o.value.link)),f=h(()=>je(o.value.link)||Ke(o.value.link)),_=h(()=>{if(!f.value){if(o.value.target)return o.value.target;if(d.value)return"_blank"}}),n=h(()=>_.value==="_blank"),s=h(()=>!d.value&&!f.value&&!n.value),u=h(()=>{if(!f.value){if(o.value.rel)return o.value.rel;if(n.value)return"noopener noreferrer"}}),v=h(()=>o.value.ariaLabel||o.value.text),p=h(()=>{const L=Object.keys(i.value.locales);return L.length?!L.some(m=>m===o.value.link):o.value.link!=="/"}),b=h(()=>p.value?e.path.startsWith(o.value.link):!1),k=h(()=>s.value?o.value.activeMatch?new RegExp(o.value.activeMatch).test(e.path):b.value:!1);return(L,m)=>{const B=R("RouterLink"),M=R("AutoLinkExternalIcon");return a(s)?(r(),x(B,he({key:0,class:{"router-link-active":a(k)},to:a(o).link,"aria-label":a(v)},L.$attrs),{default:N(()=>[y(L.$slots,"before"),j(" "+T(a(o).text)+" ",1),y(L.$slots,"after")]),_:3},16,["class","to","aria-label"])):(r(),c("a",he({key:1,class:"external-link",href:a(o).link,rel:a(u),target:a(_),"aria-label":a(v)},L.$attrs),[y(L.$slots,"before"),j(" "+T(a(o).text)+" ",1),a(n)?(r(),x(M,{key:0})):w("",!0),y(L.$slots,"after")],16,rt))}}}));var H=C(st,[["__file","AutoLink.vue"]]);const lt={class:"hero"},ut={key:0,id:"main-title"},it={key:1,class:"description"},ct={key:2,class:"actions"},vt=S({setup(l){const t=P(),e=Z(),i=ee(),o=h(()=>i.value&&t.value.heroImageDark!==void 0?t.value.heroImageDark:t.value.heroImage),d=h(()=>t.value.heroText===null?null:t.value.heroText||e.value.title||"Hello"),f=h(()=>t.value.heroAlt||d.value||"hero"),_=h(()=>t.value.tagline===null?null:t.value.tagline||e.value.description||"Welcome to your VuePress site"),n=h(()=>fe(t.value.actions)?t.value.actions.map(({text:u,link:v,type:p="primary"})=>({text:u,link:v,type:p})):[]),s=()=>{if(!o.value)return null;const u=K("img",{src:me(o.value),alt:f.value});return t.value.heroImageDark===void 0?u:K(be,()=>u)};return(u,v)=>(r(),c("header",lt,[$(s),a(d)?(r(),c("h1",ut,T(a(d)),1)):w("",!0),a(_)?(r(),c("p",it,T(a(_)),1)):w("",!0),a(n).length?(r(),c("p",ct,[(r(!0),c(I,null,A(a(n),p=>(r(),x(H,{key:p.text,class:E(["action-button",[p.type]]),item:p},null,8,["class","item"]))),128))])):w("",!0)]))}});var dt=C(vt,[["__file","HomeHero.vue"]]);const pt={class:"home"},ht=S({setup(l){return(t,e)=>(r(),c("main",pt,[$(dt),$(Ze),$(Ye),$(nt)]))}});var _t=C(ht,[["__file","Home.vue"]]);const ft=S({setup(l){const t=ge(),e=Z(),i=D(),o=ee(),d=h(()=>i.value.home||t.value),f=h(()=>e.value.title),_=h(()=>o.value&&i.value.logoDark!==void 0?i.value.logoDark:i.value.logo),n=()=>{if(!_.value)return null;const s=K("img",{class:"logo",src:me(_.value),alt:f.value});return i.value.logoDark===void 0?s:K(be,()=>s)};return(s,u)=>{const v=R("RouterLink");return r(),x(v,{to:a(d)},{default:N(()=>[$(n),a(f)?(r(),c("span",{key:0,class:E(["site-name",{"can-hide":a(_)}])},T(a(f)),3)):w("",!0)]),_:1},8,["to"])}}});var mt=C(ft,[["__file","NavbarBrand.vue"]]);const bt=S({setup(l){const t=i=>{i.style.height=i.scrollHeight+"px"},e=i=>{i.style.height=""};return(i,o)=>(r(),x(ke,{name:"dropdown",onEnter:t,onAfterEnter:e,onBeforeLeave:t},{default:N(()=>[y(i.$slots,"default")]),_:3}))}});var Ce=C(bt,[["__file","DropdownTransition.vue"]]);const gt=["aria-label"],kt={class:"title"},$t=g("span",{class:"arrow down"},null,-1),Lt=["aria-label"],yt={class:"title"},wt={class:"navbar-dropdown"},Ct={class:"navbar-dropdown-subtitle"},St={key:1},xt={class:"navbar-dropdown-subitem-wrapper"},Tt=S({props:{item:{type:Object,required:!0}},setup(l){const t=l,{item:e}=Q(t),i=h(()=>e.value.ariaLabel||e.value.text),o=F(!1),d=z();$e(()=>d.path,()=>{o.value=!1});const f=n=>{n.detail===0?o.value=!o.value:o.value=!1},_=(n,s)=>s[s.length-1]===n;return(n,s)=>(r(),c("div",{class:E(["navbar-dropdown-wrapper",{open:o.value}])},[g("button",{class:"navbar-dropdown-title",type:"button","aria-label":a(i),onClick:f},[g("span",kt,T(a(e).text),1),$t],8,gt),g("button",{class:"navbar-dropdown-title-mobile",type:"button","aria-label":a(i),onClick:s[0]||(s[0]=u=>o.value=!o.value)},[g("span",yt,T(a(e).text),1),g("span",{class:E(["arrow",o.value?"down":"right"])},null,2)],8,Lt),$(Ce,null,{default:N(()=>[q(g("ul",wt,[(r(!0),c(I,null,A(a(e).children,u=>(r(),c("li",{key:u.text,class:"navbar-dropdown-item"},[u.children?(r(),c(I,{key:0},[g("h4",Ct,[u.link?(r(),x(H,{key:0,item:u,onFocusout:v=>_(u,a(e).children)&&u.children.length===0&&(o.value=!1)},null,8,["item","onFocusout"])):(r(),c("span",St,T(u.text),1))]),g("ul",xt,[(r(!0),c(I,null,A(u.children,v=>(r(),c("li",{key:v.link,class:"navbar-dropdown-subitem"},[$(H,{item:v,onFocusout:p=>_(v,u.children)&&_(u,a(e).children)&&(o.value=!1)},null,8,["item","onFocusout"])]))),128))])],64)):(r(),x(H,{key:1,item:u,onFocusout:v=>_(u,a(e).children)&&(o.value=!1)},null,8,["item","onFocusout"]))]))),128))],512),[[G,o.value]])]),_:1})],2))}});var Bt=C(Tt,[["__file","NavbarDropdown.vue"]]);const _e=l=>decodeURI(l).replace(/#.*$/,"").replace(/(index)?\.(md|html)$/,""),Nt=(l,t)=>{if(t.hash===l)return!0;const e=_e(t.path),i=_e(l);return e===i},Se=(l,t)=>l.link&&Nt(l.link,t)?!0:l.children?l.children.some(e=>Se(e,t)):!1,xe=l=>!X(l)||/github\.com/.test(l)?"GitHub":/bitbucket\.org/.test(l)?"Bitbucket":/gitlab\.com/.test(l)?"GitLab":/gitee\.com/.test(l)?"Gitee":null,Dt={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},It=({docsRepo:l,editLinkPattern:t})=>{if(t)return t;const e=xe(l);return e!==null?Dt[e]:null},Mt=({docsRepo:l,docsBranch:t,docsDir:e,filePathRelative:i,editLinkPattern:o})=>{if(!i)return null;const d=It({docsRepo:l,editLinkPattern:o});return d?d.replace(/:repo/,X(l)?l:`https://github.com/${l}`).replace(/:branch/,t).replace(/:path/,Re(`${Ae(e)}/${i}`)):null},Ht={key:0,class:"navbar-items"},Pt=S({setup(l){const t=()=>{const s=te(),u=ge(),v=Z(),p=D();return h(()=>{var B,M;const b=Object.keys(v.value.locales);if(b.length<2)return[];const k=s.currentRoute.value.path,L=s.currentRoute.value.fullPath;return[{text:(B=p.value.selectLanguageText)!=null?B:"unknown language",ariaLabel:(M=p.value.selectLanguageAriaLabel)!=null?M:"unkown language",children:b.map(O=>{var oe,se,le,ue,ie,ce;const W=(se=(oe=v.value.locales)==null?void 0:oe[O])!=null?se:{},ne=(ue=(le=p.value.locales)==null?void 0:le[O])!=null?ue:{},re=`${W.lang}`,Be=(ie=ne.selectLanguageName)!=null?ie:re;let V;if(re===v.value.lang)V=L;else{const ve=k.replace(u.value,O);s.getRoutes().some(Ne=>Ne.path===ve)?V=ve:V=(ce=ne.home)!=null?ce:O}return{text:Be,link:V}})}]})},e=()=>{const s=D(),u=h(()=>s.value.repo),v=h(()=>u.value?xe(u.value):null),p=h(()=>u.value&&!X(u.value)?`https://github.com/${u.value}`:u.value),b=h(()=>p.value?s.value.repoLabel?s.value.repoLabel:v.value===null?"Source":v.value:null);return h(()=>!p.value||!b.value?[]:[{text:b.value,link:p.value}])},i=s=>Le(s)?ye(s):s.children?J(Y({},s),{children:s.children.map(i)}):s,d=(()=>{const s=D();return h(()=>(s.value.navbar||[]).map(i))})(),f=t(),_=e(),n=h(()=>[...d.value,...f.value,..._.value]);return(s,u)=>a(n).length?(r(),c("nav",Ht,[(r(!0),c(I,null,A(a(n),v=>(r(),c("div",{key:v.text,class:"navbar-item"},[v.children?(r(),x(Bt,{key:0,item:v},null,8,["item"])):(r(),x(H,{key:1,item:v},null,8,["item"]))]))),128))])):w("",!0)}});var Te=C(Pt,[["__file","NavbarItems.vue"]]);const Et=["title"],Rt={class:"icon",focusable:"false",viewBox:"0 0 32 32"},At=Oe('',9),Ot=[At],Ft={class:"icon",focusable:"false",viewBox:"0 0 32 32"},zt=g("path",{d:"M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z",fill:"currentColor"},null,-1),Wt=[zt],Vt=S({setup(l){const t=D(),e=ee(),i=()=>{e.value=!e.value};return(o,d)=>(r(),c("button",{class:"toggle-dark-button",title:a(t).toggleDarkMode,onClick:i},[q((r(),c("svg",Rt,Ot,512)),[[G,!a(e)]]),q((r(),c("svg",Ft,Wt,512)),[[G,a(e)]])],8,Et))}});var Ut=C(Vt,[["__file","ToggleDarkModeButton.vue"]]);const jt=["title"],Kt=g("div",{class:"icon","aria-hidden":"true"},[g("span"),g("span"),g("span")],-1),qt=[Kt],Gt=S({emits:["toggle"],setup(l){const t=D();return(e,i)=>(r(),c("div",{class:"toggle-sidebar-button",title:a(t).toggleSidebar,"aria-expanded":"false",role:"button",tabindex:"0",onClick:i[0]||(i[0]=o=>e.$emit("toggle"))},qt,8,jt))}});var Xt=C(Gt,[["__file","ToggleSidebarButton.vue"]]);const Yt=S({emits:["toggle-sidebar"],setup(l){const t=D(),e=F(null),i=F(null),o=F(0),d=h(()=>o.value?{maxWidth:o.value+"px"}:{}),f=h(()=>t.value.darkMode);we(()=>{const s=_(e.value,"paddingLeft")+_(e.value,"paddingRight"),u=()=>{var v;window.innerWidth<=719?o.value=0:o.value=e.value.offsetWidth-s-(((v=i.value)==null?void 0:v.offsetWidth)||0)};u(),window.addEventListener("resize",u,!1),window.addEventListener("orientationchange",u,!1)});function _(n,s){var p,b,k;const u=(k=(b=(p=n==null?void 0:n.ownerDocument)==null?void 0:p.defaultView)==null?void 0:b.getComputedStyle(n,null))==null?void 0:k[s],v=Number.parseInt(u,10);return Number.isNaN(v)?0:v}return(n,s)=>{const u=R("NavbarSearch");return r(),c("header",{ref_key:"navbar",ref:e,class:"navbar"},[$(Xt,{onToggle:s[0]||(s[0]=v=>n.$emit("toggle-sidebar"))}),g("span",{ref_key:"navbarBrand",ref:i},[$(mt)],512),g("div",{class:"navbar-items-wrapper",style:Fe(a(d))},[y(n.$slots,"before"),$(Te,{class:"can-hide"}),y(n.$slots,"after"),a(f)?(r(),x(Ut,{key:0})):w("",!0),$(u)],4)],512)}}});var Jt=C(Yt,[["__file","Navbar.vue"]]);const Qt={class:"page-meta"},Zt={key:0,class:"meta-item edit-link"},ea={key:1,class:"meta-item last-updated"},ta={class:"meta-item-label"},aa={class:"meta-item-info"},na={key:2,class:"meta-item contributors"},ra={class:"meta-item-label"},oa={class:"meta-item-info"},sa=["title"],la=j(", "),ua=S({setup(l){const t=()=>{const n=D(),s=U(),u=P();return h(()=>{var M,O,W;if(!((O=(M=u.value.editLink)!=null?M:n.value.editLink)!=null?O:!0))return null;const{repo:p,docsRepo:b=p,docsBranch:k="main",docsDir:L="",editLinkText:m}=n.value;if(!b)return null;const B=Mt({docsRepo:b,docsBranch:k,docsDir:L,filePathRelative:s.value.filePathRelative,editLinkPattern:(W=u.value.editLinkPattern)!=null?W:n.value.editLinkPattern});return B?{text:m!=null?m:"Edit this page",link:B}:null})},e=()=>{const n=D(),s=U(),u=P();return h(()=>{var b,k,L,m;return!((k=(b=u.value.lastUpdated)!=null?b:n.value.lastUpdated)!=null?k:!0)||!((L=s.value.git)!=null&&L.updatedTime)?null:new Date((m=s.value.git)==null?void 0:m.updatedTime).toLocaleString()})},i=()=>{const n=D(),s=U(),u=P();return h(()=>{var p,b,k,L;return((b=(p=u.value.contributors)!=null?p:n.value.contributors)!=null?b:!0)&&(L=(k=s.value.git)==null?void 0:k.contributors)!=null?L:null})},o=D(),d=t(),f=e(),_=i();return(n,s)=>{const u=R("ClientOnly");return r(),c("footer",Qt,[a(d)?(r(),c("div",Zt,[$(H,{class:"meta-item-label",item:a(d)},null,8,["item"])])):w("",!0),a(f)?(r(),c("div",ea,[g("span",ta,T(a(o).lastUpdatedText)+": ",1),$(u,null,{default:N(()=>[g("span",aa,T(a(f)),1)]),_:1})])):w("",!0),a(_)&&a(_).length?(r(),c("div",na,[g("span",ra,T(a(o).contributorsText)+": ",1),g("span",oa,[(r(!0),c(I,null,A(a(_),(v,p)=>(r(),c(I,{key:p},[g("span",{class:"contributor",title:`email: ${v.email}`},T(v.name),9,sa),p!==a(_).length-1?(r(),c(I,{key:0},[la],64)):w("",!0)],64))),128))])])):w("",!0)])}}});var ia=C(ua,[["__file","PageMeta.vue"]]);const ca={key:0,class:"page-nav"},va={class:"inner"},da={key:0,class:"prev"},pa={key:1,class:"next"},ha=S({setup(l){const t=n=>n===!1?null:Le(n)?ye(n):ze(n)?n:!1,e=(n,s,u)=>{const v=n.findIndex(p=>p.link===s);if(v!==-1){const p=n[v+u];return p!=null&&p.link?p:null}for(const p of n)if(p.children){const b=e(p.children,s,u);if(b)return b}return null},i=P(),o=ae(),d=z(),f=h(()=>{const n=t(i.value.prev);return n!==!1?n:e(o.value,d.path,-1)}),_=h(()=>{const n=t(i.value.next);return n!==!1?n:e(o.value,d.path,1)});return(n,s)=>a(f)||a(_)?(r(),c("nav",ca,[g("p",va,[a(f)?(r(),c("span",da,[$(H,{item:a(f)},null,8,["item"])])):w("",!0),a(_)?(r(),c("span",pa,[$(H,{item:a(_)},null,8,["item"])])):w("",!0)])])):w("",!0)}});var _a=C(ha,[["__file","PageNav.vue"]]);const fa={class:"page"},ma={class:"theme-default-content"},ba=S({setup(l){return(t,e)=>{const i=R("Content");return r(),c("main",fa,[y(t.$slots,"top"),g("div",ma,[$(i)]),$(ia),$(_a),y(t.$slots,"bottom")])}}});var ga=C(ba,[["__file","Page.vue"]]);const ka={class:"sidebar-item-children"},$a=S({props:{item:{type:Object,required:!0},depth:{type:Number,required:!1,default:0}},setup(l){const t=l,{item:e,depth:i}=Q(t),o=z(),d=te(),f=h(()=>Se(e.value,o)),_=h(()=>({"sidebar-item":!0,"sidebar-heading":i.value===0,active:f.value,collapsible:e.value.collapsible})),n=F(!0),s=F(void 0);return e.value.collapsible&&(n.value=f.value,s.value=()=>{n.value=!n.value},d.afterEach(()=>{n.value=f.value})),(u,v)=>{var b;const p=R("SidebarItem",!0);return r(),c("li",null,[a(e).link?(r(),x(H,{key:0,class:E(a(_)),item:a(e)},null,8,["class","item"])):(r(),c("p",{key:1,tabindex:"0",class:E(a(_)),onClick:v[0]||(v[0]=(...k)=>s.value&&s.value(...k)),onKeydown:v[1]||(v[1]=We((...k)=>s.value&&s.value(...k),["enter"]))},[j(T(a(e).text)+" ",1),a(e).collapsible?(r(),c("span",{key:0,class:E(["arrow",n.value?"down":"right"])},null,2)):w("",!0)],34)),(b=a(e).children)!=null&&b.length?(r(),x(Ce,{key:2},{default:N(()=>[q(g("ul",ka,[(r(!0),c(I,null,A(a(e).children,k=>(r(),x(p,{key:`${a(i)}${k.text}${k.link}`,item:k,depth:a(i)+1},null,8,["item","depth"]))),128))],512),[[G,n.value]])]),_:1})):w("",!0)])}}});var La=C($a,[["__file","SidebarItem.vue"]]);const ya={key:0,class:"sidebar-items"},wa=S({setup(l){const t=z(),e=ae();return $e(()=>t.hash,i=>{const o=document.querySelector(".sidebar");if(!o)return;const d=document.querySelector(`.sidebar a.sidebar-item[href="${t.path}${i}"]`);if(!d)return;const f=o.getBoundingClientRect().top,_=o.getBoundingClientRect().height,n=d.getBoundingClientRect().top,s=d.getBoundingClientRect().height;nf+_&&d.scrollIntoView(!1)}),(i,o)=>a(e).length?(r(),c("ul",ya,[(r(!0),c(I,null,A(a(e),d=>(r(),x(La,{key:d.link||d.text,item:d},null,8,["item"]))),128))])):w("",!0)}});var Ca=C(wa,[["__file","SidebarItems.vue"]]);const Sa={class:"sidebar"},xa=S({setup(l){return(t,e)=>(r(),c("aside",Sa,[$(Te),y(t.$slots,"top"),$(Ca),y(t.$slots,"bottom")]))}});var Ta=C(xa,[["__file","Sidebar.vue"]]);const Ba=S({setup(l){const t=U(),e=P(),i=D(),o=h(()=>e.value.navbar!==!1&&i.value.navbar!==!1),d=ae(),f=F(!1),_=m=>{f.value=typeof m=="boolean"?m:!f.value},n={x:0,y:0},s=m=>{n.x=m.changedTouches[0].clientX,n.y=m.changedTouches[0].clientY},u=m=>{const B=m.changedTouches[0].clientX-n.x,M=m.changedTouches[0].clientY-n.y;Math.abs(B)>Math.abs(M)&&Math.abs(B)>40&&(B>0&&n.x<=80?_(!0):_(!1))},v=h(()=>[{"no-navbar":!o.value,"no-sidebar":!d.value.length,"sidebar-open":f.value},e.value.pageClass]);let p;we(()=>{p=te().afterEach(()=>{_(!1)})}),Ve(()=>{p()});const b=Ue(),k=b.resolve,L=b.pending;return(m,B)=>(r(),c("div",{class:E(["theme-container",a(v)]),onTouchstart:s,onTouchend:u},[y(m.$slots,"navbar",{},()=>[a(o)?(r(),x(Jt,{key:0,onToggleSidebar:_},{before:N(()=>[y(m.$slots,"navbar-before")]),after:N(()=>[y(m.$slots,"navbar-after")]),_:3})):w("",!0)]),g("div",{class:"sidebar-mask",onClick:B[0]||(B[0]=M=>_(!1))}),y(m.$slots,"sidebar",{},()=>[$(Ta,null,{top:N(()=>[y(m.$slots,"sidebar-top")]),bottom:N(()=>[y(m.$slots,"sidebar-bottom")]),_:3})]),y(m.$slots,"page",{},()=>[a(e).home?(r(),x(_t,{key:0})):(r(),x(ke,{key:1,name:"fade-slide-y",mode:"out-in",onBeforeEnter:a(k),onBeforeLeave:a(L)},{default:N(()=>[(r(),x(ga,{key:a(t).path},{top:N(()=>[y(m.$slots,"page-top")]),bottom:N(()=>[y(m.$slots,"page-bottom")]),_:3}))]),_:3},8,["onBeforeEnter","onBeforeLeave"]))])],34))}});var Ia=C(Ba,[["__file","Layout.vue"]]);export{Ia as default}; +var De=Object.defineProperty,Ie=Object.defineProperties;var Me=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var pe=(l,t,e)=>t in l?De(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e,Y=(l,t)=>{for(var e in t||(t={}))He.call(t,e)&&pe(l,e,t[e]);if(de)for(var e of de(t))Pe.call(t,e)&&pe(l,e,t[e]);return l},J=(l,t)=>Ie(l,Me(t));import{_ as C,j as R,b as r,c,m as $,d as S,A as P,B as h,C as fe,u as a,F as I,D as A,E as w,e as g,t as T,G as z,H as Q,I as x,q as N,J as he,r as y,x as j,K as X,L as Ee,M as Z,N as ee,O as K,P as me,Q as be,R as E,y as ge,z as D,T as ke,h as F,w as $e,k as q,S as G,U as Re,V as Ae,W as te,X as Le,Y as ye,s as Oe,o as we,n as Fe,Z as U,$ as ae,a0 as ze,a1 as We,a as Ve,a2 as Ue}from"./app.e8329c2e.js";const je=l=>/^mailto:/.test(l),Ke=l=>/^tel:/.test(l),qe={},Ge={class:"theme-default-content custom"};function Xe(l,t){const e=R("Content");return r(),c("div",Ge,[$(e)])}var Ye=C(qe,[["render",Xe],["__file","HomeContent.vue"]]);const Je={key:0,class:"features"},Qe=S({setup(l){const t=P(),e=h(()=>fe(t.value.features)?t.value.features:[]);return(i,o)=>a(e).length?(r(),c("div",Je,[(r(!0),c(I,null,A(a(e),d=>(r(),c("div",{key:d.title,class:"feature"},[g("h2",null,T(d.title),1),g("p",null,T(d.details),1)]))),128))])):w("",!0)}});var Ze=C(Qe,[["__file","HomeFeatures.vue"]]);const et=["innerHTML"],tt=["textContent"],at=S({setup(l){const t=P(),e=h(()=>t.value.footer),i=h(()=>t.value.footerHtml);return(o,d)=>a(e)?(r(),c(I,{key:0},[a(i)?(r(),c("div",{key:0,class:"footer",innerHTML:a(e)},null,8,et)):(r(),c("div",{key:1,class:"footer",textContent:T(a(e))},null,8,tt))],64)):w("",!0)}});var nt=C(at,[["__file","HomeFooter.vue"]]);const rt=["href","rel","target","aria-label"],ot=S({inheritAttrs:!1}),st=S(J(Y({},ot),{props:{item:{type:Object,required:!0}},setup(l){const t=l,e=z(),i=Ee(),{item:o}=Q(t),d=h(()=>X(o.value.link)),f=h(()=>je(o.value.link)||Ke(o.value.link)),_=h(()=>{if(!f.value){if(o.value.target)return o.value.target;if(d.value)return"_blank"}}),n=h(()=>_.value==="_blank"),s=h(()=>!d.value&&!f.value&&!n.value),u=h(()=>{if(!f.value){if(o.value.rel)return o.value.rel;if(n.value)return"noopener noreferrer"}}),v=h(()=>o.value.ariaLabel||o.value.text),p=h(()=>{const L=Object.keys(i.value.locales);return L.length?!L.some(m=>m===o.value.link):o.value.link!=="/"}),b=h(()=>p.value?e.path.startsWith(o.value.link):!1),k=h(()=>s.value?o.value.activeMatch?new RegExp(o.value.activeMatch).test(e.path):b.value:!1);return(L,m)=>{const B=R("RouterLink"),M=R("AutoLinkExternalIcon");return a(s)?(r(),x(B,he({key:0,class:{"router-link-active":a(k)},to:a(o).link,"aria-label":a(v)},L.$attrs),{default:N(()=>[y(L.$slots,"before"),j(" "+T(a(o).text)+" ",1),y(L.$slots,"after")]),_:3},16,["class","to","aria-label"])):(r(),c("a",he({key:1,class:"external-link",href:a(o).link,rel:a(u),target:a(_),"aria-label":a(v)},L.$attrs),[y(L.$slots,"before"),j(" "+T(a(o).text)+" ",1),a(n)?(r(),x(M,{key:0})):w("",!0),y(L.$slots,"after")],16,rt))}}}));var H=C(st,[["__file","AutoLink.vue"]]);const lt={class:"hero"},ut={key:0,id:"main-title"},it={key:1,class:"description"},ct={key:2,class:"actions"},vt=S({setup(l){const t=P(),e=Z(),i=ee(),o=h(()=>i.value&&t.value.heroImageDark!==void 0?t.value.heroImageDark:t.value.heroImage),d=h(()=>t.value.heroText===null?null:t.value.heroText||e.value.title||"Hello"),f=h(()=>t.value.heroAlt||d.value||"hero"),_=h(()=>t.value.tagline===null?null:t.value.tagline||e.value.description||"Welcome to your VuePress site"),n=h(()=>fe(t.value.actions)?t.value.actions.map(({text:u,link:v,type:p="primary"})=>({text:u,link:v,type:p})):[]),s=()=>{if(!o.value)return null;const u=K("img",{src:me(o.value),alt:f.value});return t.value.heroImageDark===void 0?u:K(be,()=>u)};return(u,v)=>(r(),c("header",lt,[$(s),a(d)?(r(),c("h1",ut,T(a(d)),1)):w("",!0),a(_)?(r(),c("p",it,T(a(_)),1)):w("",!0),a(n).length?(r(),c("p",ct,[(r(!0),c(I,null,A(a(n),p=>(r(),x(H,{key:p.text,class:E(["action-button",[p.type]]),item:p},null,8,["class","item"]))),128))])):w("",!0)]))}});var dt=C(vt,[["__file","HomeHero.vue"]]);const pt={class:"home"},ht=S({setup(l){return(t,e)=>(r(),c("main",pt,[$(dt),$(Ze),$(Ye),$(nt)]))}});var _t=C(ht,[["__file","Home.vue"]]);const ft=S({setup(l){const t=ge(),e=Z(),i=D(),o=ee(),d=h(()=>i.value.home||t.value),f=h(()=>e.value.title),_=h(()=>o.value&&i.value.logoDark!==void 0?i.value.logoDark:i.value.logo),n=()=>{if(!_.value)return null;const s=K("img",{class:"logo",src:me(_.value),alt:f.value});return i.value.logoDark===void 0?s:K(be,()=>s)};return(s,u)=>{const v=R("RouterLink");return r(),x(v,{to:a(d)},{default:N(()=>[$(n),a(f)?(r(),c("span",{key:0,class:E(["site-name",{"can-hide":a(_)}])},T(a(f)),3)):w("",!0)]),_:1},8,["to"])}}});var mt=C(ft,[["__file","NavbarBrand.vue"]]);const bt=S({setup(l){const t=i=>{i.style.height=i.scrollHeight+"px"},e=i=>{i.style.height=""};return(i,o)=>(r(),x(ke,{name:"dropdown",onEnter:t,onAfterEnter:e,onBeforeLeave:t},{default:N(()=>[y(i.$slots,"default")]),_:3}))}});var Ce=C(bt,[["__file","DropdownTransition.vue"]]);const gt=["aria-label"],kt={class:"title"},$t=g("span",{class:"arrow down"},null,-1),Lt=["aria-label"],yt={class:"title"},wt={class:"navbar-dropdown"},Ct={class:"navbar-dropdown-subtitle"},St={key:1},xt={class:"navbar-dropdown-subitem-wrapper"},Tt=S({props:{item:{type:Object,required:!0}},setup(l){const t=l,{item:e}=Q(t),i=h(()=>e.value.ariaLabel||e.value.text),o=F(!1),d=z();$e(()=>d.path,()=>{o.value=!1});const f=n=>{n.detail===0?o.value=!o.value:o.value=!1},_=(n,s)=>s[s.length-1]===n;return(n,s)=>(r(),c("div",{class:E(["navbar-dropdown-wrapper",{open:o.value}])},[g("button",{class:"navbar-dropdown-title",type:"button","aria-label":a(i),onClick:f},[g("span",kt,T(a(e).text),1),$t],8,gt),g("button",{class:"navbar-dropdown-title-mobile",type:"button","aria-label":a(i),onClick:s[0]||(s[0]=u=>o.value=!o.value)},[g("span",yt,T(a(e).text),1),g("span",{class:E(["arrow",o.value?"down":"right"])},null,2)],8,Lt),$(Ce,null,{default:N(()=>[q(g("ul",wt,[(r(!0),c(I,null,A(a(e).children,u=>(r(),c("li",{key:u.text,class:"navbar-dropdown-item"},[u.children?(r(),c(I,{key:0},[g("h4",Ct,[u.link?(r(),x(H,{key:0,item:u,onFocusout:v=>_(u,a(e).children)&&u.children.length===0&&(o.value=!1)},null,8,["item","onFocusout"])):(r(),c("span",St,T(u.text),1))]),g("ul",xt,[(r(!0),c(I,null,A(u.children,v=>(r(),c("li",{key:v.link,class:"navbar-dropdown-subitem"},[$(H,{item:v,onFocusout:p=>_(v,u.children)&&_(u,a(e).children)&&(o.value=!1)},null,8,["item","onFocusout"])]))),128))])],64)):(r(),x(H,{key:1,item:u,onFocusout:v=>_(u,a(e).children)&&(o.value=!1)},null,8,["item","onFocusout"]))]))),128))],512),[[G,o.value]])]),_:1})],2))}});var Bt=C(Tt,[["__file","NavbarDropdown.vue"]]);const _e=l=>decodeURI(l).replace(/#.*$/,"").replace(/(index)?\.(md|html)$/,""),Nt=(l,t)=>{if(t.hash===l)return!0;const e=_e(t.path),i=_e(l);return e===i},Se=(l,t)=>l.link&&Nt(l.link,t)?!0:l.children?l.children.some(e=>Se(e,t)):!1,xe=l=>!X(l)||/github\.com/.test(l)?"GitHub":/bitbucket\.org/.test(l)?"Bitbucket":/gitlab\.com/.test(l)?"GitLab":/gitee\.com/.test(l)?"Gitee":null,Dt={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},It=({docsRepo:l,editLinkPattern:t})=>{if(t)return t;const e=xe(l);return e!==null?Dt[e]:null},Mt=({docsRepo:l,docsBranch:t,docsDir:e,filePathRelative:i,editLinkPattern:o})=>{if(!i)return null;const d=It({docsRepo:l,editLinkPattern:o});return d?d.replace(/:repo/,X(l)?l:`https://github.com/${l}`).replace(/:branch/,t).replace(/:path/,Re(`${Ae(e)}/${i}`)):null},Ht={key:0,class:"navbar-items"},Pt=S({setup(l){const t=()=>{const s=te(),u=ge(),v=Z(),p=D();return h(()=>{var B,M;const b=Object.keys(v.value.locales);if(b.length<2)return[];const k=s.currentRoute.value.path,L=s.currentRoute.value.fullPath;return[{text:(B=p.value.selectLanguageText)!=null?B:"unknown language",ariaLabel:(M=p.value.selectLanguageAriaLabel)!=null?M:"unkown language",children:b.map(O=>{var oe,se,le,ue,ie,ce;const W=(se=(oe=v.value.locales)==null?void 0:oe[O])!=null?se:{},ne=(ue=(le=p.value.locales)==null?void 0:le[O])!=null?ue:{},re=`${W.lang}`,Be=(ie=ne.selectLanguageName)!=null?ie:re;let V;if(re===v.value.lang)V=L;else{const ve=k.replace(u.value,O);s.getRoutes().some(Ne=>Ne.path===ve)?V=ve:V=(ce=ne.home)!=null?ce:O}return{text:Be,link:V}})}]})},e=()=>{const s=D(),u=h(()=>s.value.repo),v=h(()=>u.value?xe(u.value):null),p=h(()=>u.value&&!X(u.value)?`https://github.com/${u.value}`:u.value),b=h(()=>p.value?s.value.repoLabel?s.value.repoLabel:v.value===null?"Source":v.value:null);return h(()=>!p.value||!b.value?[]:[{text:b.value,link:p.value}])},i=s=>Le(s)?ye(s):s.children?J(Y({},s),{children:s.children.map(i)}):s,d=(()=>{const s=D();return h(()=>(s.value.navbar||[]).map(i))})(),f=t(),_=e(),n=h(()=>[...d.value,...f.value,..._.value]);return(s,u)=>a(n).length?(r(),c("nav",Ht,[(r(!0),c(I,null,A(a(n),v=>(r(),c("div",{key:v.text,class:"navbar-item"},[v.children?(r(),x(Bt,{key:0,item:v},null,8,["item"])):(r(),x(H,{key:1,item:v},null,8,["item"]))]))),128))])):w("",!0)}});var Te=C(Pt,[["__file","NavbarItems.vue"]]);const Et=["title"],Rt={class:"icon",focusable:"false",viewBox:"0 0 32 32"},At=Oe('',9),Ot=[At],Ft={class:"icon",focusable:"false",viewBox:"0 0 32 32"},zt=g("path",{d:"M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z",fill:"currentColor"},null,-1),Wt=[zt],Vt=S({setup(l){const t=D(),e=ee(),i=()=>{e.value=!e.value};return(o,d)=>(r(),c("button",{class:"toggle-dark-button",title:a(t).toggleDarkMode,onClick:i},[q((r(),c("svg",Rt,Ot,512)),[[G,!a(e)]]),q((r(),c("svg",Ft,Wt,512)),[[G,a(e)]])],8,Et))}});var Ut=C(Vt,[["__file","ToggleDarkModeButton.vue"]]);const jt=["title"],Kt=g("div",{class:"icon","aria-hidden":"true"},[g("span"),g("span"),g("span")],-1),qt=[Kt],Gt=S({emits:["toggle"],setup(l){const t=D();return(e,i)=>(r(),c("div",{class:"toggle-sidebar-button",title:a(t).toggleSidebar,"aria-expanded":"false",role:"button",tabindex:"0",onClick:i[0]||(i[0]=o=>e.$emit("toggle"))},qt,8,jt))}});var Xt=C(Gt,[["__file","ToggleSidebarButton.vue"]]);const Yt=S({emits:["toggle-sidebar"],setup(l){const t=D(),e=F(null),i=F(null),o=F(0),d=h(()=>o.value?{maxWidth:o.value+"px"}:{}),f=h(()=>t.value.darkMode);we(()=>{const s=_(e.value,"paddingLeft")+_(e.value,"paddingRight"),u=()=>{var v;window.innerWidth<=719?o.value=0:o.value=e.value.offsetWidth-s-(((v=i.value)==null?void 0:v.offsetWidth)||0)};u(),window.addEventListener("resize",u,!1),window.addEventListener("orientationchange",u,!1)});function _(n,s){var p,b,k;const u=(k=(b=(p=n==null?void 0:n.ownerDocument)==null?void 0:p.defaultView)==null?void 0:b.getComputedStyle(n,null))==null?void 0:k[s],v=Number.parseInt(u,10);return Number.isNaN(v)?0:v}return(n,s)=>{const u=R("NavbarSearch");return r(),c("header",{ref_key:"navbar",ref:e,class:"navbar"},[$(Xt,{onToggle:s[0]||(s[0]=v=>n.$emit("toggle-sidebar"))}),g("span",{ref_key:"navbarBrand",ref:i},[$(mt)],512),g("div",{class:"navbar-items-wrapper",style:Fe(a(d))},[y(n.$slots,"before"),$(Te,{class:"can-hide"}),y(n.$slots,"after"),a(f)?(r(),x(Ut,{key:0})):w("",!0),$(u)],4)],512)}}});var Jt=C(Yt,[["__file","Navbar.vue"]]);const Qt={class:"page-meta"},Zt={key:0,class:"meta-item edit-link"},ea={key:1,class:"meta-item last-updated"},ta={class:"meta-item-label"},aa={class:"meta-item-info"},na={key:2,class:"meta-item contributors"},ra={class:"meta-item-label"},oa={class:"meta-item-info"},sa=["title"],la=j(", "),ua=S({setup(l){const t=()=>{const n=D(),s=U(),u=P();return h(()=>{var M,O,W;if(!((O=(M=u.value.editLink)!=null?M:n.value.editLink)!=null?O:!0))return null;const{repo:p,docsRepo:b=p,docsBranch:k="main",docsDir:L="",editLinkText:m}=n.value;if(!b)return null;const B=Mt({docsRepo:b,docsBranch:k,docsDir:L,filePathRelative:s.value.filePathRelative,editLinkPattern:(W=u.value.editLinkPattern)!=null?W:n.value.editLinkPattern});return B?{text:m!=null?m:"Edit this page",link:B}:null})},e=()=>{const n=D(),s=U(),u=P();return h(()=>{var b,k,L,m;return!((k=(b=u.value.lastUpdated)!=null?b:n.value.lastUpdated)!=null?k:!0)||!((L=s.value.git)!=null&&L.updatedTime)?null:new Date((m=s.value.git)==null?void 0:m.updatedTime).toLocaleString()})},i=()=>{const n=D(),s=U(),u=P();return h(()=>{var p,b,k,L;return((b=(p=u.value.contributors)!=null?p:n.value.contributors)!=null?b:!0)&&(L=(k=s.value.git)==null?void 0:k.contributors)!=null?L:null})},o=D(),d=t(),f=e(),_=i();return(n,s)=>{const u=R("ClientOnly");return r(),c("footer",Qt,[a(d)?(r(),c("div",Zt,[$(H,{class:"meta-item-label",item:a(d)},null,8,["item"])])):w("",!0),a(f)?(r(),c("div",ea,[g("span",ta,T(a(o).lastUpdatedText)+": ",1),$(u,null,{default:N(()=>[g("span",aa,T(a(f)),1)]),_:1})])):w("",!0),a(_)&&a(_).length?(r(),c("div",na,[g("span",ra,T(a(o).contributorsText)+": ",1),g("span",oa,[(r(!0),c(I,null,A(a(_),(v,p)=>(r(),c(I,{key:p},[g("span",{class:"contributor",title:`email: ${v.email}`},T(v.name),9,sa),p!==a(_).length-1?(r(),c(I,{key:0},[la],64)):w("",!0)],64))),128))])])):w("",!0)])}}});var ia=C(ua,[["__file","PageMeta.vue"]]);const ca={key:0,class:"page-nav"},va={class:"inner"},da={key:0,class:"prev"},pa={key:1,class:"next"},ha=S({setup(l){const t=n=>n===!1?null:Le(n)?ye(n):ze(n)?n:!1,e=(n,s,u)=>{const v=n.findIndex(p=>p.link===s);if(v!==-1){const p=n[v+u];return p!=null&&p.link?p:null}for(const p of n)if(p.children){const b=e(p.children,s,u);if(b)return b}return null},i=P(),o=ae(),d=z(),f=h(()=>{const n=t(i.value.prev);return n!==!1?n:e(o.value,d.path,-1)}),_=h(()=>{const n=t(i.value.next);return n!==!1?n:e(o.value,d.path,1)});return(n,s)=>a(f)||a(_)?(r(),c("nav",ca,[g("p",va,[a(f)?(r(),c("span",da,[$(H,{item:a(f)},null,8,["item"])])):w("",!0),a(_)?(r(),c("span",pa,[$(H,{item:a(_)},null,8,["item"])])):w("",!0)])])):w("",!0)}});var _a=C(ha,[["__file","PageNav.vue"]]);const fa={class:"page"},ma={class:"theme-default-content"},ba=S({setup(l){return(t,e)=>{const i=R("Content");return r(),c("main",fa,[y(t.$slots,"top"),g("div",ma,[$(i)]),$(ia),$(_a),y(t.$slots,"bottom")])}}});var ga=C(ba,[["__file","Page.vue"]]);const ka={class:"sidebar-item-children"},$a=S({props:{item:{type:Object,required:!0},depth:{type:Number,required:!1,default:0}},setup(l){const t=l,{item:e,depth:i}=Q(t),o=z(),d=te(),f=h(()=>Se(e.value,o)),_=h(()=>({"sidebar-item":!0,"sidebar-heading":i.value===0,active:f.value,collapsible:e.value.collapsible})),n=F(!0),s=F(void 0);return e.value.collapsible&&(n.value=f.value,s.value=()=>{n.value=!n.value},d.afterEach(()=>{n.value=f.value})),(u,v)=>{var b;const p=R("SidebarItem",!0);return r(),c("li",null,[a(e).link?(r(),x(H,{key:0,class:E(a(_)),item:a(e)},null,8,["class","item"])):(r(),c("p",{key:1,tabindex:"0",class:E(a(_)),onClick:v[0]||(v[0]=(...k)=>s.value&&s.value(...k)),onKeydown:v[1]||(v[1]=We((...k)=>s.value&&s.value(...k),["enter"]))},[j(T(a(e).text)+" ",1),a(e).collapsible?(r(),c("span",{key:0,class:E(["arrow",n.value?"down":"right"])},null,2)):w("",!0)],34)),(b=a(e).children)!=null&&b.length?(r(),x(Ce,{key:2},{default:N(()=>[q(g("ul",ka,[(r(!0),c(I,null,A(a(e).children,k=>(r(),x(p,{key:`${a(i)}${k.text}${k.link}`,item:k,depth:a(i)+1},null,8,["item","depth"]))),128))],512),[[G,n.value]])]),_:1})):w("",!0)])}}});var La=C($a,[["__file","SidebarItem.vue"]]);const ya={key:0,class:"sidebar-items"},wa=S({setup(l){const t=z(),e=ae();return $e(()=>t.hash,i=>{const o=document.querySelector(".sidebar");if(!o)return;const d=document.querySelector(`.sidebar a.sidebar-item[href="${t.path}${i}"]`);if(!d)return;const f=o.getBoundingClientRect().top,_=o.getBoundingClientRect().height,n=d.getBoundingClientRect().top,s=d.getBoundingClientRect().height;nf+_&&d.scrollIntoView(!1)}),(i,o)=>a(e).length?(r(),c("ul",ya,[(r(!0),c(I,null,A(a(e),d=>(r(),x(La,{key:d.link||d.text,item:d},null,8,["item"]))),128))])):w("",!0)}});var Ca=C(wa,[["__file","SidebarItems.vue"]]);const Sa={class:"sidebar"},xa=S({setup(l){return(t,e)=>(r(),c("aside",Sa,[$(Te),y(t.$slots,"top"),$(Ca),y(t.$slots,"bottom")]))}});var Ta=C(xa,[["__file","Sidebar.vue"]]);const Ba=S({setup(l){const t=U(),e=P(),i=D(),o=h(()=>e.value.navbar!==!1&&i.value.navbar!==!1),d=ae(),f=F(!1),_=m=>{f.value=typeof m=="boolean"?m:!f.value},n={x:0,y:0},s=m=>{n.x=m.changedTouches[0].clientX,n.y=m.changedTouches[0].clientY},u=m=>{const B=m.changedTouches[0].clientX-n.x,M=m.changedTouches[0].clientY-n.y;Math.abs(B)>Math.abs(M)&&Math.abs(B)>40&&(B>0&&n.x<=80?_(!0):_(!1))},v=h(()=>[{"no-navbar":!o.value,"no-sidebar":!d.value.length,"sidebar-open":f.value},e.value.pageClass]);let p;we(()=>{p=te().afterEach(()=>{_(!1)})}),Ve(()=>{p()});const b=Ue(),k=b.resolve,L=b.pending;return(m,B)=>(r(),c("div",{class:E(["theme-container",a(v)]),onTouchstart:s,onTouchend:u},[y(m.$slots,"navbar",{},()=>[a(o)?(r(),x(Jt,{key:0,onToggleSidebar:_},{before:N(()=>[y(m.$slots,"navbar-before")]),after:N(()=>[y(m.$slots,"navbar-after")]),_:3})):w("",!0)]),g("div",{class:"sidebar-mask",onClick:B[0]||(B[0]=M=>_(!1))}),y(m.$slots,"sidebar",{},()=>[$(Ta,null,{top:N(()=>[y(m.$slots,"sidebar-top")]),bottom:N(()=>[y(m.$slots,"sidebar-bottom")]),_:3})]),y(m.$slots,"page",{},()=>[a(e).home?(r(),x(_t,{key:0})):(r(),x(ke,{key:1,name:"fade-slide-y",mode:"out-in",onBeforeEnter:a(k),onBeforeLeave:a(L)},{default:N(()=>[(r(),x(ga,{key:a(t).path},{top:N(()=>[y(m.$slots,"page-top")]),bottom:N(()=>[y(m.$slots,"page-bottom")]),_:3}))]),_:3},8,["onBeforeEnter","onBeforeLeave"]))])],34))}});var Ia=C(Ba,[["__file","Layout.vue"]]);export{Ia as default}; diff --git a/docs/dist/assets/app.1205231e.js b/docs/dist/assets/app.e8329c2e.js similarity index 96% rename from docs/dist/assets/app.1205231e.js rename to docs/dist/assets/app.e8329c2e.js index f6221144..bf412d84 100644 --- a/docs/dist/assets/app.1205231e.js +++ b/docs/dist/assets/app.e8329c2e.js @@ -2,7 +2,7 @@ var El=Object.defineProperty,wl=Object.defineProperties;var Cl=Object.getOwnProp * vue-router v4.0.14 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const Bi=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Gt=e=>Bi?Symbol(e):"_vr_"+e,eu=Gt("rvlm"),ds=Gt("rvd"),lr=Gt("r"),vo=Gt("rl"),Dr=Gt("rvl"),Nt=typeof window!="undefined";function tu(e){return e.__esModule||Bi&&e[Symbol.toStringTag]==="Module"}const fe=Object.assign;function _r(e,t){const n={};for(const r in t){const o=t[r];n[r]=Array.isArray(o)?o.map(e):e(o)}return n}const un=()=>{},nu=/\/$/,ru=e=>e.replace(nu,"");function yr(e,t,n="/"){let r,o={},s="",i="";const l=t.indexOf("?"),a=t.indexOf("#",l>-1?l:0);return l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=lu(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function ou(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function hs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function su(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Vt(t.matched[r],n.matched[o])&&ji(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ji(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!iu(e[n],t[n]))return!1;return!0}function iu(e,t){return Array.isArray(e)?ps(e,t):Array.isArray(t)?ps(t,e):e===t}function ps(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function lu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s({left:window.pageXOffset,top:window.pageYOffset});function du(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=fu(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ms(e,t){return(history.state?history.state.position-t:-1)+e}const Hr=new Map;function hu(e,t){Hr.set(e,t)}function pu(e){const t=Hr.get(e);return Hr.delete(e),t}let mu=()=>location.protocol+"//"+location.host;function Vi(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let l=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),hs(a,"")}return hs(n,e)+r+o}function gu(e,t,n,r){let o=[],s=[],i=null;const l=({state:h})=>{const y=Vi(e,location),d=n.value,E=t.value;let g=0;if(h){if(n.value=y,t.value=h,i&&i===d){i=null;return}g=E?h.position-E.position:0}else r(y);o.forEach(v=>{v(n.value,d,{delta:g,type:_n.pop,direction:g?g>0?fn.forward:fn.back:fn.unknown})})};function a(){i=n.value}function c(h){o.push(h);const y=()=>{const d=o.indexOf(h);d>-1&&o.splice(d,1)};return s.push(y),y}function f(){const{history:h}=window;!h.state||h.replaceState(fe({},h.state,{scroll:ar()}),"")}function m(){for(const h of s)h();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f),{pauseListeners:a,listen:c,destroy:m}}function gs(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ar():null}}function vu(e){const{history:t,location:n}=window,r={value:Vi(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,c,f){const m=e.indexOf("#"),h=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+a:mu()+e+a;try{t[f?"replaceState":"pushState"](c,"",h),o.value=c}catch(y){console.error(y),n[f?"replace":"assign"](h)}}function i(a,c){const f=fe({},t.state,gs(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});s(a,f,!0),r.value=a}function l(a,c){const f=fe({},o.value,t.state,{forward:a,scroll:ar()});s(f.current,f,!0);const m=fe({},gs(r.value,a,null),{position:f.position+1},c);s(a,m,!1),r.value=a}return{location:r,state:o,push:l,replace:i}}function _u(e){e=au(e);const t=vu(e),n=gu(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=fe({location:"",base:e,go:r,createHref:uu.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function yu(e){return typeof e=="string"||e&&typeof e=="object"}function Ui(e){return typeof e=="string"||typeof e=="symbol"}const Ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},qi=Gt("nf");var vs;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(vs||(vs={}));function Ut(e,t){return fe(new Error,{type:e,[qi]:!0},t)}function lt(e,t){return e instanceof Error&&qi in e&&(t==null||!!(e.type&t))}const _s="[^/]+?",bu={sensitive:!1,strict:!1,start:!0,end:!0},Eu=/[.+*?^${}()[\]/\\]/g;function wu(e,t){const n=fe({},bu,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let m=0;mt.length?t.length===1&&t[0]===40+40?1:-1:0}function Au(e,t){let n=0;const r=e.score,o=t.score;for(;n1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:f,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l{i(T)}:un}function i(f){if(Ui(f)){const m=r.get(f);m&&(r.delete(f),n.splice(n.indexOf(m),1),m.children.forEach(i),m.alias.forEach(i))}else{const m=n.indexOf(f);m>-1&&(n.splice(m,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){let m=0;for(;m=0&&(f.record.path!==n[m].record.path||!Ki(f,n[m]));)m++;n.splice(m,0,f),f.record.name&&!ys(f)&&r.set(f.record.name,f)}function c(f,m){let h,y={},d,E;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Ut(1,{location:f});E=h.record.name,y=fe(Ru(m.params,h.keys.filter(T=>!T.optional).map(T=>T.name)),f.params),d=h.stringify(y)}else if("path"in f)d=f.path,h=n.find(T=>T.re.test(d)),h&&(y=h.parse(d),E=h.record.name);else{if(h=m.name?r.get(m.name):n.find(T=>T.re.test(m.path)),!h)throw Ut(1,{location:f,currentLocation:m});E=h.record.name,y=fe({},m.params,f.params),d=h.stringify(y)}const g=[];let v=h;for(;v;)g.unshift(v.record),v=v.parent;return{name:E,path:d,params:y,matched:g,meta:ku(g)}}return e.forEach(f=>s(f)),{addRoute:s,resolve:c,removeRoute:i,getRoutes:l,getRecordMatcher:o}}function Ru(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Lu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Iu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function Iu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function ys(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ku(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function bs(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ki(e,t){return t.children.some(n=>n===e||Ki(e,n))}const Wi=/#/g,zu=/&/g,Mu=/\//g,Nu=/=/g,Du=/\?/g,Yi=/\+/g,Hu=/%5B/g,Fu=/%5D/g,Gi=/%5E/g,$u=/%60/g,Ji=/%7B/g,Bu=/%7C/g,Zi=/%7D/g,ju=/%20/g;function _o(e){return encodeURI(""+e).replace(Bu,"|").replace(Hu,"[").replace(Fu,"]")}function Vu(e){return _o(e).replace(Ji,"{").replace(Zi,"}").replace(Gi,"^")}function Fr(e){return _o(e).replace(Yi,"%2B").replace(ju,"+").replace(Wi,"%23").replace(zu,"%26").replace($u,"`").replace(Ji,"{").replace(Zi,"}").replace(Gi,"^")}function Uu(e){return Fr(e).replace(Nu,"%3D")}function qu(e){return _o(e).replace(Wi,"%23").replace(Du,"%3F")}function Ku(e){return e==null?"":qu(e).replace(Mu,"%2F")}function Jn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Wu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&Fr(s)):[r&&Fr(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Yu(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Array.isArray(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function en(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ut(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,l)=>{const a=m=>{m===!1?l(Ut(4,{from:n,to:t})):m instanceof Error?l(m):yu(m)?l(Ut(2,{from:t,to:m})):(s&&r.enterCallbacks[o]===s&&typeof m=="function"&&s.push(m),i())},c=e.call(r&&r.instances[o],t,n,a);let f=Promise.resolve(c);e.length<3&&(f=f.then(a)),f.catch(m=>l(m))})}function br(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let l=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(Gu(l)){const c=(l.__vccOpts||l)[t];c&&o.push(ut(c,n,r,s,i))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const f=tu(c)?c.default:c;s.components[i]=f;const h=(f.__vccOpts||f)[t];return h&&ut(h,n,r,s,i)()}))}}return o}function Gu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ws(e){const t=Ce(lr),n=Ce(vo),r=ve(()=>t.resolve(Tt(e.to))),o=ve(()=>{const{matched:a}=r.value,{length:c}=a,f=a[c-1],m=n.matched;if(!f||!m.length)return-1;const h=m.findIndex(Vt.bind(null,f));if(h>-1)return h;const y=Cs(a[c-2]);return c>1&&Cs(f)===y&&m[m.length-1].path!==y?m.findIndex(Vt.bind(null,a[c-2])):h}),s=ve(()=>o.value>-1&&Xu(n.params,r.value.params)),i=ve(()=>o.value>-1&&o.value===n.matched.length-1&&ji(n.params,r.value.params));function l(a={}){return Qu(a)?t[Tt(e.replace)?"replace":"push"](Tt(e.to)).catch(un):Promise.resolve()}return{route:r,href:ve(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}const Ju=qe({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ws,setup(e,{slots:t}){const n=Yt(ws(e)),{options:r}=Ce(lr),o=ve(()=>({[As(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[As(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:ge("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),Zu=Ju;function Qu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xu(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Array.isArray(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Cs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const As=(e,t,n)=>e!=null?e:t!=null?t:n,ef=qe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const r=Ce(Dr),o=ve(()=>e.route||r.value),s=Ce(ds,0),i=ve(()=>o.value.matched[s]);Pt(ds,s+1),Pt(eu,i),Pt(Dr,o);const l=Te();return et(()=>[l.value,i.value,e.name],([a,c,f],[m,h,y])=>{c&&(c.instances[f]=a,h&&h!==c&&a&&a===m&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),a&&c&&(!h||!Vt(c,h)||!m)&&(c.enterCallbacks[f]||[]).forEach(d=>d(a))},{flush:"post"}),()=>{const a=o.value,c=i.value,f=c&&c.components[e.name],m=e.name;if(!f)return Ts(n.default,{Component:f,route:a});const h=c.props[e.name],y=h?h===!0?a.params:typeof h=="function"?h(a):h:null,E=ge(f,fe({},y,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[m]=null)},ref:l}));return Ts(n.default,{Component:E,route:a})||E}}});function Ts(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Qi=ef;function tf(e){const t=Ou(e.routes,e),n=e.parseQuery||Wu,r=e.stringifyQuery||Es,o=e.history,s=en(),i=en(),l=en(),a=ti(Ze);let c=Ze;Nt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=_r.bind(null,A=>""+A),m=_r.bind(null,Ku),h=_r.bind(null,Jn);function y(A,F){let k,$;return Ui(A)?(k=t.getRecordMatcher(A),$=F):$=A,t.addRoute($,k)}function d(A){const F=t.getRecordMatcher(A);F&&t.removeRoute(F)}function E(){return t.getRoutes().map(A=>A.record)}function g(A){return!!t.getRecordMatcher(A)}function v(A,F){if(F=fe({},F||a.value),typeof A=="string"){const Z=yr(n,A,F.path),u=t.resolve({path:Z.path},F),p=o.createHref(Z.fullPath);return fe(Z,u,{params:h(u.params),hash:Jn(Z.hash),redirectedFrom:void 0,href:p})}let k;if("path"in A)k=fe({},A,{path:yr(n,A.path,F.path).path});else{const Z=fe({},A.params);for(const u in Z)Z[u]==null&&delete Z[u];k=fe({},A,{params:m(A.params)}),F.params=m(F.params)}const $=t.resolve(k,F),le=A.hash||"";$.params=f(h($.params));const ae=ou(r,fe({},A,{hash:Vu(le),path:$.path})),te=o.createHref(ae);return fe({fullPath:ae,hash:le,query:r===Es?Yu(A.query):A.query||{}},$,{redirectedFrom:void 0,href:te})}function T(A){return typeof A=="string"?yr(n,A,a.value.path):fe({},A)}function O(A,F){if(c!==A)return Ut(8,{from:F,to:A})}function R(A){return C(A)}function H(A){return R(fe(T(A),{replace:!0}))}function N(A){const F=A.matched[A.matched.length-1];if(F&&F.redirect){const{redirect:k}=F;let $=typeof k=="function"?k(A):k;return typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=T($):{path:$},$.params={}),fe({query:A.query,hash:A.hash,params:A.params},$)}}function C(A,F){const k=c=v(A),$=a.value,le=A.state,ae=A.force,te=A.replace===!0,Z=N(k);if(Z)return C(fe(T(Z),{state:le,force:ae,replace:te}),F||k);const u=k;u.redirectedFrom=F;let p;return!ae&&su(r,$,k)&&(p=Ut(16,{to:u,from:$}),Pe($,$,!0,!1)),(p?Promise.resolve(p):Y(u,$)).catch(_=>lt(_)?lt(_,2)?_:be(_):Q(_,u,$)).then(_=>{if(_){if(lt(_,2))return C(fe(T(_.to),{state:le,force:ae,replace:te}),F||u)}else _=G(u,$,!0,te,le);return V(u,$,_),_})}function w(A,F){const k=O(A,F);return k?Promise.reject(k):Promise.resolve()}function Y(A,F){let k;const[$,le,ae]=nf(A,F);k=br($.reverse(),"beforeRouteLeave",A,F);for(const Z of $)Z.leaveGuards.forEach(u=>{k.push(ut(u,A,F))});const te=w.bind(null,A,F);return k.push(te),It(k).then(()=>{k=[];for(const Z of s.list())k.push(ut(Z,A,F));return k.push(te),It(k)}).then(()=>{k=br(le,"beforeRouteUpdate",A,F);for(const Z of le)Z.updateGuards.forEach(u=>{k.push(ut(u,A,F))});return k.push(te),It(k)}).then(()=>{k=[];for(const Z of A.matched)if(Z.beforeEnter&&!F.matched.includes(Z))if(Array.isArray(Z.beforeEnter))for(const u of Z.beforeEnter)k.push(ut(u,A,F));else k.push(ut(Z.beforeEnter,A,F));return k.push(te),It(k)}).then(()=>(A.matched.forEach(Z=>Z.enterCallbacks={}),k=br(ae,"beforeRouteEnter",A,F),k.push(te),It(k))).then(()=>{k=[];for(const Z of i.list())k.push(ut(Z,A,F));return k.push(te),It(k)}).catch(Z=>lt(Z,8)?Z:Promise.reject(Z))}function V(A,F,k){for(const $ of l.list())$(A,F,k)}function G(A,F,k,$,le){const ae=O(A,F);if(ae)return ae;const te=F===Ze,Z=Nt?history.state:{};k&&($||te?o.replace(A.fullPath,fe({scroll:te&&Z&&Z.scroll},le)):o.push(A.fullPath,le)),a.value=A,Pe(A,F,k,te),be()}let b;function M(){b=o.listen((A,F,k)=>{const $=v(A),le=N($);if(le){C(fe(le,{replace:!0}),$).catch(un);return}c=$;const ae=a.value;Nt&&hu(ms(ae.fullPath,k.delta),ar()),Y($,ae).catch(te=>lt(te,12)?te:lt(te,2)?(C(te.to,$).then(Z=>{lt(Z,20)&&!k.delta&&k.type===_n.pop&&o.go(-1,!1)}).catch(un),Promise.reject()):(k.delta&&o.go(-k.delta,!1),Q(te,$,ae))).then(te=>{te=te||G($,ae,!1),te&&(k.delta?o.go(-k.delta,!1):k.type===_n.pop&<(te,20)&&o.go(-1,!1)),V($,ae,te)}).catch(un)})}let W=en(),ie=en(),j;function Q(A,F,k){be(A);const $=ie.list();return $.length?$.forEach(le=>le(A,F,k)):console.error(A),Promise.reject(A)}function ne(){return j&&a.value!==Ze?Promise.resolve():new Promise((A,F)=>{W.add([A,F])})}function be(A){return j||(j=!A,M(),W.list().forEach(([F,k])=>A?k(A):F()),W.reset()),A}function Pe(A,F,k,$){const{scrollBehavior:le}=e;if(!Nt||!le)return Promise.resolve();const ae=!k&&pu(ms(A.fullPath,0))||($||!k)&&history.state&&history.state.scroll||null;return oo().then(()=>le(A,F,ae)).then(te=>te&&du(te)).catch(te=>Q(te,A,F))}const Le=A=>o.go(A);let Ne;const Se=new Set;return{currentRoute:a,addRoute:y,removeRoute:d,hasRoute:g,getRoutes:E,resolve:v,options:e,push:R,replace:H,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:ie.add,isReady:ne,install(A){const F=this;A.component("RouterLink",Zu),A.component("RouterView",Qi),A.config.globalProperties.$router=F,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>Tt(a)}),Nt&&!Ne&&a.value===Ze&&(Ne=!0,R(o.location).catch(le=>{}));const k={};for(const le in Ze)k[le]=ve(()=>a.value[le]);A.provide(lr,F),A.provide(vo,Yt(k)),A.provide(Dr,a);const $=A.unmount;Se.add(A),A.unmount=function(){Se.delete(A),Se.size<1&&(c=Ze,b&&b(),a.value=Ze,Ne=!1,j=!1),$()}}}}function It(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function nf(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iVt(c,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>Vt(c,a))||o.push(a))}return[n,r,o]}function yo(){return Ce(lr)}function bo(){return Ce(vo)}const rf=qe({setup(e,t){const n=Te(!1);return mt(()=>{n.value=!0}),()=>{var r,o;return n.value?(o=(r=t.slots).default)===null||o===void 0?void 0:o.call(r):null}}}),of="modulepreload",Ps={},sf="/vue3-baidu-map-gl/dist/",X=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${sf}${r}`,r in Ps)return;Ps[r]=!0;const o=r.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${s}`))return;const i=document.createElement("link");if(i.rel=o?"stylesheet":of,o||(i.as="script",i.crossOrigin=""),i.href=r,document.head.appendChild(i),o)return new Promise((l,a)=>{i.addEventListener("load",l),i.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Xi={"v-8daa1a0e":ue(()=>X(()=>import("./index.html.acee05e2.js"),[])),"v-2d0ad528":ue(()=>X(()=>import("./index.html.bed3a029.js"),[])),"v-2b46f756":ue(()=>X(()=>import("./index.html.707e0525.js"),[])),"v-743432fe":ue(()=>X(()=>import("./com-events.html.ae21a434.js"),[])),"v-1db05c2e":ue(()=>X(()=>import("./custom.html.141ef4f6.js"),[])),"v-6750500c":ue(()=>X(()=>import("./navigation3d.html.d8e1422a.js"),[])),"v-4b26b0e9":ue(()=>X(()=>import("./scale.html.9d11e8f7.js"),[])),"v-2a00fae8":ue(()=>X(()=>import("./zoom.html.c908032d.js"),[])),"v-d4278ebc":ue(()=>X(()=>import("./circle.html.2f27ff8c.js"),[])),"v-4d6f90ac":ue(()=>X(()=>import("./label.html.fdfabe1c.js"),[])),"v-b1071910":ue(()=>X(()=>import("./marker.html.bf72420b.js"),[])),"v-fe857f34":ue(()=>X(()=>import("./polygon.html.458c6521.js"),[])),"v-679dc772":ue(()=>X(()=>import("./polyline.html.500f35cb.js"),[])),"v-62758f72":ue(()=>X(()=>import("./quick-start.html.2c33a43c.js"),[])),"v-3706649a":ue(()=>X(()=>import("./404.html.0dc12284.js"),[]))},lf={"v-8daa1a0e":()=>X(()=>import("./index.html.d1881c28.js"),[]).then(({data:e})=>e),"v-2d0ad528":()=>X(()=>import("./index.html.1a899239.js"),[]).then(({data:e})=>e),"v-2b46f756":()=>X(()=>import("./index.html.7573124c.js"),[]).then(({data:e})=>e),"v-743432fe":()=>X(()=>import("./com-events.html.53d58457.js"),[]).then(({data:e})=>e),"v-1db05c2e":()=>X(()=>import("./custom.html.b6f783e2.js"),[]).then(({data:e})=>e),"v-6750500c":()=>X(()=>import("./navigation3d.html.eb3cd1b8.js"),[]).then(({data:e})=>e),"v-4b26b0e9":()=>X(()=>import("./scale.html.4c9cc79a.js"),[]).then(({data:e})=>e),"v-2a00fae8":()=>X(()=>import("./zoom.html.f9cae3a2.js"),[]).then(({data:e})=>e),"v-d4278ebc":()=>X(()=>import("./circle.html.a40cbad1.js"),[]).then(({data:e})=>e),"v-4d6f90ac":()=>X(()=>import("./label.html.968bc369.js"),[]).then(({data:e})=>e),"v-b1071910":()=>X(()=>import("./marker.html.a1cb82e5.js"),[]).then(({data:e})=>e),"v-fe857f34":()=>X(()=>import("./polygon.html.51eca78a.js"),[]).then(({data:e})=>e),"v-679dc772":()=>X(()=>import("./polyline.html.de654405.js"),[]).then(({data:e})=>e),"v-62758f72":()=>X(()=>import("./quick-start.html.d148a035.js"),[]).then(({data:e})=>e),"v-3706649a":()=>X(()=>import("./404.html.f166316b.js"),[]).then(({data:e})=>e)},el=Te(lf),tl=eo({key:"",path:"",title:"",lang:"",frontmatter:{},excerpt:"",headers:[]}),Xe=Te(tl),An=()=>Xe;To.webpackHot&&(__VUE_HMR_RUNTIME__.updatePageData=e=>{el.value[e.key]=()=>Promise.resolve(e),e.key===Xe.value.key&&(Xe.value=e)});const nl=Symbol(""),af=()=>{const e=Ce(nl);if(!e)throw new Error("usePageFrontmatter() is called without provider.");return e},rl=Symbol(""),cf=()=>{const e=Ce(rl);if(!e)throw new Error("usePageHead() is called without provider.");return e},uf=Symbol(""),ol=Symbol(""),ff=()=>{const e=Ce(ol);if(!e)throw new Error("usePageLang() is called without provider.");return e},Eo=Symbol(""),df=()=>{const e=Ce(Eo);if(!e)throw new Error("useRouteLocale() is called without provider.");return e},hf={base:"/vue3-baidu-map-gl/dist/",lang:"en-US",title:"",description:"",head:[["link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/logo.png"}],["meta",{name:"msapplication-TileColor",content:"#3eaf7c"}],["meta",{name:"theme-color",content:"#3eaf7c"}],["script",{},` + */const Bi=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Gt=e=>Bi?Symbol(e):"_vr_"+e,eu=Gt("rvlm"),ds=Gt("rvd"),lr=Gt("r"),vo=Gt("rl"),Dr=Gt("rvl"),Nt=typeof window!="undefined";function tu(e){return e.__esModule||Bi&&e[Symbol.toStringTag]==="Module"}const fe=Object.assign;function _r(e,t){const n={};for(const r in t){const o=t[r];n[r]=Array.isArray(o)?o.map(e):e(o)}return n}const un=()=>{},nu=/\/$/,ru=e=>e.replace(nu,"");function yr(e,t,n="/"){let r,o={},s="",i="";const l=t.indexOf("?"),a=t.indexOf("#",l>-1?l:0);return l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=lu(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function ou(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function hs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function su(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Vt(t.matched[r],n.matched[o])&&ji(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ji(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!iu(e[n],t[n]))return!1;return!0}function iu(e,t){return Array.isArray(e)?ps(e,t):Array.isArray(t)?ps(t,e):e===t}function ps(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function lu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s({left:window.pageXOffset,top:window.pageYOffset});function du(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=fu(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ms(e,t){return(history.state?history.state.position-t:-1)+e}const Hr=new Map;function hu(e,t){Hr.set(e,t)}function pu(e){const t=Hr.get(e);return Hr.delete(e),t}let mu=()=>location.protocol+"//"+location.host;function Vi(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let l=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),hs(a,"")}return hs(n,e)+r+o}function gu(e,t,n,r){let o=[],s=[],i=null;const l=({state:h})=>{const y=Vi(e,location),d=n.value,E=t.value;let g=0;if(h){if(n.value=y,t.value=h,i&&i===d){i=null;return}g=E?h.position-E.position:0}else r(y);o.forEach(v=>{v(n.value,d,{delta:g,type:_n.pop,direction:g?g>0?fn.forward:fn.back:fn.unknown})})};function a(){i=n.value}function c(h){o.push(h);const y=()=>{const d=o.indexOf(h);d>-1&&o.splice(d,1)};return s.push(y),y}function f(){const{history:h}=window;!h.state||h.replaceState(fe({},h.state,{scroll:ar()}),"")}function m(){for(const h of s)h();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f),{pauseListeners:a,listen:c,destroy:m}}function gs(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ar():null}}function vu(e){const{history:t,location:n}=window,r={value:Vi(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,c,f){const m=e.indexOf("#"),h=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+a:mu()+e+a;try{t[f?"replaceState":"pushState"](c,"",h),o.value=c}catch(y){console.error(y),n[f?"replace":"assign"](h)}}function i(a,c){const f=fe({},t.state,gs(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});s(a,f,!0),r.value=a}function l(a,c){const f=fe({},o.value,t.state,{forward:a,scroll:ar()});s(f.current,f,!0);const m=fe({},gs(r.value,a,null),{position:f.position+1},c);s(a,m,!1),r.value=a}return{location:r,state:o,push:l,replace:i}}function _u(e){e=au(e);const t=vu(e),n=gu(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=fe({location:"",base:e,go:r,createHref:uu.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function yu(e){return typeof e=="string"||e&&typeof e=="object"}function Ui(e){return typeof e=="string"||typeof e=="symbol"}const Ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},qi=Gt("nf");var vs;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(vs||(vs={}));function Ut(e,t){return fe(new Error,{type:e,[qi]:!0},t)}function lt(e,t){return e instanceof Error&&qi in e&&(t==null||!!(e.type&t))}const _s="[^/]+?",bu={sensitive:!1,strict:!1,start:!0,end:!0},Eu=/[.+*?^${}()[\]/\\]/g;function wu(e,t){const n=fe({},bu,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let m=0;mt.length?t.length===1&&t[0]===40+40?1:-1:0}function Au(e,t){let n=0;const r=e.score,o=t.score;for(;n1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:f,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l{i(T)}:un}function i(f){if(Ui(f)){const m=r.get(f);m&&(r.delete(f),n.splice(n.indexOf(m),1),m.children.forEach(i),m.alias.forEach(i))}else{const m=n.indexOf(f);m>-1&&(n.splice(m,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){let m=0;for(;m=0&&(f.record.path!==n[m].record.path||!Ki(f,n[m]));)m++;n.splice(m,0,f),f.record.name&&!ys(f)&&r.set(f.record.name,f)}function c(f,m){let h,y={},d,E;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Ut(1,{location:f});E=h.record.name,y=fe(Ru(m.params,h.keys.filter(T=>!T.optional).map(T=>T.name)),f.params),d=h.stringify(y)}else if("path"in f)d=f.path,h=n.find(T=>T.re.test(d)),h&&(y=h.parse(d),E=h.record.name);else{if(h=m.name?r.get(m.name):n.find(T=>T.re.test(m.path)),!h)throw Ut(1,{location:f,currentLocation:m});E=h.record.name,y=fe({},m.params,f.params),d=h.stringify(y)}const g=[];let v=h;for(;v;)g.unshift(v.record),v=v.parent;return{name:E,path:d,params:y,matched:g,meta:ku(g)}}return e.forEach(f=>s(f)),{addRoute:s,resolve:c,removeRoute:i,getRoutes:l,getRecordMatcher:o}}function Ru(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Lu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Iu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function Iu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function ys(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ku(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function bs(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ki(e,t){return t.children.some(n=>n===e||Ki(e,n))}const Wi=/#/g,zu=/&/g,Mu=/\//g,Nu=/=/g,Du=/\?/g,Yi=/\+/g,Hu=/%5B/g,Fu=/%5D/g,Gi=/%5E/g,$u=/%60/g,Ji=/%7B/g,Bu=/%7C/g,Zi=/%7D/g,ju=/%20/g;function _o(e){return encodeURI(""+e).replace(Bu,"|").replace(Hu,"[").replace(Fu,"]")}function Vu(e){return _o(e).replace(Ji,"{").replace(Zi,"}").replace(Gi,"^")}function Fr(e){return _o(e).replace(Yi,"%2B").replace(ju,"+").replace(Wi,"%23").replace(zu,"%26").replace($u,"`").replace(Ji,"{").replace(Zi,"}").replace(Gi,"^")}function Uu(e){return Fr(e).replace(Nu,"%3D")}function qu(e){return _o(e).replace(Wi,"%23").replace(Du,"%3F")}function Ku(e){return e==null?"":qu(e).replace(Mu,"%2F")}function Jn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Wu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&Fr(s)):[r&&Fr(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Yu(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Array.isArray(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function en(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ut(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,l)=>{const a=m=>{m===!1?l(Ut(4,{from:n,to:t})):m instanceof Error?l(m):yu(m)?l(Ut(2,{from:t,to:m})):(s&&r.enterCallbacks[o]===s&&typeof m=="function"&&s.push(m),i())},c=e.call(r&&r.instances[o],t,n,a);let f=Promise.resolve(c);e.length<3&&(f=f.then(a)),f.catch(m=>l(m))})}function br(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let l=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(Gu(l)){const c=(l.__vccOpts||l)[t];c&&o.push(ut(c,n,r,s,i))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const f=tu(c)?c.default:c;s.components[i]=f;const h=(f.__vccOpts||f)[t];return h&&ut(h,n,r,s,i)()}))}}return o}function Gu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ws(e){const t=Ce(lr),n=Ce(vo),r=ve(()=>t.resolve(Tt(e.to))),o=ve(()=>{const{matched:a}=r.value,{length:c}=a,f=a[c-1],m=n.matched;if(!f||!m.length)return-1;const h=m.findIndex(Vt.bind(null,f));if(h>-1)return h;const y=Cs(a[c-2]);return c>1&&Cs(f)===y&&m[m.length-1].path!==y?m.findIndex(Vt.bind(null,a[c-2])):h}),s=ve(()=>o.value>-1&&Xu(n.params,r.value.params)),i=ve(()=>o.value>-1&&o.value===n.matched.length-1&&ji(n.params,r.value.params));function l(a={}){return Qu(a)?t[Tt(e.replace)?"replace":"push"](Tt(e.to)).catch(un):Promise.resolve()}return{route:r,href:ve(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}const Ju=qe({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ws,setup(e,{slots:t}){const n=Yt(ws(e)),{options:r}=Ce(lr),o=ve(()=>({[As(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[As(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:ge("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),Zu=Ju;function Qu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xu(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Array.isArray(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Cs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const As=(e,t,n)=>e!=null?e:t!=null?t:n,ef=qe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const r=Ce(Dr),o=ve(()=>e.route||r.value),s=Ce(ds,0),i=ve(()=>o.value.matched[s]);Pt(ds,s+1),Pt(eu,i),Pt(Dr,o);const l=Te();return et(()=>[l.value,i.value,e.name],([a,c,f],[m,h,y])=>{c&&(c.instances[f]=a,h&&h!==c&&a&&a===m&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),a&&c&&(!h||!Vt(c,h)||!m)&&(c.enterCallbacks[f]||[]).forEach(d=>d(a))},{flush:"post"}),()=>{const a=o.value,c=i.value,f=c&&c.components[e.name],m=e.name;if(!f)return Ts(n.default,{Component:f,route:a});const h=c.props[e.name],y=h?h===!0?a.params:typeof h=="function"?h(a):h:null,E=ge(f,fe({},y,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[m]=null)},ref:l}));return Ts(n.default,{Component:E,route:a})||E}}});function Ts(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Qi=ef;function tf(e){const t=Ou(e.routes,e),n=e.parseQuery||Wu,r=e.stringifyQuery||Es,o=e.history,s=en(),i=en(),l=en(),a=ti(Ze);let c=Ze;Nt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=_r.bind(null,A=>""+A),m=_r.bind(null,Ku),h=_r.bind(null,Jn);function y(A,F){let k,$;return Ui(A)?(k=t.getRecordMatcher(A),$=F):$=A,t.addRoute($,k)}function d(A){const F=t.getRecordMatcher(A);F&&t.removeRoute(F)}function E(){return t.getRoutes().map(A=>A.record)}function g(A){return!!t.getRecordMatcher(A)}function v(A,F){if(F=fe({},F||a.value),typeof A=="string"){const Z=yr(n,A,F.path),u=t.resolve({path:Z.path},F),p=o.createHref(Z.fullPath);return fe(Z,u,{params:h(u.params),hash:Jn(Z.hash),redirectedFrom:void 0,href:p})}let k;if("path"in A)k=fe({},A,{path:yr(n,A.path,F.path).path});else{const Z=fe({},A.params);for(const u in Z)Z[u]==null&&delete Z[u];k=fe({},A,{params:m(A.params)}),F.params=m(F.params)}const $=t.resolve(k,F),le=A.hash||"";$.params=f(h($.params));const ae=ou(r,fe({},A,{hash:Vu(le),path:$.path})),te=o.createHref(ae);return fe({fullPath:ae,hash:le,query:r===Es?Yu(A.query):A.query||{}},$,{redirectedFrom:void 0,href:te})}function T(A){return typeof A=="string"?yr(n,A,a.value.path):fe({},A)}function O(A,F){if(c!==A)return Ut(8,{from:F,to:A})}function R(A){return C(A)}function H(A){return R(fe(T(A),{replace:!0}))}function N(A){const F=A.matched[A.matched.length-1];if(F&&F.redirect){const{redirect:k}=F;let $=typeof k=="function"?k(A):k;return typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=T($):{path:$},$.params={}),fe({query:A.query,hash:A.hash,params:A.params},$)}}function C(A,F){const k=c=v(A),$=a.value,le=A.state,ae=A.force,te=A.replace===!0,Z=N(k);if(Z)return C(fe(T(Z),{state:le,force:ae,replace:te}),F||k);const u=k;u.redirectedFrom=F;let p;return!ae&&su(r,$,k)&&(p=Ut(16,{to:u,from:$}),Pe($,$,!0,!1)),(p?Promise.resolve(p):Y(u,$)).catch(_=>lt(_)?lt(_,2)?_:be(_):Q(_,u,$)).then(_=>{if(_){if(lt(_,2))return C(fe(T(_.to),{state:le,force:ae,replace:te}),F||u)}else _=G(u,$,!0,te,le);return V(u,$,_),_})}function w(A,F){const k=O(A,F);return k?Promise.reject(k):Promise.resolve()}function Y(A,F){let k;const[$,le,ae]=nf(A,F);k=br($.reverse(),"beforeRouteLeave",A,F);for(const Z of $)Z.leaveGuards.forEach(u=>{k.push(ut(u,A,F))});const te=w.bind(null,A,F);return k.push(te),It(k).then(()=>{k=[];for(const Z of s.list())k.push(ut(Z,A,F));return k.push(te),It(k)}).then(()=>{k=br(le,"beforeRouteUpdate",A,F);for(const Z of le)Z.updateGuards.forEach(u=>{k.push(ut(u,A,F))});return k.push(te),It(k)}).then(()=>{k=[];for(const Z of A.matched)if(Z.beforeEnter&&!F.matched.includes(Z))if(Array.isArray(Z.beforeEnter))for(const u of Z.beforeEnter)k.push(ut(u,A,F));else k.push(ut(Z.beforeEnter,A,F));return k.push(te),It(k)}).then(()=>(A.matched.forEach(Z=>Z.enterCallbacks={}),k=br(ae,"beforeRouteEnter",A,F),k.push(te),It(k))).then(()=>{k=[];for(const Z of i.list())k.push(ut(Z,A,F));return k.push(te),It(k)}).catch(Z=>lt(Z,8)?Z:Promise.reject(Z))}function V(A,F,k){for(const $ of l.list())$(A,F,k)}function G(A,F,k,$,le){const ae=O(A,F);if(ae)return ae;const te=F===Ze,Z=Nt?history.state:{};k&&($||te?o.replace(A.fullPath,fe({scroll:te&&Z&&Z.scroll},le)):o.push(A.fullPath,le)),a.value=A,Pe(A,F,k,te),be()}let b;function M(){b=o.listen((A,F,k)=>{const $=v(A),le=N($);if(le){C(fe(le,{replace:!0}),$).catch(un);return}c=$;const ae=a.value;Nt&&hu(ms(ae.fullPath,k.delta),ar()),Y($,ae).catch(te=>lt(te,12)?te:lt(te,2)?(C(te.to,$).then(Z=>{lt(Z,20)&&!k.delta&&k.type===_n.pop&&o.go(-1,!1)}).catch(un),Promise.reject()):(k.delta&&o.go(-k.delta,!1),Q(te,$,ae))).then(te=>{te=te||G($,ae,!1),te&&(k.delta?o.go(-k.delta,!1):k.type===_n.pop&<(te,20)&&o.go(-1,!1)),V($,ae,te)}).catch(un)})}let W=en(),ie=en(),j;function Q(A,F,k){be(A);const $=ie.list();return $.length?$.forEach(le=>le(A,F,k)):console.error(A),Promise.reject(A)}function ne(){return j&&a.value!==Ze?Promise.resolve():new Promise((A,F)=>{W.add([A,F])})}function be(A){return j||(j=!A,M(),W.list().forEach(([F,k])=>A?k(A):F()),W.reset()),A}function Pe(A,F,k,$){const{scrollBehavior:le}=e;if(!Nt||!le)return Promise.resolve();const ae=!k&&pu(ms(A.fullPath,0))||($||!k)&&history.state&&history.state.scroll||null;return oo().then(()=>le(A,F,ae)).then(te=>te&&du(te)).catch(te=>Q(te,A,F))}const Le=A=>o.go(A);let Ne;const Se=new Set;return{currentRoute:a,addRoute:y,removeRoute:d,hasRoute:g,getRoutes:E,resolve:v,options:e,push:R,replace:H,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:ie.add,isReady:ne,install(A){const F=this;A.component("RouterLink",Zu),A.component("RouterView",Qi),A.config.globalProperties.$router=F,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>Tt(a)}),Nt&&!Ne&&a.value===Ze&&(Ne=!0,R(o.location).catch(le=>{}));const k={};for(const le in Ze)k[le]=ve(()=>a.value[le]);A.provide(lr,F),A.provide(vo,Yt(k)),A.provide(Dr,a);const $=A.unmount;Se.add(A),A.unmount=function(){Se.delete(A),Se.size<1&&(c=Ze,b&&b(),a.value=Ze,Ne=!1,j=!1),$()}}}}function It(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function nf(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iVt(c,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>Vt(c,a))||o.push(a))}return[n,r,o]}function yo(){return Ce(lr)}function bo(){return Ce(vo)}const rf=qe({setup(e,t){const n=Te(!1);return mt(()=>{n.value=!0}),()=>{var r,o;return n.value?(o=(r=t.slots).default)===null||o===void 0?void 0:o.call(r):null}}}),of="modulepreload",Ps={},sf="/vue3-baidu-map-gl/dist/",X=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${sf}${r}`,r in Ps)return;Ps[r]=!0;const o=r.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${s}`))return;const i=document.createElement("link");if(i.rel=o?"stylesheet":of,o||(i.as="script",i.crossOrigin=""),i.href=r,document.head.appendChild(i),o)return new Promise((l,a)=>{i.addEventListener("load",l),i.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Xi={"v-8daa1a0e":ue(()=>X(()=>import("./index.html.9bd47afe.js"),[])),"v-2d0ad528":ue(()=>X(()=>import("./index.html.f1c42617.js"),[])),"v-2b46f756":ue(()=>X(()=>import("./index.html.26147b4f.js"),[])),"v-743432fe":ue(()=>X(()=>import("./com-events.html.702140c6.js"),[])),"v-1db05c2e":ue(()=>X(()=>import("./custom.html.e76c605d.js"),[])),"v-6750500c":ue(()=>X(()=>import("./navigation3d.html.ae5dfc49.js"),[])),"v-4b26b0e9":ue(()=>X(()=>import("./scale.html.751c3746.js"),[])),"v-2a00fae8":ue(()=>X(()=>import("./zoom.html.070f272a.js"),[])),"v-62758f72":ue(()=>X(()=>import("./quick-start.html.6225a0dd.js"),[])),"v-d4278ebc":ue(()=>X(()=>import("./circle.html.e55dfa30.js"),[])),"v-4d6f90ac":ue(()=>X(()=>import("./label.html.73f15287.js"),[])),"v-b1071910":ue(()=>X(()=>import("./marker.html.db73ad54.js"),[])),"v-fe857f34":ue(()=>X(()=>import("./polygon.html.70c874a9.js"),[])),"v-679dc772":ue(()=>X(()=>import("./polyline.html.ce403c78.js"),[])),"v-3706649a":ue(()=>X(()=>import("./404.html.e05097ea.js"),[]))},lf={"v-8daa1a0e":()=>X(()=>import("./index.html.d1881c28.js"),[]).then(({data:e})=>e),"v-2d0ad528":()=>X(()=>import("./index.html.310d7568.js"),[]).then(({data:e})=>e),"v-2b46f756":()=>X(()=>import("./index.html.7573124c.js"),[]).then(({data:e})=>e),"v-743432fe":()=>X(()=>import("./com-events.html.53d58457.js"),[]).then(({data:e})=>e),"v-1db05c2e":()=>X(()=>import("./custom.html.b6f783e2.js"),[]).then(({data:e})=>e),"v-6750500c":()=>X(()=>import("./navigation3d.html.eb3cd1b8.js"),[]).then(({data:e})=>e),"v-4b26b0e9":()=>X(()=>import("./scale.html.4c9cc79a.js"),[]).then(({data:e})=>e),"v-2a00fae8":()=>X(()=>import("./zoom.html.f9cae3a2.js"),[]).then(({data:e})=>e),"v-62758f72":()=>X(()=>import("./quick-start.html.d148a035.js"),[]).then(({data:e})=>e),"v-d4278ebc":()=>X(()=>import("./circle.html.a40cbad1.js"),[]).then(({data:e})=>e),"v-4d6f90ac":()=>X(()=>import("./label.html.968bc369.js"),[]).then(({data:e})=>e),"v-b1071910":()=>X(()=>import("./marker.html.a1cb82e5.js"),[]).then(({data:e})=>e),"v-fe857f34":()=>X(()=>import("./polygon.html.51eca78a.js"),[]).then(({data:e})=>e),"v-679dc772":()=>X(()=>import("./polyline.html.de654405.js"),[]).then(({data:e})=>e),"v-3706649a":()=>X(()=>import("./404.html.f166316b.js"),[]).then(({data:e})=>e)},el=Te(lf),tl=eo({key:"",path:"",title:"",lang:"",frontmatter:{},excerpt:"",headers:[]}),Xe=Te(tl),An=()=>Xe;To.webpackHot&&(__VUE_HMR_RUNTIME__.updatePageData=e=>{el.value[e.key]=()=>Promise.resolve(e),e.key===Xe.value.key&&(Xe.value=e)});const nl=Symbol(""),af=()=>{const e=Ce(nl);if(!e)throw new Error("usePageFrontmatter() is called without provider.");return e},rl=Symbol(""),cf=()=>{const e=Ce(rl);if(!e)throw new Error("usePageHead() is called without provider.");return e},uf=Symbol(""),ol=Symbol(""),ff=()=>{const e=Ce(ol);if(!e)throw new Error("usePageLang() is called without provider.");return e},Eo=Symbol(""),df=()=>{const e=Ce(Eo);if(!e)throw new Error("useRouteLocale() is called without provider.");return e},hf={base:"/vue3-baidu-map-gl/dist/",lang:"en-US",title:"",description:"",head:[["link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/logo.png"}],["meta",{name:"msapplication-TileColor",content:"#3eaf7c"}],["meta",{name:"theme-color",content:"#3eaf7c"}],["script",{},` var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); @@ -10,7 +10,7 @@ var El=Object.defineProperty,wl=Object.defineProperties;var Cl=Object.getOwnProp var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); - `]],locales:{"/zh/":{lang:"zh-CN",title:"Vue3 BaiduMap GL",description:"\u4E00\u5957\u57FA\u4E8EVue 3.0\u548C\u767E\u5EA6\u5730\u56FE\u7684\u5730\u56FE\u7EC4\u4EF6\u3002"}}},ft=Te(hf),pf=()=>ft;To.webpackHot&&(__VUE_HMR_RUNTIME__.updateSiteData=e=>{ft.value=e});const sl=Symbol(""),gh=()=>{const e=Ce(sl);if(!e)throw new Error("useSiteLocaleData() is called without provider.");return e},mf=Symbol(""),wo=e=>{let t;e.pageKey?t=e.pageKey:t=An().value.key;const n=Xi[t];return n?ge(n):ge("div","404 Not Found")};wo.displayName="Content";wo.props={pageKey:{type:String,required:!1}};const gf={"404":ue(()=>X(()=>import("./404.144cfd11.js"),[])),Layout:ue(()=>X(()=>import("./Layout.85f3b0be.js"),[]))},vf=([e,t,n])=>e==="meta"&&t.name?`${e}.${t.name}`:["title","base"].includes(e)?e:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,t,n]),_f=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=vf(r);t.has(o)||(t.add(o),n.push(r))}),n},yf=e=>/^(https?:)?\/\//.test(e),il=e=>Object.prototype.toString.call(e)==="[object Object]",bf=e=>e.replace(/\/$/,""),Ef=e=>e.replace(/^\//,""),ll=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const s=o.split("/").length-r.split("/").length;return s!==0?s:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},xs=qe({name:"Vuepress",setup(){const e=An(),t=ve(()=>{let n;if(e.value.path){const r=e.value.frontmatter.layout;he(r)?n=r:n="Layout"}else n="404";return gf[n]||cc(n,!1)});return()=>ge(t.value)}}),cr=e=>e,Co=e=>e,wf=e=>yf(e)?e:`${pf().value.base}${Ef(e)}`,yt=Yt({resolvePageData:async e=>{const t=el.value[e],n=await(t==null?void 0:t());return n!=null?n:tl},resolvePageFrontmatter:e=>e.frontmatter,resolvePageHead:(e,t,n)=>{const r=he(t.description)?t.description:n.description,o=[...U(t.head)?t.head:[],...n.head,["title",{},e],["meta",{name:"description",content:r}]];return _f(o)},resolvePageHeadTitle:(e,t)=>`${e.title?`${e.title} | `:""}${t.title}`,resolvePageLang:e=>e.lang||"en",resolveRouteLocale:(e,t)=>ll(e,t),resolveSiteLocaleData:(e,t)=>Je(Je({},e),e.locales[t])});const Cf=ge("svg",{class:"external-link-icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[ge("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),ge("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})]),Af=qe({name:"ExternalLinkIcon",props:{locales:{type:Object,required:!1,default:()=>({})}},setup(e){const t=df(),n=ve(()=>{var r;return(r=e.locales[t.value])!==null&&r!==void 0?r:{openInNewWindow:"open in new window"}});return()=>ge("span",[Cf,ge("span",{class:"external-link-icon-sr-only"},n.value.openInNewWindow)])}}),Tf={"/":{openInNewWindow:"open in new window"},"/zh/":{openInNewWindow:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00"}};var Pf=cr(({app:e})=>{e.component("ExternalLinkIcon",ge(Af,{locales:Tf}))});/*! medium-zoom 1.0.6 | MIT License | https://github.com/francoischalifour/medium-zoom */var bt=Object.assign||function(e){for(var t=1;tft;To.webpackHot&&(__VUE_HMR_RUNTIME__.updateSiteData=e=>{ft.value=e});const sl=Symbol(""),gh=()=>{const e=Ce(sl);if(!e)throw new Error("useSiteLocaleData() is called without provider.");return e},mf=Symbol(""),wo=e=>{let t;e.pageKey?t=e.pageKey:t=An().value.key;const n=Xi[t];return n?ge(n):ge("div","404 Not Found")};wo.displayName="Content";wo.props={pageKey:{type:String,required:!1}};const gf={"404":ue(()=>X(()=>import("./404.d37a25d6.js"),[])),Layout:ue(()=>X(()=>import("./Layout.95bd35c7.js"),[]))},vf=([e,t,n])=>e==="meta"&&t.name?`${e}.${t.name}`:["title","base"].includes(e)?e:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,t,n]),_f=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=vf(r);t.has(o)||(t.add(o),n.push(r))}),n},yf=e=>/^(https?:)?\/\//.test(e),il=e=>Object.prototype.toString.call(e)==="[object Object]",bf=e=>e.replace(/\/$/,""),Ef=e=>e.replace(/^\//,""),ll=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const s=o.split("/").length-r.split("/").length;return s!==0?s:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},xs=qe({name:"Vuepress",setup(){const e=An(),t=ve(()=>{let n;if(e.value.path){const r=e.value.frontmatter.layout;he(r)?n=r:n="Layout"}else n="404";return gf[n]||cc(n,!1)});return()=>ge(t.value)}}),cr=e=>e,Co=e=>e,wf=e=>yf(e)?e:`${pf().value.base}${Ef(e)}`,yt=Yt({resolvePageData:async e=>{const t=el.value[e],n=await(t==null?void 0:t());return n!=null?n:tl},resolvePageFrontmatter:e=>e.frontmatter,resolvePageHead:(e,t,n)=>{const r=he(t.description)?t.description:n.description,o=[...U(t.head)?t.head:[],...n.head,["title",{},e],["meta",{name:"description",content:r}]];return _f(o)},resolvePageHeadTitle:(e,t)=>`${e.title?`${e.title} | `:""}${t.title}`,resolvePageLang:e=>e.lang||"en",resolveRouteLocale:(e,t)=>ll(e,t),resolveSiteLocaleData:(e,t)=>Je(Je({},e),e.locales[t])});const Cf=ge("svg",{class:"external-link-icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[ge("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),ge("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})]),Af=qe({name:"ExternalLinkIcon",props:{locales:{type:Object,required:!1,default:()=>({})}},setup(e){const t=df(),n=ve(()=>{var r;return(r=e.locales[t.value])!==null&&r!==void 0?r:{openInNewWindow:"open in new window"}});return()=>ge("span",[Cf,ge("span",{class:"external-link-icon-sr-only"},n.value.openInNewWindow)])}}),Tf={"/":{openInNewWindow:"open in new window"},"/zh/":{openInNewWindow:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00"}};var Pf=cr(({app:e})=>{e.component("ExternalLinkIcon",ge(Af,{locales:Tf}))});/*! medium-zoom 1.0.6 | MIT License | https://github.com/francoischalifour/medium-zoom */var bt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(b){function M(){}b(M,M)},o=function(b){var M=b.target;if(M===Y){d();return}O.indexOf(M)!==-1&&E({target:M})},s=function(){if(!(H||!w.original)){var b=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(N-b)>C.scrollOffset&&setTimeout(d,150)}},i=function(b){var M=b.key||b.keyCode;(M==="Escape"||M==="Esc"||M===27)&&d()},l=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=b;if(b.background&&(Y.style.background=b.background),b.container&&b.container instanceof Object&&(M.container=bt({},C.container,b.container)),b.template){var W=Nn(b.template)?b.template:document.querySelector(b.template);M.template=W}return C=bt({},C,M),O.forEach(function(ie){ie.dispatchEvent(kt("medium-zoom:update",{detail:{zoom:V}}))}),V},a=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(bt({},C,b))},c=function(){for(var b=arguments.length,M=Array(b),W=0;W0?M.reduce(function(j,Q){return[].concat(j,Os(Q))},[]):O;return ie.forEach(function(j){j.classList.remove("medium-zoom-image"),j.dispatchEvent(kt("medium-zoom:detach",{detail:{zoom:V}}))}),O=O.filter(function(j){return ie.indexOf(j)===-1}),V},m=function(b,M){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return O.forEach(function(ie){ie.addEventListener("medium-zoom:"+b,M,W)}),R.push({type:"medium-zoom:"+b,listener:M,options:W}),V},h=function(b,M){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return O.forEach(function(ie){ie.removeEventListener("medium-zoom:"+b,M,W)}),R=R.filter(function(ie){return!(ie.type==="medium-zoom:"+b&&ie.listener.toString()===M.toString())}),V},y=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=b.target,W=function(){var j={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},Q=void 0,ne=void 0;if(C.container)if(C.container instanceof Object)j=bt({},j,C.container),Q=j.width-j.left-j.right-C.margin*2,ne=j.height-j.top-j.bottom-C.margin*2;else{var be=Nn(C.container)?C.container:document.querySelector(C.container),Pe=be.getBoundingClientRect(),Le=Pe.width,Ne=Pe.height,Se=Pe.left,Jt=Pe.top;j=bt({},j,{width:Le,height:Ne,left:Se,top:Jt})}Q=Q||j.width-C.margin*2,ne=ne||j.height-C.margin*2;var A=w.zoomedHd||w.original,F=Ss(A)?Q:A.naturalWidth||Q,k=Ss(A)?ne:A.naturalHeight||ne,$=A.getBoundingClientRect(),le=$.top,ae=$.left,te=$.width,Z=$.height,u=Math.min(F,Q)/te,p=Math.min(k,ne)/Z,_=Math.min(u,p),x=(-ae+(Q-te)/2+C.margin+j.left)/_,P=(-le+(ne-Z)/2+C.margin+j.top)/_,L="scale("+_+") translate3d("+x+"px, "+P+"px, 0)";w.zoomed.style.transform=L,w.zoomedHd&&(w.zoomedHd.style.transform=L)};return new r(function(ie){if(M&&O.indexOf(M)===-1){ie(V);return}var j=function Le(){H=!1,w.zoomed.removeEventListener("transitionend",Le),w.original.dispatchEvent(kt("medium-zoom:opened",{detail:{zoom:V}})),ie(V)};if(w.zoomed){ie(V);return}if(M)w.original=M;else if(O.length>0){var Q=O;w.original=Q[0]}else{ie(V);return}if(w.original.dispatchEvent(kt("medium-zoom:open",{detail:{zoom:V}})),N=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,H=!0,w.zoomed=Of(w.original),document.body.appendChild(Y),C.template){var ne=Nn(C.template)?C.template:document.querySelector(C.template);w.template=document.createElement("div"),w.template.appendChild(ne.content.cloneNode(!0)),document.body.appendChild(w.template)}if(document.body.appendChild(w.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),w.original.classList.add("medium-zoom-image--hidden"),w.zoomed.classList.add("medium-zoom-image--opened"),w.zoomed.addEventListener("click",d),w.zoomed.addEventListener("transitionend",j),w.original.getAttribute("data-zoom-src")){w.zoomedHd=w.zoomed.cloneNode(),w.zoomedHd.removeAttribute("srcset"),w.zoomedHd.removeAttribute("sizes"),w.zoomedHd.src=w.zoomed.getAttribute("data-zoom-src"),w.zoomedHd.onerror=function(){clearInterval(be),console.warn("Unable to reach the zoom image target "+w.zoomedHd.src),w.zoomedHd=null,W()};var be=setInterval(function(){w.zoomedHd.complete&&(clearInterval(be),w.zoomedHd.classList.add("medium-zoom-image--opened"),w.zoomedHd.addEventListener("click",d),document.body.appendChild(w.zoomedHd),W())},10)}else if(w.original.hasAttribute("srcset")){w.zoomedHd=w.zoomed.cloneNode(),w.zoomedHd.removeAttribute("sizes"),w.zoomedHd.removeAttribute("loading");var Pe=w.zoomedHd.addEventListener("load",function(){w.zoomedHd.removeEventListener("load",Pe),w.zoomedHd.classList.add("medium-zoom-image--opened"),w.zoomedHd.addEventListener("click",d),document.body.appendChild(w.zoomedHd),W()})}else W()})},d=function(){return new r(function(b){if(H||!w.original){b(V);return}var M=function W(){w.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(w.zoomed),w.zoomedHd&&document.body.removeChild(w.zoomedHd),document.body.removeChild(Y),w.zoomed.classList.remove("medium-zoom-image--opened"),w.template&&document.body.removeChild(w.template),H=!1,w.zoomed.removeEventListener("transitionend",W),w.original.dispatchEvent(kt("medium-zoom:closed",{detail:{zoom:V}})),w.original=null,w.zoomed=null,w.zoomedHd=null,w.template=null,b(V)};H=!0,document.body.classList.remove("medium-zoom--opened"),w.zoomed.style.transform="",w.zoomedHd&&(w.zoomedHd.style.transform=""),w.template&&(w.template.style.transition="opacity 150ms",w.template.style.opacity=0),w.original.dispatchEvent(kt("medium-zoom:close",{detail:{zoom:V}})),w.zoomed.addEventListener("transitionend",M)})},E=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=b.target;return w.original?d():y({target:M})},g=function(){return C},v=function(){return O},T=function(){return w.original},O=[],R=[],H=!1,N=0,C=n,w={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?C=t:(t||typeof t=="string")&&c(t),C=bt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},C);var Y=Sf(C.background);document.addEventListener("click",o),document.addEventListener("keyup",i),document.addEventListener("scroll",s),window.addEventListener("resize",d);var V={open:y,close:d,toggle:E,update:l,clone:a,attach:c,detach:f,on:m,off:h,getOptions:g,getImages:v,getZoomedImage:T};return V};function Lf(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document=="undefined")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var If=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Lf(If);var kf=Rf;const zf=Symbol("mediumZoom");const Mf=".theme-default-content > img, .theme-default-content :not(a) > img",Nf={},Df=300;var Hf=cr(({app:e,router:t})=>{const n=kf(Nf);n.refresh=(r=Mf)=>{n.detach(),n.attach(r)},e.provide(zf,n),t.afterEach(()=>{setTimeout(()=>n.refresh(),Df)})});const Ff={sidebarDepth:6,docsDir:"docs",locales:{"/":{selectLanguageName:"English",editLinkText:"Edit this page on GitHub"},"/zh/":{selectLanguageName:"\u7B80\u4F53\u4E2D\u6587",selectLanguageText:"\u9009\u62E9\u8BED\u8A00",selectLanguageAriaLabel:"\u9009\u62E9\u8BED\u8A00",editLinkText:"\u5728 GitHub \u4E0A\u7F16\u8F91\u6B64\u9875",lastUpdatedText:"\u4E0A\u6B21\u66F4\u65B0",contributorsText:"\u8D21\u732E\u8005",tip:"\u63D0\u793A",warning:"\u6CE8\u610F",danger:"\u8B66\u544A",notFound:["\u8FD9\u91CC\u4EC0\u4E48\u90FD\u6CA1\u6709","\u6211\u4EEC\u600E\u4E48\u5230\u8FD9\u6765\u4E86\uFF1F","\u8FD9\u662F\u4E00\u4E2A 404 \u9875\u9762","\u770B\u8D77\u6765\u6211\u4EEC\u8FDB\u5165\u4E86\u9519\u8BEF\u7684\u94FE\u63A5"],backToHome:"\u8FD4\u56DE\u9996\u9875",openInNewWindow:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00",toggleDarkMode:"\u5207\u6362\u591C\u95F4\u6A21\u5F0F",toggleSidebar:"\u5207\u6362\u4FA7\u8FB9\u680F",navbar:[{text:"\u6307\u5357",link:"/zh/guide/quick-start"},{text:"github",link:"https://github.com/yue1123/vue3-baidu-map-gl"}],sidebar:[{text:"\u6307\u5357",children:["/zh/guide/quick-start/"]},{text:"\u57FA\u7840",children:["/zh/base","/zh/base/com-events"]},{text:"\u63A7\u4EF6",children:["/zh/control/custom","/zh/control/navigation3d","/zh/control/scale","/zh/control/zoom"]},{text:"\u8986\u76D6\u7269",children:["/zh/overlay/circle","/zh/overlay/label","/zh/overlay/marker","/zh/overlay/polygon","/zh/overlay/polyline"]}]}},logo:"https://vuejs.org/images/logo.png",navbar:[],darkMode:!0,repo:null,selectLanguageText:"Languages",selectLanguageAriaLabel:"Select language",sidebar:"auto",editLink:!0,editLinkText:"Edit this page",lastUpdated:!0,lastUpdatedText:"Last Updated",contributors:!0,contributorsText:"Contributors",notFound:["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],backToHome:"Take me home",openInNewWindow:"open in new window",toggleDarkMode:"toggle dark mode",toggleSidebar:"toggle sidebar"},al=Te(Ff),$f=()=>al;To.webpackHot&&(__VUE_HMR_RUNTIME__.updateThemeData=e=>{al.value=e});const cl=Symbol(""),Bf=()=>{const e=Ce(cl);if(!e)throw new Error("useThemeLocaleData() is called without provider.");return e},jf=(e,t)=>{var n;return Je(Je({},e),(n=e.locales)===null||n===void 0?void 0:n[t])};var Vf=cr(({app:e})=>{const t=$f(),n=e._context.provides[Eo],r=ve(()=>jf(t.value,n.value));e.provide(cl,r),Object.defineProperties(e.config.globalProperties,{$theme:{get(){return t.value}},$themeLocale:{get(){return r.value}}})}),ul=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const Uf=qe({props:{type:{type:String,required:!1,default:"tip"},text:{type:String,required:!1,default:""},vertical:{type:String,required:!1,default:void 0}},setup(e){return(t,n)=>(sr(),Oi("span",{class:yn(["badge",e.type]),style:Xn({verticalAlign:e.vertical})},[ki(t.$slots,"default",{},()=>[fo(Il(e.text),1)])],6))}});var qf=ul(Uf,[["__file","Badge.vue"]]),Kf=qe({name:"CodeGroup",setup(e,{slots:t}){const n=Te(-1),r=Te([]),o=(l=n.value)=>{l{l>0?n.value=l-1:n.value=r.value.length-1,r.value[n.value].focus()},i=(l,a)=>{l.key===" "||l.key==="Enter"?(l.preventDefault(),n.value=a):l.key==="ArrowRight"?(l.preventDefault(),o(a)):l.key==="ArrowLeft"&&(l.preventDefault(),s(a))};return()=>{var l;const a=(((l=t.default)===null||l===void 0?void 0:l.call(t))||[]).filter(c=>c.type.name==="CodeGroupItem").map(c=>(c.props===null&&(c.props={}),c));return a.length===0?null:(n.value<0||n.value>a.length-1?(n.value=a.findIndex(c=>c.props.active===""||c.props.active===!0),n.value===-1&&(n.value=0)):a.forEach((c,f)=>{c.props.active=f===n.value}),ge("div",{class:"code-group"},[ge("div",{class:"code-group__nav"},ge("ul",{class:"code-group__ul"},a.map((c,f)=>{const m=f===n.value;return ge("li",{class:"code-group__li"},ge("button",{ref:h=>{h&&(r.value[f]=h)},class:{"code-group__nav-tab":!0,"code-group__nav-tab-active":m},ariaPressed:m,ariaExpanded:m,onClick:()=>n.value=f,onKeydown:h=>i(h,f)},c.props.title))}))),a]))}}});const Wf=["aria-selected"],Yf=qe({name:"CodeGroupItem"}),Gf=qe(Pn(Je({},Yf),{props:{title:{type:String,required:!0},active:{type:Boolean,required:!1,default:!1}},setup(e){return(t,n)=>(sr(),Oi("div",{class:yn(["code-group-item",{"code-group-item__active":e.active}]),"aria-selected":e.active},[ki(t.$slots,"default")],10,Wf))}}));var Jf=ul(Gf,[["__file","CodeGroupItem.vue"]]);function fl(e){return jl()?(Vl(e),!0):!1}const Tn=typeof window!="undefined",Zf=e=>typeof e=="string",Er=()=>{};function Qf(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}const dl=e=>e();function Xf(e=dl){const t=Te(!0);function n(){t.value=!1}function r(){t.value=!0}return{isActive:t,pause:n,resume:r,eventFilter:(...s)=>{t.value&&e(...s)}}}function ed(e,t=!0){Mi()?vi(e):t?e():oo(e)}var Rs=Object.getOwnPropertySymbols,td=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,rd=(e,t)=>{var n={};for(var r in e)td.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rs)for(var r of Rs(e))t.indexOf(r)<0&&nd.call(e,r)&&(n[r]=e[r]);return n};function od(e,t,n={}){const r=n,{eventFilter:o=dl}=r,s=rd(r,["eventFilter"]);return et(e,Qf(o,t),s)}var sd=Object.defineProperty,id=Object.defineProperties,ld=Object.getOwnPropertyDescriptors,Zn=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,pl=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ad=(e,t)=>{for(var n in t||(t={}))hl.call(t,n)&&Ls(e,n,t[n]);if(Zn)for(var n of Zn(t))pl.call(t,n)&&Ls(e,n,t[n]);return e},cd=(e,t)=>id(e,ld(t)),ud=(e,t)=>{var n={};for(var r in e)hl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zn)for(var r of Zn(e))t.indexOf(r)<0&&pl.call(e,r)&&(n[r]=e[r]);return n};function fd(e,t,n={}){const r=n,{eventFilter:o}=r,s=ud(r,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Xf(o);return{stop:od(e,t,cd(ad({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function dd(e){var t;const n=Tt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Qn=Tn?window:void 0;Tn&&window.document;Tn&&window.navigator;Tn&&window.location;function hd(...e){let t,n,r,o;if(Zf(e[0])?([n,r,o]=e,t=Qn):[t,n,r,o]=e,!t)return Er;let s=Er;const i=et(()=>dd(t),a=>{s(),a&&(a.addEventListener(n,r,o),s=()=>{a.removeEventListener(n,r,o),s=Er})},{immediate:!0,flush:"post"}),l=()=>{i(),s()};return fl(l),l}function pd(e,t={}){const{window:n=Qn}=t;let r;const o=Te(!1),s=()=>{!n||(r||(r=n.matchMedia(e)),o.value=r.matches)};return ed(()=>{s(),r&&("addEventListener"in r?r.addEventListener("change",s):r.addListener(s),fl(()=>{"removeEventListener"in r?r.removeEventListener("change",s):r.removeListener(s)}))}),o}const $r=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Br="__vueuse_ssr_handlers__";$r[Br]=$r[Br]||{};const md=$r[Br];function gd(e,t){return md[e]||t}function vd(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}const _d={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function yd(e,t,n,r={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,shallow:c,window:f=Qn,eventFilter:m,onError:h=N=>{console.error(N)}}=r,y=(c?ti:Te)(t);if(!n)try{n=gd("getDefaultStorage",()=>{var N;return(N=Qn)==null?void 0:N.localStorage})()}catch(N){h(N)}if(!n)return y;const d=Tt(t),E=vd(d),g=(o=r.serializer)!=null?o:_d[E],{pause:v,resume:T}=fd(y,()=>O(y.value),{flush:s,deep:i,eventFilter:m});return f&&l&&hd(f,"storage",H),H(),y;function O(N){try{N==null?n.removeItem(e):n.setItem(e,g.write(N))}catch(C){h(C)}}function R(N){if(!(N&&N.key!==e)){v();try{const C=N?N.newValue:n.getItem(e);return C==null?(a&&d!==null&&n.setItem(e,g.write(d)),d):typeof C!="string"?C:g.read(C)}catch(C){h(C)}finally{T()}}}function H(N){N&&N.key!==e||(y.value=R(N))}}function bd(e){return pd("(prefers-color-scheme: dark)",e)}var Is,ks;Tn&&(window==null?void 0:window.navigator)&&((Is=window==null?void 0:window.navigator)==null?void 0:Is.platform)&&/iP(ad|hone|od)/.test((ks=window==null?void 0:window.navigator)==null?void 0:ks.platform);const ml=Symbol(""),vh=()=>{const e=Ce(ml);if(!e)throw new Error("useDarkMode() is called without provider.");return e},Ed=()=>{const e=yl(),t=bd(),n=yd("vuepress-color-scheme","auto"),r=ve({get(){return e.value.darkMode?n.value==="auto"?t.value:n.value==="dark":!1},set(o){o===t.value?n.value="auto":n.value=o?"dark":"light"}});Pt(ml,r),wd(r)},wd=e=>{const t=(n=e.value)=>{const r=window==null?void 0:window.document.querySelector("html");r==null||r.classList.toggle("dark",n)};mt(()=>{et(e,t,{immediate:!0})}),co(()=>t())},gl=(...e)=>{const n=yo().resolve(...e),r=n.matched[n.matched.length-1];if(!(r!=null&&r.redirect))return n;const{redirect:o}=r,s=ee(o)?o(n):o,i=he(s)?{path:s}:s;return gl(Je({hash:n.hash,query:n.query,params:n.params},i))},Cd=e=>{const t=gl(e);return{text:t.meta.title||e,link:t.name==="404"?e:t.fullPath}};let wr=null,tn=null;const Ad={wait:()=>wr,pending:()=>{wr=new Promise(e=>tn=e)},resolve:()=>{tn==null||tn(),wr=null,tn=null}},Td=()=>Ad,vl=Symbol("sidebarItems"),_h=()=>{const e=Ce(vl);if(!e)throw new Error("useSidebarItems() is called without provider.");return e},Pd=()=>{const e=yl(),t=af(),n=ve(()=>xd(t.value,e.value));Pt(vl,n)},xd=(e,t)=>{var n,r,o,s;const i=(r=(n=e.sidebar)!==null&&n!==void 0?n:t.sidebar)!==null&&r!==void 0?r:"auto",l=(s=(o=e.sidebarDepth)!==null&&o!==void 0?o:t.sidebarDepth)!==null&&s!==void 0?s:2;return e.home||i===!1?[]:i==="auto"?Od(l):U(i)?_l(i,l):il(i)?Rd(i,l):[]},Sd=(e,t)=>({text:e.title,link:`#${e.slug}`,children:Ao(e.children,t)}),Ao=(e,t)=>t>0?e.map(n=>Sd(n,t-1)):[],Od=e=>{const t=An();return[{text:t.value.title,children:Ao(t.value.headers,e)}]},_l=(e,t)=>{const n=bo(),r=An(),o=s=>{var i;let l;if(he(s)?l=Cd(s):l=s,l.children)return Pn(Je({},l),{children:l.children.map(a=>o(a))});if(l.link===n.path){const a=((i=r.value.headers[0])===null||i===void 0?void 0:i.level)===1?r.value.headers[0].children:r.value.headers;return Pn(Je({},l),{children:Ao(a,t)})}return l};return e.map(s=>o(s))},Rd=(e,t)=>{var n;const r=bo(),o=ll(e,r.path),s=(n=e[o])!==null&&n!==void 0?n:[];return _l(s,t)},yl=()=>Bf();var Ld=cr(({app:e,router:t})=>{e.component("Badge",qf),e.component("CodeGroup",Kf),e.component("CodeGroupItem",Jf),e.component("AutoLinkExternalIcon",()=>{const r=e.component("ExternalLinkIcon");return r?ge(r):null}),e.component("NavbarSearch",()=>{const r=e.component("Docsearch")||e.component("SearchBox");return r?ge(r):null});const n=t.options.scrollBehavior;t.options.scrollBehavior=async(...r)=>(await Td().wait(),n(...r))}),Id=({app:e})=>{e.component("Map",ue(()=>X(()=>import("./index.5b00e009.js"),["assets/index.5b00e009.js","assets/useLife.2e7b82fe.js","assets/bindEvents.81d30a10.js"]))),e.component("Circle",ue(()=>X(()=>import("./index.324d77ad.js"),["assets/index.324d77ad.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js","assets/bindEvents.81d30a10.js"]))),e.component("Label",ue(()=>X(()=>import("./index.78740035.js"),["assets/index.78740035.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js","assets/bindEvents.81d30a10.js"]))),e.component("Marker",ue(()=>X(()=>import("./index.dfb9b42f.js"),["assets/index.dfb9b42f.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js","assets/bindEvents.81d30a10.js"]))),e.component("Polyline",ue(()=>X(()=>import("./index.8bff2b04.js"),["assets/index.8bff2b04.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js","assets/bindEvents.81d30a10.js"]))),e.component("Polygon",ue(()=>X(()=>import("./index.4d673253.js"),["assets/index.4d673253.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js","assets/bindEvents.81d30a10.js"]))),e.component("Control",ue(()=>X(()=>import("./index.c36c7e18.js"),["assets/index.c36c7e18.js","assets/useLife.2e7b82fe.js","assets/useBaseMapEffect.aa0ca7f0.js"]))),e.component("Navigation3d",ue(()=>X(()=>import("./index.b93ff2da.js"),["assets/index.b93ff2da.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js"]))),e.component("Scale",ue(()=>X(()=>import("./index.03b9c72f.js"),["assets/index.03b9c72f.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js"]))),e.component("Zoom",ue(()=>X(()=>import("./index.3c2eae00.js"),["assets/index.3c2eae00.js","assets/useBaseMapEffect.aa0ca7f0.js","assets/useLife.2e7b82fe.js"])))};const kd=[Pf,Hf,Vf,Ld,Id];function bl(e,t,n){var r,o,s;t===void 0&&(t=50),n===void 0&&(n={});var i=(r=n.isImmediate)!=null&&r,l=(o=n.callback)!=null&&o,a=n.maxWait,c=Date.now(),f=[];function m(){if(a!==void 0){var y=Date.now()-c;if(y+t>=a)return a-y}return t}var h=function(){var y=[].slice.call(arguments),d=this;return new Promise(function(E,g){var v=i&&s===void 0;if(s!==void 0&&clearTimeout(s),s=setTimeout(function(){if(s=void 0,c=Date.now(),!i){var O=e.apply(d,y);l&&l(O),f.forEach(function(R){return(0,R.resolve)(O)}),f=[]}},m()),v){var T=e.apply(d,y);return l&&l(T),E(T)}f.push({resolve:E,reject:g})})};return h.cancel=function(y){s!==void 0&&clearTimeout(s),f.forEach(function(d){return(0,d.reject)(y)}),f=[]},h}const zs=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,zd=()=>window.scrollTo({top:0,behavior:"smooth"});const Md=qe({name:"BackToTop",setup(){const e=Te(0),t=ve(()=>e.value>300),n=bl(()=>{e.value=zs()},100);mt(()=>{e.value=zs(),window.addEventListener("scroll",()=>n())});const r=ge("div",{class:"back-to-top",onClick:zd});return()=>ge(go,{name:"back-to-top"},()=>t.value?r:null)}}),Nd=[Md],Dd=({headerLinkSelector:e,headerAnchorSelector:t,delay:n,offset:r=5})=>{const o=yo(),s=An(),l=bl(()=>{var a,c,f,m;const h=Array.from(document.querySelectorAll(e)),d=Array.from(document.querySelectorAll(t)).filter(O=>h.some(R=>R.hash===O.hash)),E=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),g=window.innerHeight+E,v=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),T=Math.abs(v-g)=((c=(a=R.parentElement)===null||a===void 0?void 0:a.offsetTop)!==null&&c!==void 0?c:0)-r,w=!H||E<((m=(f=H.parentElement)===null||f===void 0?void 0:f.offsetTop)!==null&&m!==void 0?m:0)-r;if(!(N||C&&w))continue;const V=decodeURIComponent(o.currentRoute.value.hash),G=decodeURIComponent(R.hash);if(V===G)return;if(T){for(let b=O+1;b{l(),window.addEventListener("scroll",l)}),ao(()=>{window.removeEventListener("scroll",l)}),et(()=>s.value.path,l)},Hd=async(e,...t)=>{const{scrollBehavior:n}=e.options;e.options.scrollBehavior=void 0,await e.replace(...t).finally(()=>e.options.scrollBehavior=n)},Fd="a.sidebar-item",$d=".header-anchor",Bd=300,jd=5;var Vd=Co(()=>{Dd({headerLinkSelector:Fd,headerAnchorSelector:$d,delay:Bd,offset:jd})}),Ud=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Dn={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Ud,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(d){var E,g;for(E in d)g=d[E],g!==void 0&&d.hasOwnProperty(E)&&(r[E]=g);return this},n.status=null,n.set=function(d){var E=n.isStarted();d=o(d,r.minimum,1),n.status=d===1?null:d;var g=n.render(!E),v=g.querySelector(r.barSelector),T=r.speed,O=r.easing;return g.offsetWidth,l(function(R){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),a(v,i(d,T,O)),d===1?(a(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){a(g,{transition:"all "+T+"ms linear",opacity:0}),setTimeout(function(){n.remove(),R()},T)},T)):setTimeout(R,T)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var d=function(){setTimeout(function(){!n.status||(n.trickle(),d())},r.trickleSpeed)};return r.trickle&&d(),this},n.done=function(d){return!d&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(d){var E=n.status;return E?(typeof d!="number"&&(d=(1-E)*o(Math.random()*E,.1,.95)),E=o(E+d,0,.994),n.set(E)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var d=0,E=0;n.promise=function(g){return!g||g.state()==="resolved"?this:(E===0&&n.start(),d++,E++,g.always(function(){E--,E===0?(d=0,n.done()):n.set((d-E)/d)}),this)}}(),n.render=function(d){if(n.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var E=document.createElement("div");E.id="nprogress",E.innerHTML=r.template;var g=E.querySelector(r.barSelector),v=d?"-100":s(n.status||0),T=document.querySelector(r.parent),O;return a(g,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),r.showSpinner||(O=E.querySelector(r.spinnerSelector),O&&y(O)),T!=document.body&&f(T,"nprogress-custom-parent"),T.appendChild(E),E},n.remove=function(){m(document.documentElement,"nprogress-busy"),m(document.querySelector(r.parent),"nprogress-custom-parent");var d=document.getElementById("nprogress");d&&y(d)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var d=document.body.style,E="WebkitTransform"in d?"Webkit":"MozTransform"in d?"Moz":"msTransform"in d?"ms":"OTransform"in d?"O":"";return E+"Perspective"in d?"translate3d":E+"Transform"in d?"translate":"margin"};function o(d,E,g){return dg?g:d}function s(d){return(-1+d)*100}function i(d,E,g){var v;return r.positionUsing==="translate3d"?v={transform:"translate3d("+s(d)+"%,0,0)"}:r.positionUsing==="translate"?v={transform:"translate("+s(d)+"%,0)"}:v={"margin-left":s(d)+"%"},v.transition="all "+E+"ms "+g,v}var l=function(){var d=[];function E(){var g=d.shift();g&&g(E)}return function(g){d.push(g),d.length==1&&E()}}(),a=function(){var d=["Webkit","O","Moz","ms"],E={};function g(R){return R.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(H,N){return N.toUpperCase()})}function v(R){var H=document.body.style;if(R in H)return R;for(var N=d.length,C=R.charAt(0).toUpperCase()+R.slice(1),w;N--;)if(w=d[N]+C,w in H)return w;return R}function T(R){return R=g(R),E[R]||(E[R]=v(R))}function O(R,H,N){H=T(H),R.style[H]=N}return function(R,H){var N=arguments,C,w;if(N.length==2)for(C in H)w=H[C],w!==void 0&&H.hasOwnProperty(C)&&O(R,C,w);else O(R,N[1],N[2])}}();function c(d,E){var g=typeof d=="string"?d:h(d);return g.indexOf(" "+E+" ")>=0}function f(d,E){var g=h(d),v=g+E;c(g,E)||(d.className=v.substring(1))}function m(d,E){var g=h(d),v;!c(d,E)||(v=g.replace(" "+E+" "," "),d.className=v.substring(1,v.length-1))}function h(d){return(" "+(d.className||"")+" ").replace(/\s+/gi," ")}function y(d){d&&d.parentNode&&d.parentNode.removeChild(d)}return n})})(Dn);const qd=()=>{mt(()=>{const e=yo(),t=new Set;t.add(e.currentRoute.value.path),Dn.exports.configure({showSpinner:!1}),e.beforeEach(n=>{t.has(n.path)||Dn.exports.start()}),e.afterEach(n=>{t.add(n.path),Dn.exports.done()})})};var Kd=Co(()=>{qd()}),Wd=Co(()=>{Ed(),Pd()});const Yd=[Vd,Kd,Wd],Gd=[["v-8daa1a0e","/",{title:""},["/index.html","/README.md"]],["v-2d0ad528","/zh/",{title:""},["/zh/index.html","/zh/README.md"]],["v-2b46f756","/zh/base/",{title:"Map \u5730\u56FE"},["/zh/base/index.html","/zh/base/README.md"]],["v-743432fe","/zh/base/com-events.html",{title:"\u5168\u5C40\u7EC4\u4EF6\u4E8B\u4EF6"},["/zh/base/com-events","/zh/base/com-events.md"]],["v-1db05c2e","/zh/control/custom.html",{title:"Control \u81EA\u5B9A\u4E49\u63A7\u4EF6"},["/zh/control/custom","/zh/control/custom.md"]],["v-6750500c","/zh/control/navigation3d.html",{title:"Navigation3d 3D\u89C6\u89D2\u5BFC\u822A\u63A7\u4EF6"},["/zh/control/navigation3d","/zh/control/navigation3d.md"]],["v-4b26b0e9","/zh/control/scale.html",{title:"Scale \u6BD4\u4F8B\u5C3A\u63A7\u4EF6"},["/zh/control/scale","/zh/control/scale.md"]],["v-2a00fae8","/zh/control/zoom.html",{title:"Zoom \u7F29\u653E\u63A7\u4EF6"},["/zh/control/zoom","/zh/control/zoom.md"]],["v-d4278ebc","/zh/overlay/circle.html",{title:"Circle \u5706\u5F62"},["/zh/overlay/circle","/zh/overlay/circle.md"]],["v-4d6f90ac","/zh/overlay/label.html",{title:"Label \u6587\u672C\u6807\u6CE8"},["/zh/overlay/label","/zh/overlay/label.md"]],["v-b1071910","/zh/overlay/marker.html",{title:"Marker \u6807\u6CE8\u70B9"},["/zh/overlay/marker","/zh/overlay/marker.md"]],["v-fe857f34","/zh/overlay/polygon.html",{title:"Polygon \u591A\u8FB9\u5F62"},["/zh/overlay/polygon","/zh/overlay/polygon.md"]],["v-679dc772","/zh/overlay/polyline.html",{title:"Polyline \u6298\u7EBF"},["/zh/overlay/polyline","/zh/overlay/polyline.md"]],["v-62758f72","/zh/guide/quick-start.html",{title:"\u5FEB\u901F\u5F00\u59CB"},["/zh/guide/quick-start","/zh/guide/quick-start.md"]],["v-3706649a","/404.html",{title:""},["/404"]]],Jd=Gd.reduce((e,[t,n,r,o])=>(e.push({name:t,path:n,component:xs,meta:r},...o.map(s=>({path:s,redirect:n}))),e),[{name:"404",path:"/:catchAll(.*)",component:xs}]),Zd=_u,Qd=()=>{const e=tf({history:Zd(bf(ft.value.base)),routes:Jd,scrollBehavior:(t,n,r)=>r||(t.hash?{el:t.hash}:{top:0})});return e.beforeResolve(async(t,n)=>{var r;(t.path!==n.path||n===Ze)&&([Xe.value]=await Promise.all([yt.resolvePageData(t.name),(r=Xi[t.name])===null||r===void 0?void 0:r.__asyncLoader()]))}),e},Xd=e=>{e.component("ClientOnly",rf),e.component("Content",wo)},eh=(e,t)=>{const n=ve(()=>yt.resolveRouteLocale(ft.value.locales,t.currentRoute.value.path)),r=ve(()=>yt.resolveSiteLocaleData(ft.value,n.value)),o=ve(()=>yt.resolvePageFrontmatter(Xe.value)),s=ve(()=>yt.resolvePageHeadTitle(Xe.value,r.value)),i=ve(()=>yt.resolvePageHead(s.value,o.value,r.value)),l=ve(()=>yt.resolvePageLang(Xe.value));return e.provide(Eo,n),e.provide(sl,r),e.provide(nl,o),e.provide(uf,s),e.provide(rl,i),e.provide(ol,l),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get:()=>o.value},$head:{get:()=>i.value},$headTitle:{get:()=>s.value},$lang:{get:()=>l.value},$page:{get:()=>Xe.value},$routeLocale:{get:()=>n.value},$site:{get:()=>ft.value},$siteLocale:{get:()=>r.value},$withBase:{get:()=>wf}}),{pageData:Xe,pageFrontmatter:o,pageHead:i,pageHeadTitle:s,pageLang:l,routeLocale:n,siteData:ft,siteLocaleData:r}},th=()=>{const e=bo(),t=cf(),n=ff(),r=Te([]),o=()=>{t.value.forEach(i=>{const l=nh(i);l&&r.value.push(l)})},s=()=>{document.documentElement.lang=n.value,r.value.forEach(i=>{i.parentNode===document.head&&document.head.removeChild(i)}),r.value.splice(0,r.value.length),t.value.forEach(i=>{const l=rh(i);l!==null&&(document.head.appendChild(l),r.value.push(l))})};Pt(mf,s),mt(()=>{o(),s(),et(()=>e.path,()=>s())})},nh=([e,t,n=""])=>{const r=Object.entries(t).map(([l,a])=>he(a)?`[${l}="${a}"]`:a===!0?`[${l}]`:"").join(""),o=`head > ${e}${r}`;return Array.from(document.querySelectorAll(o)).find(l=>l.innerText===n)||null},rh=([e,t,n])=>{if(!he(e))return null;const r=document.createElement(e);return il(t)&&Object.entries(t).forEach(([o,s])=>{he(s)?r.setAttribute(o,s):s===!0&&r.setAttribute(o,"")}),he(n)&&r.appendChild(document.createTextNode(n)),r},oh=Qc,sh=async()=>{const e=oh({name:"VuepressApp",setup(){th();for(const n of Yd)n();return()=>[ge(Qi),...Nd.map(n=>ge(n))]}}),t=Qd();Xd(e),eh(e,t);for(const n of kd)await n({app:e,router:t,siteData:ft});return e.use(t),{app:e,router:t}};sh().then(({app:e,router:t})=>{t.isReady().then(()=>{e.mount("#app")})});export{_h as $,af as A,ve as B,U as C,fh as D,uh as E,Re as F,bo as G,lh as H,Ri as I,mc as J,yf as K,pf as L,gh as M,vh as N,ge as O,wf as P,rf as Q,yn as R,mh as S,go as T,Ef as U,bf as V,yo as W,he as X,Cd as Y,An as Z,ul as _,co as a,il as a0,ph as a1,Td as a2,sr as b,Oi as c,sh as createVueApp,qe as d,Ii as e,oo as f,Mi as g,Te as h,Ce as i,cc as j,ah as k,hh as l,ye as m,Xn as n,mt as o,Pt as p,Sa as q,ki as r,ch as s,Il as t,Tt as u,dh as v,et as w,fo as x,df as y,yl as z}; +See: https://github.com/francoischalifour/medium-zoom`)}},Sf=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},Of=function(t){var n=t.getBoundingClientRect(),r=n.top,o=n.left,s=n.width,i=n.height,l=t.cloneNode(),a=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return l.removeAttribute("id"),l.style.position="absolute",l.style.top=r+a+"px",l.style.left=o+c+"px",l.style.width=s+"px",l.style.height=i+"px",l.style.transform="",l},kt=function(t,n){var r=bt({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),o},Rf=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(b){function M(){}b(M,M)},o=function(b){var M=b.target;if(M===Y){d();return}O.indexOf(M)!==-1&&E({target:M})},s=function(){if(!(H||!w.original)){var b=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(N-b)>C.scrollOffset&&setTimeout(d,150)}},i=function(b){var M=b.key||b.keyCode;(M==="Escape"||M==="Esc"||M===27)&&d()},l=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=b;if(b.background&&(Y.style.background=b.background),b.container&&b.container instanceof Object&&(M.container=bt({},C.container,b.container)),b.template){var W=Nn(b.template)?b.template:document.querySelector(b.template);M.template=W}return C=bt({},C,M),O.forEach(function(ie){ie.dispatchEvent(kt("medium-zoom:update",{detail:{zoom:V}}))}),V},a=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(bt({},C,b))},c=function(){for(var b=arguments.length,M=Array(b),W=0;W0?M.reduce(function(j,Q){return[].concat(j,Os(Q))},[]):O;return ie.forEach(function(j){j.classList.remove("medium-zoom-image"),j.dispatchEvent(kt("medium-zoom:detach",{detail:{zoom:V}}))}),O=O.filter(function(j){return ie.indexOf(j)===-1}),V},m=function(b,M){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return O.forEach(function(ie){ie.addEventListener("medium-zoom:"+b,M,W)}),R.push({type:"medium-zoom:"+b,listener:M,options:W}),V},h=function(b,M){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return O.forEach(function(ie){ie.removeEventListener("medium-zoom:"+b,M,W)}),R=R.filter(function(ie){return!(ie.type==="medium-zoom:"+b&&ie.listener.toString()===M.toString())}),V},y=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=b.target,W=function(){var j={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},Q=void 0,ne=void 0;if(C.container)if(C.container instanceof Object)j=bt({},j,C.container),Q=j.width-j.left-j.right-C.margin*2,ne=j.height-j.top-j.bottom-C.margin*2;else{var be=Nn(C.container)?C.container:document.querySelector(C.container),Pe=be.getBoundingClientRect(),Le=Pe.width,Ne=Pe.height,Se=Pe.left,Jt=Pe.top;j=bt({},j,{width:Le,height:Ne,left:Se,top:Jt})}Q=Q||j.width-C.margin*2,ne=ne||j.height-C.margin*2;var A=w.zoomedHd||w.original,F=Ss(A)?Q:A.naturalWidth||Q,k=Ss(A)?ne:A.naturalHeight||ne,$=A.getBoundingClientRect(),le=$.top,ae=$.left,te=$.width,Z=$.height,u=Math.min(F,Q)/te,p=Math.min(k,ne)/Z,_=Math.min(u,p),x=(-ae+(Q-te)/2+C.margin+j.left)/_,P=(-le+(ne-Z)/2+C.margin+j.top)/_,L="scale("+_+") translate3d("+x+"px, "+P+"px, 0)";w.zoomed.style.transform=L,w.zoomedHd&&(w.zoomedHd.style.transform=L)};return new r(function(ie){if(M&&O.indexOf(M)===-1){ie(V);return}var j=function Le(){H=!1,w.zoomed.removeEventListener("transitionend",Le),w.original.dispatchEvent(kt("medium-zoom:opened",{detail:{zoom:V}})),ie(V)};if(w.zoomed){ie(V);return}if(M)w.original=M;else if(O.length>0){var Q=O;w.original=Q[0]}else{ie(V);return}if(w.original.dispatchEvent(kt("medium-zoom:open",{detail:{zoom:V}})),N=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,H=!0,w.zoomed=Of(w.original),document.body.appendChild(Y),C.template){var ne=Nn(C.template)?C.template:document.querySelector(C.template);w.template=document.createElement("div"),w.template.appendChild(ne.content.cloneNode(!0)),document.body.appendChild(w.template)}if(document.body.appendChild(w.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),w.original.classList.add("medium-zoom-image--hidden"),w.zoomed.classList.add("medium-zoom-image--opened"),w.zoomed.addEventListener("click",d),w.zoomed.addEventListener("transitionend",j),w.original.getAttribute("data-zoom-src")){w.zoomedHd=w.zoomed.cloneNode(),w.zoomedHd.removeAttribute("srcset"),w.zoomedHd.removeAttribute("sizes"),w.zoomedHd.src=w.zoomed.getAttribute("data-zoom-src"),w.zoomedHd.onerror=function(){clearInterval(be),console.warn("Unable to reach the zoom image target "+w.zoomedHd.src),w.zoomedHd=null,W()};var be=setInterval(function(){w.zoomedHd.complete&&(clearInterval(be),w.zoomedHd.classList.add("medium-zoom-image--opened"),w.zoomedHd.addEventListener("click",d),document.body.appendChild(w.zoomedHd),W())},10)}else if(w.original.hasAttribute("srcset")){w.zoomedHd=w.zoomed.cloneNode(),w.zoomedHd.removeAttribute("sizes"),w.zoomedHd.removeAttribute("loading");var Pe=w.zoomedHd.addEventListener("load",function(){w.zoomedHd.removeEventListener("load",Pe),w.zoomedHd.classList.add("medium-zoom-image--opened"),w.zoomedHd.addEventListener("click",d),document.body.appendChild(w.zoomedHd),W()})}else W()})},d=function(){return new r(function(b){if(H||!w.original){b(V);return}var M=function W(){w.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(w.zoomed),w.zoomedHd&&document.body.removeChild(w.zoomedHd),document.body.removeChild(Y),w.zoomed.classList.remove("medium-zoom-image--opened"),w.template&&document.body.removeChild(w.template),H=!1,w.zoomed.removeEventListener("transitionend",W),w.original.dispatchEvent(kt("medium-zoom:closed",{detail:{zoom:V}})),w.original=null,w.zoomed=null,w.zoomedHd=null,w.template=null,b(V)};H=!0,document.body.classList.remove("medium-zoom--opened"),w.zoomed.style.transform="",w.zoomedHd&&(w.zoomedHd.style.transform=""),w.template&&(w.template.style.transition="opacity 150ms",w.template.style.opacity=0),w.original.dispatchEvent(kt("medium-zoom:close",{detail:{zoom:V}})),w.zoomed.addEventListener("transitionend",M)})},E=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=b.target;return w.original?d():y({target:M})},g=function(){return C},v=function(){return O},T=function(){return w.original},O=[],R=[],H=!1,N=0,C=n,w={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?C=t:(t||typeof t=="string")&&c(t),C=bt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},C);var Y=Sf(C.background);document.addEventListener("click",o),document.addEventListener("keyup",i),document.addEventListener("scroll",s),window.addEventListener("resize",d);var V={open:y,close:d,toggle:E,update:l,clone:a,attach:c,detach:f,on:m,off:h,getOptions:g,getImages:v,getZoomedImage:T};return V};function Lf(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document=="undefined")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var If=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Lf(If);var kf=Rf;const zf=Symbol("mediumZoom");const Mf=".theme-default-content > img, .theme-default-content :not(a) > img",Nf={},Df=300;var Hf=cr(({app:e,router:t})=>{const n=kf(Nf);n.refresh=(r=Mf)=>{n.detach(),n.attach(r)},e.provide(zf,n),t.afterEach(()=>{setTimeout(()=>n.refresh(),Df)})});const Ff={sidebarDepth:6,docsDir:"docs",locales:{"/":{selectLanguageName:"English",editLinkText:"Edit this page on GitHub"},"/zh/":{selectLanguageName:"\u7B80\u4F53\u4E2D\u6587",selectLanguageText:"\u9009\u62E9\u8BED\u8A00",selectLanguageAriaLabel:"\u9009\u62E9\u8BED\u8A00",editLinkText:"\u5728 GitHub \u4E0A\u7F16\u8F91\u6B64\u9875",lastUpdatedText:"\u4E0A\u6B21\u66F4\u65B0",contributorsText:"\u8D21\u732E\u8005",tip:"\u63D0\u793A",warning:"\u6CE8\u610F",danger:"\u8B66\u544A",notFound:["\u8FD9\u91CC\u4EC0\u4E48\u90FD\u6CA1\u6709","\u6211\u4EEC\u600E\u4E48\u5230\u8FD9\u6765\u4E86\uFF1F","\u8FD9\u662F\u4E00\u4E2A 404 \u9875\u9762","\u770B\u8D77\u6765\u6211\u4EEC\u8FDB\u5165\u4E86\u9519\u8BEF\u7684\u94FE\u63A5"],backToHome:"\u8FD4\u56DE\u9996\u9875",openInNewWindow:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00",toggleDarkMode:"\u5207\u6362\u591C\u95F4\u6A21\u5F0F",toggleSidebar:"\u5207\u6362\u4FA7\u8FB9\u680F",navbar:[{text:"\u6307\u5357",link:"/zh/guide/quick-start"},{text:"github",link:"https://github.com/yue1123/vue3-baidu-map-gl"}],sidebar:[{text:"\u6307\u5357",children:["/zh/guide/quick-start/"]},{text:"\u57FA\u7840",children:["/zh/base","/zh/base/com-events"]},{text:"\u63A7\u4EF6",children:["/zh/control/custom","/zh/control/navigation3d","/zh/control/scale","/zh/control/zoom"]},{text:"\u8986\u76D6\u7269",children:["/zh/overlay/circle","/zh/overlay/label","/zh/overlay/marker","/zh/overlay/polygon","/zh/overlay/polyline"]}]}},logo:"https://vuejs.org/images/logo.png",navbar:[],darkMode:!0,repo:null,selectLanguageText:"Languages",selectLanguageAriaLabel:"Select language",sidebar:"auto",editLink:!0,editLinkText:"Edit this page",lastUpdated:!0,lastUpdatedText:"Last Updated",contributors:!0,contributorsText:"Contributors",notFound:["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],backToHome:"Take me home",openInNewWindow:"open in new window",toggleDarkMode:"toggle dark mode",toggleSidebar:"toggle sidebar"},al=Te(Ff),$f=()=>al;To.webpackHot&&(__VUE_HMR_RUNTIME__.updateThemeData=e=>{al.value=e});const cl=Symbol(""),Bf=()=>{const e=Ce(cl);if(!e)throw new Error("useThemeLocaleData() is called without provider.");return e},jf=(e,t)=>{var n;return Je(Je({},e),(n=e.locales)===null||n===void 0?void 0:n[t])};var Vf=cr(({app:e})=>{const t=$f(),n=e._context.provides[Eo],r=ve(()=>jf(t.value,n.value));e.provide(cl,r),Object.defineProperties(e.config.globalProperties,{$theme:{get(){return t.value}},$themeLocale:{get(){return r.value}}})}),ul=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const Uf=qe({props:{type:{type:String,required:!1,default:"tip"},text:{type:String,required:!1,default:""},vertical:{type:String,required:!1,default:void 0}},setup(e){return(t,n)=>(sr(),Oi("span",{class:yn(["badge",e.type]),style:Xn({verticalAlign:e.vertical})},[ki(t.$slots,"default",{},()=>[fo(Il(e.text),1)])],6))}});var qf=ul(Uf,[["__file","Badge.vue"]]),Kf=qe({name:"CodeGroup",setup(e,{slots:t}){const n=Te(-1),r=Te([]),o=(l=n.value)=>{l{l>0?n.value=l-1:n.value=r.value.length-1,r.value[n.value].focus()},i=(l,a)=>{l.key===" "||l.key==="Enter"?(l.preventDefault(),n.value=a):l.key==="ArrowRight"?(l.preventDefault(),o(a)):l.key==="ArrowLeft"&&(l.preventDefault(),s(a))};return()=>{var l;const a=(((l=t.default)===null||l===void 0?void 0:l.call(t))||[]).filter(c=>c.type.name==="CodeGroupItem").map(c=>(c.props===null&&(c.props={}),c));return a.length===0?null:(n.value<0||n.value>a.length-1?(n.value=a.findIndex(c=>c.props.active===""||c.props.active===!0),n.value===-1&&(n.value=0)):a.forEach((c,f)=>{c.props.active=f===n.value}),ge("div",{class:"code-group"},[ge("div",{class:"code-group__nav"},ge("ul",{class:"code-group__ul"},a.map((c,f)=>{const m=f===n.value;return ge("li",{class:"code-group__li"},ge("button",{ref:h=>{h&&(r.value[f]=h)},class:{"code-group__nav-tab":!0,"code-group__nav-tab-active":m},ariaPressed:m,ariaExpanded:m,onClick:()=>n.value=f,onKeydown:h=>i(h,f)},c.props.title))}))),a]))}}});const Wf=["aria-selected"],Yf=qe({name:"CodeGroupItem"}),Gf=qe(Pn(Je({},Yf),{props:{title:{type:String,required:!0},active:{type:Boolean,required:!1,default:!1}},setup(e){return(t,n)=>(sr(),Oi("div",{class:yn(["code-group-item",{"code-group-item__active":e.active}]),"aria-selected":e.active},[ki(t.$slots,"default")],10,Wf))}}));var Jf=ul(Gf,[["__file","CodeGroupItem.vue"]]);function fl(e){return jl()?(Vl(e),!0):!1}const Tn=typeof window!="undefined",Zf=e=>typeof e=="string",Er=()=>{};function Qf(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}const dl=e=>e();function Xf(e=dl){const t=Te(!0);function n(){t.value=!1}function r(){t.value=!0}return{isActive:t,pause:n,resume:r,eventFilter:(...s)=>{t.value&&e(...s)}}}function ed(e,t=!0){Mi()?vi(e):t?e():oo(e)}var Rs=Object.getOwnPropertySymbols,td=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,rd=(e,t)=>{var n={};for(var r in e)td.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rs)for(var r of Rs(e))t.indexOf(r)<0&&nd.call(e,r)&&(n[r]=e[r]);return n};function od(e,t,n={}){const r=n,{eventFilter:o=dl}=r,s=rd(r,["eventFilter"]);return et(e,Qf(o,t),s)}var sd=Object.defineProperty,id=Object.defineProperties,ld=Object.getOwnPropertyDescriptors,Zn=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,pl=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ad=(e,t)=>{for(var n in t||(t={}))hl.call(t,n)&&Ls(e,n,t[n]);if(Zn)for(var n of Zn(t))pl.call(t,n)&&Ls(e,n,t[n]);return e},cd=(e,t)=>id(e,ld(t)),ud=(e,t)=>{var n={};for(var r in e)hl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zn)for(var r of Zn(e))t.indexOf(r)<0&&pl.call(e,r)&&(n[r]=e[r]);return n};function fd(e,t,n={}){const r=n,{eventFilter:o}=r,s=ud(r,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Xf(o);return{stop:od(e,t,cd(ad({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function dd(e){var t;const n=Tt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Qn=Tn?window:void 0;Tn&&window.document;Tn&&window.navigator;Tn&&window.location;function hd(...e){let t,n,r,o;if(Zf(e[0])?([n,r,o]=e,t=Qn):[t,n,r,o]=e,!t)return Er;let s=Er;const i=et(()=>dd(t),a=>{s(),a&&(a.addEventListener(n,r,o),s=()=>{a.removeEventListener(n,r,o),s=Er})},{immediate:!0,flush:"post"}),l=()=>{i(),s()};return fl(l),l}function pd(e,t={}){const{window:n=Qn}=t;let r;const o=Te(!1),s=()=>{!n||(r||(r=n.matchMedia(e)),o.value=r.matches)};return ed(()=>{s(),r&&("addEventListener"in r?r.addEventListener("change",s):r.addListener(s),fl(()=>{"removeEventListener"in r?r.removeEventListener("change",s):r.removeListener(s)}))}),o}const $r=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Br="__vueuse_ssr_handlers__";$r[Br]=$r[Br]||{};const md=$r[Br];function gd(e,t){return md[e]||t}function vd(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}const _d={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function yd(e,t,n,r={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,shallow:c,window:f=Qn,eventFilter:m,onError:h=N=>{console.error(N)}}=r,y=(c?ti:Te)(t);if(!n)try{n=gd("getDefaultStorage",()=>{var N;return(N=Qn)==null?void 0:N.localStorage})()}catch(N){h(N)}if(!n)return y;const d=Tt(t),E=vd(d),g=(o=r.serializer)!=null?o:_d[E],{pause:v,resume:T}=fd(y,()=>O(y.value),{flush:s,deep:i,eventFilter:m});return f&&l&&hd(f,"storage",H),H(),y;function O(N){try{N==null?n.removeItem(e):n.setItem(e,g.write(N))}catch(C){h(C)}}function R(N){if(!(N&&N.key!==e)){v();try{const C=N?N.newValue:n.getItem(e);return C==null?(a&&d!==null&&n.setItem(e,g.write(d)),d):typeof C!="string"?C:g.read(C)}catch(C){h(C)}finally{T()}}}function H(N){N&&N.key!==e||(y.value=R(N))}}function bd(e){return pd("(prefers-color-scheme: dark)",e)}var Is,ks;Tn&&(window==null?void 0:window.navigator)&&((Is=window==null?void 0:window.navigator)==null?void 0:Is.platform)&&/iP(ad|hone|od)/.test((ks=window==null?void 0:window.navigator)==null?void 0:ks.platform);const ml=Symbol(""),vh=()=>{const e=Ce(ml);if(!e)throw new Error("useDarkMode() is called without provider.");return e},Ed=()=>{const e=yl(),t=bd(),n=yd("vuepress-color-scheme","auto"),r=ve({get(){return e.value.darkMode?n.value==="auto"?t.value:n.value==="dark":!1},set(o){o===t.value?n.value="auto":n.value=o?"dark":"light"}});Pt(ml,r),wd(r)},wd=e=>{const t=(n=e.value)=>{const r=window==null?void 0:window.document.querySelector("html");r==null||r.classList.toggle("dark",n)};mt(()=>{et(e,t,{immediate:!0})}),co(()=>t())},gl=(...e)=>{const n=yo().resolve(...e),r=n.matched[n.matched.length-1];if(!(r!=null&&r.redirect))return n;const{redirect:o}=r,s=ee(o)?o(n):o,i=he(s)?{path:s}:s;return gl(Je({hash:n.hash,query:n.query,params:n.params},i))},Cd=e=>{const t=gl(e);return{text:t.meta.title||e,link:t.name==="404"?e:t.fullPath}};let wr=null,tn=null;const Ad={wait:()=>wr,pending:()=>{wr=new Promise(e=>tn=e)},resolve:()=>{tn==null||tn(),wr=null,tn=null}},Td=()=>Ad,vl=Symbol("sidebarItems"),_h=()=>{const e=Ce(vl);if(!e)throw new Error("useSidebarItems() is called without provider.");return e},Pd=()=>{const e=yl(),t=af(),n=ve(()=>xd(t.value,e.value));Pt(vl,n)},xd=(e,t)=>{var n,r,o,s;const i=(r=(n=e.sidebar)!==null&&n!==void 0?n:t.sidebar)!==null&&r!==void 0?r:"auto",l=(s=(o=e.sidebarDepth)!==null&&o!==void 0?o:t.sidebarDepth)!==null&&s!==void 0?s:2;return e.home||i===!1?[]:i==="auto"?Od(l):U(i)?_l(i,l):il(i)?Rd(i,l):[]},Sd=(e,t)=>({text:e.title,link:`#${e.slug}`,children:Ao(e.children,t)}),Ao=(e,t)=>t>0?e.map(n=>Sd(n,t-1)):[],Od=e=>{const t=An();return[{text:t.value.title,children:Ao(t.value.headers,e)}]},_l=(e,t)=>{const n=bo(),r=An(),o=s=>{var i;let l;if(he(s)?l=Cd(s):l=s,l.children)return Pn(Je({},l),{children:l.children.map(a=>o(a))});if(l.link===n.path){const a=((i=r.value.headers[0])===null||i===void 0?void 0:i.level)===1?r.value.headers[0].children:r.value.headers;return Pn(Je({},l),{children:Ao(a,t)})}return l};return e.map(s=>o(s))},Rd=(e,t)=>{var n;const r=bo(),o=ll(e,r.path),s=(n=e[o])!==null&&n!==void 0?n:[];return _l(s,t)},yl=()=>Bf();var Ld=cr(({app:e,router:t})=>{e.component("Badge",qf),e.component("CodeGroup",Kf),e.component("CodeGroupItem",Jf),e.component("AutoLinkExternalIcon",()=>{const r=e.component("ExternalLinkIcon");return r?ge(r):null}),e.component("NavbarSearch",()=>{const r=e.component("Docsearch")||e.component("SearchBox");return r?ge(r):null});const n=t.options.scrollBehavior;t.options.scrollBehavior=async(...r)=>(await Td().wait(),n(...r))}),Id=({app:e})=>{e.component("Map",ue(()=>X(()=>import("./index.ce5b6421.js"),["assets/index.ce5b6421.js","assets/useLife.970079a8.js","assets/bindEvents.81d30a10.js"]))),e.component("Control",ue(()=>X(()=>import("./index.c616a8c4.js"),["assets/index.c616a8c4.js","assets/useLife.970079a8.js","assets/useBaseMapEffect.90e9ccd0.js"]))),e.component("Navigation3d",ue(()=>X(()=>import("./index.773c2ec3.js"),["assets/index.773c2ec3.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js"]))),e.component("Zoom",ue(()=>X(()=>import("./index.26666c3d.js"),["assets/index.26666c3d.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js"]))),e.component("Scale",ue(()=>X(()=>import("./index.7b3fc084.js"),["assets/index.7b3fc084.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js"]))),e.component("Circle",ue(()=>X(()=>import("./index.9c75391a.js"),["assets/index.9c75391a.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js","assets/bindEvents.81d30a10.js"]))),e.component("Label",ue(()=>X(()=>import("./index.6326f851.js"),["assets/index.6326f851.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js","assets/bindEvents.81d30a10.js"]))),e.component("Marker",ue(()=>X(()=>import("./index.05e41ef2.js"),["assets/index.05e41ef2.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js","assets/bindEvents.81d30a10.js"]))),e.component("Polygon",ue(()=>X(()=>import("./index.74e821d6.js"),["assets/index.74e821d6.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js","assets/bindEvents.81d30a10.js"]))),e.component("Polyline",ue(()=>X(()=>import("./index.6a829b55.js"),["assets/index.6a829b55.js","assets/useBaseMapEffect.90e9ccd0.js","assets/useLife.970079a8.js","assets/bindEvents.81d30a10.js"])))};const kd=[Pf,Hf,Vf,Ld,Id];function bl(e,t,n){var r,o,s;t===void 0&&(t=50),n===void 0&&(n={});var i=(r=n.isImmediate)!=null&&r,l=(o=n.callback)!=null&&o,a=n.maxWait,c=Date.now(),f=[];function m(){if(a!==void 0){var y=Date.now()-c;if(y+t>=a)return a-y}return t}var h=function(){var y=[].slice.call(arguments),d=this;return new Promise(function(E,g){var v=i&&s===void 0;if(s!==void 0&&clearTimeout(s),s=setTimeout(function(){if(s=void 0,c=Date.now(),!i){var O=e.apply(d,y);l&&l(O),f.forEach(function(R){return(0,R.resolve)(O)}),f=[]}},m()),v){var T=e.apply(d,y);return l&&l(T),E(T)}f.push({resolve:E,reject:g})})};return h.cancel=function(y){s!==void 0&&clearTimeout(s),f.forEach(function(d){return(0,d.reject)(y)}),f=[]},h}const zs=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,zd=()=>window.scrollTo({top:0,behavior:"smooth"});const Md=qe({name:"BackToTop",setup(){const e=Te(0),t=ve(()=>e.value>300),n=bl(()=>{e.value=zs()},100);mt(()=>{e.value=zs(),window.addEventListener("scroll",()=>n())});const r=ge("div",{class:"back-to-top",onClick:zd});return()=>ge(go,{name:"back-to-top"},()=>t.value?r:null)}}),Nd=[Md],Dd=({headerLinkSelector:e,headerAnchorSelector:t,delay:n,offset:r=5})=>{const o=yo(),s=An(),l=bl(()=>{var a,c,f,m;const h=Array.from(document.querySelectorAll(e)),d=Array.from(document.querySelectorAll(t)).filter(O=>h.some(R=>R.hash===O.hash)),E=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),g=window.innerHeight+E,v=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),T=Math.abs(v-g)=((c=(a=R.parentElement)===null||a===void 0?void 0:a.offsetTop)!==null&&c!==void 0?c:0)-r,w=!H||E<((m=(f=H.parentElement)===null||f===void 0?void 0:f.offsetTop)!==null&&m!==void 0?m:0)-r;if(!(N||C&&w))continue;const V=decodeURIComponent(o.currentRoute.value.hash),G=decodeURIComponent(R.hash);if(V===G)return;if(T){for(let b=O+1;b{l(),window.addEventListener("scroll",l)}),ao(()=>{window.removeEventListener("scroll",l)}),et(()=>s.value.path,l)},Hd=async(e,...t)=>{const{scrollBehavior:n}=e.options;e.options.scrollBehavior=void 0,await e.replace(...t).finally(()=>e.options.scrollBehavior=n)},Fd="a.sidebar-item",$d=".header-anchor",Bd=300,jd=5;var Vd=Co(()=>{Dd({headerLinkSelector:Fd,headerAnchorSelector:$d,delay:Bd,offset:jd})}),Ud=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Dn={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Ud,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(d){var E,g;for(E in d)g=d[E],g!==void 0&&d.hasOwnProperty(E)&&(r[E]=g);return this},n.status=null,n.set=function(d){var E=n.isStarted();d=o(d,r.minimum,1),n.status=d===1?null:d;var g=n.render(!E),v=g.querySelector(r.barSelector),T=r.speed,O=r.easing;return g.offsetWidth,l(function(R){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),a(v,i(d,T,O)),d===1?(a(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){a(g,{transition:"all "+T+"ms linear",opacity:0}),setTimeout(function(){n.remove(),R()},T)},T)):setTimeout(R,T)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var d=function(){setTimeout(function(){!n.status||(n.trickle(),d())},r.trickleSpeed)};return r.trickle&&d(),this},n.done=function(d){return!d&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(d){var E=n.status;return E?(typeof d!="number"&&(d=(1-E)*o(Math.random()*E,.1,.95)),E=o(E+d,0,.994),n.set(E)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var d=0,E=0;n.promise=function(g){return!g||g.state()==="resolved"?this:(E===0&&n.start(),d++,E++,g.always(function(){E--,E===0?(d=0,n.done()):n.set((d-E)/d)}),this)}}(),n.render=function(d){if(n.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var E=document.createElement("div");E.id="nprogress",E.innerHTML=r.template;var g=E.querySelector(r.barSelector),v=d?"-100":s(n.status||0),T=document.querySelector(r.parent),O;return a(g,{transition:"all 0 linear",transform:"translate3d("+v+"%,0,0)"}),r.showSpinner||(O=E.querySelector(r.spinnerSelector),O&&y(O)),T!=document.body&&f(T,"nprogress-custom-parent"),T.appendChild(E),E},n.remove=function(){m(document.documentElement,"nprogress-busy"),m(document.querySelector(r.parent),"nprogress-custom-parent");var d=document.getElementById("nprogress");d&&y(d)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var d=document.body.style,E="WebkitTransform"in d?"Webkit":"MozTransform"in d?"Moz":"msTransform"in d?"ms":"OTransform"in d?"O":"";return E+"Perspective"in d?"translate3d":E+"Transform"in d?"translate":"margin"};function o(d,E,g){return dg?g:d}function s(d){return(-1+d)*100}function i(d,E,g){var v;return r.positionUsing==="translate3d"?v={transform:"translate3d("+s(d)+"%,0,0)"}:r.positionUsing==="translate"?v={transform:"translate("+s(d)+"%,0)"}:v={"margin-left":s(d)+"%"},v.transition="all "+E+"ms "+g,v}var l=function(){var d=[];function E(){var g=d.shift();g&&g(E)}return function(g){d.push(g),d.length==1&&E()}}(),a=function(){var d=["Webkit","O","Moz","ms"],E={};function g(R){return R.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(H,N){return N.toUpperCase()})}function v(R){var H=document.body.style;if(R in H)return R;for(var N=d.length,C=R.charAt(0).toUpperCase()+R.slice(1),w;N--;)if(w=d[N]+C,w in H)return w;return R}function T(R){return R=g(R),E[R]||(E[R]=v(R))}function O(R,H,N){H=T(H),R.style[H]=N}return function(R,H){var N=arguments,C,w;if(N.length==2)for(C in H)w=H[C],w!==void 0&&H.hasOwnProperty(C)&&O(R,C,w);else O(R,N[1],N[2])}}();function c(d,E){var g=typeof d=="string"?d:h(d);return g.indexOf(" "+E+" ")>=0}function f(d,E){var g=h(d),v=g+E;c(g,E)||(d.className=v.substring(1))}function m(d,E){var g=h(d),v;!c(d,E)||(v=g.replace(" "+E+" "," "),d.className=v.substring(1,v.length-1))}function h(d){return(" "+(d.className||"")+" ").replace(/\s+/gi," ")}function y(d){d&&d.parentNode&&d.parentNode.removeChild(d)}return n})})(Dn);const qd=()=>{mt(()=>{const e=yo(),t=new Set;t.add(e.currentRoute.value.path),Dn.exports.configure({showSpinner:!1}),e.beforeEach(n=>{t.has(n.path)||Dn.exports.start()}),e.afterEach(n=>{t.add(n.path),Dn.exports.done()})})};var Kd=Co(()=>{qd()}),Wd=Co(()=>{Ed(),Pd()});const Yd=[Vd,Kd,Wd],Gd=[["v-8daa1a0e","/",{title:""},["/index.html","/README.md"]],["v-2d0ad528","/zh/",{title:""},["/zh/index.html","/zh/README.md"]],["v-2b46f756","/zh/base/",{title:"Map \u5730\u56FE"},["/zh/base/index.html","/zh/base/README.md"]],["v-743432fe","/zh/base/com-events.html",{title:"\u5168\u5C40\u7EC4\u4EF6\u4E8B\u4EF6"},["/zh/base/com-events","/zh/base/com-events.md"]],["v-1db05c2e","/zh/control/custom.html",{title:"Control \u81EA\u5B9A\u4E49\u63A7\u4EF6"},["/zh/control/custom","/zh/control/custom.md"]],["v-6750500c","/zh/control/navigation3d.html",{title:"Navigation3d 3D\u89C6\u89D2\u5BFC\u822A\u63A7\u4EF6"},["/zh/control/navigation3d","/zh/control/navigation3d.md"]],["v-4b26b0e9","/zh/control/scale.html",{title:"Scale \u6BD4\u4F8B\u5C3A\u63A7\u4EF6"},["/zh/control/scale","/zh/control/scale.md"]],["v-2a00fae8","/zh/control/zoom.html",{title:"Zoom \u7F29\u653E\u63A7\u4EF6"},["/zh/control/zoom","/zh/control/zoom.md"]],["v-62758f72","/zh/guide/quick-start.html",{title:"\u5FEB\u901F\u5F00\u59CB"},["/zh/guide/quick-start","/zh/guide/quick-start.md"]],["v-d4278ebc","/zh/overlay/circle.html",{title:"Circle \u5706\u5F62"},["/zh/overlay/circle","/zh/overlay/circle.md"]],["v-4d6f90ac","/zh/overlay/label.html",{title:"Label \u6587\u672C\u6807\u6CE8"},["/zh/overlay/label","/zh/overlay/label.md"]],["v-b1071910","/zh/overlay/marker.html",{title:"Marker \u6807\u6CE8\u70B9"},["/zh/overlay/marker","/zh/overlay/marker.md"]],["v-fe857f34","/zh/overlay/polygon.html",{title:"Polygon \u591A\u8FB9\u5F62"},["/zh/overlay/polygon","/zh/overlay/polygon.md"]],["v-679dc772","/zh/overlay/polyline.html",{title:"Polyline \u6298\u7EBF"},["/zh/overlay/polyline","/zh/overlay/polyline.md"]],["v-3706649a","/404.html",{title:""},["/404"]]],Jd=Gd.reduce((e,[t,n,r,o])=>(e.push({name:t,path:n,component:xs,meta:r},...o.map(s=>({path:s,redirect:n}))),e),[{name:"404",path:"/:catchAll(.*)",component:xs}]),Zd=_u,Qd=()=>{const e=tf({history:Zd(bf(ft.value.base)),routes:Jd,scrollBehavior:(t,n,r)=>r||(t.hash?{el:t.hash}:{top:0})});return e.beforeResolve(async(t,n)=>{var r;(t.path!==n.path||n===Ze)&&([Xe.value]=await Promise.all([yt.resolvePageData(t.name),(r=Xi[t.name])===null||r===void 0?void 0:r.__asyncLoader()]))}),e},Xd=e=>{e.component("ClientOnly",rf),e.component("Content",wo)},eh=(e,t)=>{const n=ve(()=>yt.resolveRouteLocale(ft.value.locales,t.currentRoute.value.path)),r=ve(()=>yt.resolveSiteLocaleData(ft.value,n.value)),o=ve(()=>yt.resolvePageFrontmatter(Xe.value)),s=ve(()=>yt.resolvePageHeadTitle(Xe.value,r.value)),i=ve(()=>yt.resolvePageHead(s.value,o.value,r.value)),l=ve(()=>yt.resolvePageLang(Xe.value));return e.provide(Eo,n),e.provide(sl,r),e.provide(nl,o),e.provide(uf,s),e.provide(rl,i),e.provide(ol,l),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get:()=>o.value},$head:{get:()=>i.value},$headTitle:{get:()=>s.value},$lang:{get:()=>l.value},$page:{get:()=>Xe.value},$routeLocale:{get:()=>n.value},$site:{get:()=>ft.value},$siteLocale:{get:()=>r.value},$withBase:{get:()=>wf}}),{pageData:Xe,pageFrontmatter:o,pageHead:i,pageHeadTitle:s,pageLang:l,routeLocale:n,siteData:ft,siteLocaleData:r}},th=()=>{const e=bo(),t=cf(),n=ff(),r=Te([]),o=()=>{t.value.forEach(i=>{const l=nh(i);l&&r.value.push(l)})},s=()=>{document.documentElement.lang=n.value,r.value.forEach(i=>{i.parentNode===document.head&&document.head.removeChild(i)}),r.value.splice(0,r.value.length),t.value.forEach(i=>{const l=rh(i);l!==null&&(document.head.appendChild(l),r.value.push(l))})};Pt(mf,s),mt(()=>{o(),s(),et(()=>e.path,()=>s())})},nh=([e,t,n=""])=>{const r=Object.entries(t).map(([l,a])=>he(a)?`[${l}="${a}"]`:a===!0?`[${l}]`:"").join(""),o=`head > ${e}${r}`;return Array.from(document.querySelectorAll(o)).find(l=>l.innerText===n)||null},rh=([e,t,n])=>{if(!he(e))return null;const r=document.createElement(e);return il(t)&&Object.entries(t).forEach(([o,s])=>{he(s)?r.setAttribute(o,s):s===!0&&r.setAttribute(o,"")}),he(n)&&r.appendChild(document.createTextNode(n)),r},oh=Qc,sh=async()=>{const e=oh({name:"VuepressApp",setup(){th();for(const n of Yd)n();return()=>[ge(Qi),...Nd.map(n=>ge(n))]}}),t=Qd();Xd(e),eh(e,t);for(const n of kd)await n({app:e,router:t,siteData:ft});return e.use(t),{app:e,router:t}};sh().then(({app:e,router:t})=>{t.isReady().then(()=>{e.mount("#app")})});export{_h as $,af as A,ve as B,U as C,fh as D,uh as E,Re as F,bo as G,lh as H,Ri as I,mc as J,yf as K,pf as L,gh as M,vh as N,ge as O,wf as P,rf as Q,yn as R,mh as S,go as T,Ef as U,bf as V,yo as W,he as X,Cd as Y,An as Z,ul as _,co as a,il as a0,ph as a1,Td as a2,sr as b,Oi as c,sh as createVueApp,qe as d,Ii as e,oo as f,Mi as g,Te as h,Ce as i,cc as j,ah as k,hh as l,ye as m,Xn as n,mt as o,Pt as p,Sa as q,ki as r,ch as s,Il as t,Tt as u,dh as v,et as w,fo as x,df as y,yl as z}; diff --git a/docs/dist/assets/circle.html.2f27ff8c.js b/docs/dist/assets/circle.html.e55dfa30.js similarity index 99% rename from docs/dist/assets/circle.html.2f27ff8c.js rename to docs/dist/assets/circle.html.e55dfa30.js index bb6ccd3d..5b84b0c3 100644 --- a/docs/dist/assets/circle.html.2f27ff8c.js +++ b/docs/dist/assets/circle.html.e55dfa30.js @@ -1,4 +1,4 @@ -import{_ as d,j as t,b as o,c as p,e as c,m as a,q as r,F as l,s as n}from"./app.1205231e.js";const u={},i=n(`

Circle \u5706\u5F62

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u5706\u5F62

import { Circle } from 'vue3-baidu-map-gl'
+import{_ as d,j as t,b as o,c as p,e as c,m as a,q as r,F as l,s as n}from"./app.e8329c2e.js";const u={},i=n(`

Circle \u5706\u5F62

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u5706\u5F62

import { Circle } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
enableClicking\u662F\u5426\u54CD\u5E94\u70B9\u51FB\u4E8B\u4EF6booleantrue
geodesic\u662F\u5426\u5F00\u542F\u5927\u5730\u7EBF\u6A21\u5F0F\uFF0Ctrue\u65F6\uFF0C\u4E24\u70B9\u8FDE\u7EBF\u5C06\u4EE5\u5927\u5730\u7EBF\u7684\u5F62\u5F0Fbooleanfalse
clip\u662F\u5426\u8FDB\u884C\u8DE8\u7ECF\u5EA6180\u5EA6\u88C1\u526A\uFF0C\u7ED8\u5236\u8DE8\u7CBE\u5EA6180\u65F6\u4E3A\u4E86\u4F18\u5316\u6548\u679Cbooleantrue

\u52A8\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
center\u5706\u5F62\u4E2D\u5FC3\u70B9\u7ECF\u7EAC\u5EA6{ lng: number, lat: number}required
radius\u5706\u5F62\u7684\u534A\u5F84\uFF0C\u5355\u4F4D\u4E3A\u7C73numberrequired
strokeColor\u63CF\u8FB9\u7684\u989C\u8272\uFF0C\u540CCSS\u989C\u8272string#000
strokeOpacity\u63CF\u8FB9\u7684\u900F\u660E\u5EA6\uFF0C\u8303\u56F40-1number0-11
fillColor\u9762\u586B\u5145\u989C\u8272\uFF0C\u540CCSS\u989C\u8272string#fff
fillOpacity\u9762\u586B\u5145\u7684\u900F\u660E\u5EA6\uFF0C\u8303\u56F40-1number0-10.3
strokeWeight\u63CF\u8FB9\u7684\u5BBD\u5EA6\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20number2
strokeStyle\u63CF\u8FB9\u7684\u6837\u5F0F\uFF0C\u4E3A\u5B9E\u7EBF\u3001\u865A\u7EBF\u3001\u6216\u8005\u70B9\u72B6\u7EBFstringsolid / dashed / dottedsolid
enableMassClear\u662F\u5426\u5728\u8C03\u7528map.clearOverlays\u6E05\u9664\u6B64\u8986\u76D6\u7269booleantrue
enableEditing\u662F\u5426\u542F\u7528\u7EBF\u7F16\u8F91booleanfalse

\u7EC4\u4EF6\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
click\u9F20\u6807\u5DE6\u952E\u5355\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570\u3002 \u5F53\u53CC\u51FB\u65F6\uFF0C\u4EA7\u751F\u7684\u4E8B\u4EF6\u5E8F\u5217\u4E3A\uFF1A click click dblclick((e: Event) => void)
dblclick\u9F20\u6807\u5DE6\u952E\u53CC\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mousedown\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u6309\u4E0B\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseup\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u62AC\u8D77\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseout\u9F20\u6807\u6307\u9488\u79FB\u51FA\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseover\u9F20\u6807\u6307\u9488\u79FB\u5165\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
remove\u8BE5\u8986\u76D6\u7269\u88AB\u79FB\u9664\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
lineupdate\u8986\u76D6\u7269\u88AB\u7F16\u8F91\u540E\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)

\u7EC4\u4EF6\u5B9E\u4F8B

`,10),k=n(`
<Map
   :minZoom="3" 
   height="400px"
diff --git a/docs/dist/assets/com-events.html.ae21a434.js b/docs/dist/assets/com-events.html.702140c6.js
similarity index 92%
rename from docs/dist/assets/com-events.html.ae21a434.js
rename to docs/dist/assets/com-events.html.702140c6.js
index 1df1c93d..a934dc22 100644
--- a/docs/dist/assets/com-events.html.ae21a434.js
+++ b/docs/dist/assets/com-events.html.702140c6.js
@@ -1 +1 @@
-import{_ as t,s as e}from"./app.1205231e.js";const d={},a=e('

\u5168\u5C40\u7EC4\u4EF6\u4E8B\u4EF6

\u6BCF\u4E2A\u7EC4\u4EF6\u90FD\u6709\u8FD9\u4E24\u4E2A\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
initd\u7EC4\u4EF6\u521D\u59CB\u5316\u540E,\u8C03\u7528\u7684\u65B9\u6CD5,\u8FD4\u56DE\u4E00\u4E2A\u5730\u56FE\u5B9E\u4F8B{map:BmapGL}
unload\u7EC4\u4EF6\u5378\u8F7D\u65F6\u4F1A\u8C03\u7528\u6B64\u65B9\u6CD5(event: {type: string, target: any, pixel: Pixel, point: Point }): void;
',3);function r(n,h){return a}var o=t(d,[["render",r],["__file","com-events.html.vue"]]);export{o as default}; +import{_ as t,s as e}from"./app.e8329c2e.js";const d={},a=e('

\u5168\u5C40\u7EC4\u4EF6\u4E8B\u4EF6

\u6BCF\u4E2A\u7EC4\u4EF6\u90FD\u6709\u8FD9\u4E24\u4E2A\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
initd\u7EC4\u4EF6\u521D\u59CB\u5316\u540E,\u8C03\u7528\u7684\u65B9\u6CD5,\u8FD4\u56DE\u4E00\u4E2A\u5730\u56FE\u5B9E\u4F8B{map:BmapGL}
unload\u7EC4\u4EF6\u5378\u8F7D\u65F6\u4F1A\u8C03\u7528\u6B64\u65B9\u6CD5(event: {type: string, target: any, pixel: Pixel, point: Point }): void;
',3);function r(n,h){return a}var o=t(d,[["render",r],["__file","com-events.html.vue"]]);export{o as default}; diff --git a/docs/dist/assets/custom.html.141ef4f6.js b/docs/dist/assets/custom.html.e76c605d.js similarity index 99% rename from docs/dist/assets/custom.html.141ef4f6.js rename to docs/dist/assets/custom.html.e76c605d.js index ea537b0b..c20d563e 100644 --- a/docs/dist/assets/custom.html.141ef4f6.js +++ b/docs/dist/assets/custom.html.e76c605d.js @@ -1,4 +1,4 @@ -import{_ as l,d as f,h as v,j as n,b as k,c as r,e as t,m as s,q as e,F as i,s as d}from"./app.1205231e.js";const h=d(`

Control \u81EA\u5B9A\u4E49\u63A7\u4EF6

\u6839\u636E\u5730\u56FE Map \u7EC4\u4EF6\u63D0\u4F9B\u7684Props, \u6216\u8005\u5730\u56FE\u5B9E\u4F8B,\u81EA\u5B9A\u4E49\u63A7\u4EF6

import { Control } from 'vue3-baidu-map-gl'
+import{_ as l,d as f,h as v,j as n,b as k,c as r,e as t,m as s,q as e,F as i,s as d}from"./app.e8329c2e.js";const h=d(`

Control \u81EA\u5B9A\u4E49\u63A7\u4EF6

\u6839\u636E\u5730\u56FE Map \u7EC4\u4EF6\u63D0\u4F9B\u7684Props, \u6216\u8005\u5730\u56FE\u5B9E\u4F8B,\u81EA\u5B9A\u4E49\u63A7\u4EF6

import { Control } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
anchor\u63A7\u4EF6\u7684\u505C\u9760\u4F4D\u7F6EstringanchorBMAP_ANCHOR_BOTTOM_LEFT
offset\u63A7\u4EF6\u7684\u504F\u79FB\u503C{x: number, y: number }{ x: 83, y: 18 }

anchor

\u503C\u8BF4\u660E
BMAP_ANCHOR_TOP_LEFT\u5DE6\u4E0A
BMAP_ANCHOR_TOP_RIGHT\u53F3\u4E0A
BMAP_ANCHOR_BOTTOM_LEFT\u5DE6\u4E0B
BMAP_ANCHOR_BOTTOM_RIGHT\u53F3\u4E0B

\u7EC4\u4EF6\u5B9E\u4F8B

`,8),g=d(`
<Map
   :minZoom="3"
   :zoom="zoom"
diff --git a/docs/dist/assets/index.dfb9b42f.js b/docs/dist/assets/index.05e41ef2.js
similarity index 94%
rename from docs/dist/assets/index.dfb9b42f.js
rename to docs/dist/assets/index.05e41ef2.js
index 69d40214..30c4b918 100644
--- a/docs/dist/assets/index.dfb9b42f.js
+++ b/docs/dist/assets/index.05e41ef2.js
@@ -1 +1 @@
-import{_ as C,d as D,w as p}from"./app.1205231e.js";import{u as h}from"./useBaseMapEffect.aa0ca7f0.js";import{b as k}from"./bindEvents.81d30a10.js";import{u as x}from"./useLife.2e7b82fe.js";function v(n){return Object.prototype.toString.call(n)==="[object String]"}let f=null;function P(){if(f!==null)return f;const n="//mapopen.bj.bcebos.com/cms/react-bmap/markers_new2x_fbb9e99.png";f={simple_red:new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(454/2,378/2),imageSize:new BMapGL.Size(600/2,600/2)}),simple_blue:new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(454/2,450/2),imageSize:new BMapGL.Size(600/2,600/2)}),loc_red:new BMapGL.Icon(n,new BMapGL.Size(46/2,70/2),{imageOffset:new BMapGL.Size(400/2,378/2),imageSize:new BMapGL.Size(600/2,600/2)}),loc_blue:new BMapGL.Icon(n,new BMapGL.Size(46/2,70/2),{imageOffset:new BMapGL.Size(400/2,450/2),imageSize:new BMapGL.Size(600/2,600/2)}),start:new BMapGL.Icon(n,new BMapGL.Size(50/2,80/2),{imageOffset:new BMapGL.Size(400/2,278/2),imageSize:new BMapGL.Size(600/2,600/2)}),end:new BMapGL.Icon(n,new BMapGL.Size(50/2,80/2),{imageOffset:new BMapGL.Size(450/2,278/2),imageSize:new BMapGL.Size(600/2,600/2)}),location:new BMapGL.Icon(n,new BMapGL.Size(28/2,40/2),{imageOffset:new BMapGL.Size(248/2,466/2),imageSize:new BMapGL.Size(600/2,600/2)})};for(let a=1;a<=10;a++)f["red"+a]=new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(42/2*(a-1),0),imageSize:new BMapGL.Size(600/2,600/2)});for(let a=1;a<=10;a++)f["blue"+a]=new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(42/2*(a-1),132/2),imageSize:new BMapGL.Size(600/2,600/2)});return f}const U=D({props:{position:null,offset:{default:()=>({x:0,y:0})},icon:null,enableMassClear:{type:Boolean,default:!0},enableDragging:{type:Boolean,default:!1},enableClicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{default:"pointer"},rotation:{default:0},title:{default:""},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onInfowindowclose:null,onInfowindowopen:null,onDragstart:null,onDragging:null,onDragend:null,onNightstick:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],setup(n,{emit:a}){const o=n,{ready:m}=x();let i;h(e=>{const l=()=>{e.removeOverlay(i)},c=()=>{const{position:s,offset:t,enableMassClear:g,enableDragging:u,enableClicking:r,raiseOnDrag:b,draggingCursor:I,rotation:O,title:_,icon:y}=o,B={offset:new BMapGL.Size(t.x,t.y),enableMassClear:g,enableDragging:u,enableClicking:r,raiseOnDrag:b,draggingCursor:I,title:_};y&&(B.icon=w()),i=new BMapGL.Marker(new BMapGL.Point(s.lng,s.lat),B),M(O),e.addOverlay(i),k(o,a,i)};return p(()=>o.position,L,{deep:!0}),p(()=>o.icon,S,{deep:!0}),p(()=>o.offset,z,{deep:!0}),p(()=>o.enableDragging,d),p(()=>o.enableMassClear,G),p(()=>o.rotation,M),c(),m(e),l});function w(){const e=P(),{icon:l}=o;if(v(l)&&e[l])return e[l];{const{anchor:c,imageOffset:s,imageSize:t,imageUrl:g,printImageUrl:u}=o.icon,r={imageSize:new BMapGL.Size(t.width,t.height)};return c&&(r.anchor=new BMapGL.Size(c.x,c.y)),s&&(r.imageOffset=new BMapGL.Size(s.x,s.y)),u&&(r.printImageUrl=u),new BMapGL.Icon(g,new BMapGL.Size(t.width,t.height),r)}}function L(e){i.setPosition(new BMapGL.Point(e.lng,e.lat))}function S(){i.setIcon(w())}function d(e){e?i.enableDragging():i.disableDragging()}function G(e){e?i.enableMassClear():i.disableMassClear()}function z(e){i.setOffset(new BMapGL.Size(e.x,e.y))}function M(e){i.setRotation(e)}return(e,l)=>null}});var q=C(U,[["__file","index.vue"]]);export{q as default};
+import{_ as C,d as D,w as p}from"./app.e8329c2e.js";import{u as h}from"./useBaseMapEffect.90e9ccd0.js";import{b as k}from"./bindEvents.81d30a10.js";import{u as x}from"./useLife.970079a8.js";function v(n){return Object.prototype.toString.call(n)==="[object String]"}let f=null;function P(){if(f!==null)return f;const n="//mapopen.bj.bcebos.com/cms/react-bmap/markers_new2x_fbb9e99.png";f={simple_red:new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(454/2,378/2),imageSize:new BMapGL.Size(600/2,600/2)}),simple_blue:new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(454/2,450/2),imageSize:new BMapGL.Size(600/2,600/2)}),loc_red:new BMapGL.Icon(n,new BMapGL.Size(46/2,70/2),{imageOffset:new BMapGL.Size(400/2,378/2),imageSize:new BMapGL.Size(600/2,600/2)}),loc_blue:new BMapGL.Icon(n,new BMapGL.Size(46/2,70/2),{imageOffset:new BMapGL.Size(400/2,450/2),imageSize:new BMapGL.Size(600/2,600/2)}),start:new BMapGL.Icon(n,new BMapGL.Size(50/2,80/2),{imageOffset:new BMapGL.Size(400/2,278/2),imageSize:new BMapGL.Size(600/2,600/2)}),end:new BMapGL.Icon(n,new BMapGL.Size(50/2,80/2),{imageOffset:new BMapGL.Size(450/2,278/2),imageSize:new BMapGL.Size(600/2,600/2)}),location:new BMapGL.Icon(n,new BMapGL.Size(28/2,40/2),{imageOffset:new BMapGL.Size(248/2,466/2),imageSize:new BMapGL.Size(600/2,600/2)})};for(let a=1;a<=10;a++)f["red"+a]=new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(42/2*(a-1),0),imageSize:new BMapGL.Size(600/2,600/2)});for(let a=1;a<=10;a++)f["blue"+a]=new BMapGL.Icon(n,new BMapGL.Size(42/2,66/2),{imageOffset:new BMapGL.Size(42/2*(a-1),132/2),imageSize:new BMapGL.Size(600/2,600/2)});return f}const U=D({props:{position:null,offset:{default:()=>({x:0,y:0})},icon:null,enableMassClear:{type:Boolean,default:!0},enableDragging:{type:Boolean,default:!1},enableClicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{default:"pointer"},rotation:{default:0},title:{default:""},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onInfowindowclose:null,onInfowindowopen:null,onDragstart:null,onDragging:null,onDragend:null,onNightstick:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],setup(n,{emit:a}){const o=n,{ready:m}=x();let i;h(e=>{const l=()=>{e.removeOverlay(i)},c=()=>{const{position:s,offset:t,enableMassClear:g,enableDragging:u,enableClicking:r,raiseOnDrag:b,draggingCursor:I,rotation:O,title:_,icon:y}=o,B={offset:new BMapGL.Size(t.x,t.y),enableMassClear:g,enableDragging:u,enableClicking:r,raiseOnDrag:b,draggingCursor:I,title:_};y&&(B.icon=w()),i=new BMapGL.Marker(new BMapGL.Point(s.lng,s.lat),B),M(O),e.addOverlay(i),k(o,a,i)};return p(()=>o.position,L,{deep:!0}),p(()=>o.icon,S,{deep:!0}),p(()=>o.offset,z,{deep:!0}),p(()=>o.enableDragging,d),p(()=>o.enableMassClear,G),p(()=>o.rotation,M),c(),m(e),l});function w(){const e=P(),{icon:l}=o;if(v(l)&&e[l])return e[l];{const{anchor:c,imageOffset:s,imageSize:t,imageUrl:g,printImageUrl:u}=o.icon,r={imageSize:new BMapGL.Size(t.width,t.height)};return c&&(r.anchor=new BMapGL.Size(c.x,c.y)),s&&(r.imageOffset=new BMapGL.Size(s.x,s.y)),u&&(r.printImageUrl=u),new BMapGL.Icon(g,new BMapGL.Size(t.width,t.height),r)}}function L(e){i.setPosition(new BMapGL.Point(e.lng,e.lat))}function S(){i.setIcon(w())}function d(e){e?i.enableDragging():i.disableDragging()}function G(e){e?i.enableMassClear():i.disableMassClear()}function z(e){i.setOffset(new BMapGL.Size(e.x,e.y))}function M(e){i.setRotation(e)}return(e,l)=>null}});var q=C(U,[["__file","index.vue"]]);export{q as default};
diff --git a/docs/dist/assets/index.3c2eae00.js b/docs/dist/assets/index.26666c3d.js
similarity index 66%
rename from docs/dist/assets/index.3c2eae00.js
rename to docs/dist/assets/index.26666c3d.js
index 0c490597..c3198a77 100644
--- a/docs/dist/assets/index.3c2eae00.js
+++ b/docs/dist/assets/index.26666c3d.js
@@ -1 +1 @@
-import{_ as s,d as a,b as f,c as i}from"./app.1205231e.js";import{u as c}from"./useBaseMapEffect.aa0ca7f0.js";import{u as d}from"./useLife.2e7b82fe.js";const l=a({props:{anchor:{default:"BMAP_ANCHOR_BOTTOM_RIGHT"},offset:{default:()=>({x:83,y:18})}},emits:["initd","unload"],setup(n){const e=n,{ready:r}=d();let t;return c(o=>(t=new window.BMapGL.ZoomControl({offset:new window.BMapGL.Size(e.offset.x,e.offset.y),anchor:window[e.anchor]}),o.addControl(t),r(o),()=>o.removeControl(t))),(o,p)=>(f(),i("div"))}});var w=s(l,[["__file","index.vue"]]);export{w as default};
+import{_ as s,d as a,b as f,c as i}from"./app.e8329c2e.js";import{u as c}from"./useBaseMapEffect.90e9ccd0.js";import{u as d}from"./useLife.970079a8.js";const l=a({props:{anchor:{default:"BMAP_ANCHOR_BOTTOM_RIGHT"},offset:{default:()=>({x:83,y:18})}},emits:["initd","unload"],setup(n){const e=n,{ready:r}=d();let t;return c(o=>(t=new window.BMapGL.ZoomControl({offset:new window.BMapGL.Size(e.offset.x,e.offset.y),anchor:window[e.anchor]}),o.addControl(t),r(o),()=>o.removeControl(t))),(o,p)=>(f(),i("div"))}});var w=s(l,[["__file","index.vue"]]);export{w as default};
diff --git a/docs/dist/assets/index.78740035.js b/docs/dist/assets/index.6326f851.js
similarity index 85%
rename from docs/dist/assets/index.78740035.js
rename to docs/dist/assets/index.6326f851.js
index 8a18902f..e2513bc5 100644
--- a/docs/dist/assets/index.78740035.js
+++ b/docs/dist/assets/index.6326f851.js
@@ -1 +1 @@
-import{_ as w,d as _,w as o}from"./app.1205231e.js";import{u as x}from"./useBaseMapEffect.aa0ca7f0.js";import{b as B}from"./bindEvents.81d30a10.js";import{u as L}from"./useLife.2e7b82fe.js";const k=_({props:{content:null,position:null,offset:{default:()=>({x:0,y:0})},enableMassClear:{type:Boolean,default:!0},style:null,onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onRightclick:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],setup(u,{emit:r}){const n=u,{ready:c}=L();let t;x(e=>{const s=()=>{e.removeOverlay(t)},y=()=>{const{content:b,position:l,offset:a,enableMassClear:v,style:i}=n,C={position:new BMapGL.Point(l.lng,l.lat),offset:new BMapGL.Size(a.x,a.y),enableMassClear:v};t=new BMapGL.Label(b,C),i&&t.setStyle(i),e.addOverlay(t),B(n,r,t)};return o(()=>n.position,()=>f,{deep:!0}),o(()=>n.offset,()=>m,{deep:!0}),o(()=>n.style,()=>p,{deep:!0}),o(()=>n.content,()=>d),o(()=>n.enableMassClear,()=>M),y(),c(e),s});function f(e){t.setPosition(new BMapGL.Point(e.lng,e.lat))}function p(e){t.setStyle(e)}function d(e){t.setContent(e)}function m(e){t.setOffset(new BMapGL.Size(e.x,e.y))}function M(e){e?t.enableMassClear():t.disableMassClear()}return(e,s)=>null}});var O=w(k,[["__file","index.vue"]]);export{O as default};
+import{_ as w,d as _,w as o}from"./app.e8329c2e.js";import{u as x}from"./useBaseMapEffect.90e9ccd0.js";import{b as B}from"./bindEvents.81d30a10.js";import{u as L}from"./useLife.970079a8.js";const k=_({props:{content:null,position:null,offset:{default:()=>({x:0,y:0})},enableMassClear:{type:Boolean,default:!0},style:null,onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onRightclick:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],setup(u,{emit:r}){const n=u,{ready:c}=L();let t;x(e=>{const s=()=>{e.removeOverlay(t)},y=()=>{const{content:b,position:l,offset:a,enableMassClear:v,style:i}=n,C={position:new BMapGL.Point(l.lng,l.lat),offset:new BMapGL.Size(a.x,a.y),enableMassClear:v};t=new BMapGL.Label(b,C),i&&t.setStyle(i),e.addOverlay(t),B(n,r,t)};return o(()=>n.position,()=>f,{deep:!0}),o(()=>n.offset,()=>m,{deep:!0}),o(()=>n.style,()=>p,{deep:!0}),o(()=>n.content,()=>d),o(()=>n.enableMassClear,()=>M),y(),c(e),s});function f(e){t.setPosition(new BMapGL.Point(e.lng,e.lat))}function p(e){t.setStyle(e)}function d(e){t.setContent(e)}function m(e){t.setOffset(new BMapGL.Size(e.x,e.y))}function M(e){e?t.enableMassClear():t.disableMassClear()}return(e,s)=>null}});var O=w(k,[["__file","index.vue"]]);export{O as default};
diff --git a/docs/dist/assets/index.8bff2b04.js b/docs/dist/assets/index.6a829b55.js
similarity index 86%
rename from docs/dist/assets/index.8bff2b04.js
rename to docs/dist/assets/index.6a829b55.js
index baf3ee8b..6cd3ab9f 100644
--- a/docs/dist/assets/index.8bff2b04.js
+++ b/docs/dist/assets/index.6a829b55.js
@@ -1 +1 @@
-import{_ as O,d as x,b as L,c as W,w as n}from"./app.1205231e.js";import{u as G}from"./useBaseMapEffect.aa0ca7f0.js";import{b as D}from"./bindEvents.81d30a10.js";import{u as R}from"./useLife.2e7b82fe.js";const T=x({props:{path:null,strokeColor:{default:"#000"},strokeWeight:{default:2},strokeOpacity:{default:1},strokeStyle:{default:"solid"},enableMassClear:{type:Boolean,default:!0},enableEditing:{type:Boolean,default:!1},enableClicking:{type:Boolean,default:!0},geodesic:{type:Boolean,default:!1},clip:{type:Boolean,default:!0},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onLineupdate:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],setup(s,{emit:i}){const o=s,{ready:r}=R();let t;G(e=>{if(!o.path.length)return;const l=()=>{e.removeOverlay(t)},a=()=>{const{strokeColor:b,strokeWeight:g,strokeOpacity:h,strokeStyle:C,enableMassClear:M,enableEditing:S,enableClicking:v,geodesic:B,clip:E}=o,_=o.path.map(({lng:P,lat:w})=>new BMapGL.Point(P,w));t=new BMapGL.Polyline(_,{strokeColor:b,strokeWeight:g,strokeOpacity:h,strokeStyle:C,enableMassClear:M,enableEditing:S,enableClicking:v,geodesic:B,clip:E}),e.addOverlay(t),D(o,i,t)};return n(()=>o.path,()=>c,{deep:!0}),n(()=>o.strokeColor,()=>p),n(()=>o.strokeOpacity,()=>d),n(()=>o.strokeWeight,()=>f),n(()=>o.strokeStyle,()=>k),n(()=>o.enableMassClear,()=>m),n(()=>o.enableEditing,()=>y),a(),r(e),l});function u(e){return e.map(({lng:l,lat:a})=>new BMapGL.Point(l,a))}function c(e){t.setPath(u(e))}function p(e){t.setStrokeColor(e)}function d(e){t.setStrokeOpacity(e)}function f(e){t.setStrokeWeight(e)}function k(e){t.setStrokeStyle(e)}function m(e){e?t.enableMassClear():t.disableMassClear()}function y(e){e?t.enableEditing():t.disableEditing()}return(e,l)=>(L(),W("div"))}});var F=O(T,[["__file","index.vue"]]);export{F as default};
+import{_ as O,d as x,b as L,c as W,w as n}from"./app.e8329c2e.js";import{u as G}from"./useBaseMapEffect.90e9ccd0.js";import{b as D}from"./bindEvents.81d30a10.js";import{u as R}from"./useLife.970079a8.js";const T=x({props:{path:null,strokeColor:{default:"#000"},strokeWeight:{default:2},strokeOpacity:{default:1},strokeStyle:{default:"solid"},enableMassClear:{type:Boolean,default:!0},enableEditing:{type:Boolean,default:!1},enableClicking:{type:Boolean,default:!0},geodesic:{type:Boolean,default:!1},clip:{type:Boolean,default:!0},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onLineupdate:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],setup(s,{emit:i}){const o=s,{ready:r}=R();let t;G(e=>{if(!o.path.length)return;const l=()=>{e.removeOverlay(t)},a=()=>{const{strokeColor:b,strokeWeight:g,strokeOpacity:h,strokeStyle:C,enableMassClear:M,enableEditing:S,enableClicking:v,geodesic:B,clip:E}=o,_=o.path.map(({lng:P,lat:w})=>new BMapGL.Point(P,w));t=new BMapGL.Polyline(_,{strokeColor:b,strokeWeight:g,strokeOpacity:h,strokeStyle:C,enableMassClear:M,enableEditing:S,enableClicking:v,geodesic:B,clip:E}),e.addOverlay(t),D(o,i,t)};return n(()=>o.path,()=>c,{deep:!0}),n(()=>o.strokeColor,()=>p),n(()=>o.strokeOpacity,()=>d),n(()=>o.strokeWeight,()=>f),n(()=>o.strokeStyle,()=>k),n(()=>o.enableMassClear,()=>m),n(()=>o.enableEditing,()=>y),a(),r(e),l});function u(e){return e.map(({lng:l,lat:a})=>new BMapGL.Point(l,a))}function c(e){t.setPath(u(e))}function p(e){t.setStrokeColor(e)}function d(e){t.setStrokeOpacity(e)}function f(e){t.setStrokeWeight(e)}function k(e){t.setStrokeStyle(e)}function m(e){e?t.enableMassClear():t.disableMassClear()}function y(e){e?t.enableEditing():t.disableEditing()}return(e,l)=>(L(),W("div"))}});var F=O(T,[["__file","index.vue"]]);export{F as default};
diff --git a/docs/dist/assets/index.4d673253.js b/docs/dist/assets/index.74e821d6.js
similarity index 90%
rename from docs/dist/assets/index.4d673253.js
rename to docs/dist/assets/index.74e821d6.js
index 718940f0..e35caca8 100644
--- a/docs/dist/assets/index.4d673253.js
+++ b/docs/dist/assets/index.74e821d6.js
@@ -1 +1 @@
-import{_ as F,d as L,w as l}from"./app.1205231e.js";import{u as G}from"./useBaseMapEffect.aa0ca7f0.js";import{b as D}from"./bindEvents.81d30a10.js";import{u as R}from"./useLife.2e7b82fe.js";const T=L({props:{path:null,strokeColor:{default:"#000"},strokeWeight:{default:2},strokeOpacity:{default:1},strokeStyle:{default:"solid"},fillColor:{default:"#fff"},fillOpacity:{default:.3},enableMassClear:{type:Boolean},enableEditing:{type:Boolean},enableClicking:{type:Boolean},geodesic:{type:Boolean,default:!1},clip:{type:Boolean,default:!0},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onLineupdate:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],setup(a,{emit:r}){const o=a,{ready:u}=R();let t;G(e=>{if(!o.path.length)return;const n=()=>{e.removeOverlay(t)},i=()=>{const{path:b,strokeColor:h,strokeWeight:M,strokeOpacity:S,strokeStyle:O,fillOpacity:v,fillColor:_,enableMassClear:B,enableEditing:E,enableClicking:P,geodesic:w,clip:x}=o,W=s(b);t=new BMapGL.Polygon(W,{strokeColor:h,strokeWeight:M,strokeOpacity:S,strokeStyle:O,fillOpacity:v,fillColor:_,enableMassClear:B,enableEditing:E,enableClicking:P,geodesic:w,clip:x}),e.addOverlay(t),D(o,r,t)};return l(()=>o.path,()=>c,{deep:!0}),l(()=>o.strokeColor,()=>p),l(()=>o.strokeOpacity,()=>d),l(()=>o.fillColor,()=>f),l(()=>o.fillOpacity,()=>k),l(()=>o.strokeWeight,()=>y),l(()=>o.strokeStyle,()=>C),l(()=>o.enableMassClear,()=>g),l(()=>o.enableEditing,()=>m),i(),u(e),n});function s(e){return e.map(({lng:n,lat:i})=>new BMapGL.Point(n,i))}function c(e){t.setPath(s(e))}function p(e){t.setStrokeColor(e)}function f(e){t.setFillColor(e)}function d(e){t.setStrokeOpacity(e)}function k(e){t.setFillOpacity(e)}function y(e){t.setStrokeWeight(e)}function C(e){t.setStrokeStyle(e)}function g(e){e?t.enableMassClear():t.disableMassClear()}function m(e){e?t.enableEditing():t.disableEditing()}return(e,n)=>null}});var H=F(T,[["__file","index.vue"]]);export{H as default};
+import{_ as F,d as L,w as l}from"./app.e8329c2e.js";import{u as G}from"./useBaseMapEffect.90e9ccd0.js";import{b as D}from"./bindEvents.81d30a10.js";import{u as R}from"./useLife.970079a8.js";const T=L({props:{path:null,strokeColor:{default:"#000"},strokeWeight:{default:2},strokeOpacity:{default:1},strokeStyle:{default:"solid"},fillColor:{default:"#fff"},fillOpacity:{default:.3},enableMassClear:{type:Boolean},enableEditing:{type:Boolean},enableClicking:{type:Boolean},geodesic:{type:Boolean,default:!1},clip:{type:Boolean,default:!0},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onLineupdate:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],setup(a,{emit:r}){const o=a,{ready:u}=R();let t;G(e=>{if(!o.path.length)return;const n=()=>{e.removeOverlay(t)},i=()=>{const{path:b,strokeColor:h,strokeWeight:M,strokeOpacity:S,strokeStyle:O,fillOpacity:v,fillColor:_,enableMassClear:B,enableEditing:E,enableClicking:P,geodesic:w,clip:x}=o,W=s(b);t=new BMapGL.Polygon(W,{strokeColor:h,strokeWeight:M,strokeOpacity:S,strokeStyle:O,fillOpacity:v,fillColor:_,enableMassClear:B,enableEditing:E,enableClicking:P,geodesic:w,clip:x}),e.addOverlay(t),D(o,r,t)};return l(()=>o.path,()=>c,{deep:!0}),l(()=>o.strokeColor,()=>p),l(()=>o.strokeOpacity,()=>d),l(()=>o.fillColor,()=>f),l(()=>o.fillOpacity,()=>k),l(()=>o.strokeWeight,()=>y),l(()=>o.strokeStyle,()=>C),l(()=>o.enableMassClear,()=>g),l(()=>o.enableEditing,()=>m),i(),u(e),n});function s(e){return e.map(({lng:n,lat:i})=>new BMapGL.Point(n,i))}function c(e){t.setPath(s(e))}function p(e){t.setStrokeColor(e)}function f(e){t.setFillColor(e)}function d(e){t.setStrokeOpacity(e)}function k(e){t.setFillOpacity(e)}function y(e){t.setStrokeWeight(e)}function C(e){t.setStrokeStyle(e)}function g(e){e?t.enableMassClear():t.disableMassClear()}function m(e){e?t.enableEditing():t.disableEditing()}return(e,n)=>null}});var H=F(T,[["__file","index.vue"]]);export{H as default};
diff --git a/docs/dist/assets/index.b93ff2da.js b/docs/dist/assets/index.773c2ec3.js
similarity index 65%
rename from docs/dist/assets/index.b93ff2da.js
rename to docs/dist/assets/index.773c2ec3.js
index 7334c022..70c8b217 100644
--- a/docs/dist/assets/index.b93ff2da.js
+++ b/docs/dist/assets/index.773c2ec3.js
@@ -1 +1 @@
-import{_ as a,d as f}from"./app.1205231e.js";import{u as s}from"./useBaseMapEffect.aa0ca7f0.js";import{u as i}from"./useLife.2e7b82fe.js";const d=f({props:{anchor:{default:"BMAP_ANCHOR_BOTTOM_RIGHT"},offset:{default:()=>({x:83,y:18})}},emits:["initd","unload"],setup(n){const e=n,{ready:r}=i();let t;return s(o=>(t=new window.BMapGL.NavigationControl3D({offset:new window.BMapGL.Size(e.offset.x,e.offset.y),anchor:window[e.anchor]}),o.addControl(t),r(o),()=>o.removeControl(t))),(o,u)=>null}});var _=a(d,[["__file","index.vue"]]);export{_ as default};
+import{_ as a,d as f}from"./app.e8329c2e.js";import{u as s}from"./useBaseMapEffect.90e9ccd0.js";import{u as i}from"./useLife.970079a8.js";const d=f({props:{anchor:{default:"BMAP_ANCHOR_BOTTOM_RIGHT"},offset:{default:()=>({x:83,y:18})}},emits:["initd","unload"],setup(n){const e=n,{ready:r}=i();let t;return s(o=>(t=new window.BMapGL.NavigationControl3D({offset:new window.BMapGL.Size(e.offset.x,e.offset.y),anchor:window[e.anchor]}),o.addControl(t),r(o),()=>o.removeControl(t))),(o,u)=>null}});var _=a(d,[["__file","index.vue"]]);export{_ as default};
diff --git a/docs/dist/assets/index.03b9c72f.js b/docs/dist/assets/index.7b3fc084.js
similarity index 72%
rename from docs/dist/assets/index.03b9c72f.js
rename to docs/dist/assets/index.7b3fc084.js
index d5b684d5..fa859320 100644
--- a/docs/dist/assets/index.03b9c72f.js
+++ b/docs/dist/assets/index.7b3fc084.js
@@ -1 +1 @@
-import{_ as a,d as i,w as f,b as c,c as u}from"./app.1205231e.js";import{u as d}from"./useBaseMapEffect.aa0ca7f0.js";import{u as l}from"./useLife.2e7b82fe.js";const _=i({props:{anchor:{default:"BMAP_ANCHOR_BOTTOM_LEFT"},offset:{default:()=>({x:83,y:18})},unit:{default:"BMAP_UNIT_METRIC"}},emits:["initd","unload"],setup(s){const e=s,{ready:r}=l();let t;d(o=>(console.log("\u521D\u59CB\u5316",o),t=new window.BMapGL.ScaleControl({offset:new window.BMapGL.Size(e.offset.x,e.offset.y),anchor:window[e.anchor]}),n(),o.addControl(t),r(o),()=>o.removeControl(t))),f(()=>e.unit,n);function n(){t.setUnit(window[e.unit])}return(o,p)=>(c(),u("div"))}});var C=a(_,[["__file","index.vue"]]);export{C as default};
+import{_ as a,d as i,w as f,b as c,c as u}from"./app.e8329c2e.js";import{u as d}from"./useBaseMapEffect.90e9ccd0.js";import{u as l}from"./useLife.970079a8.js";const _=i({props:{anchor:{default:"BMAP_ANCHOR_BOTTOM_LEFT"},offset:{default:()=>({x:83,y:18})},unit:{default:"BMAP_UNIT_METRIC"}},emits:["initd","unload"],setup(s){const e=s,{ready:r}=l();let t;d(o=>(console.log("\u521D\u59CB\u5316",o),t=new window.BMapGL.ScaleControl({offset:new window.BMapGL.Size(e.offset.x,e.offset.y),anchor:window[e.anchor]}),n(),o.addControl(t),r(o),()=>o.removeControl(t))),f(()=>e.unit,n);function n(){t.setUnit(window[e.unit])}return(o,p)=>(c(),u("div"))}});var C=a(_,[["__file","index.vue"]]);export{C as default};
diff --git a/docs/dist/assets/index.324d77ad.js b/docs/dist/assets/index.9c75391a.js
similarity index 88%
rename from docs/dist/assets/index.324d77ad.js
rename to docs/dist/assets/index.9c75391a.js
index 524e750f..9f06c13a 100644
--- a/docs/dist/assets/index.324d77ad.js
+++ b/docs/dist/assets/index.9c75391a.js
@@ -1 +1 @@
-import{_ as G,d as P,b as R,c as D,w as o}from"./app.1205231e.js";import{u as j}from"./useBaseMapEffect.aa0ca7f0.js";import{b as q}from"./bindEvents.81d30a10.js";import{u as z}from"./useLife.2e7b82fe.js";const A=P({props:{center:null,radius:null,strokeColor:{default:"#000"},strokeOpacity:{default:1},fillColor:{default:"#fff"},fillOpacity:{default:.3},strokeWeight:{default:2},strokeStyle:{default:"solid"},enableMassClear:{type:Boolean,default:!0},enableEditing:{type:Boolean,default:!1},enableClicking:{type:Boolean,default:!0},geodesic:{type:Boolean,default:!1},clip:{type:Boolean,default:!0},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onLineupdate:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],setup(s,{emit:a}){const l=s,{ready:r}=z();let t;j(e=>{const n=()=>{e.removeOverlay(t)},g=()=>{const{center:i,radius:M,strokeColor:S,strokeOpacity:O,fillColor:v,fillOpacity:B,strokeWeight:E,strokeStyle:_,enableMassClear:h,enableEditing:w,enableClicking:x,geodesic:L,clip:W}=l,F=new BMapGL.Point(i.lng,i.lat);t=new BMapGL.Circle(F,M,{strokeColor:S,strokeWeight:E,strokeOpacity:O,strokeStyle:_,enableMassClear:h,enableEditing:w,enableClicking:x,geodesic:L,clip:W,fillOpacity:B,fillColor:v}),e.addOverlay(t),q(l,a,t)};return o(()=>l.center,()=>c,{deep:!0}),o(()=>l.radius,()=>u),o(()=>l.strokeColor,()=>d),o(()=>l.strokeOpacity,()=>p),o(()=>l.fillColor,()=>f),o(()=>l.fillOpacity,()=>k),o(()=>l.strokeWeight,()=>y),o(()=>l.strokeStyle,()=>C),o(()=>l.enableMassClear,()=>m),o(()=>l.enableEditing,()=>b),g(),r(e),n});function u(e){t.setRadius(e)}function c(e){t.setCenter(new BMapGL.Point(e.lng,e.lat))}function d(e){t.setStrokeColor(e)}function f(e){t.setFillColor(e)}function p(e){t.setStrokeOpacity(e)}function k(e){t.setFillOpacity(e)}function y(e){t.setStrokeWeight(e)}function C(e){t.setStrokeStyle(e)}function m(e){e?t.enableMassClear():t.disableMassClear()}function b(e){e?t.enableEditing():t.disableEditing()}return(e,n)=>(R(),D("div"))}});var N=G(A,[["__file","index.vue"]]);export{N as default};
+import{_ as G,d as P,b as R,c as D,w as o}from"./app.e8329c2e.js";import{u as j}from"./useBaseMapEffect.90e9ccd0.js";import{b as q}from"./bindEvents.81d30a10.js";import{u as z}from"./useLife.970079a8.js";const A=P({props:{center:null,radius:null,strokeColor:{default:"#000"},strokeOpacity:{default:1},fillColor:{default:"#fff"},fillOpacity:{default:.3},strokeWeight:{default:2},strokeStyle:{default:"solid"},enableMassClear:{type:Boolean,default:!0},enableEditing:{type:Boolean,default:!1},enableClicking:{type:Boolean,default:!0},geodesic:{type:Boolean,default:!1},clip:{type:Boolean,default:!0},onClick:null,onDblclick:null,onMousedown:null,onMouseup:null,onMouseout:null,onMouseover:null,onRemove:null,onLineupdate:null},emits:["initd","unload","click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],setup(s,{emit:a}){const l=s,{ready:r}=z();let t;j(e=>{const n=()=>{e.removeOverlay(t)},g=()=>{const{center:i,radius:M,strokeColor:S,strokeOpacity:O,fillColor:v,fillOpacity:B,strokeWeight:E,strokeStyle:_,enableMassClear:h,enableEditing:w,enableClicking:x,geodesic:L,clip:W}=l,F=new BMapGL.Point(i.lng,i.lat);t=new BMapGL.Circle(F,M,{strokeColor:S,strokeWeight:E,strokeOpacity:O,strokeStyle:_,enableMassClear:h,enableEditing:w,enableClicking:x,geodesic:L,clip:W,fillOpacity:B,fillColor:v}),e.addOverlay(t),q(l,a,t)};return o(()=>l.center,()=>c,{deep:!0}),o(()=>l.radius,()=>u),o(()=>l.strokeColor,()=>d),o(()=>l.strokeOpacity,()=>p),o(()=>l.fillColor,()=>f),o(()=>l.fillOpacity,()=>k),o(()=>l.strokeWeight,()=>y),o(()=>l.strokeStyle,()=>C),o(()=>l.enableMassClear,()=>m),o(()=>l.enableEditing,()=>b),g(),r(e),n});function u(e){t.setRadius(e)}function c(e){t.setCenter(new BMapGL.Point(e.lng,e.lat))}function d(e){t.setStrokeColor(e)}function f(e){t.setFillColor(e)}function p(e){t.setStrokeOpacity(e)}function k(e){t.setFillOpacity(e)}function y(e){t.setStrokeWeight(e)}function C(e){t.setStrokeStyle(e)}function m(e){e?t.enableMassClear():t.disableMassClear()}function b(e){e?t.enableEditing():t.disableEditing()}return(e,n)=>(R(),D("div"))}});var N=G(A,[["__file","index.vue"]]);export{N as default};
diff --git a/docs/dist/assets/index.c36c7e18.js b/docs/dist/assets/index.c616a8c4.js
similarity index 74%
rename from docs/dist/assets/index.c36c7e18.js
rename to docs/dist/assets/index.c616a8c4.js
index 4f8544c6..27725df6 100644
--- a/docs/dist/assets/index.c36c7e18.js
+++ b/docs/dist/assets/index.c616a8c4.js
@@ -1 +1 @@
-import{_ as f,d as i,h as d,o as l,b as u,c,r as p}from"./app.1205231e.js";import{u as _}from"./useLife.2e7b82fe.js";import{u as m}from"./useBaseMapEffect.aa0ca7f0.js";const C=i({props:{anchor:{default:"BMAP_ANCHOR_TOP_LEFT"},offset:{default:()=>({x:83,y:18})}},emits:["initd","unload"],setup(r){const t=r,n=d(),{ready:a}=_();return l(()=>{m(o=>{const e=new window.BMapGL.Control;if(!!n.value)return e.defaultAnchor=window[t.anchor],e.defaultOffset=new window.BMapGL.Size(t.offset.x,t.offset.y),e.initialize=s=>s.getContainer().appendChild(n.value),o.addControl(e),a(o),()=>o.removeControl(e)})}),(o,e)=>(u(),c("div",{ref_key:"controlContainer",ref:n},[p(o.$slots,"default")],512))}});var x=f(C,[["__file","index.vue"]]);export{x as default};
+import{_ as f,d as i,h as d,o as l,b as u,c,r as p}from"./app.e8329c2e.js";import{u as _}from"./useLife.970079a8.js";import{u as m}from"./useBaseMapEffect.90e9ccd0.js";const C=i({props:{anchor:{default:"BMAP_ANCHOR_TOP_LEFT"},offset:{default:()=>({x:83,y:18})}},emits:["initd","unload"],setup(r){const t=r,n=d(),{ready:a}=_();return l(()=>{m(o=>{const e=new window.BMapGL.Control;if(!!n.value)return e.defaultAnchor=window[t.anchor],e.defaultOffset=new window.BMapGL.Size(t.offset.x,t.offset.y),e.initialize=s=>s.getContainer().appendChild(n.value),o.addControl(e),a(o),()=>o.removeControl(e)})}),(o,e)=>(u(),c("div",{ref_key:"controlContainer",ref:n},[p(o.$slots,"default")],512))}});var x=f(C,[["__file","index.vue"]]);export{x as default};
diff --git a/docs/dist/assets/index.5b00e009.js b/docs/dist/assets/index.ce5b6421.js
similarity index 98%
rename from docs/dist/assets/index.5b00e009.js
rename to docs/dist/assets/index.ce5b6421.js
index 57cb1ef4..e55d6360 100644
--- a/docs/dist/assets/index.5b00e009.js
+++ b/docs/dist/assets/index.ce5b6421.js
@@ -1 +1 @@
-import{_ as E,d as j,i as F,w as t,o as G,a as N,p as $,b as U,c as V,e as w,t as Y,u as q,n as J,r as Q,F as X,f as ee}from"./app.1205231e.js";import{u as oe}from"./useLife.2e7b82fe.js";import{b as ne}from"./bindEvents.81d30a10.js";const te={style:{position:"absolute",top:"50%",left:"50%",transform:"translateY(-50%, -50%)"}},le=j({props:{ak:null,width:{default:"100%"},height:{default:"400px"},center:{default:()=>({lat:39.915185,lng:116.403901})},mapType:{default:"BMAP_NORMAL_MAP"},zoom:{default:16},heading:{default:0},tilt:{default:0},minZoom:{default:0},maxZoom:{default:21},enableDragging:{type:Boolean,default:!0},enableInertialDragging:{type:Boolean,default:!0},enableScrollWheelZoom:{type:Boolean,default:!0},enableContinuousZoom:{type:Boolean,default:!0},enableResizeOnCenter:{type:Boolean,default:!0},enableDoubleClickZoom:{type:Boolean,default:!1},enableKeyboard:{type:Boolean,default:!0},enablePinchToZoom:{type:Boolean,default:!0},enableAutoResize:{type:Boolean,default:!0},onClick:null,onDblclick:null,onRightclick:null,onRightdblclick:null,onMaptypechange:null,onMousemove:null,onMouseover:null,onMouseout:null,onMovestart:null,onMoving:null,onMoveend:null,onZoomstart:null,onZoomend:null,onAddoverlay:null,onAddcontrol:null,onRemovecontrol:null,onRemoveoverlay:null,onClearoverlays:null,onDragstart:null,onDragging:null,onDragend:null,onAddtilelayer:null,onRemovetilelayer:null,onLoad:null,onResize:null,onHotspotclick:null,onHotspotover:null,onHotspotout:null,onTilesloaded:null,onTouchstart:null,onTouchmove:null,onTouchend:null,onLongpress:null},emits:["initd","unload","click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],setup(M,{emit:k}){const n=M;let o=null,i=!1;const{ready:D}=oe("initd"),z=n.ak||F("baiduMapAk");t(()=>n.zoom,s),t(()=>n.tilt,m),t(()=>n.heading,c),t(()=>n.center,A),t(()=>n.enableDragging,p),t(()=>n.enableInertialDragging,g),t(()=>n.enableScrollWheelZoom,b),t(()=>n.enableContinuousZoom,f),t(()=>n.enableResizeOnCenter,y),t(()=>n.enableDoubleClickZoom,h),t(()=>n.enableKeyboard,v),t(()=>n.enablePinchToZoom,Z),t(()=>n.enableAutoResize,C),t(()=>n.mapType,d);function B(){return window._BMap?Promise.resolve():(window._BMap={},window._BMap.scriptLoader=new Promise((e,a)=>{const l=document.createElement("script");window._initBMap=()=>{e(),window.document.body.removeChild(l)},l.src=`//api.map.baidu.com/api?type=webgl&v=1.0&ak=${z}&callback=_initBMap`,l.type="text/javascript",l.defer=!0,l.onerror=a,document.body.appendChild(l)}),window._BMap.scriptLoader)}function R(){B().then(()=>{const{minZoom:e,maxZoom:a,mapType:l,enableAutoResize:r}=n;o=new BMapGL.Map("baidu-map-container",{minZoom:e,maxZoom:a,mapType:window[l],enableAutoResize:r}),_(),T(),ne(n,k,o),i||(i=!0,ee(()=>D(o)))})}function T(){const{enableDragging:e,enableInertialDragging:a,enableScrollWheelZoom:l,enableContinuousZoom:r,enableResizeOnCenter:P,enableDoubleClickZoom:S,enableKeyboard:x,enablePinchToZoom:L,enableAutoResize:O,mapType:I,zoom:K,tilt:W,heading:H}=n;s(K),m(W),c(H),p(e),g(a),b(l),f(r),y(P),h(S),v(x),Z(L),C(O),d(I)}function u(e,a){return new BMapGL.Point(e,a)}function A(){typeof n.center=="string"?o.setCenter(n.center):o.setCenter(u(n.center.lng,n.center.lat))}function _(){typeof n.center=="string"?o.centerAndZoom(n.center):o.centerAndZoom(u(n.center.lng,n.center.lat),n.zoom)}function s(e){o.setZoom(e)}function d(e){o.setMapType(window[e])}function c(e){o.setHeading(e)}function m(e){o.setTilt(e)}function p(e){e?o.enableDragging():o.disableDragging()}function g(e){e?o.enableInertialDragging():o.disableInertialDragging()}function b(e){e?o.enableScrollWheelZoom():o.disableScrollWheelZoom()}function f(e){e?o.enableContinuousZoom():o.disableContinuousZoom()}function y(e){e?o.enableResizeOnCenter():o.disableResizeOnCenter()}function h(e){e?o.enableDoubleClickZoom():o.disableDoubleClickZoom()}function v(e){e?o.enableKeyboard():o.disableKeyboard()}function Z(e){e?o.enablePinchToZoom():o.disablePinchToZoom()}function C(e){e?o.enableAutoResize():o.disableAutoResize()}return G(()=>{R()}),N(()=>{o==null||o.destroy()}),$("getMapInstance",()=>o),(e,a)=>(U(),V(X,null,[w("div",{id:"baidu-map-container",style:J([{width:n.width,height:n.height},{position:"relative",overflow:"hidden"}])},[w("div",te,Y(q(i)?"":"map loading..."),1)],4),Q(e.$slots,"default")],64))}});var ue=E(le,[["__file","index.vue"]]);export{ue as default};
+import{_ as E,d as j,i as F,w as t,o as G,a as N,p as $,b as U,c as V,e as w,t as Y,u as q,n as J,r as Q,F as X,f as ee}from"./app.e8329c2e.js";import{u as oe}from"./useLife.970079a8.js";import{b as ne}from"./bindEvents.81d30a10.js";const te={style:{position:"absolute",top:"50%",left:"50%",transform:"translateY(-50%, -50%)"}},le=j({props:{ak:null,width:{default:"100%"},height:{default:"400px"},center:{default:()=>({lat:39.915185,lng:116.403901})},mapType:{default:"BMAP_NORMAL_MAP"},zoom:{default:16},heading:{default:0},tilt:{default:0},minZoom:{default:0},maxZoom:{default:21},enableDragging:{type:Boolean,default:!0},enableInertialDragging:{type:Boolean,default:!0},enableScrollWheelZoom:{type:Boolean,default:!0},enableContinuousZoom:{type:Boolean,default:!0},enableResizeOnCenter:{type:Boolean,default:!0},enableDoubleClickZoom:{type:Boolean,default:!1},enableKeyboard:{type:Boolean,default:!0},enablePinchToZoom:{type:Boolean,default:!0},enableAutoResize:{type:Boolean,default:!0},onClick:null,onDblclick:null,onRightclick:null,onRightdblclick:null,onMaptypechange:null,onMousemove:null,onMouseover:null,onMouseout:null,onMovestart:null,onMoving:null,onMoveend:null,onZoomstart:null,onZoomend:null,onAddoverlay:null,onAddcontrol:null,onRemovecontrol:null,onRemoveoverlay:null,onClearoverlays:null,onDragstart:null,onDragging:null,onDragend:null,onAddtilelayer:null,onRemovetilelayer:null,onLoad:null,onResize:null,onHotspotclick:null,onHotspotover:null,onHotspotout:null,onTilesloaded:null,onTouchstart:null,onTouchmove:null,onTouchend:null,onLongpress:null},emits:["initd","unload","click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],setup(M,{emit:k}){const n=M;let o=null,i=!1;const{ready:D}=oe("initd"),z=n.ak||F("baiduMapAk");t(()=>n.zoom,s),t(()=>n.tilt,m),t(()=>n.heading,c),t(()=>n.center,A),t(()=>n.enableDragging,p),t(()=>n.enableInertialDragging,g),t(()=>n.enableScrollWheelZoom,b),t(()=>n.enableContinuousZoom,f),t(()=>n.enableResizeOnCenter,y),t(()=>n.enableDoubleClickZoom,h),t(()=>n.enableKeyboard,v),t(()=>n.enablePinchToZoom,Z),t(()=>n.enableAutoResize,C),t(()=>n.mapType,d);function B(){return window._BMap?Promise.resolve():(window._BMap={},window._BMap.scriptLoader=new Promise((e,a)=>{const l=document.createElement("script");window._initBMap=()=>{e(),window.document.body.removeChild(l)},l.src=`//api.map.baidu.com/api?type=webgl&v=1.0&ak=${z}&callback=_initBMap`,l.type="text/javascript",l.defer=!0,l.onerror=a,document.body.appendChild(l)}),window._BMap.scriptLoader)}function R(){B().then(()=>{const{minZoom:e,maxZoom:a,mapType:l,enableAutoResize:r}=n;o=new BMapGL.Map("baidu-map-container",{minZoom:e,maxZoom:a,mapType:window[l],enableAutoResize:r}),_(),T(),ne(n,k,o),i||(i=!0,ee(()=>D(o)))})}function T(){const{enableDragging:e,enableInertialDragging:a,enableScrollWheelZoom:l,enableContinuousZoom:r,enableResizeOnCenter:P,enableDoubleClickZoom:S,enableKeyboard:x,enablePinchToZoom:L,enableAutoResize:O,mapType:I,zoom:K,tilt:W,heading:H}=n;s(K),m(W),c(H),p(e),g(a),b(l),f(r),y(P),h(S),v(x),Z(L),C(O),d(I)}function u(e,a){return new BMapGL.Point(e,a)}function A(){typeof n.center=="string"?o.setCenter(n.center):o.setCenter(u(n.center.lng,n.center.lat))}function _(){typeof n.center=="string"?o.centerAndZoom(n.center):o.centerAndZoom(u(n.center.lng,n.center.lat),n.zoom)}function s(e){o.setZoom(e)}function d(e){o.setMapType(window[e])}function c(e){o.setHeading(e)}function m(e){o.setTilt(e)}function p(e){e?o.enableDragging():o.disableDragging()}function g(e){e?o.enableInertialDragging():o.disableInertialDragging()}function b(e){e?o.enableScrollWheelZoom():o.disableScrollWheelZoom()}function f(e){e?o.enableContinuousZoom():o.disableContinuousZoom()}function y(e){e?o.enableResizeOnCenter():o.disableResizeOnCenter()}function h(e){e?o.enableDoubleClickZoom():o.disableDoubleClickZoom()}function v(e){e?o.enableKeyboard():o.disableKeyboard()}function Z(e){e?o.enablePinchToZoom():o.disablePinchToZoom()}function C(e){e?o.enableAutoResize():o.disableAutoResize()}return G(()=>{R()}),N(()=>{o==null||o.destroy()}),$("getMapInstance",()=>o),(e,a)=>(U(),V(X,null,[w("div",{id:"baidu-map-container",style:J([{width:n.width,height:n.height},{position:"relative",overflow:"hidden"}])},[w("div",te,Y(q(i)?"":"map loading..."),1)],4),Q(e.$slots,"default")],64))}});var ue=E(le,[["__file","index.vue"]]);export{ue as default};
diff --git a/docs/dist/assets/index.html.1a899239.js b/docs/dist/assets/index.html.1a899239.js
deleted file mode 100644
index c77789c3..00000000
--- a/docs/dist/assets/index.html.1a899239.js
+++ /dev/null
@@ -1 +0,0 @@
-const t={key:"v-2d0ad528",path:"/zh/",title:"",lang:"zh-CN",frontmatter:{home:!0,heroImage:"/logo.png",heroText:"Vue3 BaiduMap GL",actions:[{text:"\u5F00\u59CB\u4F7F\u7528",link:"/zh/guide/quick-start"}],features:[{title:"\u57FA\u4E8EVue3 + Ts",details:"\u9762\u5411\u672A\u6765\uFF0C\u66F4\u597D\u7684\u6027\u80FD\uFF0C\u66F4\u597D\u7684\u4F53\u9A8C\uFF0C\u66F4\u597D\u7684\u7EC4\u4EF6\u7C7B\u578B\u63D0\u793A"},{title:"\u771F\u771F\u7684\u6309\u9700\u52A0\u8F7D",details:"\u6A21\u5757\u5206\u5305\uFF0C\u505A\u5230\u771F\u6B63\u7684\u6309\u9700\u5F15\u5165"},{title:"\u6613\u7528\u7684\u7EC4\u4EF6",details:"\u5B8C\u5584\u7684\u4EE3\u7801\u63D0\u793A\uFF0C\u4E0E\u7528\u6237\u903B\u8F91\u4FDD\u6301\u4E00\u81F4\uFF0C\u9075\u5FAA\u7528\u6237\u4E60\u60EF\u7684\u8BED\u8A00\u548C\u6982\u5FF5"}]},excerpt:"",headers:[],git:{updatedTime:164975884e4,contributors:[{name:"\u82B1\u5F00\u534A\u4EA9\u5730",email:"2572468699@qq.com",commits:1}]},filePathRelative:"zh/README.md"};export{t as data};
diff --git a/docs/dist/assets/index.html.707e0525.js b/docs/dist/assets/index.html.26147b4f.js
similarity index 99%
rename from docs/dist/assets/index.html.707e0525.js
rename to docs/dist/assets/index.html.26147b4f.js
index 6a383539..ad63d178 100644
--- a/docs/dist/assets/index.html.707e0525.js
+++ b/docs/dist/assets/index.html.26147b4f.js
@@ -1,3 +1,3 @@
-import{_ as p,d as C,h as l,j as F,b as c,c as h,e as u,k as o,v as a,l as D,m as r,q as b,F as A,s,x as n}from"./app.1205231e.js";const v=s(`

Map \u5730\u56FE

\u5730\u56FE\u6838\u5FC3\u5BF9\u8C61\uFF0C\u5730\u56FE\u63A7\u4EF6\u3001\u8986\u76D6\u7269\u3001\u56FE\u5C42\u7B49\u9700\u4F5C\u4E3A\u5176\u5B50\u7EC4\u4EF6\uFF0C\u4EE5\u83B7\u5F97 map \u7684\u5B9E\u4F8B\u5316\u5BF9\u8C61

import { Map } from 'vue3-baidu-map-gl'
+import{_ as p,d as C,h as l,j as F,b as c,c as h,e as u,k as o,v as a,l as D,m as r,q as b,F as A,s,x as n}from"./app.e8329c2e.js";const v=s(`

Map \u5730\u56FE

\u5730\u56FE\u6838\u5FC3\u5BF9\u8C61\uFF0C\u5730\u56FE\u63A7\u4EF6\u3001\u8986\u76D6\u7269\u3001\u56FE\u5C42\u7B49\u9700\u4F5C\u4E3A\u5176\u5B50\u7EC4\u4EF6\uFF0C\u4EE5\u83B7\u5F97 map \u7684\u5B9E\u4F8B\u5316\u5BF9\u8C61

import { Map } from 'vue3-baidu-map-gl'
 
<Map :minZoom="10" height="400px" mapType="BMAP_NORMAL_MAP" />
 

\u57FA\u7840\u7EFC\u5408\u793A\u4F8B


`,6),g=n("\u9F20\u6807\u7F29\u653E "),m=u("br",null,null,-1),_=n("\u62D6\u62FD "),k=u("br",null,null,-1),y=n("\u60EF\u6027\u62D6\u62FD "),M=u("br",null,null,-1),Z=n("\u53CC\u6307\u7F29\u653E\u5730\u56FE "),P=u("br",null,null,-1),x=n("\u952E\u76D8\u64CD\u4F5C "),f=u("br",null,null,-1),T=n("\u53CC\u51FB\u7F29\u653E\uFF0C\u5DE6\u952E\u53CC\u51FB\u653E\u5927\u3001\u53F3\u952E\u53CC\u51FB\u7F29\u5C0F "),R=u("br",null,null,-1),V=n("\u53CC\u51FB\u5E73\u6ED1\u7F29\u653E\u6548\u679C "),q=u("br",null,null,-1),O=u("br",null,null,-1),z=n(" \u5730\u56FE\u7C7B\u578B: "),L=u("option",{value:"BMAP_NORMAL_MAP"},"BMAP_NORMAL_MAP",-1),N=u("option",{value:"BMAP_EARTH_MAP"},"BMAP_EARTH_MAP",-1),S=[L,N],U=u("br",null,null,-1),I=u("br",null,null,-1),K=u("h2",{id:"\u9759\u6001\u7EC4\u4EF6-props",tabindex:"-1"},[u("a",{class:"header-anchor",href:"#\u9759\u6001\u7EC4\u4EF6-props","aria-hidden":"true"},"#"),n(" \u9759\u6001\u7EC4\u4EF6 props")],-1),W=u("thead",null,[u("tr",null,[u("th",null,"\u53C2\u6570"),u("th",null,"\u8BF4\u660E"),u("th",null,"\u7C7B\u578B"),u("th",null,"\u53EF\u9009\u503C"),u("th",null,"\u9ED8\u8BA4\u503C")])],-1),H=u("td",null,"ak",-1),w=n("\u767E\u5EA6\u5730\u56FE ak "),j=n("\u7533\u8BF7ak"),Q=u("td",null,"string",-1),Y=u("td",null,null,-1),G=u("td",null,null,-1),J=u("tr",null,[u("td",null,"width"),u("td",null,"\u5730\u56FE\u663E\u793A\u5BBD\u5EA6"),u("td",null,"string / number"),u("td"),u("td",null,"100%")],-1),X=u("tr",null,[u("td",null,"height"),u("td",null,"\u5730\u56FE\u663E\u793A\u9AD8\u5EA6"),u("td",null,"string / number"),u("td"),u("td",null,"400px")],-1),$=s('

\u52A8\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
center\u5730\u56FE\u9ED8\u8BA4\u4E2D\u5FC3\u70B9,\u53EF\u4F7F\u7528\u57CE\u5E02\u540D,\u5982:\u5317\u4EAC\u5E02\uFF0C\u4E5F\u53EF\u4EE5\u4F7F\u7528\u5BF9\u8C61\u5982 {lng: 121.424333, lat: 31.228604} \u8868\u793A\u7ECF\u7EAC\u5EA6\u3002string / {lng: number, lat: number}\u5317\u4EAC\u5E02
mapType\u5730\u56FE\u663E\u793A\u7C7B\u578BstringmapTypeBMAP_NORMAL_MAP
zoom\u7F29\u653E\u7EA7\u522Bnumber16
heading\u5730\u56FE\u65CB\u8F6C\u89D2\u5EA6number0
tilt\u5730\u56FE\u503E\u659C\u89D2\u5EA6number0
minZoom\u5730\u56FE\u5141\u8BB8\u5C55\u793A\u7684\u6700\u5C0F\u7EA7\u522Bnumber-0
enableDragging\u542F\u7528\u5730\u56FE\u62D6\u62FDboolean-true
enableInertialDragging\u542F\u7528\u5730\u56FE\u60EF\u6027\u62D6\u62FDboolean-true
enableScrollWheelZoom\u5141\u8BB8\u5730\u56FE\u53EF\u88AB\u9F20\u6807\u6EDA\u8F6E\u7F29\u653Eboolean-true
enableContinuousZoom\u5F00\u542F\u53CC\u51FB\u5E73\u6ED1\u7F29\u653E\u6548\u679Cboolean-true
enableResizeOnCenter\u5F00\u542F\u56FE\u533A resize \u4E2D\u5FC3\u70B9\u4E0D\u53D8boolean-true
enableDoubleClickZoom\u542F\u7528\u5730\u56FE\u53CC\u51FB\u7F29\u653E\uFF0C\u5DE6\u952E\u53CC\u51FB\u653E\u5927\u3001\u53F3\u952E\u53CC\u51FB\u7F29\u5C0Fboolean-false
enableKeyboard\u542F\u7528\u952E\u76D8\u64CD\u4F5C,\u952E\u76D8\u7684\u4E0A\u3001\u4E0B\u3001\u5DE6\u3001\u53F3\u952E\u53EF\u8FDE\u7EED\u79FB\u52A8\u5730\u56FE\u3002\u540C\u65F6\u6309\u4E0B\u5176\u4E2D\u4E24\u4E2A\u952E\u53EF\u4F7F\u5730\u56FE\u8FDB\u884C\u5BF9\u89D2\u79FB\u52A8\u3002PgUp\u3001PgDn\u3001Home \u548C End \u952E\u4F1A\u4F7F\u5730\u56FE\u5E73\u79FB\u5176 1/2 \u7684\u5927\u5C0F\u3002 +\u3001-\u952E\u4F1A\u4F7F\u5730\u56FE\u653E\u5927\u6216\u7F29\u5C0F\u4E00\u7EA7boolean-true
enablePinchToZoom\u542F\u7528\u53CC\u6307\u7F29\u653E\u5730\u56FE\u3002boolean-true
enableAutoResize\u542F\u7528\u81EA\u52A8\u9002\u5E94\u5BB9\u5668\u5C3A\u5BF8\u53D8\u5316boolean-true

mapType

\u503C\u63CF\u8FF0
BMAP_NORMAL_MAP\u6B64\u5730\u56FE\u7C7B\u578B\u5C55\u793A\u666E\u901A\u8857\u9053\u89C6\u56FE
BMAP_EARTH_MAP\u6B64\u5730\u56FE\u7C7B\u578B\u5C55\u793A\u5730\u7403\u536B\u661F\u89C6\u56FE

\u7EC4\u4EF6\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
click\u5DE6\u952E\u5355\u51FB\u5730\u56FE\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6\u3002 \u5F53\u53CC\u51FB\u65F6\uFF0C\u4EA7\u751F\u7684\u4E8B\u4EF6\u5E8F\u5217\u4E3A\uFF1A click click dblclick((e: Event) => void)
dblclick\u9F20\u6807\u53CC\u51FB\u5730\u56FE\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
rightclick\u53F3\u952E\u5355\u51FB\u5730\u56FE\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6\u3002 \u5F53\u53CC\u51FB\u65F6\uFF0C\u4EA7\u751F\u7684\u4E8B\u4EF6\u5E8F\u5217\u4E3A\uFF1A rightclick rightclick rightdblclick((e: Event) => void)
rightdblclick\u53F3\u952E\u53CC\u51FB\u5730\u56FE\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
maptypechange\u5730\u56FE\u7C7B\u578B\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
mousemove\u9F20\u6807\u5728\u5730\u56FE\u533A\u57DF\u79FB\u52A8\u8FC7\u7A0B\u4E2D\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
mouseover\u9F20\u6807\u79FB\u5165\u5730\u56FE\u533A\u57DF\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
mouseout\u9F20\u6807\u79FB\u51FA\u5730\u56FE\u533A\u57DF\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
movestart\u5730\u56FE\u79FB\u52A8\u5F00\u59CB\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
moving\u5730\u56FE\u79FB\u52A8\u8FC7\u7A0B\u4E2D\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
moveend\u5730\u56FE\u79FB\u52A8\u7ED3\u675F\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
zoomstart\u5730\u56FE\u66F4\u6539\u7F29\u653E\u7EA7\u522B\u5F00\u59CB\u65F6\u89E6\u53D1\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
zoomend\u5730\u56FE\u66F4\u6539\u7F29\u653E\u7EA7\u522B\u7ED3\u675F\u65F6\u89E6\u53D1\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
addoverlay\u5F53\u7EC4\u4EF6 BmOverlay \u88AB\u6302\u8F7D\u5230\u5730\u56FE\u4E2D\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
removeoverlay\u5F53\u7EC4\u4EF6 BmOverlay \u88AB\u79FB\u9664\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
addcontrol\u5F53\u7EC4\u4EF6 BmControl \u88AB\u6302\u8F7D\u5230\u5730\u56FE\u4E2D\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
removecontrol\u5F53\u7EC4\u4EF6 BmControl \u88AB\u79FB\u9664\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
clearoverlays\u5F53\u4F7F\u7528 Map.clearOverlays() \u65B9\u6CD5\u4E00\u6B21\u6027\u79FB\u9664\u5168\u90E8\u8986\u76D6\u7269\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
dragstart\u5F00\u59CB\u62D6\u62FD\u5730\u56FE\u65F6\u89E6\u53D1((e: Event) => void)
dragging\u62D6\u62FD\u5730\u56FE\u8FC7\u7A0B\u4E2D\u89E6\u53D1((e: Event) => void)
dragend\u505C\u6B62\u62D6\u62FD\u5730\u56FE\u65F6\u89E6\u53D1((e: Event) => void)
addtilelayer\u6DFB\u52A0\u4E00\u4E2A\u81EA\u5B9A\u4E49\u5730\u56FE\u56FE\u5C42\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
removetilelayer\u79FB\u9664\u4E00\u4E2A\u81EA\u5B9A\u4E49\u5730\u56FE\u56FE\u5C42\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
load\u8C03\u7528 Map.centerAndZoom()\u65B9\u6CD5\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6\u3002\u8FD9\u8868\u793A\u4F4D\u7F6E\u3001\u7F29\u653E\u5C42\u7EA7\u5DF2\u7ECF\u786E\u5B9A\uFF0C\u4F46\u53EF\u80FD\u8FD8\u5728\u8F7D\u5165\u5730\u56FE\u56FE\u5757((e: Event) => void)
resize\u5730\u56FE\u53EF\u89C6\u533A\u57DF\u5927\u5C0F\u53D1\u751F\u53D8\u5316\u65F6\u4F1A\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
hotspotclick\u70B9\u51FB\u70ED\u533A\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
hotspotover\u9F20\u6807\u79FB\u81F3\u70ED\u533A\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
hotspotout\u9F20\u6807\u79FB\u51FA\u70ED\u533A\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
tilesloaded\u5F53\u5730\u56FE\u6240\u6709\u56FE\u5757\u5B8C\u6210\u52A0\u8F7D\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6((e: Event) => void)
touchstart\u89E6\u6478\u5F00\u59CB\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6\uFF0C\u4EC5\u9002\u7528\u79FB\u52A8\u8BBE\u5907((e: Event) => void)
touchmove\u89E6\u6478\u79FB\u52A8\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6\uFF0C\u4EC5\u9002\u7528\u79FB\u52A8\u8BBE\u5907((e: Event) => void)
touchend\u89E6\u6478\u7ED3\u675F\u65F6\u89E6\u53D1\u6B64\u4E8B\u4EF6\uFF0C\u4EC5\u9002\u7528\u79FB\u52A8\u8BBE\u5907((e: Event) => void)
longpress\u957F\u6309\u4E8B\u4EF6\uFF0C\u4EC5\u9002\u7528\u79FB\u52A8\u8BBE\u5907((e: Event) => void)
',6),uu=C({setup(tu){const E=l("BMAP_NORMAL_MAP"),t=l({enableDragging:!0,enableInertialDragging:!0,enableScrollWheelZoom:!1,enableContinuousZoom:!0,enableResizeOnCenter:!0,enableDoubleClickZoom:!1,enableKeyboard:!0,enablePinchToZoom:!0,enableAutoResize:!0});return(du,d)=>{const i=F("Map"),B=F("RouterLink");return c(),h(A,null,[v,u("div",null,[o(u("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=e=>t.value.enableScrollWheelZoom=e)},null,512),[[a,t.value.enableScrollWheelZoom]]),g,m,o(u("input",{type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=e=>t.value.enableDragging=e)},null,512),[[a,t.value.enableDragging]]),_,k,o(u("input",{type:"checkbox","onUpdate:modelValue":d[2]||(d[2]=e=>t.value.enableInertialDragging=e)},null,512),[[a,t.value.enableInertialDragging]]),y,M,o(u("input",{type:"checkbox","onUpdate:modelValue":d[3]||(d[3]=e=>t.value.enablePinchToZoom=e)},null,512),[[a,t.value.enablePinchToZoom]]),Z,P,o(u("input",{type:"checkbox","onUpdate:modelValue":d[4]||(d[4]=e=>t.value.enableKeyboard=e)},null,512),[[a,t.value.enableKeyboard]]),x,f,o(u("input",{type:"checkbox","onUpdate:modelValue":d[5]||(d[5]=e=>t.value.enableDoubleClickZoom=e)},null,512),[[a,t.value.enableDoubleClickZoom]]),T,R,o(u("input",{type:"checkbox","onUpdate:modelValue":d[6]||(d[6]=e=>t.value.enableContinuousZoom=e)},null,512),[[a,t.value.enableContinuousZoom]]),V,q,O,z,o(u("select",{name:"",id:"","onUpdate:modelValue":d[7]||(d[7]=e=>E.value=e)},S,512),[[D,E.value]]),U,I,r(i,{ak:"4stE857hYPHbEmgKhLiTAa0QbCIULHpm",minZoom:3,height:"400px",mapType:E.value,enableDragging:t.value.enableDragging,enableInertialDragging:t.value.enableInertialDragging,enableScrollWheelZoom:t.value.enableScrollWheelZoom,enableContinuousZoom:t.value.enableContinuousZoom,enableDoubleClickZoom:t.value.enableDoubleClickZoom,enableKeyboard:t.value.enableKeyboard,enablePinchToZoom:t.value.enablePinchToZoom},null,8,["mapType","enableDragging","enableInertialDragging","enableScrollWheelZoom","enableContinuousZoom","enableDoubleClickZoom","enableKeyboard","enablePinchToZoom"])]),K,u("table",null,[W,u("tbody",null,[u("tr",null,[H,u("td",null,[w,r(B,{to:"/zh/guide/quick-start.html#%E7%94%B3%E8%AF%B7ak"},{default:b(()=>[j]),_:1})]),Q,Y,G]),J,X])]),$],64)}}});var nu=p(uu,[["__file","index.html.vue"]]);export{nu as default}; diff --git a/docs/dist/assets/index.html.310d7568.js b/docs/dist/assets/index.html.310d7568.js new file mode 100644 index 00000000..8177b8cc --- /dev/null +++ b/docs/dist/assets/index.html.310d7568.js @@ -0,0 +1 @@ +const e={key:"v-2d0ad528",path:"/zh/",title:"",lang:"zh-CN",frontmatter:{home:!0,heroImage:"/logo.png",heroText:"Vue3 BaiduMap GL",actions:[{text:"\u5F00\u59CB\u4F7F\u7528",link:"/zh/guide/quick-start"}],features:[{title:"\u2728 \u57FA\u4E8EVue3 + Ts",details:"\u5B8C\u5168\u57FA\u4E8EVue3\u7EC4\u4EF6Api, \u4EE5\u53CA\u5168\u9762\u7684Ts\u8986\u76D6, \u9762\u5411\u672A\u6765\uFF0C\u66F4\u597D\u7684\u6027\u80FD\uFF0C\u66F4\u597D\u7684\u4F53\u9A8C\uFF0C\u66F4\u597D\u7684\u7EC4\u4EF6\u7C7B\u578B\u63D0\u793A"},{title:"\u{1F9E9} \u771F\u771F\u7684\u6309\u9700\u52A0\u8F7D",details:"\u6A21\u5757\u5206\u5305\uFF0C\u505A\u5230\u771F\u6B63\u7684\u6309\u9700\u5F15\u5165"},{title:"\u{1F340} \u6613\u7528\u7684\u7EC4\u4EF6",details:"\u5F97\u76CA\u4E8EVue3 + Ts\u5B8C\u7F8E\u7684\u517C\u5BB9,\u7EC4\u4EF6\u63D0\u4F9B\u5B8C\u5584\u7684\u4EE3\u7801\u63D0\u793A\uFF0C\u4E0E\u7528\u6237\u903B\u8F91\u4FDD\u6301\u4E00\u81F4\uFF0C\u5C06\u767E\u5EA6\u5730\u56FE\u7E41\u7410\u7684Api\u7CBE\u7B80,\u9075\u5FAA\u7528\u6237\u4E60\u60EF\u7684\u8BED\u8A00\u548C\u6982\u5FF5"},{title:"WebGl",details:"\u57FA\u4E8E\u767E\u5EA6\u5730\u56FEGl\u7248, WebGL\u5BF9\u5730\u56FE\u3001\u8986\u76D6\u7269\u7B49\u8FDB\u884C\u6E32\u67D3\uFF0C\u652F\u63013D\u89C6\u89D2\u5C55\u793A\u5730\u56FE"},{title:null}]},excerpt:"",headers:[],git:{updatedTime:164975884e4,contributors:[{name:"\u82B1\u5F00\u534A\u4EA9\u5730",email:"2572468699@qq.com",commits:1}]},filePathRelative:"zh/README.md"};export{e as data}; diff --git a/docs/dist/assets/index.html.acee05e2.js b/docs/dist/assets/index.html.9bd47afe.js similarity index 58% rename from docs/dist/assets/index.html.acee05e2.js rename to docs/dist/assets/index.html.9bd47afe.js index e6ba84f6..65ca376d 100644 --- a/docs/dist/assets/index.html.acee05e2.js +++ b/docs/dist/assets/index.html.9bd47afe.js @@ -1 +1 @@ -import{_ as e}from"./app.1205231e.js";const _={};function r(n,t){return null}var f=e(_,[["render",r],["__file","index.html.vue"]]);export{f as default}; +import{_ as e}from"./app.e8329c2e.js";const _={};function r(n,t){return null}var f=e(_,[["render",r],["__file","index.html.vue"]]);export{f as default}; diff --git a/docs/dist/assets/index.html.bed3a029.js b/docs/dist/assets/index.html.f1c42617.js similarity index 58% rename from docs/dist/assets/index.html.bed3a029.js rename to docs/dist/assets/index.html.f1c42617.js index e6ba84f6..65ca376d 100644 --- a/docs/dist/assets/index.html.bed3a029.js +++ b/docs/dist/assets/index.html.f1c42617.js @@ -1 +1 @@ -import{_ as e}from"./app.1205231e.js";const _={};function r(n,t){return null}var f=e(_,[["render",r],["__file","index.html.vue"]]);export{f as default}; +import{_ as e}from"./app.e8329c2e.js";const _={};function r(n,t){return null}var f=e(_,[["render",r],["__file","index.html.vue"]]);export{f as default}; diff --git a/docs/dist/assets/label.html.fdfabe1c.js b/docs/dist/assets/label.html.73f15287.js similarity index 99% rename from docs/dist/assets/label.html.fdfabe1c.js rename to docs/dist/assets/label.html.73f15287.js index 5e12057a..748ad057 100644 --- a/docs/dist/assets/label.html.fdfabe1c.js +++ b/docs/dist/assets/label.html.73f15287.js @@ -1,4 +1,4 @@ -import{_ as p,j as t,b as o,c,e as d,m as a,q as l,F as u,s as n}from"./app.1205231e.js";const r={},i=n(`

Label \u6587\u672C\u6807\u6CE8

\u5728\u5730\u56FE\u4E0A\u663E\u793A\u6587\u672C\u6807\u6CE8

import { Label } from 'vue3-baidu-map-gl'
+import{_ as p,j as t,b as o,c,e as d,m as a,q as l,F as u,s as n}from"./app.e8329c2e.js";const r={},i=n(`

Label \u6587\u672C\u6807\u6CE8

\u5728\u5730\u56FE\u4E0A\u663E\u793A\u6587\u672C\u6807\u6CE8

import { Label } from 'vue3-baidu-map-gl'
 

\u52A8\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
content\u8BBE\u7F6E\u6587\u672C\u6807\u6CE8\u7684\u5185\u5BB9stringrequired
offset\u6587\u672C\u6807\u6CE8\u7684\u50CF\u7D20\u504F\u79FB{x: number, y: number }
enableMassClear\u662F\u5426\u5728\u8C03\u7528 map.clearOverlays \u6E05\u9664\u6B64\u8986\u76D6\u7269booleantrue
style\u8BBE\u7F6E\u6587\u672C\u6807\u6CE8\u7684\u6837\u5F0Fcss style object
position\u6587\u672C\u6807\u6CE8\u7684\u5750\u6807{ lng: number, lat: number}required

\u63D0\u793A

style \u53EF\u4EE5\u662F\u4EFB\u4F55\u7B26\u5408\u89C4\u8303\u7684 css \u6837\u5F0F,\u6837\u5F0F\u5C5E\u6027\u9700\u4F7F\u7528\u9A7C\u5CF0\u547D\u540D\u6CD5

\u7EC4\u4EF6\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
click\u9F20\u6807\u5DE6\u952E\u5355\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570\u3002 \u5F53\u53CC\u51FB\u65F6\uFF0C\u4EA7\u751F\u7684\u4E8B\u4EF6\u5E8F\u5217\u4E3A\uFF1A click click dblclick((e: Event) => void)
dblclick\u9F20\u6807\u5DE6\u952E\u53CC\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mousedown\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u6309\u4E0B\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseup\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u62AC\u8D77\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseout\u9F20\u6807\u6307\u9488\u79FB\u51FA\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseover\u9F20\u6807\u6307\u9488\u79FB\u5165\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
remove\u8BE5\u8986\u76D6\u7269\u88AB\u79FB\u9664\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
lineupdate\u8986\u76D6\u7269\u88AB\u7F16\u8F91\u540E\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)

\u7EC4\u4EF6\u5B9E\u4F8B

`,9),k=n(`
<Map
   :minZoom="3"
   height="400px"
diff --git a/docs/dist/assets/marker.html.bf72420b.js b/docs/dist/assets/marker.html.db73ad54.js
similarity index 99%
rename from docs/dist/assets/marker.html.bf72420b.js
rename to docs/dist/assets/marker.html.db73ad54.js
index f280ddae..232150ca 100644
--- a/docs/dist/assets/marker.html.bf72420b.js
+++ b/docs/dist/assets/marker.html.db73ad54.js
@@ -1,4 +1,4 @@
-import{_ as l,j as s,b as c,c as r,e as t,m as n,q as u,F as i,s as e,x as o}from"./app.1205231e.js";const k={},g=e(`

Marker \u6807\u6CE8\u70B9

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u5706\u5F62

import { Marker } from 'vue3-baidu-map-gl'
+import{_ as l,j as s,b as c,c as r,e as t,m as n,q as u,F as i,s as e,x as o}from"./app.e8329c2e.js";const k={},g=e(`

Marker \u6807\u6CE8\u70B9

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u5706\u5F62

import { Marker } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

`,4),h=t("thead",null,[t("tr",null,[t("th",null,"\u53C2\u6570"),t("th",null,"\u8BF4\u660E"),t("th",null,"\u7C7B\u578B"),t("th",null,"\u53EF\u9009\u503C"),t("th",null,"\u9ED8\u8BA4\u503C")])],-1),m=t("tr",null,[t("td",null,"title"),t("td",null,"\u9F20\u6807\u79FB\u5230 marker \u4E0A\u7684\u663E\u793A\u5185\u5BB9"),t("td",null,"string"),t("td"),t("td")],-1),b=t("td",null,"draggingCursor",-1),_=o("\u62D6\u62FD\u6807\u6CE8\u65F6\u7684\u9F20\u6807\u6307\u9488\u6837\u5F0F\u3002\u6B64\u5C5E\u6027\u503C\u9700\u9075\u5FAA CSS \u7684"),v={href:"https://developer.mozilla.org/en-US/docs/Web/CSS/cursor",target:"_blank",rel:"noopener noreferrer"},q=o("cursor"),f=o("\u5C5E\u6027\u89C4\u8303"),E=t("td",null,"string",-1),x=t("td",null,null,-1),w=t("td",null,null,-1),y=t("tr",null,[t("td",null,"raiseOnDrag"),t("td",null,"\u62D6\u62FD\u6807\u6CE8\u65F6\uFF0C\u6807\u6CE8\u662F\u5426\u5F00\u542F\u79BB\u5F00\u5730\u56FE\u8868\u9762\u6548\u679C"),t("td",null,"boolean"),t("td"),t("td",null,"false")],-1),M=t("tr",null,[t("td",null,"enableClicking"),t("td",null,"\u662F\u5426\u54CD\u5E94\u70B9\u51FB\u4E8B\u4EF6"),t("td",null,"boolean"),t("td"),t("td",null,"true")],-1),S=e('

\u52A8\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
position\u6807\u6CE8\u70B9\u7684\u5750\u6807{ lng: number, lat: number}required
offset\u6807\u6CE8\u70B9\u7684\u50CF\u7D20\u504F\u79FB{x: number, y: number }
icon\u6807\u6CE8\u70B9\u7684\u56FE\u6807\u3002\u53EF\u4F7F\u7528\u9ED8\u8BA4\u56FE\u6807,\u4E5F\u53EF\u81EA\u5B9A\u4E49\u56FE\u6807stringsimple_red / simple_blue...
rotation\u65CB\u8F6C\u89D2\u5EA6number
enableDragging\u662F\u5426\u542F\u7528\u62D6\u62FDbooleantrue
enableMassClear\u662F\u5426\u5728\u8C03\u7528 map.clearOverlays \u6E05\u9664\u6B64\u8986\u76D6\u7269booleantrue

\u9ED8\u8BA4\u56FE\u6807\u53EF\u9009\u503C

https://mapopen.bj.bcebos.com/cms/react-bmap/markers_new2x_fbb9e99.png simple_red , simple_blue , loc_red , loc_blue , start , end , location , red1 , red2 , red3 , red4 , red5 , red6 , red7 , red8 , red9 , red10 , blue1 , blue2 , blue3 , blue4 , blue5 , blue6 , blue7 , blue8 , blue9 , blue10

\u81EA\u5B9A\u4E49\u56FE\u6807

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
anchor\u56FE\u6807\u7684\u5B9A\u4F4D\u70B9\u76F8\u5BF9\u4E8E\u56FE\u6807\u5DE6\u4E0A\u89D2\u7684\u504F\u79FB\u503C{ x: number, y: number }
imageOffset\u56FE\u6807\u6240\u7528\u7684\u56FE\u7247\u76F8\u5BF9\u4E8E\u53EF\u89C6\u533A\u57DF\u7684\u504F\u79FB\u503C\uFF0C\u6B64\u529F\u80FD\u7684\u4F5C\u7528\u7B49\u540C\u4E8E CSS \u4E2D\u7684 background-position \u5C5E\u6027{ x: number, y: number }
imageSize\u56FE\u6807\u6240\u7528\u7684\u56FE\u7247\u7684\u5927\u5C0F\uFF0C\u6B64\u529F\u80FD\u7684\u4F5C\u7528\u7B49\u540C\u4E8E CSS \u4E2D\u7684 background-size \u5C5E\u6027\u3002\u53EF\u7528\u4E8E\u5B9E\u73B0\u9AD8\u6E05\u5C4F\u7684\u9AD8\u6E05\u6548\u679C{ width: number, height: number }required
imageUrl\u56FE\u6807\u6240\u7528\u56FE\u50CF\u8D44\u6E90\u7684\u4F4D\u7F6Estringrequired
printImageUrl\u8BBE\u7F6E icon \u6253\u5370\u56FE\u7247\u7684 url\uFF0C\u8BE5\u6253\u5370\u56FE\u7247\u53EA\u9488\u5BF9 IE6 \u6709\u6548\uFF0C\u89E3\u51B3 IE6 \u4F7F\u7528 PNG \u6EE4\u955C\u5BFC\u81F4\u7684\u9519\u4F4D\u95EE\u9898\u3002\u5982\u679C\u60A8\u7684 icon \u6CA1\u6709\u4F7F\u7528 PNG \u683C\u5F0F\u56FE\u7247\u6216\u8005\u6CA1\u6709\u4F7F\u7528 CSS Sprites \u6280\u672F\uFF0C\u5219\u53EF\u5FFD\u7565\u6B64\u914D\u7F6Estring

\u7EC4\u4EF6\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
click\u9F20\u6807\u5DE6\u952E\u5355\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570\u3002 \u5F53\u53CC\u51FB\u65F6\uFF0C\u4EA7\u751F\u7684\u4E8B\u4EF6\u5E8F\u5217\u4E3A\uFF1A click click dblclick((e: Event) => void)
dblclick\u9F20\u6807\u5DE6\u952E\u53CC\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mousedown\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u6309\u4E0B\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseup\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u62AC\u8D77\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseout\u9F20\u6807\u6307\u9488\u79FB\u51FA\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseover\u9F20\u6807\u6307\u9488\u79FB\u5165\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
remove\u8BE5\u8986\u76D6\u7269\u88AB\u79FB\u9664\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
infowindowcloseinfowindow \u5173\u95ED\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
infowindowopeninfowindow \u6253\u5F00\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
dragstart\u62D6\u62FD\u8986\u76D6\u7269\u5F00\u59CB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
dragging\u8986\u76D6\u7269\u62D6\u62FD\u4E2D\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
dragend\u62D6\u62FD\u8986\u76D6\u7269\u7ED3\u675F\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
rightclick\u9F20\u6807\u53F3\u952E\u5355\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)

\u7EC4\u4EF6\u5B9E\u4F8B

',9),C=e(`

\u62D6\u52A8\u56FE\u7247\u8BD5\u8BD5

<Map
   :minZoom="3"
   height="400px"
diff --git a/docs/dist/assets/navigation3d.html.d8e1422a.js b/docs/dist/assets/navigation3d.html.ae5dfc49.js
similarity index 98%
rename from docs/dist/assets/navigation3d.html.d8e1422a.js
rename to docs/dist/assets/navigation3d.html.ae5dfc49.js
index 138064c4..2070d0e9 100644
--- a/docs/dist/assets/navigation3d.html.d8e1422a.js
+++ b/docs/dist/assets/navigation3d.html.ae5dfc49.js
@@ -1,4 +1,4 @@
-import{_ as e,j as a,b as o,c,e as d,m as t,q as r,F as l,s as n}from"./app.1205231e.js";const i={},u=n(`

Navigation3d 3D\u89C6\u89D2\u5BFC\u822A\u63A7\u4EF6

\u5730\u56FE3D\u63A7\u4EF6\uFF0C\u53EF\u4EE5\u63A7\u5236\u5730\u56FE\u7684\u65CB\u8F6C\u3001\u503E\u659C\uFF0C\u9ED8\u8BA4\u4F4D\u4E8E\u5730\u56FE\u53F3\u4E0B\u89D2

import { Navigation3d } from 'vue3-baidu-map-gl'
+import{_ as e,j as a,b as o,c,e as d,m as t,q as r,F as l,s as n}from"./app.e8329c2e.js";const i={},u=n(`

Navigation3d 3D\u89C6\u89D2\u5BFC\u822A\u63A7\u4EF6

\u5730\u56FE3D\u63A7\u4EF6\uFF0C\u53EF\u4EE5\u63A7\u5236\u5730\u56FE\u7684\u65CB\u8F6C\u3001\u503E\u659C\uFF0C\u9ED8\u8BA4\u4F4D\u4E8E\u5730\u56FE\u53F3\u4E0B\u89D2

import { Navigation3d } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
anchor\u63A7\u4EF6\u7684\u505C\u9760\u4F4D\u7F6EstringanchorBMAP_ANCHOR_BOTTOM_LEFT
offset\u63A7\u4EF6\u7684\u504F\u79FB\u503C{x: number, y: number }{ x: 83, y: 18 }

anchor

\u503C\u8BF4\u660E
BMAP_ANCHOR_TOP_LEFT\u5DE6\u4E0A
BMAP_ANCHOR_TOP_RIGHT\u53F3\u4E0A
BMAP_ANCHOR_BOTTOM_LEFT\u5DE6\u4E0B
BMAP_ANCHOR_BOTTOM_RIGHT\u53F3\u4E0B

\u7EC4\u4EF6\u5B9E\u4F8B

`,8),h=n(`
<Map
   :minZoom="3" 
   height="400px"
diff --git a/docs/dist/assets/polygon.html.458c6521.js b/docs/dist/assets/polygon.html.70c874a9.js
similarity index 99%
rename from docs/dist/assets/polygon.html.458c6521.js
rename to docs/dist/assets/polygon.html.70c874a9.js
index fd69bdf9..5f21f751 100644
--- a/docs/dist/assets/polygon.html.458c6521.js
+++ b/docs/dist/assets/polygon.html.70c874a9.js
@@ -1,4 +1,4 @@
-import{_ as d,j as t,b as o,c as p,e as l,m as a,q as c,F as r,s as n}from"./app.1205231e.js";const u={},i=n(`

Polygon \u591A\u8FB9\u5F62

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u591A\u8FB9\u5F62

import { Polygon } from 'vue3-baidu-map-gl'
+import{_ as d,j as t,b as o,c as p,e as l,m as a,q as c,F as r,s as n}from"./app.e8329c2e.js";const u={},i=n(`

Polygon \u591A\u8FB9\u5F62

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u591A\u8FB9\u5F62

import { Polygon } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
enableClicking\u662F\u5426\u54CD\u5E94\u70B9\u51FB\u4E8B\u4EF6booleantrue
geodesic\u662F\u5426\u5F00\u542F\u5927\u5730\u7EBF\u6A21\u5F0F\uFF0Ctrue \u65F6\uFF0C\u4E24\u70B9\u8FDE\u7EBF\u5C06\u4EE5\u5927\u5730\u7EBF\u7684\u5F62\u5F0F\u3002booleanfalse
clip\u662F\u5426\u8FDB\u884C\u8DE8\u7ECF\u5EA6 180 \u5EA6\u88C1\u526A\uFF0C\u7ED8\u5236\u8DE8\u7CBE\u5EA6 180 \u65F6\u4E3A\u4E86\u4F18\u5316\u6548\u679C\uFF0Cbooleantrue

\u52A8\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
path\u591A\u8FB9\u5F62\u7684\u5750\u6807\u6570\u7EC4{ lng: number, lat: number}[]required
strokeColor\u63CF\u8FB9\u7684\u989C\u8272\uFF0C\u540C CSS \u989C\u8272string#000000
strokeWeight\u63CF\u8FB9\u7684\u5BBD\u5EA6\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20string2
strokeOpacity\u63CF\u8FB9\u7684\u900F\u660E\u5EA6\uFF0C\u8303\u56F4 0-1number1
strokeStyle\u63CF\u8FB9\u7684\u6837\u5F0F\uFF0C\u4E3A\u5B9E\u7EBF\u3001\u865A\u7EBF\u3001\u6216\u8005\u70B9\u72B6\u7EBFstringsolid, dashed, dotted
fillColor\u9762\u586B\u5145\u989C\u8272\uFF0C\u540C CSS \u989C\u8272string#fff
fillOpacity\u9762\u586B\u5145\u7684\u900F\u660E\u5EA6\uFF0C\u8303\u56F4 0-1number0-10.3
enableMassClear\u662F\u5426\u5728\u8C03\u7528 map.clearOverlays \u6E05\u9664\u6B64\u8986\u76D6\u7269booleantrue
enableEditing\u5F00\u542F\u53EF\u7F16\u8F91\u6A21\u5F0Fbooleanfalse

\u7EC4\u4EF6\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
click\u9F20\u6807\u5DE6\u952E\u5355\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570\u3002 \u5F53\u53CC\u51FB\u65F6\uFF0C\u4EA7\u751F\u7684\u4E8B\u4EF6\u5E8F\u5217\u4E3A\uFF1A click click dblclick((e: Event) => void)
dblclick\u9F20\u6807\u5DE6\u952E\u53CC\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mousedown\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u6309\u4E0B\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseup\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u62AC\u8D77\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseout\u9F20\u6807\u6307\u9488\u79FB\u51FA\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseover\u9F20\u6807\u6307\u9488\u79FB\u5165\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
remove\u8BE5\u8986\u76D6\u7269\u88AB\u79FB\u9664\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
lineupdate\u8986\u76D6\u7269\u88AB\u7F16\u8F91\u540E\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)

\u7EC4\u4EF6\u5B9E\u4F8B

`,10),k=n(`
<Map
   :minZoom="3"
   height="400px"
diff --git a/docs/dist/assets/polyline.html.500f35cb.js b/docs/dist/assets/polyline.html.ce403c78.js
similarity index 99%
rename from docs/dist/assets/polyline.html.500f35cb.js
rename to docs/dist/assets/polyline.html.ce403c78.js
index f25847b3..890a83c7 100644
--- a/docs/dist/assets/polyline.html.500f35cb.js
+++ b/docs/dist/assets/polyline.html.ce403c78.js
@@ -1,4 +1,4 @@
-import{_ as o,j as t,b as d,c as p,e as l,m as a,q as c,F as r,s as n}from"./app.1205231e.js";const u={},i=n(`

Polyline \u6298\u7EBF

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u6298\u7EBF

import { Polyline } from 'vue3-baidu-map-gl'
+import{_ as o,j as t,b as d,c as p,e as l,m as a,q as c,F as r,s as n}from"./app.e8329c2e.js";const u={},i=n(`

Polyline \u6298\u7EBF

\u5728\u5730\u56FE\u4E0A\u7ED8\u5236\u7B80\u5355\u7684\u6298\u7EBF

import { Polyline } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
enableClicking\u662F\u5426\u54CD\u5E94\u70B9\u51FB\u4E8B\u4EF6booleantrue
geodesic\u662F\u5426\u5F00\u542F\u5927\u5730\u7EBF\u6A21\u5F0F\uFF0Ctrue \u65F6\uFF0C\u4E24\u70B9\u8FDE\u7EBF\u5C06\u4EE5\u5927\u5730\u7EBF\u7684\u5F62\u5F0F\u3002booleanfalse
clip\u662F\u5426\u8FDB\u884C\u8DE8\u7ECF\u5EA6 180 \u5EA6\u88C1\u526A\uFF0C\u7ED8\u5236\u8DE8\u7CBE\u5EA6 180 \u65F6\u4E3A\u4E86\u4F18\u5316\u6548\u679C\uFF0Cbooleantrue

\u52A8\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
path\u591A\u8FB9\u5F62\u7684\u5750\u6807\u6570\u7EC4{ lng: number, lat: number}[]required
strokeColor\u63CF\u8FB9\u7684\u989C\u8272\uFF0C\u540C CSS \u989C\u8272string#000000
strokeWeight\u63CF\u8FB9\u7684\u5BBD\u5EA6\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20string2
strokeOpacity\u63CF\u8FB9\u7684\u900F\u660E\u5EA6\uFF0C\u8303\u56F4 0-1number1
strokeStyle\u63CF\u8FB9\u7684\u6837\u5F0F\uFF0C\u4E3A\u5B9E\u7EBF\u3001\u865A\u7EBF\u3001\u6216\u8005\u70B9\u72B6\u7EBFstringsolid, dashed, dotted
enableMassClear\u662F\u5426\u5728\u8C03\u7528 map.clearOverlays \u6E05\u9664\u6B64\u8986\u76D6\u7269booleantrue
enableEditing\u5F00\u542F\u53EF\u7F16\u8F91\u6A21\u5F0Fbooleanfalse

\u7EC4\u4EF6\u4E8B\u4EF6

\u4E8B\u4EF6\u540D\u8BF4\u660E\u7C7B\u578B
click\u9F20\u6807\u5DE6\u952E\u5355\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570\u3002 \u5F53\u53CC\u51FB\u65F6\uFF0C\u4EA7\u751F\u7684\u4E8B\u4EF6\u5E8F\u5217\u4E3A\uFF1A click click dblclick((e: Event) => void)
dblclick\u9F20\u6807\u5DE6\u952E\u53CC\u51FB\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mousedown\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u6309\u4E0B\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseup\u9F20\u6807\u5DE6\u952E\u5728\u8BE5\u8986\u76D6\u7269\u4E0A\u62AC\u8D77\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseout\u9F20\u6807\u6307\u9488\u79FB\u51FA\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
mouseover\u9F20\u6807\u6307\u9488\u79FB\u5165\u8BE5\u8986\u76D6\u7269\u4E8B\u4EF6\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
remove\u8BE5\u8986\u76D6\u7269\u88AB\u79FB\u9664\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)
lineupdate\u8986\u76D6\u7269\u88AB\u7F16\u8F91\u540E\u7684\u56DE\u8C03\u51FD\u6570((e: Event) => void)

\u7EC4\u4EF6\u5B9E\u4F8B

`,10),k=n(`
<Map
   :minZoom="3"
   height="400px"
diff --git a/docs/dist/assets/quick-start.html.2c33a43c.js b/docs/dist/assets/quick-start.html.6225a0dd.js
similarity index 99%
rename from docs/dist/assets/quick-start.html.2c33a43c.js
rename to docs/dist/assets/quick-start.html.6225a0dd.js
index 6e747d8d..fdcb52e4 100644
--- a/docs/dist/assets/quick-start.html.2c33a43c.js
+++ b/docs/dist/assets/quick-start.html.6225a0dd.js
@@ -1,4 +1,4 @@
-import{_ as t,j as e,b as p,c as l,e as a,m as c,F as o,s as n,x as i}from"./app.1205231e.js";const r={},u=n('

\u5FEB\u901F\u5F00\u59CB

GitHub license

\u57FA\u4E8E\u767E\u5EA6\u5730\u56FEJavaScript GL\u7248API\u5C01\u88C5\u7684Vue3\u7EC4\u4EF6\u5E93\u3002\u63D0\u4F9B\u4E86\u5927\u90E8\u5206\u5E38\u7528\u7684\u7EC4\u4EF6,\u5982\u679C\u8FD9\u4E9B\u7EC4\u4EF6\u4E0D\u80FD\u6EE1\u8DB3\u4F60\u7684\u9700\u6C42,\u4F60\u4E5F\u53EF\u4EE5\u6839\u636Ehooks\u63D0\u4F9B\u7684\u63A5\u53E3\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u3002

\u2728 \u7279\u6027

  • \u81EA\u52A8\u52A0\u8F7D\u767E\u5EA6\u5730\u56FE SDK,\u4F60\u9700\u5173\u6CE8\u7EC4\u4EF6\u4F7F\u7528\u3002
  • \u4F7F\u7528 Typescript \u7F16\u5199\uFF0C\u5B8C\u5584\u5EA6\u7EC4\u4EF6\u4EE3\u7801\u63D0\u793A\u3002
  • \u4E0D\u4F9D\u8D56\u4EFB\u4F55\u7B2C\u4E09\u65B9\u7EC4\u4EF6\u3002
  • \u7EC4\u4EF6\u540C\u65F6\u517C\u5BB9\u5927\u9A7C\u5CF0\u547D\u540D(CamelCase)\u548C\u77ED\u6A2A\u7EBF\u547D\u540D(kebab-case)

\u7533\u8BF7ak

\u4F7F\u7528\u767E\u5EA6\u5730\u56FE\u524D,\u9700\u8981\u5148\u5728\u5F00\u53D1\u8005\u540E\u53F0\u7533\u8BF7ak,\u7136\u540E\u5728\u9879\u76EE\u4E2D\u914D\u7F6Eak

',8),k=a("p",null,"\u7533\u8BF7\u5F00\u53D1\u8005ak:",-1),d={href:"https://lbsyun.baidu.com/apiconsole/key?application=key",target:"_blank",rel:"noopener noreferrer"},b=i("https://lbsyun.baidu.com/apiconsole/key?application=key"),m=n(`

\u5B89\u88C5

\u63A8\u8350 pnpm \u5B89\u88C5\u3002

npm i vue3-baidu-map-gl
+import{_ as t,j as e,b as p,c as l,e as a,m as c,F as o,s as n,x as i}from"./app.e8329c2e.js";const r={},u=n('

\u5FEB\u901F\u5F00\u59CB

GitHub license

\u57FA\u4E8E\u767E\u5EA6\u5730\u56FEJavaScript GL\u7248API\u5C01\u88C5\u7684Vue3\u7EC4\u4EF6\u5E93\u3002\u63D0\u4F9B\u4E86\u5927\u90E8\u5206\u5E38\u7528\u7684\u7EC4\u4EF6,\u5982\u679C\u8FD9\u4E9B\u7EC4\u4EF6\u4E0D\u80FD\u6EE1\u8DB3\u4F60\u7684\u9700\u6C42,\u4F60\u4E5F\u53EF\u4EE5\u6839\u636Ehooks\u63D0\u4F9B\u7684\u63A5\u53E3\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u3002

\u2728 \u7279\u6027

  • \u81EA\u52A8\u52A0\u8F7D\u767E\u5EA6\u5730\u56FE SDK,\u4F60\u9700\u5173\u6CE8\u7EC4\u4EF6\u4F7F\u7528\u3002
  • \u4F7F\u7528 Typescript \u7F16\u5199\uFF0C\u5B8C\u5584\u5EA6\u7EC4\u4EF6\u4EE3\u7801\u63D0\u793A\u3002
  • \u4E0D\u4F9D\u8D56\u4EFB\u4F55\u7B2C\u4E09\u65B9\u7EC4\u4EF6\u3002
  • \u7EC4\u4EF6\u540C\u65F6\u517C\u5BB9\u5927\u9A7C\u5CF0\u547D\u540D(CamelCase)\u548C\u77ED\u6A2A\u7EBF\u547D\u540D(kebab-case)

\u7533\u8BF7ak

\u4F7F\u7528\u767E\u5EA6\u5730\u56FE\u524D,\u9700\u8981\u5148\u5728\u5F00\u53D1\u8005\u540E\u53F0\u7533\u8BF7ak,\u7136\u540E\u5728\u9879\u76EE\u4E2D\u914D\u7F6Eak

',8),k=a("p",null,"\u7533\u8BF7\u5F00\u53D1\u8005ak:",-1),d={href:"https://lbsyun.baidu.com/apiconsole/key?application=key",target:"_blank",rel:"noopener noreferrer"},b=i("https://lbsyun.baidu.com/apiconsole/key?application=key"),m=n(`

\u5B89\u88C5

\u63A8\u8350 pnpm \u5B89\u88C5\u3002

npm i vue3-baidu-map-gl
 # or
 yarn add vue3-baidu-map-gl
 # or
diff --git a/docs/dist/assets/scale.html.9d11e8f7.js b/docs/dist/assets/scale.html.751c3746.js
similarity index 98%
rename from docs/dist/assets/scale.html.9d11e8f7.js
rename to docs/dist/assets/scale.html.751c3746.js
index 0e2a77c4..9ca5d6d0 100644
--- a/docs/dist/assets/scale.html.9d11e8f7.js
+++ b/docs/dist/assets/scale.html.751c3746.js
@@ -1,4 +1,4 @@
-import{_ as p,j as t,b as o,c,e as d,m as a,q as r,F as l,s as n}from"./app.1205231e.js";const u={},h=n(`

Scale \u6BD4\u4F8B\u5C3A\u63A7\u4EF6

\u6BD4\u4F8B\u5C3A\u63A7\u4EF6,\u9ED8\u8BA4\u663E\u793A\u5728\u5730\u56FE\u5DE6\u4E0B\u89D2

import { Scale } from 'vue3-baidu-map-gl'
+import{_ as p,j as t,b as o,c,e as d,m as a,q as r,F as l,s as n}from"./app.e8329c2e.js";const u={},h=n(`

Scale \u6BD4\u4F8B\u5C3A\u63A7\u4EF6

\u6BD4\u4F8B\u5C3A\u63A7\u4EF6,\u9ED8\u8BA4\u663E\u793A\u5728\u5730\u56FE\u5DE6\u4E0B\u89D2

import { Scale } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
anchor\u63A7\u4EF6\u7684\u505C\u9760\u4F4D\u7F6EstringanchorBMAP_ANCHOR_BOTTOM_LEFT
offset\u63A7\u4EF6\u7684\u504F\u79FB\u503C{x: number, y: number }{ x: 83, y: 18 }

\u52A8\u6001\u7EC4\u4EF6 Props

\u52A8\u6001\u7ED1\u5B9A\u7684\u503C\u53D8\u66F4,\u4F1A\u81EA\u52A8\u66F4\u65B0\u5230\u5730\u56FE\u4E2D

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
unit\u6BD4\u4F8B\u5C3A\u5355\u4F4D\u5236stringunitBMAP_UNIT_METRIC

anchor

\u503C\u8BF4\u660E
BMAP_ANCHOR_TOP_LEFT\u5DE6\u4E0A
BMAP_ANCHOR_TOP_RIGHT\u53F3\u4E0A
BMAP_ANCHOR_BOTTOM_LEFT\u5DE6\u4E0B
BMAP_ANCHOR_BOTTOM_RIGHT\u53F3\u4E0B

unit

\u503C\u8BF4\u660E
BMAP_UNIT_METRIC\u516C\u5C3A
BMAP_UNIT_IMPERIAL\u82F1\u5C3A

\u7EC4\u4EF6\u5B9E\u4F8B

`,13),i=n(`
<Map
   :minZoom="3" 
   height="400px"
diff --git a/docs/dist/assets/useBaseMapEffect.90e9ccd0.js b/docs/dist/assets/useBaseMapEffect.90e9ccd0.js
new file mode 100644
index 00000000..0ebdb072
--- /dev/null
+++ b/docs/dist/assets/useBaseMapEffect.90e9ccd0.js
@@ -0,0 +1 @@
+import{i,a as c}from"./app.e8329c2e.js";import{a as p}from"./useLife.970079a8.js";function r(e){const{on:s}=p(),t=i("getMapInstance"),a=t&&t();let n;a?n=e(a):s("initd",o=>{n=e(o)}),c(()=>{n&&n()})}export{r as u};
diff --git a/docs/dist/assets/useBaseMapEffect.aa0ca7f0.js b/docs/dist/assets/useBaseMapEffect.aa0ca7f0.js
deleted file mode 100644
index 10ae0672..00000000
--- a/docs/dist/assets/useBaseMapEffect.aa0ca7f0.js
+++ /dev/null
@@ -1 +0,0 @@
-import{i,a as c}from"./app.1205231e.js";import{a as p}from"./useLife.2e7b82fe.js";function r(e){const{on:s}=p(),t=i("getMapInstance"),a=t&&t();let n;a?n=e(a):s("initd",o=>{n=e(o)}),c(()=>{n&&n()})}export{r as u};
diff --git a/docs/dist/assets/useLife.2e7b82fe.js b/docs/dist/assets/useLife.970079a8.js
similarity index 89%
rename from docs/dist/assets/useLife.2e7b82fe.js
rename to docs/dist/assets/useLife.970079a8.js
index 2870c27e..c46530b0 100644
--- a/docs/dist/assets/useLife.2e7b82fe.js
+++ b/docs/dist/assets/useLife.970079a8.js
@@ -1 +1 @@
-import{a as r,g as c}from"./app.1205231e.js";function m(n){return{all:n=n||new Map,on:function(i,e){var t=n.get(i);t?t.push(e):n.set(i,[e])},off:function(i,e){var t=n.get(i);t&&(e?t.splice(t.indexOf(e)>>>0,1):n.set(i,[]))},emit:function(i,e){var t=n.get(i);t&&t.slice().map(function(o){o(e)}),(t=n.get("*"))&&t.slice().map(function(o){o(i,e)})}}}const a=m();function p(){return{emit:a.emit,on:a.on,off:a.off}}function l(n){const{uid:i,emit:e}=c(),{on:t,emit:o,off:s}=p();let u=n||`__initd__${i}`;return t(u,f=>{e("initd",f)}),r(()=>{e("unload"),s(u)}),{ready:f=>{o(u,f)}}}export{p as a,l as u};
+import{a as r,g as c}from"./app.e8329c2e.js";function m(n){return{all:n=n||new Map,on:function(i,e){var t=n.get(i);t?t.push(e):n.set(i,[e])},off:function(i,e){var t=n.get(i);t&&(e?t.splice(t.indexOf(e)>>>0,1):n.set(i,[]))},emit:function(i,e){var t=n.get(i);t&&t.slice().map(function(o){o(e)}),(t=n.get("*"))&&t.slice().map(function(o){o(i,e)})}}}const a=m();function p(){return{emit:a.emit,on:a.on,off:a.off}}function l(n){const{uid:i,emit:e}=c(),{on:t,emit:o,off:s}=p();let u=n||`__initd__${i}`;return t(u,f=>{e("initd",f)}),r(()=>{e("unload"),s(u)}),{ready:f=>{o(u,f)}}}export{p as a,l as u};
diff --git a/docs/dist/assets/zoom.html.c908032d.js b/docs/dist/assets/zoom.html.070f272a.js
similarity index 98%
rename from docs/dist/assets/zoom.html.c908032d.js
rename to docs/dist/assets/zoom.html.070f272a.js
index a9ed2348..be20a9bd 100644
--- a/docs/dist/assets/zoom.html.c908032d.js
+++ b/docs/dist/assets/zoom.html.070f272a.js
@@ -1,4 +1,4 @@
-import{_ as e,j as a,b as o,c,e as r,m as t,q as l,F as d,s as n}from"./app.1205231e.js";const u={},i=n(`

Zoom \u7F29\u653E\u63A7\u4EF6

\u7F29\u653E\u63A7\u4EF6\uFF0C\u9ED8\u8BA4\u4F4D\u4E8E\u5730\u56FE\u53F3\u4E0B\u89D2

import { Zoom } from 'vue3-baidu-map-gl'
+import{_ as e,j as a,b as o,c,e as r,m as t,q as l,F as d,s as n}from"./app.e8329c2e.js";const u={},i=n(`

Zoom \u7F29\u653E\u63A7\u4EF6

\u7F29\u653E\u63A7\u4EF6\uFF0C\u9ED8\u8BA4\u4F4D\u4E8E\u5730\u56FE\u53F3\u4E0B\u89D2

import { Zoom } from 'vue3-baidu-map-gl'
 

\u9759\u6001\u7EC4\u4EF6 Props

\u53C2\u6570\u8BF4\u660E\u7C7B\u578B\u53EF\u9009\u503C\u9ED8\u8BA4\u503C
anchor\u63A7\u4EF6\u7684\u505C\u9760\u4F4D\u7F6EstringanchorBMAP_ANCHOR_BOTTOM_LEFT
offset\u63A7\u4EF6\u7684\u504F\u79FB\u503C{x: number, y: number }{ x: 83, y: 18 }

anchor

\u503C\u8BF4\u660E
BMAP_ANCHOR_TOP_LEFT\u5DE6\u4E0A
BMAP_ANCHOR_TOP_RIGHT\u53F3\u4E0A
BMAP_ANCHOR_BOTTOM_LEFT\u5DE6\u4E0B
BMAP_ANCHOR_BOTTOM_RIGHT\u53F3\u4E0B

\u7EC4\u4EF6\u5B9E\u4F8B

`,8),h=n(`
<Map
   :minZoom="3" 
   height="400px"
diff --git a/docs/dist/index.html b/docs/dist/index.html
index 068fd308..d68ff6cd 100644
--- a/docs/dist/index.html
+++ b/docs/dist/index.html
@@ -31,11 +31,11 @@
           s.parentNode.insertBefore(hm, s);
         })();
         
-    
+    
     
   
   
     
Vue3 BaiduMap GL

Vue3 BaiduMap GL

Welcome to your VuePress site

get started

Based on Vue3 + Ts

future-proof, better performance, better experience, better component type hints

really load on demand

Module subcontracting to achieve real on-demand introduction

Easy-to-use components

Perfect code hints, consistent with user logic, follow the language and concepts that users are used to

- + diff --git a/docs/dist/zh/base/com-events.html b/docs/dist/zh/base/com-events.html index bde565da..2ff0a081 100644 --- a/docs/dist/zh/base/com-events.html +++ b/docs/dist/zh/base/com-events.html @@ -31,11 +31,11 @@ s.parentNode.insertBefore(hm, s); })(); 全局组件事件 | Vue3 BaiduMap GL - +

全局组件事件

每个组件都有这两个事件

事件名说明类型
initd组件初始化后,调用的方法,返回一个地图实例{map:BmapGL}
unload组件卸载时会调用此方法(event: {type: string, target: any, pixel: Pixel, point: Point }): void;
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/base/index.html b/docs/dist/zh/base/index.html index fc82a798..b24d540c 100644 --- a/docs/dist/zh/base/index.html +++ b/docs/dist/zh/base/index.html @@ -31,13 +31,13 @@ s.parentNode.insertBefore(hm, s); })(); Map 地图 | Vue3 BaiduMap GL - +

Map 地图

地图核心对象,地图控件、覆盖物、图层等需作为其子组件,以获得 map 的实例化对象

import { Map } from 'vue3-baidu-map-gl'
 
<Map :minZoom="10" height="400px" mapType="BMAP_NORMAL_MAP" />
 

基础综合示例


鼠标缩放
拖拽
惯性拖拽
双指缩放地图
键盘操作
双击缩放,左键双击放大、右键双击缩小
双击平滑缩放效果

地图类型:

map loading...

静态组件 props

参数说明类型可选值默认值
ak百度地图 ak 申请akstring
width地图显示宽度string / number100%
height地图显示高度string / number400px

动态组件 Props

参数说明类型可选值默认值
center地图默认中心点,可使用城市名,如:北京市,也可以使用对象如 {lng: 121.424333, lat: 31.228604} 表示经纬度。string / {lng: number, lat: number}北京市
mapType地图显示类型stringmapTypeBMAP_NORMAL_MAP
zoom缩放级别number16
heading地图旋转角度number0
tilt地图倾斜角度number0
minZoom地图允许展示的最小级别number-0
enableDragging启用地图拖拽boolean-true
enableInertialDragging启用地图惯性拖拽boolean-true
enableScrollWheelZoom允许地图可被鼠标滚轮缩放boolean-true
enableContinuousZoom开启双击平滑缩放效果boolean-true
enableResizeOnCenter开启图区 resize 中心点不变boolean-true
enableDoubleClickZoom启用地图双击缩放,左键双击放大、右键双击缩小boolean-false
enableKeyboard启用键盘操作,键盘的上、下、左、右键可连续移动地图。同时按下其中两个键可使地图进行对角移动。PgUp、PgDn、Home 和 End 键会使地图平移其 1/2 的大小。 +、-键会使地图放大或缩小一级boolean-true
enablePinchToZoom启用双指缩放地图。boolean-true
enableAutoResize启用自动适应容器尺寸变化boolean-true

mapType

描述
BMAP_NORMAL_MAP此地图类型展示普通街道视图
BMAP_EARTH_MAP此地图类型展示地球卫星视图

组件事件

事件名说明类型
click左键单击地图时触发此事件。 当双击时,产生的事件序列为: click click dblclick((e: Event) => void)
dblclick鼠标双击地图时会触发此事件((e: Event) => void)
rightclick右键单击地图时触发此事件。 当双击时,产生的事件序列为: rightclick rightclick rightdblclick((e: Event) => void)
rightdblclick右键双击地图时触发此事件((e: Event) => void)
maptypechange地图类型发生变化时触发此事件((e: Event) => void)
mousemove鼠标在地图区域移动过程中触发此事件((e: Event) => void)
mouseover鼠标移入地图区域时触发此事件((e: Event) => void)
mouseout鼠标移出地图区域时触发此事件((e: Event) => void)
movestart地图移动开始时触发此事件((e: Event) => void)
moving地图移动过程中触发此事件((e: Event) => void)
moveend地图移动结束时触发此事件((e: Event) => void)
zoomstart地图更改缩放级别开始时触发触发此事件((e: Event) => void)
zoomend地图更改缩放级别结束时触发触发此事件((e: Event) => void)
addoverlay当组件 BmOverlay 被挂载到地图中时会触发此事件((e: Event) => void)
removeoverlay当组件 BmOverlay 被移除时会触发此事件((e: Event) => void)
addcontrol当组件 BmControl 被挂载到地图中时会触发此事件((e: Event) => void)
removecontrol当组件 BmControl 被移除时会触发此事件((e: Event) => void)
clearoverlays当使用 Map.clearOverlays() 方法一次性移除全部覆盖物时会触发此事件((e: Event) => void)
dragstart开始拖拽地图时触发((e: Event) => void)
dragging拖拽地图过程中触发((e: Event) => void)
dragend停止拖拽地图时触发((e: Event) => void)
addtilelayer添加一个自定义地图图层时触发此事件((e: Event) => void)
removetilelayer移除一个自定义地图图层时触发此事件((e: Event) => void)
load调用 Map.centerAndZoom()方法时会触发此事件。这表示位置、缩放层级已经确定,但可能还在载入地图图块((e: Event) => void)
resize地图可视区域大小发生变化时会触发此事件((e: Event) => void)
hotspotclick点击热区时触发此事件((e: Event) => void)
hotspotover鼠标移至热区时触发此事件((e: Event) => void)
hotspotout鼠标移出热区时触发此事件((e: Event) => void)
tilesloaded当地图所有图块完成加载时触发此事件((e: Event) => void)
touchstart触摸开始时触发此事件,仅适用移动设备((e: Event) => void)
touchmove触摸移动时触发此事件,仅适用移动设备((e: Event) => void)
touchend触摸结束时触发此事件,仅适用移动设备((e: Event) => void)
longpress长按事件,仅适用移动设备((e: Event) => void)
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/control/custom.html b/docs/dist/zh/control/custom.html index e8ff83e5..a6978ad0 100644 --- a/docs/dist/zh/control/custom.html +++ b/docs/dist/zh/control/custom.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Control 自定义控件 | Vue3 BaiduMap GL - + @@ -70,6 +70,6 @@ }
</style>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/control/navigation3d.html b/docs/dist/zh/control/navigation3d.html index ce51490d..e34b1500 100644 --- a/docs/dist/zh/control/navigation3d.html +++ b/docs/dist/zh/control/navigation3d.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Navigation3d 3D视角导航控件 | Vue3 BaiduMap GL - + @@ -47,6 +47,6 @@ import {Map, Navigation3d} from 'vue3-baidu-map-gl' </script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/control/scale.html b/docs/dist/zh/control/scale.html index 4e3403a6..e1b12854 100644 --- a/docs/dist/zh/control/scale.html +++ b/docs/dist/zh/control/scale.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Scale 比例尺控件 | Vue3 BaiduMap GL - + @@ -47,6 +47,6 @@ import {Map, Scale} from 'vue3-baidu-map-gl'
</script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/control/zoom.html b/docs/dist/zh/control/zoom.html index 5b11e114..77f277f8 100644 --- a/docs/dist/zh/control/zoom.html +++ b/docs/dist/zh/control/zoom.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Zoom 缩放控件 | Vue3 BaiduMap GL - + @@ -47,6 +47,6 @@ import {Map, Zoom} from 'vue3-baidu-map-gl'
</script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/guide/quick-start.html b/docs/dist/zh/guide/quick-start.html index 49e66966..08effaaa 100644 --- a/docs/dist/zh/guide/quick-start.html +++ b/docs/dist/zh/guide/quick-start.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); 快速开始 | Vue3 BaiduMap GL - + @@ -62,6 +62,6 @@ </script>











 


上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/index.html b/docs/dist/zh/index.html index 49632c72..07a5f1d7 100644 --- a/docs/dist/zh/index.html +++ b/docs/dist/zh/index.html @@ -31,11 +31,11 @@ s.parentNode.insertBefore(hm, s); })(); Vue3 BaiduMap GL - + -
Vue3 BaiduMap GL

Vue3 BaiduMap GL

一套基于Vue 3.0和百度地图的地图组件。

开始使用

基于Vue3 + Ts

面向未来,更好的性能,更好的体验,更好的组件类型提示

真真的按需加载

模块分包,做到真正的按需引入

易用的组件

完善的代码提示,与用户逻辑保持一致,遵循用户习惯的语言和概念

- +
Vue3 BaiduMap GL

Vue3 BaiduMap GL

一套基于Vue 3.0和百度地图的地图组件。

开始使用

✨ 基于Vue3 + Ts

完全基于Vue3组件Api, 以及全面的Ts覆盖, 面向未来,更好的性能,更好的体验,更好的组件类型提示

🧩 真真的按需加载

模块分包,做到真正的按需引入

🍀 易用的组件

得益于Vue3 + Ts完美的兼容,组件提供完善的代码提示,与用户逻辑保持一致,将百度地图繁琐的Api精简,遵循用户习惯的语言和概念

WebGl

基于百度地图Gl版, WebGL对地图、覆盖物等进行渲染,支持3D视角展示地图

+ diff --git a/docs/dist/zh/overlay/circle.html b/docs/dist/zh/overlay/circle.html index 9a41129b..0c864ca2 100644 --- a/docs/dist/zh/overlay/circle.html +++ b/docs/dist/zh/overlay/circle.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Circle 圆形 | Vue3 BaiduMap GL - + @@ -55,6 +55,6 @@ import {Map, Circle} from 'vue3-baidu-map-gl' </script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/overlay/label.html b/docs/dist/zh/overlay/label.html index 9c6164ea..f54c576c 100644 --- a/docs/dist/zh/overlay/label.html +++ b/docs/dist/zh/overlay/label.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Label 文本标注 | Vue3 BaiduMap GL - + @@ -58,6 +58,6 @@ import {Map, Label} from 'vue3-baidu-map-gl' </script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/overlay/marker.html b/docs/dist/zh/overlay/marker.html index 44ef2ddc..30d58e0d 100644 --- a/docs/dist/zh/overlay/marker.html +++ b/docs/dist/zh/overlay/marker.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Marker 标注点 | Vue3 BaiduMap GL - + @@ -78,6 +78,6 @@ import {Map, Maker} from 'vue3-baidu-map-gl' </script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/overlay/polygon.html b/docs/dist/zh/overlay/polygon.html index fa8686a1..065de882 100644 --- a/docs/dist/zh/overlay/polygon.html +++ b/docs/dist/zh/overlay/polygon.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Polygon 多边形 | Vue3 BaiduMap GL - + @@ -57,6 +57,6 @@ import {Map, Polygon} from 'vue3-baidu-map-gl' </script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/dist/zh/overlay/polyline.html b/docs/dist/zh/overlay/polyline.html index 429a63e4..51467a8e 100644 --- a/docs/dist/zh/overlay/polyline.html +++ b/docs/dist/zh/overlay/polyline.html @@ -31,7 +31,7 @@ s.parentNode.insertBefore(hm, s); })(); Polyline 折线 | Vue3 BaiduMap GL - + @@ -57,6 +57,6 @@ import {Map, Polyline} from 'vue3-baidu-map-gl' </script>
上次更新:
贡献者: 花开半亩地
- + diff --git a/docs/zh/README.md b/docs/zh/README.md index 3252d5bc..fde2077f 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -6,10 +6,13 @@ actions: - text: 开始使用 link: /zh/guide/quick-start features: - - title: 基于Vue3 + Ts - details: 面向未来,更好的性能,更好的体验,更好的组件类型提示 - - title: 真真的按需加载 + - title: ✨ 基于Vue3 + Ts + details: 完全基于Vue3组件Api, 以及全面的Ts覆盖, 面向未来,更好的性能,更好的体验,更好的组件类型提示 + - title: 🧩 真真的按需加载 details: 模块分包,做到真正的按需引入 - - title: 易用的组件 - details: 完善的代码提示,与用户逻辑保持一致,遵循用户习惯的语言和概念 + - title: 🍀 易用的组件 + details: 得益于Vue3 + Ts完美的兼容,组件提供完善的代码提示,与用户逻辑保持一致,将百度地图繁琐的Api精简,遵循用户习惯的语言和概念 + - title: WebGl + details: 基于百度地图Gl版, WebGL对地图、覆盖物等进行渲染,支持3D视角展示地图 + - title: --- \ No newline at end of file