Skip to content

Commit 1bd3b1c

Browse files
committed
initialize brush with { enabled: false }
1 parent ff0a02e commit 1bd3b1c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib/marks/Brush.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
import type { BaseMarkProps, PlotContext, PlotDefaults } from '$lib/types.js';
4848
import { clientToLayerCoordinates } from './helpers/events.js';
4949
50-
let { brush = $bindable(), ...markProps }: BrushMarkProps = $props();
50+
let { brush = $bindable({ enabled: false }), ...markProps }: BrushMarkProps = $props();
5151
5252
const DEFAULTS = {
5353
stroke: 'currentColor',

src/lib/marks/BrushX.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import type { PlotDefaults } from '../types.js';
88
import { getContext } from 'svelte';
99
10-
let { brush = $bindable(), ...options }: BrushXMarkProps = $props();
10+
let { brush = $bindable({ enabled: false }), ...options }: BrushXMarkProps = $props();
1111
const DEFAULTS = {
1212
...getContext<PlotDefaults>('svelteplot/_defaults').brush,
1313
...getContext<PlotDefaults>('svelteplot/_defaults').brushX

src/lib/marks/BrushY.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import type { PlotDefaults } from '../types.js';
88
import { getContext } from 'svelte';
99
10-
let { brush = $bindable(), ...options }: BrushYMarkProps = $props();
10+
let { brush = $bindable({ enabled: false }), ...options }: BrushYMarkProps = $props();
1111
const DEFAULTS = {
1212
...getContext<PlotDefaults>('svelteplot/_defaults').brush,
1313
...getContext<PlotDefaults>('svelteplot/_defaults').brushY

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