Skip to content

Commit efacef6

Browse files
committed
docs(SubmarineCablesGlobe): Improve perf by disabling hit canvas while spinning
1 parent 89a8bff commit efacef6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • packages/layerchart/src/routes/docs/examples/SubmarineCablesGlobe

packages/layerchart/src/routes/docs/examples/SubmarineCablesGlobe/+page.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
import {
1010
Chart,
11-
Circle,
1211
GeoPath,
1312
GeoPoint,
1413
GeoVisible,
@@ -80,7 +79,7 @@
8079
bind:context
8180
>
8281
{#snippet children({ context })}
83-
<Layer type={shared.renderContext}>
82+
<Layer type={shared.renderContext} disableHitCanvas={timer.running}>
8483
<GeoPath
8584
geojson={{ type: 'Sphere' }}
8685
class="fill-surface-200 stroke-surface-content/20"

0 commit comments

Comments
 (0)