Skip to content

Commit 19658b4

Browse files
committed
fix brush mark
1 parent 97b7462 commit 19658b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/marks/Brush.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import Rect from '$lib/marks/Rect.svelte';
3838
import type { BaseMarkProps, DataRecord, PlotContext, PlotDefaults } from '$lib/types.js';
3939
import { clientToLayerCoordinates } from './helpers/events.js';
40+
import Frame from '$lib/marks/Frame.svelte';
4041
4142
let { brush = $bindable({ enabled: false }), ...markProps }: BrushMarkProps = $props();
4243
@@ -366,3 +367,10 @@
366367
{strokeMiterlimit}
367368
{strokeWidth} />
368369
{/if}
370+
<Frame
371+
fill="transparent"
372+
stroke="transparent"
373+
inset={-20}
374+
{cursor}
375+
{onpointerdown}
376+
{onpointermove} />

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