Skip to content

Commit 5be192b

Browse files
committed
fix sphere geo type
1 parent dd6e459 commit 5be192b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/lib/marks/Sphere.svelte

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@
1212
import type { PlotDefaults } from '../types.js';
1313
1414
let markProps: SphereMarkProps = $props();
15+
1516
const DEFAULTS = {
1617
...getContext<PlotDefaults>('svelteplot/_defaults').sphere
1718
};
18-
const {
19-
data = [{}],
20-
class: className = '',
21-
...options
22-
}: SphereMarkProps = $derived({
19+
20+
const { ...options }: SphereMarkProps = $derived({
2321
...DEFAULTS,
2422
...markProps
2523
});
2624
</script>
2725

28-
<Geo {data} {...options} geoType="sphere" />
26+
<Geo data={[{ type: 'Sphere' }]} {...options} geoType="sphere" />

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy