Skip to content

Commit

Permalink
chore(deps-dev): bump core-js from 3.19.1 to 3.19.2 (#125)
Browse files Browse the repository at this point in the history
Bumps [core-js](https://github.com/zloirock/core-js) from 3.19.1 to 3.19.2.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](zloirock/core-js@v3.19.1...v3.19.2)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> c32b69d
  • Loading branch information
googlemaps-bot committed Nov 29, 2021
1 parent 34581d4 commit 74d3ebe
Show file tree
Hide file tree
Showing 27 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions classes/Cluster.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion classes/ClusterStats.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion classes/DBScanAlgorithm.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion classes/DefaultRenderer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DefaultRenderer | @googlemaps/js-markerclusterer</title><meta name="description" content="Documentation for @googlemaps/js-markerclusterer"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@googlemaps/js-markerclusterer</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@googlemaps/js-markerclusterer</a></li><li><a href="DefaultRenderer.html">DefaultRenderer</a></li></ul><h1>Class DefaultRenderer</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">DefaultRenderer</span></li></ul></section><section class="tsd-panel"><h3>Implements</h3><ul class="tsd-hierarchy"><li><a href="../interfaces/Renderer.html" class="tsd-signature-type" data-tsd-kind="Interface">Renderer</a></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="DefaultRenderer.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultRenderer.html#render" class="tsd-kind-icon">render</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Default<wbr/>Renderer<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="DefaultRenderer.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultRenderer</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="DefaultRenderer.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultRenderer</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="render" class="tsd-anchor"></a><h3>render</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">render<span class="tsd-signature-symbol">(</span>__namedParameters<span class="tsd-signature-symbol">: </span><a href="Cluster.html" class="tsd-signature-type" data-tsd-kind="Class">Cluster</a>, stats<span class="tsd-signature-symbol">: </span><a href="ClusterStats.html" class="tsd-signature-type" data-tsd-kind="Class">ClusterStats</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Marker</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><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/5e97033/src/renderer.ts#L107">renderer.ts:107</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DefaultRenderer | @googlemaps/js-markerclusterer</title><meta name="description" content="Documentation for @googlemaps/js-markerclusterer"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@googlemaps/js-markerclusterer</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@googlemaps/js-markerclusterer</a></li><li><a href="DefaultRenderer.html">DefaultRenderer</a></li></ul><h1>Class DefaultRenderer</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">DefaultRenderer</span></li></ul></section><section class="tsd-panel"><h3>Implements</h3><ul class="tsd-hierarchy"><li><a href="../interfaces/Renderer.html" class="tsd-signature-type" data-tsd-kind="Interface">Renderer</a></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="DefaultRenderer.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="DefaultRenderer.html#render" class="tsd-kind-icon">render</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Default<wbr/>Renderer<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="DefaultRenderer.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultRenderer</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="DefaultRenderer.html" class="tsd-signature-type" data-tsd-kind="Class">DefaultRenderer</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="render" class="tsd-anchor"></a><h3>render</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">render<span class="tsd-signature-symbol">(</span>__namedParameters<span class="tsd-signature-symbol">: </span><a href="Cluster.html" class="tsd-signature-type" data-tsd-kind="Class">Cluster</a>, stats<span class="tsd-signature-symbol">: </span><a href="ClusterStats.html" class="tsd-signature-type" data-tsd-kind="Class">ClusterStats</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Marker</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><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/c32b69d/src/renderer.ts#L107">renderer.ts:107</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>The default render function for the library used by <a href="MarkerClusterer.html">MarkerClusterer</a>.</p>
</div><div><p>Currently set to use the following:</p>
<pre><code class="language-typescript"><span class="hl-2">// change color if this cluster has more markers than the mean cluster</span><br/><span class="hl-11">const</span><span class="hl-0"> </span><span class="hl-12">color</span><span class="hl-0"> =</span><br/><span class="hl-0"> </span><span class="hl-3">count</span><span class="hl-0"> &gt; </span><span class="hl-14">Math</span><span class="hl-0">.</span><span class="hl-13">max</span><span class="hl-0">(</span><span class="hl-15">10</span><span class="hl-0">, </span><span class="hl-3">stats</span><span class="hl-0">.</span><span class="hl-3">clusters</span><span class="hl-0">.</span><span class="hl-3">markers</span><span class="hl-0">.</span><span class="hl-3">mean</span><span class="hl-0">)</span><br/><span class="hl-0"> ? </span><span class="hl-10">&quot;#ff0000&quot;</span><br/><span class="hl-0"> : </span><span class="hl-10">&quot;#0000ff&quot;</span><span class="hl-0">;</span><br/><br/><span class="hl-2">// create svg url with fill color</span><br/><span class="hl-11">const</span><span class="hl-0"> </span><span class="hl-12">svg</span><span class="hl-0"> = </span><span class="hl-3">window</span><span class="hl-0">.</span><span class="hl-13">btoa</span><span class="hl-0">(</span><span class="hl-10">`</span><br/><span class="hl-10">&lt;svg fill=&quot;</span><span class="hl-11">${</span><span class="hl-3">color</span><span class="hl-11">}</span><span class="hl-10">&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 240 240&quot;&gt;</span><br/><span class="hl-10"> &lt;circle cx=&quot;120&quot; cy=&quot;120&quot; opacity=&quot;.6&quot; r=&quot;70&quot; /&gt;</span><br/><span class="hl-10"> &lt;circle cx=&quot;120&quot; cy=&quot;120&quot; opacity=&quot;.3&quot; r=&quot;90&quot; /&gt;</span><br/><span class="hl-10"> &lt;circle cx=&quot;120&quot; cy=&quot;120&quot; opacity=&quot;.2&quot; r=&quot;110&quot; /&gt;</span><br/><span class="hl-10"> &lt;circle cx=&quot;120&quot; cy=&quot;120&quot; opacity=&quot;.1&quot; r=&quot;130&quot; /&gt;</span><br/><span class="hl-10">&lt;/svg&gt;`</span><span class="hl-0">);</span><br/><br/><span class="hl-2">// create marker using svg icon</span><br/><span class="hl-9">return</span><span class="hl-0"> </span><span class="hl-11">new</span><span class="hl-0"> </span><span class="hl-3">google</span><span class="hl-0">.</span><span class="hl-3">maps</span><span class="hl-0">.</span><span class="hl-13">Marker</span><span class="hl-0">({</span><br/><span class="hl-0"> </span><span class="hl-3">position</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">icon:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">url:</span><span class="hl-0"> </span><span class="hl-10">`data:image/svg+xml;base64,</span><span class="hl-11">${</span><span class="hl-3">svg</span><span class="hl-11">}</span><span class="hl-10">`</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">scaledSize:</span><span class="hl-0"> </span><span class="hl-11">new</span><span class="hl-0"> </span><span class="hl-3">google</span><span class="hl-0">.</span><span class="hl-3">maps</span><span class="hl-0">.</span><span class="hl-13">Size</span><span class="hl-0">(</span><span class="hl-15">45</span><span class="hl-0">, </span><span class="hl-15">45</span><span class="hl-0">),</span><br/><span class="hl-0"> },</span><br/><span class="hl-0"> </span><span class="hl-3">label:</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">text:</span><span class="hl-0"> </span><span class="hl-14">String</span><span class="hl-0">(</span><span class="hl-3">count</span><span class="hl-0">),</span><br/><span class="hl-0"> </span><span class="hl-3">color:</span><span class="hl-0"> </span><span class="hl-10">&quot;rgba(255,255,255,0.9)&quot;</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">fontSize:</span><span class="hl-0"> </span><span class="hl-10">&quot;12px&quot;</span><span class="hl-0">,</span><br/><span class="hl-0"> },</span><br/><span class="hl-0"> </span><span class="hl-2">// adjust zIndex to be above other markers</span><br/><span class="hl-0"> </span><span class="hl-3">zIndex:</span><span class="hl-0"> </span><span class="hl-15">1000</span><span class="hl-0"> + </span><span class="hl-3">count</span><span class="hl-0">,</span><br/><span class="hl-0">});</span>
Expand Down
Loading

0 comments on commit 74d3ebe

Please sign in to comment.