We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6e459 commit 5be192bCopy full SHA for 5be192b
src/lib/marks/Sphere.svelte
@@ -12,17 +12,15 @@
12
import type { PlotDefaults } from '../types.js';
13
14
let markProps: SphereMarkProps = $props();
15
+
16
const DEFAULTS = {
17
...getContext<PlotDefaults>('svelteplot/_defaults').sphere
18
};
- const {
19
- data = [{}],
20
- class: className = '',
21
- ...options
22
- }: SphereMarkProps = $derived({
+ const { ...options }: SphereMarkProps = $derived({
23
...DEFAULTS,
24
...markProps
25
});
26
</script>
27
28
-<Geo {data} {...options} geoType="sphere" />
+<Geo data={[{ type: 'Sphere' }]} {...options} geoType="sphere" />
0 commit comments