Skip to content

Commit

Permalink
refactor(distanceBetweenPoints): optimize (#646) e0f9a11
Browse files Browse the repository at this point in the history
  • Loading branch information
googlemaps-bot committed May 24, 2023
1 parent a93b511 commit f4ef444
Show file tree
Hide file tree
Showing 29 changed files with 119 additions and 113 deletions.
20 changes: 10 additions & 10 deletions classes/Cluster.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">Cluster</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L24">cluster.ts:24</a></li></ul></aside>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L24">cluster.ts:24</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -61,24 +61,24 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><span class="tsd-kind-parameter">__namedParameters</span>: <a href="../interfaces/ClusterOptions.html" class="tsd-signature-type tsd-kind-interface">ClusterOptions</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="Cluster.html" class="tsd-signature-type tsd-kind-class">Cluster</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L29">cluster.ts:29</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L29">cluster.ts:29</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-is-protected"><a id="_position" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>_position</span><a href="#_position" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">_position</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">LatLng</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L27">cluster.ts:27</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L27">cluster.ts:27</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="marker" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>marker</span><a href="#marker" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">marker</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type ">Marker</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L25">cluster.ts:25</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L25">cluster.ts:25</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="markers" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>markers</span><a href="#markers" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">markers</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type ">Marker</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L26">cluster.ts:26</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L26">cluster.ts:26</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Accessors</h2>
<section class="tsd-panel tsd-member"><a id="bounds" class="tsd-anchor"></a>
Expand All @@ -88,7 +88,7 @@ <h3 class="tsd-anchor-link"><span>bounds</span><a href="#bounds" aria-label="Per
<li class="tsd-description">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">LatLngBounds</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L41">cluster.ts:41</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L41">cluster.ts:41</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="count" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>count</span><a href="#count" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures">
Expand All @@ -98,15 +98,15 @@ <h3 class="tsd-anchor-link"><span>count</span><a href="#count" aria-label="Perma
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L60">cluster.ts:60</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L60">cluster.ts:60</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="position" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>position</span><a href="#position" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature" id="position.position-1"><span class="tsd-signature-symbol">get</span> position<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">LatLng</span></li>
<li class="tsd-description">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">LatLng</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L53">cluster.ts:53</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L53">cluster.ts:53</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member"><a id="delete" class="tsd-anchor"></a>
Expand All @@ -118,7 +118,7 @@ <h3 class="tsd-anchor-link"><span>delete</span><a href="#delete" aria-label="Per
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L74">cluster.ts:74</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L74">cluster.ts:74</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="push" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>push</span><a href="#push" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures">
Expand All @@ -133,7 +133,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5><span class="tsd-kind-parameter">marker</span>: <span class="tsd-signature-type ">Marker</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/cluster.ts#L67">cluster.ts:67</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/cluster.ts#L67">cluster.ts:67</a></li></ul></aside></li></ul></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
8 changes: 4 additions & 4 deletions classes/ClusterStats.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">ClusterStats</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/renderer.ts#L23">renderer.ts:23</a></li></ul></aside>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/renderer.ts#L23">renderer.ts:23</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -54,7 +54,7 @@ <h5><span class="tsd-kind-parameter">markers</span>: <span class="tsd-signature-
<h5><span class="tsd-kind-parameter">clusters</span>: <a href="Cluster.html" class="tsd-signature-type tsd-kind-class">Cluster</a><span class="tsd-signature-symbol">[]</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="ClusterStats.html" class="tsd-signature-type tsd-kind-class">ClusterStats</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/renderer.ts#L35">renderer.ts:35</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/renderer.ts#L35">renderer.ts:35</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member"><a id="clusters" class="tsd-anchor"></a>
Expand All @@ -77,7 +77,7 @@ <h5><span class="tsd-kind-property">min</span><span class="tsd-signature-symbol"
<li class="tsd-parameter">
<h5><span class="tsd-kind-property">sum</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/renderer.ts#L25">renderer.ts:25</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/renderer.ts#L25">renderer.ts:25</a></li></ul></aside></section>
<section class="tsd-panel tsd-member"><a id="markers-1" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadonly">Readonly</code> <span>markers</span><a href="#markers-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">markers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">sum</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div>
Expand All @@ -87,7 +87,7 @@ <h4>Type declaration</h4>
<li class="tsd-parameter">
<h5><span class="tsd-kind-property">sum</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/renderer.ts#L24">renderer.ts:24</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/renderer.ts#L24">renderer.ts:24</a></li></ul></aside></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
4 changes: 2 additions & 2 deletions classes/DefaultRenderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h4>Implements</h4>
<ul class="tsd-hierarchy">
<li><a href="../interfaces/Renderer.html" class="tsd-signature-type tsd-kind-interface">Renderer</a></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/renderer.ts#L68">renderer.ts:68</a></li></ul></aside>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/renderer.ts#L68">renderer.ts:68</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -70,7 +70,7 @@ <h5><span class="tsd-kind-parameter">map</span>: <span class="tsd-signature-type
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Marker</span></h4><aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/Renderer.html">Renderer</a>.<a href="../interfaces/Renderer.html#render">render</a></p>
<ul>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/d7c36bc/src/renderer.ts#L107">renderer.ts:107</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/googlemaps/js-markerclusterer/blob/e0f9a11/src/renderer.ts#L107">renderer.ts:107</a></li></ul></aside></li></ul></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
Loading

0 comments on commit f4ef444

Please sign in to comment.